From 42a7cd855fa7bada3751d7fb2d083b9c153762b4 Mon Sep 17 00:00:00 2001 From: colawwj Date: Sun, 25 Apr 2021 15:47:08 +0800 Subject: [PATCH 1/2] arm-cosmosdb-release --- sdk/cosmosdb/arm-cosmosdb/package.json | 2 +- .../src/cosmosDBManagementClient.ts | 120 + .../src/cosmosDBManagementClientContext.ts | 4 +- .../src/models/cassandraClustersMappers.ts | 157 + .../src/models/cassandraDataCentersMappers.ts | 153 + .../src/models/cassandraResourcesMappers.ts | 28 +- .../src/models/databaseAccountsMappers.ts | 26 + .../src/models/gremlinResourcesMappers.ts | 28 +- sdk/cosmosdb/arm-cosmosdb/src/models/index.ts | 5065 ++++++++++++----- .../arm-cosmosdb/src/models/mappers.ts | 2752 +++++++-- .../src/models/mongoDBResourcesMappers.ts | 28 +- .../src/models/notebookWorkspacesMappers.ts | 26 + .../arm-cosmosdb/src/models/parameters.ts | 171 + .../privateEndpointConnectionsMappers.ts | 26 + .../src/models/privateLinkResourcesMappers.ts | 26 + .../restorableDatabaseAccountsMappers.ts | 16 + .../restorableMongodbCollectionsMappers.ts | 16 + .../restorableMongodbDatabasesMappers.ts | 16 + .../restorableMongodbResourcesMappers.ts | 15 + .../models/restorableSqlContainersMappers.ts | 27 + .../models/restorableSqlDatabasesMappers.ts | 17 + .../models/restorableSqlResourcesMappers.ts | 15 + .../arm-cosmosdb/src/models/serviceMappers.ts | 153 + .../src/models/sqlResourcesMappers.ts | 35 +- .../src/models/tableResourcesMappers.ts | 28 +- .../src/operations/cassandraClusters.ts | 616 ++ .../src/operations/cassandraDataCenters.ts | 353 ++ .../src/operations/cassandraResources.ts | 8 +- .../src/operations/gremlinResources.ts | 8 +- .../arm-cosmosdb/src/operations/index.ts | 10 + .../src/operations/mongoDBResources.ts | 10 +- .../operations/restorableDatabaseAccounts.ts | 189 + .../restorableMongodbCollections.ts | 89 + .../operations/restorableMongodbDatabases.ts | 89 + .../operations/restorableMongodbResources.ts | 91 + .../src/operations/restorableSqlContainers.ts | 91 + .../src/operations/restorableSqlDatabases.ts | 89 + .../src/operations/restorableSqlResources.ts | 91 + .../arm-cosmosdb/src/operations/service.ts | 278 + .../src/operations/sqlResources.ts | 584 +- .../src/operations/tableResources.ts | 4 +- 41 files changed, 9857 insertions(+), 1693 deletions(-) create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/restorableDatabaseAccountsMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbCollectionsMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbDatabasesMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbResourcesMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlContainersMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlDatabasesMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlResourcesMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/serviceMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/service.ts diff --git a/sdk/cosmosdb/arm-cosmosdb/package.json b/sdk/cosmosdb/arm-cosmosdb/package.json index 7a2d5a35a31f..71ccc5cc4a9e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/package.json +++ b/sdk/cosmosdb/arm-cosmosdb/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-cosmosdb", "author": "Microsoft Corporation", "description": "CosmosDBManagementClient Library with typescript type definitions for node.js and browser.", - "version": "12.1.0", + "version": "13.0.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.0.1", "@azure/ms-rest-js": "^2.0.4", diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts index cba63f35cc5b..3bc4acc63363 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts @@ -10,6 +10,7 @@ import * as msRest from "@azure/ms-rest-js"; 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"; @@ -34,9 +35,19 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { tableResources: operations.TableResources; cassandraResources: operations.CassandraResources; gremlinResources: operations.GremlinResources; + restorableDatabaseAccounts: operations.RestorableDatabaseAccounts; notebookWorkspaces: operations.NotebookWorkspaces; + 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. @@ -64,13 +75,122 @@ 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.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 5f35951edbb9..e5aab87680c2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts @@ -12,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-cosmosdb"; -const packageVersion = "12.1.0"; +const packageVersion = "13.0.0"; export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -43,7 +43,7 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli super(credentials, options); - this.apiVersion = '2021-03-15'; + this.apiVersion = '2021-04-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts new file mode 100644 index 000000000000..9e67fdfb9e8f --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts @@ -0,0 +1,157 @@ +/* + * 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 new file mode 100644 index 000000000000..d57558e9a0f3 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts @@ -0,0 +1,153 @@ +/* + * 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 a55e750b12d0..c591def4958d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,8 +34,11 @@ export { CassandraTableGetResults, CassandraTableListResult, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -43,9 +48,14 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - ErrorResponse, - ErrorResponseUpdatedFormat, + DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -63,6 +73,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -83,12 +95,19 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -100,6 +119,10 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -112,6 +135,7 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, + SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts index 6348426e27d2..f649a0bbf516 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,8 +32,11 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -42,6 +47,7 @@ export { CreateUpdateOptions, DatabaseAccountConnectionString, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, DatabaseAccountListConnectionStringsResult, DatabaseAccountListKeysResult, @@ -49,6 +55,12 @@ export { DatabaseAccountRegenerateKeyParameters, DatabaseAccountsListResult, DatabaseAccountUpdateParameters, + DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicies, @@ -68,6 +80,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, Metric, @@ -98,13 +112,20 @@ export { PercentileMetricValue, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, RegionForOnlineOffline, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -116,6 +137,10 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -128,6 +153,7 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, + SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts index 9306efd19137..6729f9193f42 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,8 +32,11 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -41,9 +46,14 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - ErrorResponse, - ErrorResponseUpdatedFormat, + DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -63,6 +73,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -83,12 +95,19 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -100,6 +119,10 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -112,6 +135,7 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, + SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts index bd439e91a6d9..387410e5910a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts @@ -11,53 +11,6 @@ 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 */ @@ -269,6 +222,44 @@ export interface ApiProperties { serverVersion?: ServerVersion; } +/** + * Specific Databases to restore. + */ +export interface DatabaseRestoreResource { + /** + * The name of the database available for restore. + */ + databaseName?: string; + /** + * The names of the collections available for restore. + */ + collectionNames?: string[]; +} + +/** + * Parameters to indicate the information about the restore. + */ +export interface RestoreParameters { + /** + * Describes the mode of the restore. Possible values include: 'PointInTime' + */ + restoreMode?: RestoreMode; + /** + * The id of the restorable database account from which the restore has to be initiated. For + * example: + * /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName} + */ + restoreSource?: string; + /** + * Time to which the account has to be restored (ISO-8601 format). + */ + restoreTimestampInUtc?: Date; + /** + * List of specific databases available for restore. + */ + databasesToRestore?: DatabaseRestoreResource[]; +} + /** * Contains the possible cases for BackupPolicy. */ @@ -311,6 +302,38 @@ export interface CorsPolicy { maxAgeInSeconds?: number; } +/** + * Metadata pertaining to creation and last modification of the resource. + */ +export interface SystemData { + /** + * The identity that created the resource. + */ + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; +} + /** * The core properties of ARM resources. */ @@ -335,6 +358,7 @@ export interface ARMResourceProperties extends BaseResource { */ location?: string; tags?: { [propertyName: string]: string }; + identity?: ManagedServiceIdentity; } /** @@ -347,7 +371,6 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * 'GlobalDocumentDB'. */ kind?: DatabaseAccountKind; - identity?: ManagedServiceIdentity; provisioningState?: string; /** * The connection endpoint for the Cosmos DB database account. @@ -456,6 +479,20 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * Flag to indicate whether to enable storage analytics. */ enableAnalyticalStorage?: boolean; + /** + * A unique identifier assigned to the database account + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instanceId?: string; + /** + * Enum to indicate the mode of account creation. Possible values include: 'Default', 'Restore'. + * Default value: 'Default'. + */ + createMode?: CreateMode; + /** + * Parameters to indicate the information about the restore. + */ + restoreParameters?: RestoreParameters; /** * The object representing the policy for taking backups on an account. */ @@ -473,6 +510,11 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. */ networkAclBypassResourceIds?: string[]; + /** + * The system meta data relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** @@ -1334,13 +1376,6 @@ export interface ErrorResponse { message?: string; } -/** - * An error response from the service. - */ -export interface ErrorResponseUpdatedFormat { - error?: ErrorResponse; -} - /** * The list of new failover policies for the failover priority change. */ @@ -1361,6 +1396,53 @@ 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 @@ -1501,16 +1583,18 @@ export interface ThroughputSettingsGetResults extends ARMResourceProperties { } /** - * Parameters to create and update Cosmos DB database accounts. + * Contains the possible cases for DatabaseAccountCreateUpdateProperties. */ -export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProperties { +export type DatabaseAccountCreateUpdatePropertiesUnion = DatabaseAccountCreateUpdateProperties | DefaultRequestDatabaseAccountCreateUpdateProperties | RestoreReqeustDatabaseAccountCreateUpdateProperties; + +/** + * Properties to create and update Azure Cosmos DB database accounts. + */ +export interface DatabaseAccountCreateUpdateProperties { /** - * Indicates the type of database account. This can only be set at database account creation. - * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. Default value: - * 'GlobalDocumentDB'. + * Polymorphic Discriminator */ - kind?: DatabaseAccountKind; - identity?: ManagedServiceIdentity; + createMode: "DatabaseAccountCreateUpdateProperties"; /** * The consistency policy for the Cosmos DB account. */ @@ -1606,15 +1690,13 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper } /** - * Parameters for patching Azure Cosmos DB database account properties. + * Properties for non-restore Azure Cosmos DB database account requests. */ -export interface DatabaseAccountUpdateParameters { - tags?: { [propertyName: string]: string }; +export interface DefaultRequestDatabaseAccountCreateUpdateProperties { /** - * The location of the resource group to which the resource belongs. + * Polymorphic Discriminator */ - location?: string; - identity?: ManagedServiceIdentity; + createMode: "Default"; /** * The consistency policy for the Cosmos DB account. */ @@ -1622,7 +1704,7 @@ export interface DatabaseAccountUpdateParameters { /** * An array that contains the georeplication locations enabled for the Cosmos DB account. */ - locations?: Location[]; + locations: Location[]; /** * List of IpRules. */ @@ -1710,414 +1792,377 @@ export interface DatabaseAccountUpdateParameters { } /** - * The read-only access keys for the given database account. + * Properties to restore Azure Cosmos DB database account. */ -export interface DatabaseAccountListReadOnlyKeysResult { +export interface RestoreReqeustDatabaseAccountCreateUpdateProperties { /** - * 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.** + * Polymorphic Discriminator */ - readonly primaryReadonlyMasterKey?: string; + createMode: "Restore"; /** - * 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.** + * The consistency policy for the Cosmos DB account. */ - readonly secondaryReadonlyMasterKey?: string; -} - -/** - * The access keys for the given database account. - */ -export interface DatabaseAccountListKeysResult extends DatabaseAccountListReadOnlyKeysResult { + consistencyPolicy?: ConsistencyPolicy; /** - * 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.** + * An array that contains the georeplication locations enabled for the Cosmos DB account. */ - readonly primaryMasterKey?: string; + locations: Location[]; /** - * 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.** + * List of IpRules. */ - readonly secondaryMasterKey?: string; -} - -/** - * Connection string for the Cosmos DB account - */ -export interface DatabaseAccountConnectionString { + ipRules?: IpAddressOrRange[]; /** - * Value of the connection string - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Flag to indicate whether to enable/disable Virtual Network ACL rules. */ - readonly connectionString?: string; + isVirtualNetworkFilterEnabled?: boolean; /** - * Description of the connection string - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. */ - readonly description?: string; -} - -/** - * The connection strings for the given database account. - */ -export interface DatabaseAccountListConnectionStringsResult { + enableAutomaticFailover?: boolean; /** - * An array that contains the connection strings for the Cosmos DB account. + * List of Cosmos DB capabilities for the account */ - connectionStrings?: DatabaseAccountConnectionString[]; -} - -/** - * Parameters to regenerate the keys within the database account. - */ -export interface DatabaseAccountRegenerateKeyParameters { + capabilities?: Capability[]; /** - * The access key to regenerate. Possible values include: 'primary', 'secondary', - * 'primaryReadonly', 'secondaryReadonly' + * List of Virtual Network ACL rules configured for the Cosmos DB account. */ - keyKind: KeyKind; -} - -/** - * Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is - * required, but not both. - */ -export interface ThroughputSettingsResource { + virtualNetworkRules?: VirtualNetworkRule[]; /** - * Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings - * is required, but not both. + * Enables the account to write in multiple locations */ - throughput?: number; + enableMultipleWriteLocations?: boolean; /** - * Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings - * is required, but not both. + * Enables the cassandra connector on the Cosmos DB C* account */ - autoscaleSettings?: AutoscaleSettingsResource; + enableCassandraConnector?: boolean; /** - * The minimum throughput of the resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The cassandra connector offer type for the Cosmos DB database C* account. Possible values + * include: 'Small' */ - readonly minimumThroughput?: string; + connectorOffer?: ConnectorOffer; /** - * The throughput replace is pending - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Disable write operations on metadata resources (databases, containers, throughput) via account + * keys */ - readonly offerReplacePending?: string; -} - -/** - * Parameters to update Cosmos DB resource throughput. - */ -export interface ThroughputSettingsUpdateParameters extends ARMResourceProperties { + disableKeyBasedMetadataWriteAccess?: boolean; /** - * The standard JSON format of a resource throughput + * The URI of the key vault */ - resource: ThroughputSettingsResource; -} - -/** - * Cosmos DB SQL database resource object - */ -export interface SqlDatabaseResource { + keyVaultKeyUri?: string; /** - * Name of the Cosmos DB SQL database + * 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. */ - id: string; -} - -/** - * An interface representing AutoscaleSettings. - */ -export interface AutoscaleSettings { + defaultIdentity?: string; /** - * Represents maximum throughput, the resource can scale up to. + * Whether requests from Public Network are allowed. Possible values include: 'Enabled', + * 'Disabled' */ - maxThroughput?: number; -} - -/** - * CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are - * "If-Match", "If-None-Match", "Session-Token" and "Throughput" - */ -export interface CreateUpdateOptions { + publicNetworkAccess?: PublicNetworkAccess; /** - * Request Units per second. For example, "throughput": 10000. + * Flag to indicate whether Free Tier is enabled. */ - throughput?: number; + enableFreeTier?: boolean; /** - * Specifies the Autoscale settings. + * API specific properties. Currently, supported only for MongoDB API. */ - autoscaleSettings?: AutoscaleSettings; + 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 SQL database. + * Parameters to create and update Cosmos DB database accounts. */ -export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties { - /** - * The standard JSON format of a SQL database - */ - resource: SqlDatabaseResource; +export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProperties { /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * Indicates the type of database account. This can only be set at database account creation. + * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. Default value: + * 'GlobalDocumentDB'. */ - options?: CreateUpdateOptions; + kind?: DatabaseAccountKind; + properties: DatabaseAccountCreateUpdatePropertiesUnion; } /** - * Cosmos DB SQL container resource object + * Parameters for patching Azure Cosmos DB database account properties. */ -export interface SqlContainerResource { +export interface DatabaseAccountUpdateParameters { + tags?: { [propertyName: string]: string }; /** - * Name of the Cosmos DB SQL container + * The location of the resource group to which the resource belongs. */ - id: string; + location?: string; /** - * The configuration of the indexing policy. By default, the indexing is automatic for all - * document paths within the container + * The consistency policy for the Cosmos DB account. */ - indexingPolicy?: IndexingPolicy; + consistencyPolicy?: ConsistencyPolicy; /** - * The configuration of the partition key to be used for partitioning data into multiple - * partitions + * An array that contains the georeplication locations enabled for the Cosmos DB account. */ - partitionKey?: ContainerPartitionKey; + locations?: Location[]; /** - * Default time to live + * List of IpRules. */ - defaultTtl?: number; + ipRules?: IpAddressOrRange[]; /** - * The unique key policy configuration for specifying uniqueness constraints on documents in the - * collection in the Azure Cosmos DB service. + * Flag to indicate whether to enable/disable Virtual Network ACL rules. */ - uniqueKeyPolicy?: UniqueKeyPolicy; + isVirtualNetworkFilterEnabled?: boolean; /** - * The conflict resolution policy for the container. + * 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. */ - conflictResolutionPolicy?: ConflictResolutionPolicy; + enableAutomaticFailover?: boolean; /** - * Analytical TTL. + * List of Cosmos DB capabilities for the account */ - analyticalStorageTtl?: number; -} - -/** - * Parameters to create and update Cosmos DB container. - */ -export interface SqlContainerCreateUpdateParameters extends ARMResourceProperties { + capabilities?: Capability[]; /** - * The standard JSON format of a container + * List of Virtual Network ACL rules configured for the Cosmos DB account. */ - resource: SqlContainerResource; + virtualNetworkRules?: VirtualNetworkRule[]; /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * Enables the account to write in multiple locations */ - options?: CreateUpdateOptions; -} - -/** - * Cosmos DB SQL storedProcedure resource object - */ -export interface SqlStoredProcedureResource { + enableMultipleWriteLocations?: boolean; /** - * Name of the Cosmos DB SQL storedProcedure + * Enables the cassandra connector on the Cosmos DB C* account */ - id: string; + enableCassandraConnector?: boolean; /** - * Body of the Stored Procedure + * The cassandra connector offer type for the Cosmos DB database C* account. Possible values + * include: 'Small' */ - body?: string; -} - -/** - * Parameters to create and update Cosmos DB storedProcedure. - */ -export interface SqlStoredProcedureCreateUpdateParameters extends ARMResourceProperties { + connectorOffer?: ConnectorOffer; /** - * The standard JSON format of a storedProcedure + * Disable write operations on metadata resources (databases, containers, throughput) via account + * keys */ - resource: SqlStoredProcedureResource; + disableKeyBasedMetadataWriteAccess?: boolean; /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * The URI of the key vault */ - options?: CreateUpdateOptions; -} - -/** - * Cosmos DB SQL userDefinedFunction resource object - */ -export interface SqlUserDefinedFunctionResource { + keyVaultKeyUri?: string; /** - * Name of the Cosmos DB SQL userDefinedFunction + * 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. */ - id: string; + defaultIdentity?: string; /** - * Body of the User Defined Function + * Whether requests from Public Network are allowed. Possible values include: 'Enabled', + * 'Disabled' */ - body?: string; -} - -/** - * Parameters to create and update Cosmos DB userDefinedFunction. - */ -export interface SqlUserDefinedFunctionCreateUpdateParameters extends ARMResourceProperties { + publicNetworkAccess?: PublicNetworkAccess; /** - * The standard JSON format of a userDefinedFunction + * Flag to indicate whether Free Tier is enabled. */ - resource: SqlUserDefinedFunctionResource; + enableFreeTier?: boolean; /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * API specific properties. Currently, supported only for MongoDB API. */ - options?: CreateUpdateOptions; -} - -/** - * Cosmos DB SQL trigger resource object - */ -export interface SqlTriggerResource { + apiProperties?: ApiProperties; /** - * Name of the Cosmos DB SQL trigger + * Flag to indicate whether to enable storage analytics. */ - id: string; + enableAnalyticalStorage?: boolean; /** - * Body of the Trigger + * The object representing the policy for taking backups on an account. */ - body?: string; + backupPolicy?: BackupPolicyUnion; /** - * Type of the Trigger. Possible values include: 'Pre', 'Post' + * The CORS policy for the Cosmos DB database account. */ - triggerType?: TriggerType; + cors?: CorsPolicy[]; /** - * The operation the trigger is associated with. Possible values include: 'All', 'Create', - * 'Update', 'Delete', 'Replace' + * Indicates what services are allowed to bypass firewall checks. Possible values include: + * 'None', 'AzureServices' */ - triggerOperation?: TriggerOperation; + networkAclBypass?: NetworkAclBypass; + /** + * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. + */ + networkAclBypassResourceIds?: string[]; + identity?: ManagedServiceIdentity; } /** - * Parameters to create and update Cosmos DB trigger. + * The read-only access keys for the given database account. */ -export interface SqlTriggerCreateUpdateParameters extends ARMResourceProperties { +export interface DatabaseAccountListReadOnlyKeysResult { /** - * The standard JSON format of a trigger + * 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.** */ - resource: SqlTriggerResource; + readonly primaryReadonlyMasterKey?: string; /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * 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.** */ - options?: CreateUpdateOptions; + readonly secondaryReadonlyMasterKey?: string; } /** - * Cosmos DB MongoDB database resource object + * The access keys for the given database account. */ -export interface MongoDBDatabaseResource { +export interface DatabaseAccountListKeysResult extends DatabaseAccountListReadOnlyKeysResult { /** - * Name of the Cosmos DB MongoDB database + * 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.** */ - id: string; + 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; } /** - * Parameters to create and update Cosmos DB MongoDB database. + * Connection string for the Cosmos DB account */ -export interface MongoDBDatabaseCreateUpdateParameters extends ARMResourceProperties { +export interface DatabaseAccountConnectionString { /** - * The standard JSON format of a MongoDB database + * Value of the connection string + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resource: MongoDBDatabaseResource; + readonly connectionString?: string; /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * Description of the connection string + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - options?: CreateUpdateOptions; + readonly description?: string; } /** - * Cosmos DB MongoDB collection resource object + * The connection strings for the given database account. */ -export interface MongoDBCollectionResource { +export interface DatabaseAccountListConnectionStringsResult { /** - * Name of the Cosmos DB MongoDB collection + * An array that contains the connection strings for the Cosmos DB account. */ - id: string; + connectionStrings?: DatabaseAccountConnectionString[]; +} + +/** + * Parameters to regenerate the keys within the database account. + */ +export interface DatabaseAccountRegenerateKeyParameters { /** - * A key-value pair of shard keys to be applied for the request. + * The access key to regenerate. Possible values include: 'primary', 'secondary', + * 'primaryReadonly', 'secondaryReadonly' */ - shardKey?: { [propertyName: string]: string }; + keyKind: KeyKind; +} + +/** + * Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is + * required, but not both. + */ +export interface ThroughputSettingsResource { /** - * List of index keys + * Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings + * is required, but not both. */ - indexes?: MongoIndex[]; + throughput?: number; /** - * Analytical TTL. + * Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings + * is required, but not both. */ - analyticalStorageTtl?: number; + 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.** + */ + readonly offerReplacePending?: string; } /** - * Parameters to create and update Cosmos DB MongoDB collection. + * Parameters to update Cosmos DB resource throughput. */ -export interface MongoDBCollectionCreateUpdateParameters extends ARMResourceProperties { - /** - * The standard JSON format of a MongoDB collection - */ - resource: MongoDBCollectionResource; +export interface ThroughputSettingsUpdateParameters extends ARMResourceProperties { /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * The standard JSON format of a resource throughput */ - options?: CreateUpdateOptions; + resource: ThroughputSettingsResource; } /** - * Cosmos DB table resource object + * Cosmos DB SQL database resource object */ -export interface TableResource { +export interface SqlDatabaseResource { /** - * Name of the Cosmos DB table + * Name of the Cosmos DB SQL database */ id: string; } /** - * Parameters to create and update Cosmos DB Table. + * An interface representing AutoscaleSettings. */ -export interface TableCreateUpdateParameters extends ARMResourceProperties { - /** - * The standard JSON format of a Table - */ - resource: TableResource; +export interface AutoscaleSettings { /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * Represents maximum throughput, the resource can scale up to. */ - options?: CreateUpdateOptions; + maxThroughput?: number; } /** - * Cosmos DB Cassandra keyspace resource object + * CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are + * "If-Match", "If-None-Match", "Session-Token" and "Throughput" */ -export interface CassandraKeyspaceResource { +export interface CreateUpdateOptions { /** - * Name of the Cosmos DB Cassandra keyspace + * Request Units per second. For example, "throughput": 10000. */ - id: string; + throughput?: number; + /** + * Specifies the Autoscale settings. + */ + autoscaleSettings?: AutoscaleSettings; } /** - * Parameters to create and update Cosmos DB Cassandra keyspace. + * Parameters to create and update Cosmos DB SQL database. */ -export interface CassandraKeyspaceCreateUpdateParameters extends ARMResourceProperties { +export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties { /** - * The standard JSON format of a Cassandra keyspace + * The standard JSON format of a SQL database */ - resource: CassandraKeyspaceResource; + resource: SqlDatabaseResource; /** * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. @@ -2126,21 +2171,36 @@ export interface CassandraKeyspaceCreateUpdateParameters extends ARMResourceProp } /** - * Cosmos DB Cassandra table resource object + * Cosmos DB SQL container resource object */ -export interface CassandraTableResource { +export interface SqlContainerResource { /** - * Name of the Cosmos DB Cassandra table + * Name of the Cosmos DB SQL container */ id: string; /** - * Time to live of the Cosmos DB Cassandra table + * 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; /** - * Schema of the Cosmos DB Cassandra table + * The unique key policy configuration for specifying uniqueness constraints on documents in the + * collection in the Azure Cosmos DB service. */ - schema?: CassandraSchema; + uniqueKeyPolicy?: UniqueKeyPolicy; + /** + * The conflict resolution policy for the container. + */ + conflictResolutionPolicy?: ConflictResolutionPolicy; /** * Analytical TTL. */ @@ -2148,13 +2208,13 @@ export interface CassandraTableResource { } /** - * Parameters to create and update Cosmos DB Cassandra table. + * Parameters to create and update Cosmos DB container. */ -export interface CassandraTableCreateUpdateParameters extends ARMResourceProperties { +export interface SqlContainerCreateUpdateParameters extends ARMResourceProperties { /** - * The standard JSON format of a Cassandra table + * The standard JSON format of a container */ - resource: CassandraTableResource; + resource: SqlContainerResource; /** * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. @@ -2163,23 +2223,27 @@ export interface CassandraTableCreateUpdateParameters extends ARMResourcePropert } /** - * Cosmos DB Gremlin database resource object + * Cosmos DB SQL storedProcedure resource object */ -export interface GremlinDatabaseResource { +export interface SqlStoredProcedureResource { /** - * Name of the Cosmos DB Gremlin database + * Name of the Cosmos DB SQL storedProcedure */ id: string; + /** + * Body of the Stored Procedure + */ + body?: string; } /** - * Parameters to create and update Cosmos DB Gremlin database. + * Parameters to create and update Cosmos DB storedProcedure. */ -export interface GremlinDatabaseCreateUpdateParameters extends ARMResourceProperties { +export interface SqlStoredProcedureCreateUpdateParameters extends ARMResourceProperties { /** - * The standard JSON format of a Gremlin database + * The standard JSON format of a storedProcedure */ - resource: GremlinDatabaseResource; + resource: SqlStoredProcedureResource; /** * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. @@ -2188,46 +2252,27 @@ export interface GremlinDatabaseCreateUpdateParameters extends ARMResourceProper } /** - * Cosmos DB Gremlin graph resource object + * Cosmos DB SQL userDefinedFunction resource object */ -export interface GremlinGraphResource { +export interface SqlUserDefinedFunctionResource { /** - * Name of the Cosmos DB Gremlin graph + * Name of the Cosmos DB SQL userDefinedFunction */ id: string; /** - * The configuration of the indexing policy. By default, the indexing is automatic for all - * document paths within the graph - */ - 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 graph. + * Body of the User Defined Function */ - conflictResolutionPolicy?: ConflictResolutionPolicy; + body?: string; } /** - * Parameters to create and update Cosmos DB Gremlin graph. + * Parameters to create and update Cosmos DB userDefinedFunction. */ -export interface GremlinGraphCreateUpdateParameters extends ARMResourceProperties { +export interface SqlUserDefinedFunctionCreateUpdateParameters extends ARMResourceProperties { /** - * The standard JSON format of a Gremlin graph + * The standard JSON format of a userDefinedFunction */ - resource: GremlinGraphResource; + resource: SqlUserDefinedFunctionResource; /** * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. @@ -2236,856 +2281,3255 @@ export interface GremlinGraphCreateUpdateParameters extends ARMResourcePropertie } /** - * The object that represents the operation. + * Cosmos DB SQL trigger resource object */ -export interface OperationDisplay { +export interface SqlTriggerResource { /** - * Service provider: Microsoft.ResourceProvider + * Name of the Cosmos DB SQL trigger */ - provider?: string; + id: string; /** - * Resource on which the operation is performed: Profile, endpoint, etc. + * Body of the Trigger */ - resource?: string; + body?: string; /** - * Operation type: Read, write, delete, etc. + * Type of the Trigger. Possible values include: 'Pre', 'Post' */ - operation?: string; + triggerType?: TriggerType; /** - * Description of operation + * The operation the trigger is associated with. Possible values include: 'All', 'Create', + * 'Update', 'Delete', 'Replace' */ - description?: string; + triggerOperation?: TriggerOperation; } /** - * REST API operation + * Parameters to create and update Cosmos DB trigger. */ -export interface Operation { +export interface SqlTriggerCreateUpdateParameters extends ARMResourceProperties { /** - * Operation name: {provider}/{resource}/{operation} + * The standard JSON format of a trigger */ - name?: string; + resource: SqlTriggerResource; /** - * The object that represents the operation. + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - display?: OperationDisplay; + options?: CreateUpdateOptions; } /** - * A metric name. + * Cosmos DB MongoDB database resource object */ -export interface MetricName { +export interface MongoDBDatabaseResource { /** - * The name of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Name of the Cosmos DB MongoDB database */ - readonly value?: string; - /** - * The friendly name of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly localizedValue?: string; + id: string; } /** - * The usage data for a usage request. + * Parameters to create and update Cosmos DB MongoDB database. */ -export interface Usage { +export interface MongoDBDatabaseCreateUpdateParameters extends ARMResourceProperties { /** - * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' + * The standard JSON format of a MongoDB database */ - unit?: UnitType; + resource: MongoDBDatabaseResource; /** - * The name information for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - readonly name?: MetricName; + options?: CreateUpdateOptions; +} + +/** + * Cosmos DB MongoDB collection resource object + */ +export interface MongoDBCollectionResource { /** - * The quota period used to summarize the usage values. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Name of the Cosmos DB MongoDB collection */ - readonly quotaPeriod?: string; + id: string; /** - * Maximum value for this metric - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A key-value pair of shard keys to be applied for the request. */ - readonly limit?: number; + shardKey?: { [propertyName: string]: string }; /** - * Current value for this metric - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of index keys */ - readonly currentValue?: number; + indexes?: MongoIndex[]; + /** + * Analytical TTL. + */ + analyticalStorageTtl?: number; } /** - * The partition level usage data for a usage request. + * Parameters to create and update Cosmos DB MongoDB collection. */ -export interface PartitionUsage extends Usage { +export interface MongoDBCollectionCreateUpdateParameters extends ARMResourceProperties { /** - * The partition id (GUID identifier) of the usages. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The standard JSON format of a MongoDB collection */ - readonly partitionId?: string; + resource: MongoDBCollectionResource; /** - * The partition key range id (integer identifier) of the usages. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - readonly partitionKeyRangeId?: string; + options?: CreateUpdateOptions; } /** - * The availability of the metric. + * Cosmos DB table resource object */ -export interface MetricAvailability { - /** - * The time grain to be used to summarize the metric values. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly timeGrain?: string; +export interface TableResource { /** - * The retention for the metric values. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Name of the Cosmos DB table */ - readonly retention?: string; + id: string; } /** - * The definition of a metric. + * Parameters to create and update Cosmos DB Table. */ -export interface MetricDefinition { - /** - * The list of metric availabilities for the account. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly metricAvailabilities?: MetricAvailability[]; - /** - * The primary aggregation type of the metric. Possible values include: 'None', 'Average', - * 'Total', 'Minimum', 'Maximum', 'Last' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly primaryAggregationType?: PrimaryAggregationType; +export interface TableCreateUpdateParameters extends ARMResourceProperties { /** - * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' + * The standard JSON format of a Table */ - unit?: UnitType; + resource: TableResource; /** - * The resource uri of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - readonly resourceUri?: string; + options?: CreateUpdateOptions; +} + +/** + * Cosmos DB Cassandra keyspace resource object + */ +export interface CassandraKeyspaceResource { /** - * The name information for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Name of the Cosmos DB Cassandra keyspace */ - readonly name?: MetricName; + id: string; } /** - * Represents metrics values. + * Parameters to create and update Cosmos DB Cassandra keyspace. */ -export interface MetricValue { +export interface CassandraKeyspaceCreateUpdateParameters extends ARMResourceProperties { /** - * The number of values for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The standard JSON format of a Cassandra keyspace */ - readonly _count?: number; + resource: CassandraKeyspaceResource; /** - * The average value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - readonly average?: number; + options?: CreateUpdateOptions; +} + +/** + * Cosmos DB Cassandra table resource object + */ +export interface CassandraTableResource { /** - * The max value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Name of the Cosmos DB Cassandra table */ - readonly maximum?: number; + id: string; /** - * The min value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Time to live of the Cosmos DB Cassandra table */ - readonly minimum?: number; + defaultTtl?: number; /** - * The metric timestamp (ISO-8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Schema of the Cosmos DB Cassandra table */ - readonly timestamp?: Date; + schema?: CassandraSchema; /** - * The total value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Analytical TTL. */ - readonly total?: number; + analyticalStorageTtl?: number; } /** - * Metric data + * Parameters to create and update Cosmos DB Cassandra table. */ -export interface Metric { - /** - * The start time for the metric (ISO-8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly startTime?: Date; +export interface CassandraTableCreateUpdateParameters extends ARMResourceProperties { /** - * The end time for the metric (ISO-8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The standard JSON format of a Cassandra table */ - readonly endTime?: Date; + resource: CassandraTableResource; /** - * The time grain to be used to summarize the metric values. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - readonly timeGrain?: string; + options?: CreateUpdateOptions; +} + +/** + * Cosmos DB Gremlin database resource object + */ +export interface GremlinDatabaseResource { /** - * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' + * Name of the Cosmos DB Gremlin database */ - unit?: UnitType; + id: string; +} + +/** + * Parameters to create and update Cosmos DB Gremlin database. + */ +export interface GremlinDatabaseCreateUpdateParameters extends ARMResourceProperties { /** - * The name information for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The standard JSON format of a Gremlin database */ - readonly name?: MetricName; + resource: GremlinDatabaseResource; /** - * The metric values for the specified time window and timestep. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - readonly metricValues?: MetricValue[]; + options?: CreateUpdateOptions; } /** - * Represents percentile metrics values. + * Cosmos DB Gremlin graph resource object */ -export interface PercentileMetricValue extends MetricValue { - /** - * The 10th percentile value for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly p10?: number; +export interface GremlinGraphResource { /** - * The 25th percentile value for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Name of the Cosmos DB Gremlin graph */ - readonly p25?: number; + id: string; /** - * The 50th percentile value for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The configuration of the indexing policy. By default, the indexing is automatic for all + * document paths within the graph */ - readonly p50?: number; + indexingPolicy?: IndexingPolicy; /** - * The 75th percentile value for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The configuration of the partition key to be used for partitioning data into multiple + * partitions */ - readonly p75?: number; + partitionKey?: ContainerPartitionKey; /** - * The 90th percentile value for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Default time to live */ - readonly p90?: number; + defaultTtl?: number; /** - * The 95th percentile value for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The unique key policy configuration for specifying uniqueness constraints on documents in the + * collection in the Azure Cosmos DB service. */ - readonly p95?: number; + uniqueKeyPolicy?: UniqueKeyPolicy; /** - * The 99th percentile value for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The conflict resolution policy for the graph. */ - readonly p99?: number; + conflictResolutionPolicy?: ConflictResolutionPolicy; } /** - * Percentile Metric data + * Parameters to create and update Cosmos DB Gremlin graph. */ -export interface PercentileMetric { +export interface GremlinGraphCreateUpdateParameters extends ARMResourceProperties { /** - * The start time for the metric (ISO-8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The standard JSON format of a Gremlin graph */ - readonly startTime?: Date; + resource: GremlinGraphResource; /** - * The end time for the metric (ISO-8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - readonly endTime?: Date; + options?: CreateUpdateOptions; +} + +/** + * The object that represents the operation. + */ +export interface OperationDisplay { /** - * The time grain to be used to summarize the metric values. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Service provider: Microsoft.ResourceProvider */ - readonly timeGrain?: string; + provider?: string; /** - * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' + * Resource on which the operation is performed: Profile, endpoint, etc. */ - unit?: UnitType; + resource?: string; /** - * The name information for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Operation type: Read, write, delete, etc. */ - readonly name?: MetricName; + operation?: string; /** - * The percentile metric values for the specified time window and timestep. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Description of operation */ - readonly metricValues?: PercentileMetricValue[]; + description?: string; } /** - * The metric values for a single partition. + * REST API operation */ -export interface PartitionMetric extends Metric { +export interface Operation { /** - * The partition id (GUID identifier) of the metric values. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Operation name: {provider}/{resource}/{operation} */ - readonly partitionId?: string; + name?: string; /** - * The partition key range id (integer identifier) of the metric values. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The object that represents the operation. */ - readonly partitionKeyRangeId?: string; + display?: OperationDisplay; } /** - * Configuration values for periodic mode backup + * A metric name. */ -export interface PeriodicModeProperties { +export interface MetricName { /** - * An integer representing the interval in minutes between two backups + * The name of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - backupIntervalInMinutes?: number; + readonly value?: string; /** - * An integer representing the time (in hours) that each backup is retained + * The friendly name of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - backupRetentionIntervalInHours?: number; + readonly localizedValue?: string; } /** - * The object representing periodic mode backup policy. + * The usage data for a usage request. */ -export interface PeriodicModeBackupPolicy { +export interface Usage { /** - * Polymorphic Discriminator + * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' */ - type: "Periodic"; + unit?: UnitType; /** - * Configuration values for periodic mode backup + * The name information for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - periodicModeProperties?: PeriodicModeProperties; -} - -/** - * The object representing continuous mode backup policy. - */ -export interface ContinuousModeBackupPolicy { + readonly name?: MetricName; /** - * Polymorphic Discriminator + * The quota period used to summarize the usage values. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - type: "Continuous"; -} - -/** - * The resource model definition for an Azure Resource Manager tracked top level resource which has - * 'tags' and a 'location' - * @summary Tracked Resource - */ -export interface TrackedResource extends Resource { + readonly quotaPeriod?: string; /** - * Resource tags. + * Maximum value for this metric + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tags?: { [propertyName: string]: string }; + readonly limit?: number; /** - * The geo-location where the resource lives + * Current value for this metric + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - location: string; + readonly currentValue?: number; } /** - * The resource model definition for an Azure Resource Manager resource with an etag. - * @summary Entity Resource + * The partition level usage data for a usage request. */ -export interface AzureEntityResource extends Resource { +export interface PartitionUsage extends Usage { /** - * Resource Etag. + * The partition id (GUID identifier) of the usages. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly etag?: string; -} - -/** - * Parameters to create a notebook workspace resource - */ -export interface NotebookWorkspaceCreateUpdateParameters extends ARMProxyResource { + readonly partitionId?: string; + /** + * The partition key range id (integer identifier) of the usages. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly partitionKeyRangeId?: string; } /** - * A notebook workspace resource + * The availability of the metric. */ -export interface NotebookWorkspace extends ARMProxyResource { +export interface MetricAvailability { /** - * Specifies the endpoint of Notebook server. + * The time grain to be used to summarize the metric values. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly notebookServerEndpoint?: string; + readonly timeGrain?: string; /** - * Status of the notebook workspace. Possible values are: Creating, Online, Deleting, Failed, - * Updating. + * The retention for the metric values. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly status?: string; + readonly retention?: string; } /** - * The connection info for the given notebook workspace + * The definition of a metric. */ -export interface NotebookWorkspaceConnectionInfoResult { +export interface MetricDefinition { /** - * Specifies auth token used for connecting to Notebook server (uses token-based auth). + * The list of metric availabilities for the account. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly authToken?: string; + readonly metricAvailabilities?: MetricAvailability[]; /** - * Specifies the endpoint of Notebook server. + * The primary aggregation type of the metric. Possible values include: 'None', 'Average', + * 'Total', 'Minimum', 'Maximum', 'Last' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly notebookServerEndpoint?: string; + readonly primaryAggregationType?: PrimaryAggregationType; + /** + * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' + */ + unit?: UnitType; + /** + * The resource uri of the database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceUri?: string; + /** + * The name information for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: MetricName; } /** - * A private link resource + * Represents metrics values. */ -export interface PrivateLinkResource extends ARMProxyResource { +export interface MetricValue { /** - * The private link resource group id. + * The number of values for the metric. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly groupId?: string; + readonly _count?: number; /** - * The private link resource required member names. + * The average value of the metric. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requiredMembers?: string[]; + readonly average?: number; /** - * The private link resource required zone names. + * The max value of the metric. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requiredZoneNames?: string[]; -} - -/** - * Optional Parameters. - */ -export interface DatabaseAccountsListUsagesOptionalParams extends msRest.RequestOptionsBase { + readonly maximum?: number; /** - * An OData filter expression that describes a subset of usages to return. The supported - * parameter is name.value (name of the metric, can have an or of multiple names). + * The min value of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface DatabaseListUsagesOptionalParams extends msRest.RequestOptionsBase { + readonly minimum?: number; /** - * An OData filter expression that describes a subset of usages to return. The supported - * parameter is name.value (name of the metric, can have an or of multiple names). + * The metric timestamp (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface CollectionListUsagesOptionalParams extends msRest.RequestOptionsBase { + readonly timestamp?: Date; /** - * An OData filter expression that describes a subset of usages to return. The supported - * parameter is name.value (name of the metric, can have an or of multiple names). + * The total value of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly total?: number; } /** - * Optional Parameters. + * Metric data */ -export interface CollectionPartitionListUsagesOptionalParams extends msRest.RequestOptionsBase { +export interface Metric { /** - * An OData filter expression that describes a subset of usages to return. The supported - * parameter is name.value (name of the metric, can have an or of multiple names). + * The start time for the metric (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly startTime?: Date; + /** + * The end time for the metric (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTime?: Date; + /** + * The time grain to be used to summarize the metric values. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timeGrain?: string; + /** + * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' + */ + unit?: UnitType; + /** + * The name information for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: MetricName; + /** + * The metric values for the specified time window and timestep. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly metricValues?: MetricValue[]; } /** - * An interface representing CosmosDBManagementClientOptions. + * Represents percentile metrics values. */ -export interface CosmosDBManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; -} - -/** - * @interface - * The List operation response, that contains the database accounts and their properties. - * @extends Array - */ -export interface DatabaseAccountsListResult extends Array { +export interface PercentileMetricValue extends MetricValue { + /** + * The 10th percentile value for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly p10?: number; + /** + * The 25th percentile value for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly p25?: number; + /** + * The 50th percentile value for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly p50?: number; + /** + * The 75th percentile value for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly p75?: number; + /** + * The 90th percentile value for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly p90?: number; + /** + * The 95th percentile value for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly p95?: number; + /** + * The 99th percentile value for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly p99?: number; } /** - * @interface - * The response to a list metrics request. - * @extends Array + * Percentile Metric data */ -export interface MetricListResult extends Array { +export interface PercentileMetric { + /** + * The start time for the metric (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTime?: Date; + /** + * The end time for the metric (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTime?: Date; + /** + * The time grain to be used to summarize the metric values. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timeGrain?: string; + /** + * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' + */ + unit?: UnitType; + /** + * The name information for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: MetricName; + /** + * The percentile metric values for the specified time window and timestep. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly metricValues?: PercentileMetricValue[]; } /** - * @interface - * The response to a list usage request. - * @extends Array + * The metric values for a single partition. */ -export interface UsagesResult extends Array { +export interface PartitionMetric extends Metric { + /** + * The partition id (GUID identifier) of the metric values. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly partitionId?: string; + /** + * The partition key range id (integer identifier) of the metric values. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly partitionKeyRangeId?: string; } /** - * @interface - * The response to a list metric definitions request. - * @extends Array + * Configuration values for periodic mode backup */ -export interface MetricDefinitionsListResult extends Array { +export interface PeriodicModeProperties { + /** + * An integer representing the interval in minutes between two backups + */ + backupIntervalInMinutes?: number; + /** + * 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; } /** - * @interface - * Result of the request to list Resource Provider operations. It contains a list of operations and - * a URL link to get the next set of results. - * @extends Array + * The object representing periodic mode backup policy. */ -export interface OperationListResult extends Array { +export interface PeriodicModeBackupPolicy { /** - * URL to get the next set of operation list results if there are any. + * Polymorphic Discriminator */ - nextLink?: string; + type: "Periodic"; + /** + * Configuration values for periodic mode backup + */ + periodicModeProperties?: PeriodicModeProperties; } /** - * @interface - * The response to a list percentile metrics request. - * @extends Array + * The object representing continuous mode backup policy. */ -export interface PercentileMetricListResult extends Array { +export interface ContinuousModeBackupPolicy { + /** + * Polymorphic Discriminator + */ + type: "Continuous"; } /** - * @interface - * The response to a list partition metrics request. - * @extends Array + * Properties of the regional restorable account. */ -export interface PartitionMetricListResult extends Array { +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.** + */ + 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; } /** - * @interface - * The response to a list partition level usage request. - * @extends Array + * A Azure Cosmos DB restorable database account. */ -export interface PartitionUsagesResult extends Array { +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; } /** - * @interface - * The List operation response, that contains the SQL databases and their properties. - * @extends Array + * Cosmos DB location metadata */ -export interface SqlDatabaseListResult extends Array { +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[]; } /** - * @interface - * The List operation response, that contains the containers and their properties. - * @extends Array + * Cosmos DB location get result */ -export interface SqlContainerListResult extends Array { +export interface LocationGetResult extends ARMProxyResource { + /** + * Cosmos DB location metadata + */ + properties?: LocationProperties; } /** - * @interface - * The List operation response, that contains the storedProcedures and their properties. - * @extends Array + * Properties of the regional restorable account. */ -export interface SqlStoredProcedureListResult extends Array { +export interface ContinuousBackupRestoreLocation { + /** + * The name of the continuous backup restore location. + */ + location?: string; } /** - * @interface - * The List operation response, that contains the userDefinedFunctions and their properties. - * @extends Array + * Continuous backup description. */ -export interface SqlUserDefinedFunctionListResult extends Array { +export interface ContinuousBackupInformation { + /** + * The latest restorable timestamp for a resource. + */ + latestRestorableTimestamp?: string; } /** - * @interface - * The List operation response, that contains the triggers and their properties. - * @extends Array + * Backup information of a resource. */ -export interface SqlTriggerListResult extends Array { +export interface BackupInformation { + continuousBackupInformation?: ContinuousBackupInformation; } /** - * @interface - * The List operation response, that contains the MongoDB databases and their properties. - * @extends Array + * The resource model definition for an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location' + * @summary Tracked Resource */ -export interface MongoDBDatabaseListResult extends Array { +export interface TrackedResource extends Resource { + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; + /** + * The geo-location where the resource lives + */ + location: string; } /** - * @interface - * The List operation response, that contains the MongoDB collections and their properties. - * @extends Array + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource */ -export interface MongoDBCollectionListResult extends Array { +export interface AzureEntityResource extends Resource { + /** + * Resource Etag. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; } /** - * @interface - * The List operation response, that contains the Table and their properties. - * @extends Array + * Parameters to create a notebook workspace resource */ -export interface TableListResult extends Array { +export interface NotebookWorkspaceCreateUpdateParameters extends ARMProxyResource { } /** - * @interface - * The List operation response, that contains the Cassandra keyspaces and their properties. - * @extends Array + * A notebook workspace resource */ -export interface CassandraKeyspaceListResult extends Array { +export interface NotebookWorkspace extends ARMProxyResource { + /** + * Specifies the endpoint of Notebook server. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly notebookServerEndpoint?: string; + /** + * Status of the notebook workspace. Possible values are: Creating, Online, Deleting, Failed, + * Updating. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: string; } /** - * @interface - * The List operation response, that contains the Cassandra tables and their properties. - * @extends Array + * The connection info for the given notebook workspace */ -export interface CassandraTableListResult extends Array { +export interface NotebookWorkspaceConnectionInfoResult { + /** + * Specifies auth token used for connecting to Notebook server (uses token-based auth). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly authToken?: string; + /** + * Specifies the endpoint of Notebook server. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly notebookServerEndpoint?: string; } /** - * @interface - * The List operation response, that contains the Gremlin databases and their properties. - * @extends Array + * The set of data plane operations permitted through this Role Definition. */ -export interface GremlinDatabaseListResult extends Array { +export interface Permission { + /** + * An array of data actions that are allowed. + */ + dataActions?: string[]; + /** + * An array of data actions that are denied. + */ + notDataActions?: string[]; } /** - * @interface - * The List operation response, that contains the graphs and their properties. - * @extends Array + * Parameters to create and update an Azure Cosmos DB SQL Role Definition. */ -export interface GremlinGraphListResult extends Array { +export interface SqlRoleDefinitionCreateUpdateParameters { + /** + * A user-friendly name for the Role Definition. Must be unique for the database account. + */ + roleName?: string; + /** + * Indicates whether the Role Definition was built-in or user created. Possible values include: + * 'BuiltInRole', 'CustomRole' + */ + type?: RoleDefinitionType; + /** + * A set of fully qualified Scopes at or below which Role Assignments may be created using this + * Role Definition. This will allow application of this Role Definition on the entire database + * account or any underlying Database / Collection. Must have at least one element. Scopes higher + * than Database account are not enforceable as assignable Scopes. Note that resources referenced + * in assignable Scopes need not exist. + */ + assignableScopes?: string[]; + /** + * The set of operations allowed through this Role Definition. + */ + permissions?: Permission[]; } /** - * @interface - * A list of notebook workspace resources - * @extends Array + * An Azure Cosmos DB SQL Role Definition. */ -export interface NotebookWorkspaceListResult extends Array { +export interface SqlRoleDefinitionGetResults extends ARMProxyResource { + /** + * A user-friendly name for the Role Definition. Must be unique for the database account. + */ + roleName?: string; + /** + * Indicates whether the Role Definition was built-in or user created. Possible values include: + * 'BuiltInRole', 'CustomRole' + */ + sqlRoleDefinitionGetResultsType?: RoleDefinitionType; + /** + * A set of fully qualified Scopes at or below which Role Assignments may be created using this + * Role Definition. This will allow application of this Role Definition on the entire database + * account or any underlying Database / Collection. Must have at least one element. Scopes higher + * than Database account are not enforceable as assignable Scopes. Note that resources referenced + * in assignable Scopes need not exist. + */ + assignableScopes?: string[]; + /** + * The set of operations allowed through this Role Definition. + */ + permissions?: Permission[]; } /** - * @interface - * A list of private link resources - * @extends Array + * Parameters to create and update an Azure Cosmos DB SQL Role Assignment. */ -export interface PrivateLinkResourceListResult extends Array { +export interface SqlRoleAssignmentCreateUpdateParameters { + /** + * 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; } /** - * @interface - * A list of private endpoint connections - * @extends Array + * An Azure Cosmos DB Role Assignment */ -export interface PrivateEndpointConnectionListResult extends Array { +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; } /** - * Defines values for DatabaseAccountKind. - * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' - * @readonly - * @enum {string} + * Cosmos DB SQL database resource object */ -export type DatabaseAccountKind = 'GlobalDocumentDB' | 'MongoDB' | 'Parse'; +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; +} /** - * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' - * @readonly - * @enum {string} + * The resource of an Azure Cosmos DB SQL database event */ -export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; +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; +} /** - * Defines values for DatabaseAccountOfferType. - * Possible values include: 'Standard' - * @readonly - * @enum {string} + * An Azure Cosmos DB SQL database event */ -export type DatabaseAccountOfferType = 'Standard'; +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; +} /** - * Defines values for DefaultConsistencyLevel. - * Possible values include: 'Eventual', 'Session', 'BoundedStaleness', 'Strong', 'ConsistentPrefix' - * @readonly - * @enum {string} + * Cosmos DB SQL container resource object */ -export type DefaultConsistencyLevel = 'Eventual' | 'Session' | 'BoundedStaleness' | 'Strong' | 'ConsistentPrefix'; +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; + /** + * 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 this MongoDB database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ownerId?: string; + /** + * The resource ID of this MongoDB database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ownerResourceId?: string; +} + +/** + * An Azure Cosmos DB MongoDB database event + */ +export interface RestorableMongodbDatabaseGetResult { + /** + * The resource of an Azure Cosmos DB MongoDB database event + */ + resource?: RestorableMongodbDatabasePropertiesResource; + /** + * 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 collection event + */ +export interface RestorableMongodbCollectionPropertiesResource { + /** + * 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 collection 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 collection event happened. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly eventTimestamp?: string; + /** + * The name of this MongoDB collection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ownerId?: string; + /** + * The resource ID of this MongoDB collection. + * **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; + /** + * 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; +} + +/** + * 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. + */ + pem?: string; +} + +/** + * Properties of a managed Cassandra cluster. + */ +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; + /** + * 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/' + */ + delegatedManagementSubnetId?: 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. + */ + cassandraVersion?: 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. + */ + clusterNameOverride?: string; + /** + * 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' + */ + authenticationMethod?: AuthenticationMethod; + /** + * 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'. + */ + initialCassandraAdminPassword?: string; + /** + * Number of hours to wait between taking a backup of the cluster. To disable backups, set this + * property to 0. + */ + hoursBetweenBackups?: number; + /** + * Hostname or IP address where the Prometheus endpoint containing data about the managed + * Cassandra nodes can be reached. + */ + prometheusEndpoint?: SeedNode; + /** + * 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. + */ + repairEnabled?: boolean; + /** + * 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. + */ + clientCertificates?: Certificate[]; + /** + * 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. + */ + externalGossipCertificates?: Certificate[]; + /** + * 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly gossipCertificates?: Certificate[]; + /** + * List of IP addresses of seed nodes in unmanaged data centers. These will be added to the seed + * node lists of all managed nodes. + */ + externalSeedNodes?: SeedNode[]; + /** + * 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.** + */ + readonly seedNodes?: SeedNode[]; +} + +/** + * Representation of a managed Cassandra cluster. + */ +export interface ClusterResource extends ARMResourceProperties { + /** + * Properties of a managed Cassandra cluster. + */ + properties?: ClusterResourceProperties; +} + +/** + * Specification of the keyspaces and tables to run repair on. + */ +export interface RepairPostBody { + /** + * The name of the keyspace that repair should be run on. + */ + keyspace: string; + /** + * List of tables in the keyspace to repair. If omitted, repair all tables in the keyspace. + */ + tables?: string[]; +} + +/** + * An interface representing ClusterNodeStatusNodesItem. + */ +export interface ClusterNodeStatusNodesItem { + /** + * The Cassandra data center this node resides in. + */ + datacenter?: string; + /** + * Indicates whether the node is functioning or not. Possible values include: 'Up', 'Down' + */ + status?: NodeStatus; + /** + * The state of the node in relation to the cluster. Possible values include: 'Normal', + * 'Leaving', 'Joining', 'Moving', 'Stopped' + */ + state?: NodeState; + /** + * The node's URL. + */ + address?: string; + /** + * 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. + */ + load?: string; + /** + * List of tokens. + */ + tokens?: string[]; + /** + * 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. + */ + owns?: number; + /** + * The network ID of the node. + */ + hostId?: string; + /** + * The rack this node is part of. + */ + rack?: string; +} + +/** + * The status of all nodes in the cluster (as returned by 'nodetool status'). + */ +export interface ClusterNodeStatus { + /** + * Information about nodes in the cluster (corresponds to what is returned from nodetool info). + */ + nodes?: ClusterNodeStatusNodesItem[]; +} + +/** + * An interface representing BackupResourceProperties. + */ +export interface BackupResourceProperties { + /** + * The time this backup was taken, formatted like 2021-01-21T17:35:21 + */ + timestamp?: Date; +} + +/** + * A restorable backup of a Cassandra cluster. + */ +export interface BackupResource extends ARMProxyResource { + properties?: BackupResourceProperties; +} + +/** + * Properties of a managed Cassandra data center. + */ +export interface DataCenterResourceProperties { + /** + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + */ + provisioningState?: ManagedCassandraProvisioningState; + /** + * The region this data center should be created in. + */ + dataCenterLocation?: string; + /** + * 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/'. + */ + delegatedSubnetId?: 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. + */ + nodeCount?: number; + /** + * 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly seedNodes?: SeedNode[]; + /** + * 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. + */ + base64EncodedCassandraYamlFragment?: string; +} + +/** + * A managed Cassandra data center. + */ +export interface DataCenterResource extends ARMProxyResource { + /** + * Properties of a managed Cassandra data center. + */ + properties?: DataCenterResourceProperties; +} + +/** + * 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[]; +} + +/** + * Contains the possible cases for ServiceResourceProperties. + */ +export type ServiceResourcePropertiesUnion = ServiceResourceProperties | DataTransferServiceResourceProperties | SqlDedicatedGatewayServiceResourceProperties; + +/** + * Services response resource. + */ +export interface ServiceResourceProperties { + /** + * Polymorphic Discriminator + */ + serviceType: "ServiceResourceProperties"; + /** + * Time of the last state change (ISO-8601 format). + * **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; + /** + * Instance count for the service. + */ + instanceCount?: number; + /** + * Possible values include: 'Creating', 'Running', 'Updating', 'Deleting', 'Error', 'Stopped' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: ServiceStatus; + /** + * Describes unknown properties. The value of an unknown property can be of "any" type. + */ + [property: string]: any; +} + +/** + * Properties for the database account. + */ +export interface ServiceResource extends ARMProxyResource { + properties?: ServiceResourcePropertiesUnion; +} + +/** + * Resource for a regional service location. + */ +export interface RegionalServiceResource { + /** + * The regional service name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The location name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * Possible values include: 'Creating', 'Running', 'Updating', 'Deleting', 'Error', 'Stopped' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: ServiceStatus; +} + +/** + * Resource for a regional service location. + */ +export interface DataTransferRegionalServiceResource extends RegionalServiceResource { +} + +/** + * Properties for DataTransferServiceResource. + */ +export interface DataTransferServiceResourceProperties { + /** + * Polymorphic Discriminator + */ + serviceType: "DataTransferServiceResourceProperties"; + /** + * Time of the last state change (ISO-8601 format). + * **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; + /** + * Instance count for the service. + */ + instanceCount?: number; + /** + * Possible values include: 'Creating', 'Running', 'Updating', 'Deleting', 'Error', 'Stopped' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: ServiceStatus; + /** + * 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.** + */ + readonly locations?: DataTransferRegionalServiceResource[]; +} + +/** + * Describes the service response property. + */ +export interface DataTransferServiceResource { + properties?: DataTransferServiceResourceProperties; +} + +/** + * Resource for a regional service location. + */ +export interface SqlDedicatedGatewayRegionalServiceResource extends RegionalServiceResource { + /** + * The regional endpoint for SqlDedicatedGateway. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sqlDedicatedGatewayEndpoint?: string; +} + +/** + * Properties for SqlDedicatedGatewayServiceResource. + */ +export interface SqlDedicatedGatewayServiceResourceProperties { + /** + * Polymorphic Discriminator + */ + serviceType: "SqlDedicatedGatewayServiceResourceProperties"; + /** + * Time of the last state change (ISO-8601 format). + * **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; + /** + * Instance count for the service. + */ + instanceCount?: number; + /** + * Possible values include: 'Creating', 'Running', 'Updating', 'Deleting', 'Error', 'Stopped' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: ServiceStatus; + /** + * SqlDedicatedGateway endpoint for the service. + */ + sqlDedicatedGatewayEndpoint?: string; + /** + * 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.** + */ + readonly locations?: SqlDedicatedGatewayRegionalServiceResource[]; +} + +/** + * Describes the service response property for SqlDedicatedGateway. + */ +export interface SqlDedicatedGatewayServiceResource { + properties?: SqlDedicatedGatewayServiceResourceProperties; +} + +/** + * Optional Parameters. + */ +export interface DatabaseAccountsListUsagesOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that describes a subset of usages to return. The supported + * parameter is name.value (name of the metric, can have an or of multiple names). + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface DatabaseListUsagesOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that describes a subset of usages to return. The supported + * parameter is name.value (name of the metric, can have an or of multiple names). + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface CollectionListUsagesOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that describes a subset of usages to return. The supported + * parameter is name.value (name of the metric, can have an or of multiple names). + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface CollectionPartitionListUsagesOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that describes a subset of usages to return. The supported + * parameter is name.value (name of the metric, can have an or of multiple names). + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RestorableSqlContainersListOptionalParams extends msRest.RequestOptionsBase { + /** + * The resource ID of the SQL database. + */ + restorableSqlDatabaseRid?: string; + /** + * The snapshot create timestamp after which snapshots need to be listed. + */ + startTime?: string; + /** + * The snapshot create timestamp before which snapshots need to be listed. + */ + endTime?: string; +} + +/** + * Optional Parameters. + */ +export interface RestorableSqlResourcesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The location where the restorable resources are located. + */ + restoreLocation?: string; + /** + * The timestamp when the restorable resources existed. + */ + restoreTimestampInUtc?: string; +} + +/** + * Optional Parameters. + */ +export interface RestorableMongodbCollectionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The resource ID of the MongoDB database. + */ + restorableMongodbDatabaseRid?: string; +} + +/** + * Optional Parameters. + */ +export interface RestorableMongodbResourcesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The location where the restorable resources are located. + */ + restoreLocation?: string; + /** + * The timestamp when the restorable resources existed. + */ + restoreTimestampInUtc?: string; +} + +/** + * An interface representing CosmosDBManagementClientOptions. + */ +export interface CosmosDBManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * The List operation response, that contains the database accounts and their properties. + * @extends Array + */ +export interface DatabaseAccountsListResult extends Array { +} + +/** + * @interface + * The response to a list metrics request. + * @extends Array + */ +export interface MetricListResult extends Array { +} + +/** + * @interface + * The response to a list usage request. + * @extends Array + */ +export interface UsagesResult extends Array { +} + +/** + * @interface + * The response to a list metric definitions request. + * @extends Array + */ +export interface MetricDefinitionsListResult extends Array { +} + +/** + * @interface + * Result of the request to list Resource Provider operations. It contains a list of operations and + * a URL link to get the next set of results. + * @extends Array + */ +export interface OperationListResult extends Array { + /** + * URL to get the next set of operation list results if there are any. + */ + nextLink?: string; +} + +/** + * @interface + * The response to a list percentile metrics request. + * @extends Array + */ +export interface PercentileMetricListResult extends Array { +} + +/** + * @interface + * The response to a list partition metrics request. + * @extends Array + */ +export interface PartitionMetricListResult extends Array { +} + +/** + * @interface + * The response to a list partition level usage request. + * @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 { +} + +/** + * @interface + * The List operation response, that contains the containers and their properties. + * @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 { +} + +/** + * @interface + * The List operation response, that contains the userDefinedFunctions and their properties. + * @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 { +} + +/** + * @interface + * The relevant Role Definitions. + * @extends Array + */ +export interface SqlRoleDefinitionListResult extends Array { +} + +/** + * @interface + * The relevant Role Assignments. + * @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 { +} + +/** + * @interface + * The List operation response, that contains the MongoDB collections and their properties. + * @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 { +} + +/** + * @interface + * The List operation response, that contains the Cassandra keyspaces and their properties. + * @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 { +} + +/** + * @interface + * The List operation response, that contains the Gremlin databases and their properties. + * @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 { +} + +/** + * @interface + * The List operation response, that contains the restorable database accounts and their + * properties. + * @extends Array + */ +export interface RestorableDatabaseAccountsListResult extends Array { +} + +/** + * @interface + * The List operation response, that contains Cosmos DB locations and their properties. + * @extends Array + */ +export interface LocationListResult extends Array { +} + +/** + * @interface + * A list of notebook workspace resources + * @extends Array + */ +export interface NotebookWorkspaceListResult extends Array { +} + +/** + * @interface + * The List operation response, that contains the SQL database events and their properties. + * @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 { +} + +/** + * @interface + * The List operation response, that contains the restorable SQL resources. + * @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 { +} + +/** + * @interface + * The List operation response, that contains the MongoDB collection events and their properties. + * @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 { +} + +/** + * @interface + * The List operation response, that contains the Service Resource and their properties. + * @extends Array + */ +export interface ServiceResourceListResult extends Array { +} + +/** + * Defines values for DatabaseAccountKind. + * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' + * @readonly + * @enum {string} + */ +export type DatabaseAccountKind = 'GlobalDocumentDB' | 'MongoDB' | 'Parse'; + +/** + * Defines values for DatabaseAccountOfferType. + * Possible values include: 'Standard' + * @readonly + * @enum {string} + */ +export type DatabaseAccountOfferType = 'Standard'; + +/** + * Defines values for DefaultConsistencyLevel. + * Possible values include: 'Eventual', 'Session', 'BoundedStaleness', 'Strong', 'ConsistentPrefix' + * @readonly + * @enum {string} + */ +export type DefaultConsistencyLevel = 'Eventual' | 'Session' | 'BoundedStaleness' | 'Strong' | 'ConsistentPrefix'; + +/** + * Defines values for ConnectorOffer. + * Possible values include: 'Small' + * @readonly + * @enum {string} + */ +export type ConnectorOffer = 'Small'; + +/** + * Defines values for PublicNetworkAccess. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type PublicNetworkAccess = 'Enabled' | 'Disabled'; + +/** + * Defines values for ServerVersion. + * Possible values include: '3.2', '3.6', '4.0' + * @readonly + * @enum {string} + */ +export type ServerVersion = '3.2' | '3.6' | '4.0'; + +/** + * Defines values for CreateMode. + * Possible values include: 'Default', 'Restore' + * @readonly + * @enum {string} + */ +export type CreateMode = 'Default' | 'Restore'; + +/** + * Defines values for RestoreMode. + * Possible values include: 'PointInTime' + * @readonly + * @enum {string} + */ +export type RestoreMode = 'PointInTime'; + +/** + * Defines values for NetworkAclBypass. + * Possible values include: 'None', 'AzureServices' + * @readonly + * @enum {string} + */ +export type NetworkAclBypass = 'None' | 'AzureServices'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for IndexingMode. + * Possible values include: 'consistent', 'lazy', 'none' + * @readonly + * @enum {string} + */ +export type IndexingMode = 'consistent' | 'lazy' | 'none'; + +/** + * Defines values for DataType. + * Possible values include: 'String', 'Number', 'Point', 'Polygon', 'LineString', 'MultiPolygon' + * @readonly + * @enum {string} + */ +export type DataType = 'String' | 'Number' | 'Point' | 'Polygon' | 'LineString' | 'MultiPolygon'; + +/** + * Defines values for IndexKind. + * Possible values include: 'Hash', 'Range', 'Spatial' + * @readonly + * @enum {string} + */ +export type IndexKind = 'Hash' | 'Range' | 'Spatial'; + +/** + * Defines values for CompositePathSortOrder. + * Possible values include: 'ascending', 'descending' + * @readonly + * @enum {string} + */ +export type CompositePathSortOrder = 'ascending' | 'descending'; + +/** + * Defines values for SpatialType. + * Possible values include: 'Point', 'LineString', 'Polygon', 'MultiPolygon' + * @readonly + * @enum {string} + */ +export type SpatialType = 'Point' | 'LineString' | 'Polygon' | 'MultiPolygon'; + +/** + * Defines values for PartitionKind. + * Possible values include: 'Hash', 'Range', 'MultiHash' + * @readonly + * @enum {string} + */ +export type PartitionKind = 'Hash' | 'Range' | 'MultiHash'; + +/** + * Defines values for ConflictResolutionMode. + * Possible values include: 'LastWriterWins', 'Custom' + * @readonly + * @enum {string} + */ +export type ConflictResolutionMode = 'LastWriterWins' | 'Custom'; + +/** + * Defines values for TriggerType. + * Possible values include: 'Pre', 'Post' + * @readonly + * @enum {string} + */ +export type TriggerType = 'Pre' | 'Post'; + +/** + * Defines values for TriggerOperation. + * Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace' + * @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'; + +/** + * Defines values for KeyKind. + * Possible values include: 'primary', 'secondary', 'primaryReadonly', 'secondaryReadonly' + * @readonly + * @enum {string} + */ +export type KeyKind = 'primary' | 'secondary' | 'primaryReadonly' | 'secondaryReadonly'; + +/** + * Defines values for UnitType. + * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', + * 'BytesPerSecond', 'Milliseconds' + * @readonly + * @enum {string} + */ +export type UnitType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSecond' | 'BytesPerSecond' | 'Milliseconds'; + +/** + * Defines values for PrimaryAggregationType. + * Possible values include: 'None', 'Average', 'Total', 'Minimum', 'Maximum', 'Last' + * @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'; + +/** + * Defines values for RoleDefinitionType. + * Possible values include: 'BuiltInRole', 'CustomRole' + * @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'; + +/** + * 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' + * @readonly + * @enum {string} + */ +export type ServiceStatus = 'Creating' | 'Running' | 'Updating' | 'Deleting' | 'Error' | 'Stopped'; + +/** + * Defines values for ServiceType. + * Possible values include: 'SqlDedicatedGateway', 'DataTransfer' + * @readonly + * @enum {string} + */ +export type ServiceType = 'SqlDedicatedGateway' | 'DataTransfer'; + +/** + * Contains response data for the get operation. + */ +export type DatabaseAccountsGetResponse = DatabaseAccountGetResults & { + /** + * 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: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DatabaseAccountsUpdateResponse = DatabaseAccountGetResults & { + /** + * 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: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DatabaseAccountsCreateOrUpdateResponse = DatabaseAccountGetResults & { + /** + * 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: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DatabaseAccountsListResponse = DatabaseAccountsListResult & { + /** + * 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: DatabaseAccountsListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type DatabaseAccountsListByResourceGroupResponse = DatabaseAccountsListResult & { + /** + * 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: DatabaseAccountsListResult; + }; +}; + +/** + * Contains response data for the listKeys operation. + */ +export type DatabaseAccountsListKeysResponse = DatabaseAccountListKeysResult & { + /** + * 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: DatabaseAccountListKeysResult; + }; +}; + +/** + * Contains response data for the listConnectionStrings operation. + */ +export type DatabaseAccountsListConnectionStringsResponse = DatabaseAccountListConnectionStringsResult & { + /** + * 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: DatabaseAccountListConnectionStringsResult; + }; +}; + +/** + * Contains response data for the getReadOnlyKeys operation. + */ +export type DatabaseAccountsGetReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { + /** + * 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: DatabaseAccountListReadOnlyKeysResult; + }; +}; + +/** + * Contains response data for the listReadOnlyKeys operation. + */ +export type DatabaseAccountsListReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { + /** + * 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: DatabaseAccountListReadOnlyKeysResult; + }; +}; + +/** + * Contains response data for the checkNameExists operation. + */ +export type DatabaseAccountsCheckNameExistsResponse = { + /** + * The parsed response body. + */ + body: boolean; + + /** + * 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: boolean; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type DatabaseAccountsListMetricsResponse = MetricListResult & { + /** + * 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: MetricListResult; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +export type DatabaseAccountsListUsagesResponse = UsagesResult & { + /** + * 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: UsagesResult; + }; +}; + +/** + * Contains response data for the listMetricDefinitions operation. + */ +export type DatabaseAccountsListMetricDefinitionsResponse = MetricDefinitionsListResult & { + /** + * 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: MetricDefinitionsListResult; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type DatabaseAccountsBeginUpdateResponse = DatabaseAccountGetResults & { + /** + * 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: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type DatabaseAccountsBeginCreateOrUpdateResponse = DatabaseAccountGetResults & { + /** + * 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: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationListResult & { + /** + * 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: OperationListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = OperationListResult & { + /** + * 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: OperationListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type DatabaseListMetricsResponse = MetricListResult & { + /** + * 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: MetricListResult; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +export type DatabaseListUsagesResponse = UsagesResult & { + /** + * 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: UsagesResult; + }; +}; + +/** + * Contains response data for the listMetricDefinitions operation. + */ +export type DatabaseListMetricDefinitionsResponse = MetricDefinitionsListResult & { + /** + * 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: MetricDefinitionsListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type CollectionListMetricsResponse = MetricListResult & { + /** + * 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: MetricListResult; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +export type CollectionListUsagesResponse = UsagesResult & { + /** + * 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: UsagesResult; + }; +}; + +/** + * Contains response data for the listMetricDefinitions operation. + */ +export type CollectionListMetricDefinitionsResponse = MetricDefinitionsListResult & { + /** + * 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: MetricDefinitionsListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type CollectionRegionListMetricsResponse = MetricListResult & { + /** + * 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: MetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type DatabaseAccountRegionListMetricsResponse = MetricListResult & { + /** + * 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: MetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type PercentileSourceTargetListMetricsResponse = PercentileMetricListResult & { + /** + * 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: PercentileMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type PercentileTargetListMetricsResponse = PercentileMetricListResult & { + /** + * 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: PercentileMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type PercentileListMetricsResponse = PercentileMetricListResult & { + /** + * 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: PercentileMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type CollectionPartitionRegionListMetricsResponse = PartitionMetricListResult & { + /** + * 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: PartitionMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type CollectionPartitionListMetricsResponse = PartitionMetricListResult & { + /** + * 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: PartitionMetricListResult; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +export type CollectionPartitionListUsagesResponse = PartitionUsagesResult & { + /** + * 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: PartitionUsagesResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type PartitionKeyRangeIdListMetricsResponse = PartitionMetricListResult & { + /** + * 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: PartitionMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListResult & { + /** + * 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: PartitionMetricListResult; + }; +}; /** - * Defines values for ConnectorOffer. - * Possible values include: 'Small' - * @readonly - * @enum {string} + * Contains response data for the listSqlDatabases operation. */ -export type ConnectorOffer = 'Small'; +export type SqlResourcesListSqlDatabasesResponse = SqlDatabaseListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for PublicNetworkAccess. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type PublicNetworkAccess = 'Enabled' | 'Disabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlDatabaseListResult; + }; +}; /** - * Defines values for ServerVersion. - * Possible values include: '3.2', '3.6', '4.0' - * @readonly - * @enum {string} + * Contains response data for the getSqlDatabase operation. */ -export type ServerVersion = '3.2' | '3.6' | '4.0'; +export type SqlResourcesGetSqlDatabaseResponse = SqlDatabaseGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for NetworkAclBypass. - * Possible values include: 'None', 'AzureServices' - * @readonly - * @enum {string} - */ -export type NetworkAclBypass = 'None' | 'AzureServices'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlDatabaseGetResults; + }; +}; /** - * Defines values for IndexingMode. - * Possible values include: 'consistent', 'lazy', 'none' - * @readonly - * @enum {string} + * Contains response data for the createUpdateSqlDatabase operation. */ -export type IndexingMode = 'consistent' | 'lazy' | 'none'; +export type SqlResourcesCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for DataType. - * Possible values include: 'String', 'Number', 'Point', 'Polygon', 'LineString', 'MultiPolygon' - * @readonly - * @enum {string} - */ -export type DataType = 'String' | 'Number' | 'Point' | 'Polygon' | 'LineString' | 'MultiPolygon'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlDatabaseGetResults; + }; +}; /** - * Defines values for IndexKind. - * Possible values include: 'Hash', 'Range', 'Spatial' - * @readonly - * @enum {string} + * Contains response data for the getSqlDatabaseThroughput operation. */ -export type IndexKind = 'Hash' | 'Range' | 'Spatial'; +export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for CompositePathSortOrder. - * Possible values include: 'ascending', 'descending' - * @readonly - * @enum {string} - */ -export type CompositePathSortOrder = 'ascending' | 'descending'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; +}; /** - * Defines values for SpatialType. - * Possible values include: 'Point', 'LineString', 'Polygon', 'MultiPolygon' - * @readonly - * @enum {string} + * Contains response data for the updateSqlDatabaseThroughput operation. */ -export type SpatialType = 'Point' | 'LineString' | 'Polygon' | 'MultiPolygon'; +export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for PartitionKind. - * Possible values include: 'Hash', 'Range', 'MultiHash' - * @readonly - * @enum {string} - */ -export type PartitionKind = 'Hash' | 'Range' | 'MultiHash'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; +}; /** - * Defines values for ConflictResolutionMode. - * Possible values include: 'LastWriterWins', 'Custom' - * @readonly - * @enum {string} + * Contains response data for the migrateSqlDatabaseToAutoscale operation. */ -export type ConflictResolutionMode = 'LastWriterWins' | 'Custom'; +export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for TriggerType. - * Possible values include: 'Pre', 'Post' - * @readonly - * @enum {string} - */ -export type TriggerType = 'Pre' | 'Post'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; +}; /** - * Defines values for TriggerOperation. - * Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace' - * @readonly - * @enum {string} + * Contains response data for the migrateSqlDatabaseToManualThroughput operation. */ -export type TriggerOperation = 'All' | 'Create' | 'Update' | 'Delete' | 'Replace'; +export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for KeyKind. - * Possible values include: 'primary', 'secondary', 'primaryReadonly', 'secondaryReadonly' - * @readonly - * @enum {string} - */ -export type KeyKind = 'primary' | 'secondary' | 'primaryReadonly' | 'secondaryReadonly'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; +}; /** - * Defines values for UnitType. - * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', - * 'BytesPerSecond', 'Milliseconds' - * @readonly - * @enum {string} + * Contains response data for the listSqlContainers operation. */ -export type UnitType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSecond' | 'BytesPerSecond' | 'Milliseconds'; +export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for PrimaryAggregationType. - * Possible values include: 'None', 'Average', 'Total', 'Minimum', 'Maximum', 'Last' - * @readonly - * @enum {string} - */ -export type PrimaryAggregationType = 'None' | 'Average' | 'Total' | 'Minimum' | 'Maximum' | 'Last'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlContainerListResult; + }; +}; /** - * Defines values for BackupPolicyType. - * Possible values include: 'Periodic', 'Continuous' - * @readonly - * @enum {string} + * Contains response data for the getSqlContainer operation. */ -export type BackupPolicyType = 'Periodic' | 'Continuous'; +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 get operation. + * Contains response data for the createUpdateSqlContainer operation. */ -export type DatabaseAccountsGetResponse = DatabaseAccountGetResults & { +export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResults & { /** * The underlying HTTP response. */ @@ -3098,14 +5542,14 @@ export type DatabaseAccountsGetResponse = DatabaseAccountGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: SqlContainerGetResults; }; }; /** - * Contains response data for the update operation. + * Contains response data for the getSqlContainerThroughput operation. */ -export type DatabaseAccountsUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3118,14 +5562,14 @@ export type DatabaseAccountsUpdateResponse = DatabaseAccountGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the updateSqlContainerThroughput operation. */ -export type DatabaseAccountsCreateOrUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3138,14 +5582,14 @@ export type DatabaseAccountsCreateOrUpdateResponse = DatabaseAccountGetResults & /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the list operation. + * Contains response data for the migrateSqlContainerToAutoscale operation. */ -export type DatabaseAccountsListResponse = DatabaseAccountsListResult & { +export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3158,14 +5602,14 @@ export type DatabaseAccountsListResponse = DatabaseAccountsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountsListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the migrateSqlContainerToManualThroughput operation. */ -export type DatabaseAccountsListByResourceGroupResponse = DatabaseAccountsListResult & { +export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3178,14 +5622,14 @@ export type DatabaseAccountsListByResourceGroupResponse = DatabaseAccountsListRe /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountsListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listKeys operation. + * Contains response data for the listSqlStoredProcedures operation. */ -export type DatabaseAccountsListKeysResponse = DatabaseAccountListKeysResult & { +export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureListResult & { /** * The underlying HTTP response. */ @@ -3198,14 +5642,14 @@ export type DatabaseAccountsListKeysResponse = DatabaseAccountListKeysResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountListKeysResult; + parsedBody: SqlStoredProcedureListResult; }; }; /** - * Contains response data for the listConnectionStrings operation. + * Contains response data for the getSqlStoredProcedure operation. */ -export type DatabaseAccountsListConnectionStringsResponse = DatabaseAccountListConnectionStringsResult & { +export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ @@ -3218,14 +5662,14 @@ export type DatabaseAccountsListConnectionStringsResponse = DatabaseAccountListC /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountListConnectionStringsResult; + parsedBody: SqlStoredProcedureGetResults; }; }; /** - * Contains response data for the getReadOnlyKeys operation. + * Contains response data for the createUpdateSqlStoredProcedure operation. */ -export type DatabaseAccountsGetReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { +export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ @@ -3238,14 +5682,14 @@ export type DatabaseAccountsGetReadOnlyKeysResponse = DatabaseAccountListReadOnl /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountListReadOnlyKeysResult; + parsedBody: SqlStoredProcedureGetResults; }; }; /** - * Contains response data for the listReadOnlyKeys operation. + * Contains response data for the listSqlUserDefinedFunctions operation. */ -export type DatabaseAccountsListReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { +export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunctionListResult & { /** * The underlying HTTP response. */ @@ -3258,19 +5702,14 @@ export type DatabaseAccountsListReadOnlyKeysResponse = DatabaseAccountListReadOn /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountListReadOnlyKeysResult; + parsedBody: SqlUserDefinedFunctionListResult; }; }; /** - * Contains response data for the checkNameExists operation. + * Contains response data for the getSqlUserDefinedFunction operation. */ -export type DatabaseAccountsCheckNameExistsResponse = { - /** - * The parsed response body. - */ - body: boolean; - +export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ @@ -3283,14 +5722,14 @@ export type DatabaseAccountsCheckNameExistsResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: boolean; + parsedBody: SqlUserDefinedFunctionGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the createUpdateSqlUserDefinedFunction operation. */ -export type DatabaseAccountsListMetricsResponse = MetricListResult & { +export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ @@ -3303,14 +5742,14 @@ export type DatabaseAccountsListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlUserDefinedFunctionGetResults; }; }; /** - * Contains response data for the listUsages operation. + * Contains response data for the listSqlTriggers operation. */ -export type DatabaseAccountsListUsagesResponse = UsagesResult & { +export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { /** * The underlying HTTP response. */ @@ -3323,14 +5762,14 @@ export type DatabaseAccountsListUsagesResponse = UsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsagesResult; + parsedBody: SqlTriggerListResult; }; }; /** - * Contains response data for the listMetricDefinitions operation. + * Contains response data for the getSqlTrigger operation. */ -export type DatabaseAccountsListMetricDefinitionsResponse = MetricDefinitionsListResult & { +export type SqlResourcesGetSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ @@ -3343,14 +5782,14 @@ export type DatabaseAccountsListMetricDefinitionsResponse = MetricDefinitionsLis /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionsListResult; + parsedBody: SqlTriggerGetResults; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the createUpdateSqlTrigger operation. */ -export type DatabaseAccountsBeginUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ @@ -3363,14 +5802,14 @@ export type DatabaseAccountsBeginUpdateResponse = DatabaseAccountGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: SqlTriggerGetResults; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the retrieveContinuousBackupInformation operation. */ -export type DatabaseAccountsBeginCreateOrUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesRetrieveContinuousBackupInformationResponse = BackupInformation & { /** * The underlying HTTP response. */ @@ -3383,14 +5822,14 @@ export type DatabaseAccountsBeginCreateOrUpdateResponse = DatabaseAccountGetResu /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: BackupInformation; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getSqlRoleDefinition operation. */ -export type OperationsListResponse = OperationListResult & { +export type SqlResourcesGetSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ @@ -3403,14 +5842,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: SqlRoleDefinitionGetResults; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createUpdateSqlRoleDefinition operation. */ -export type OperationsListNextResponse = OperationListResult & { +export type SqlResourcesCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ @@ -3423,14 +5862,14 @@ export type OperationsListNextResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: SqlRoleDefinitionGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the listSqlRoleDefinitions operation. */ -export type DatabaseListMetricsResponse = MetricListResult & { +export type SqlResourcesListSqlRoleDefinitionsResponse = SqlRoleDefinitionListResult & { /** * The underlying HTTP response. */ @@ -3443,14 +5882,14 @@ export type DatabaseListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlRoleDefinitionListResult; }; }; /** - * Contains response data for the listUsages operation. + * Contains response data for the getSqlRoleAssignment operation. */ -export type DatabaseListUsagesResponse = UsagesResult & { +export type SqlResourcesGetSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ @@ -3463,14 +5902,14 @@ export type DatabaseListUsagesResponse = UsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsagesResult; + parsedBody: SqlRoleAssignmentGetResults; }; }; /** - * Contains response data for the listMetricDefinitions operation. + * Contains response data for the createUpdateSqlRoleAssignment operation. */ -export type DatabaseListMetricDefinitionsResponse = MetricDefinitionsListResult & { +export type SqlResourcesCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ @@ -3483,14 +5922,14 @@ export type DatabaseListMetricDefinitionsResponse = MetricDefinitionsListResult /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionsListResult; + parsedBody: SqlRoleAssignmentGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the listSqlRoleAssignments operation. */ -export type CollectionListMetricsResponse = MetricListResult & { +export type SqlResourcesListSqlRoleAssignmentsResponse = SqlRoleAssignmentListResult & { /** * The underlying HTTP response. */ @@ -3503,14 +5942,14 @@ export type CollectionListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlRoleAssignmentListResult; }; }; /** - * Contains response data for the listUsages operation. + * Contains response data for the beginCreateUpdateSqlDatabase operation. */ -export type CollectionListUsagesResponse = UsagesResult & { +export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -3523,14 +5962,14 @@ export type CollectionListUsagesResponse = UsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsagesResult; + parsedBody: SqlDatabaseGetResults; }; }; /** - * Contains response data for the listMetricDefinitions operation. + * Contains response data for the beginUpdateSqlDatabaseThroughput operation. */ -export type CollectionListMetricDefinitionsResponse = MetricDefinitionsListResult & { +export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3543,14 +5982,14 @@ export type CollectionListMetricDefinitionsResponse = MetricDefinitionsListResul /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionsListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginMigrateSqlDatabaseToAutoscale operation. */ -export type CollectionRegionListMetricsResponse = MetricListResult & { +export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3563,14 +6002,14 @@ export type CollectionRegionListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginMigrateSqlDatabaseToManualThroughput operation. */ -export type DatabaseAccountRegionListMetricsResponse = MetricListResult & { +export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3583,14 +6022,14 @@ export type DatabaseAccountRegionListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginCreateUpdateSqlContainer operation. */ -export type PercentileSourceTargetListMetricsResponse = PercentileMetricListResult & { +export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetResults & { /** * The underlying HTTP response. */ @@ -3603,14 +6042,14 @@ export type PercentileSourceTargetListMetricsResponse = PercentileMetricListResu /** * The response body as parsed JSON or XML */ - parsedBody: PercentileMetricListResult; + parsedBody: SqlContainerGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginUpdateSqlContainerThroughput operation. */ -export type PercentileTargetListMetricsResponse = PercentileMetricListResult & { +export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3623,14 +6062,14 @@ export type PercentileTargetListMetricsResponse = PercentileMetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PercentileMetricListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginMigrateSqlContainerToAutoscale operation. */ -export type PercentileListMetricsResponse = PercentileMetricListResult & { +export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3643,14 +6082,14 @@ export type PercentileListMetricsResponse = PercentileMetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PercentileMetricListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginMigrateSqlContainerToManualThroughput operation. */ -export type CollectionPartitionRegionListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3663,14 +6102,14 @@ export type CollectionPartitionRegionListMetricsResponse = PartitionMetricListRe /** * The response body as parsed JSON or XML */ - parsedBody: PartitionMetricListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginCreateUpdateSqlStoredProcedure operation. */ -export type CollectionPartitionListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ @@ -3683,14 +6122,14 @@ export type CollectionPartitionListMetricsResponse = PartitionMetricListResult & /** * The response body as parsed JSON or XML */ - parsedBody: PartitionMetricListResult; + parsedBody: SqlStoredProcedureGetResults; }; }; /** - * Contains response data for the listUsages operation. + * Contains response data for the beginCreateUpdateSqlUserDefinedFunction operation. */ -export type CollectionPartitionListUsagesResponse = PartitionUsagesResult & { +export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ @@ -3703,14 +6142,14 @@ export type CollectionPartitionListUsagesResponse = PartitionUsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PartitionUsagesResult; + parsedBody: SqlUserDefinedFunctionGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginCreateUpdateSqlTrigger operation. */ -export type PartitionKeyRangeIdListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ @@ -3723,14 +6162,14 @@ export type PartitionKeyRangeIdListMetricsResponse = PartitionMetricListResult & /** * The response body as parsed JSON or XML */ - parsedBody: PartitionMetricListResult; + parsedBody: SqlTriggerGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginRetrieveContinuousBackupInformation operation. */ -export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginRetrieveContinuousBackupInformationResponse = BackupInformation & { /** * The underlying HTTP response. */ @@ -3743,14 +6182,14 @@ export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListRe /** * The response body as parsed JSON or XML */ - parsedBody: PartitionMetricListResult; + parsedBody: BackupInformation; }; }; /** - * Contains response data for the listSqlDatabases operation. + * Contains response data for the beginCreateUpdateSqlRoleDefinition operation. */ -export type SqlResourcesListSqlDatabasesResponse = SqlDatabaseListResult & { +export type SqlResourcesBeginCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ @@ -3763,14 +6202,14 @@ export type SqlResourcesListSqlDatabasesResponse = SqlDatabaseListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseListResult; + parsedBody: SqlRoleDefinitionGetResults; }; }; /** - * Contains response data for the getSqlDatabase operation. + * Contains response data for the beginCreateUpdateSqlRoleAssignment operation. */ -export type SqlResourcesGetSqlDatabaseResponse = SqlDatabaseGetResults & { +export type SqlResourcesBeginCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ @@ -3783,14 +6222,14 @@ export type SqlResourcesGetSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseGetResults; + parsedBody: SqlRoleAssignmentGetResults; }; }; /** - * Contains response data for the createUpdateSqlDatabase operation. + * Contains response data for the listMongoDBDatabases operation. */ -export type SqlResourcesCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { +export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListResult & { /** * The underlying HTTP response. */ @@ -3803,14 +6242,14 @@ export type SqlResourcesCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseGetResults; + parsedBody: MongoDBDatabaseListResult; }; }; /** - * Contains response data for the getSqlDatabaseThroughput operation. + * Contains response data for the getMongoDBDatabase operation. */ -export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -3823,14 +6262,14 @@ export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: MongoDBDatabaseGetResults; }; }; /** - * Contains response data for the updateSqlDatabaseThroughput operation. + * Contains response data for the createUpdateMongoDBDatabase operation. */ -export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -3843,14 +6282,14 @@ export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettings /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: MongoDBDatabaseGetResults; }; }; /** - * Contains response data for the migrateSqlDatabaseToAutoscale operation. + * Contains response data for the getMongoDBDatabaseThroughput operation. */ -export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3868,9 +6307,9 @@ export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettin }; /** - * Contains response data for the migrateSqlDatabaseToManualThroughput operation. + * Contains response data for the updateMongoDBDatabaseThroughput operation. */ -export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3888,9 +6327,9 @@ export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = Throughpu }; /** - * Contains response data for the listSqlContainers operation. + * Contains response data for the migrateMongoDBDatabaseToAutoscale operation. */ -export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { +export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3903,14 +6342,14 @@ export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlContainer operation. + * Contains response data for the migrateMongoDBDatabaseToManualThroughput operation. */ -export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults & { +export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3923,14 +6362,14 @@ export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateSqlContainer operation. + * Contains response data for the listMongoDBCollections operation. */ -export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResults & { +export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionListResult & { /** * The underlying HTTP response. */ @@ -3943,14 +6382,14 @@ export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResult /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerGetResults; + parsedBody: MongoDBCollectionListResult; }; }; /** - * Contains response data for the getSqlContainerThroughput operation. + * Contains response data for the getMongoDBCollection operation. */ -export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ @@ -3963,14 +6402,14 @@ export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGe /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: MongoDBCollectionGetResults; }; }; /** - * Contains response data for the updateSqlContainerThroughput operation. + * Contains response data for the createUpdateMongoDBCollection operation. */ -export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ @@ -3983,14 +6422,14 @@ export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSetting /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: MongoDBCollectionGetResults; }; }; /** - * Contains response data for the migrateSqlContainerToAutoscale operation. + * Contains response data for the getMongoDBCollectionThroughput operation. */ -export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4008,9 +6447,9 @@ export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSetti }; /** - * Contains response data for the migrateSqlContainerToManualThroughput operation. + * Contains response data for the updateMongoDBCollectionThroughput operation. */ -export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4028,9 +6467,9 @@ export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = Throughp }; /** - * Contains response data for the listSqlStoredProcedures operation. + * Contains response data for the migrateMongoDBCollectionToAutoscale operation. */ -export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureListResult & { +export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4043,14 +6482,14 @@ export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureList /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlStoredProcedure operation. + * Contains response data for the migrateMongoDBCollectionToManualThroughput operation. */ -export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4063,14 +6502,14 @@ export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetRes /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateSqlStoredProcedure operation. + * Contains response data for the beginCreateUpdateMongoDBDatabase operation. */ -export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -4083,14 +6522,14 @@ export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProced /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureGetResults; + parsedBody: MongoDBDatabaseGetResults; }; }; /** - * Contains response data for the listSqlUserDefinedFunctions operation. + * Contains response data for the beginUpdateMongoDBDatabaseThroughput operation. */ -export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunctionListResult & { +export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4103,14 +6542,14 @@ export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunc /** * The response body as parsed JSON or XML */ - parsedBody: SqlUserDefinedFunctionListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlUserDefinedFunction operation. + * Contains response data for the beginMigrateMongoDBDatabaseToAutoscale operation. */ -export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4123,14 +6562,14 @@ export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFuncti /** * The response body as parsed JSON or XML */ - parsedBody: SqlUserDefinedFunctionGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateSqlUserDefinedFunction operation. + * Contains response data for the beginMigrateMongoDBDatabaseToManualThroughput operation. */ -export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4143,14 +6582,14 @@ export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefi /** * The response body as parsed JSON or XML */ - parsedBody: SqlUserDefinedFunctionGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listSqlTriggers operation. + * Contains response data for the beginCreateUpdateMongoDBCollection operation. */ -export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { +export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ @@ -4163,14 +6602,14 @@ export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerListResult; + parsedBody: MongoDBCollectionGetResults; }; }; /** - * Contains response data for the getSqlTrigger operation. + * Contains response data for the beginUpdateMongoDBCollectionThroughput operation. */ -export type SqlResourcesGetSqlTriggerResponse = SqlTriggerGetResults & { +export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4183,14 +6622,14 @@ export type SqlResourcesGetSqlTriggerResponse = SqlTriggerGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateSqlTrigger operation. + * Contains response data for the beginMigrateMongoDBCollectionToAutoscale operation. */ -export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4203,14 +6642,14 @@ export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlDatabase operation. + * Contains response data for the beginMigrateMongoDBCollectionToManualThroughput operation. */ -export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4223,14 +6662,14 @@ export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetRes /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateSqlDatabaseThroughput operation. + * Contains response data for the listTables operation. */ -export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesListTablesResponse = TableListResult & { /** * The underlying HTTP response. */ @@ -4243,14 +6682,14 @@ export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: TableListResult; }; }; /** - * Contains response data for the beginMigrateSqlDatabaseToAutoscale operation. + * Contains response data for the getTable operation. */ -export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type TableResourcesGetTableResponse = TableGetResults & { /** * The underlying HTTP response. */ @@ -4263,14 +6702,14 @@ export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputS /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: TableGetResults; }; }; /** - * Contains response data for the beginMigrateSqlDatabaseToManualThroughput operation. + * Contains response data for the createUpdateTable operation. */ -export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesCreateUpdateTableResponse = TableGetResults & { /** * The underlying HTTP response. */ @@ -4283,14 +6722,14 @@ export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = Thro /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: TableGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlContainer operation. + * Contains response data for the getTableThroughput operation. */ -export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetResults & { +export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4303,14 +6742,14 @@ export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetR /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateSqlContainerThroughput operation. + * Contains response data for the updateTableThroughput operation. */ -export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4328,9 +6767,9 @@ export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSe }; /** - * Contains response data for the beginMigrateSqlContainerToAutoscale operation. + * Contains response data for the migrateTableToAutoscale operation. */ -export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { +export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4348,9 +6787,9 @@ export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = Throughput }; /** - * Contains response data for the beginMigrateSqlContainerToManualThroughput operation. + * Contains response data for the migrateTableToManualThroughput operation. */ -export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4368,9 +6807,9 @@ export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = Thr }; /** - * Contains response data for the beginCreateUpdateSqlStoredProcedure operation. + * Contains response data for the beginCreateUpdateTable operation. */ -export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { /** * The underlying HTTP response. */ @@ -4383,14 +6822,14 @@ export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredP /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureGetResults; + parsedBody: TableGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlUserDefinedFunction operation. + * Contains response data for the beginUpdateTableThroughput operation. */ -export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4403,14 +6842,14 @@ export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUse /** * The response body as parsed JSON or XML */ - parsedBody: SqlUserDefinedFunctionGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlTrigger operation. + * Contains response data for the beginMigrateTableToAutoscale operation. */ -export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { +export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4423,14 +6862,14 @@ export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResul /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMongoDBDatabases operation. + * Contains response data for the beginMigrateTableToManualThroughput operation. */ -export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListResult & { +export type TableResourcesBeginMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4443,14 +6882,14 @@ export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListRe /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBDatabaseListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getMongoDBDatabase operation. + * Contains response data for the listCassandraKeyspaces operation. */ -export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspaceListResult & { /** * The underlying HTTP response. */ @@ -4463,14 +6902,14 @@ export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResul /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBDatabaseGetResults; + parsedBody: CassandraKeyspaceListResult; }; }; /** - * Contains response data for the createUpdateMongoDBDatabase operation. + * Contains response data for the getCassandraKeyspace operation. */ -export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ @@ -4483,14 +6922,14 @@ export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabas /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBDatabaseGetResults; + parsedBody: CassandraKeyspaceGetResults; }; }; /** - * Contains response data for the getMongoDBDatabaseThroughput operation. + * Contains response data for the createUpdateCassandraKeyspace operation. */ -export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ @@ -4503,14 +6942,14 @@ export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraKeyspaceGetResults; }; }; /** - * Contains response data for the updateMongoDBDatabaseThroughput operation. + * Contains response data for the getCassandraKeyspaceThroughput operation. */ -export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4528,9 +6967,9 @@ export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = Throughput }; /** - * Contains response data for the migrateMongoDBDatabaseToAutoscale operation. + * Contains response data for the updateCassandraKeyspaceThroughput operation. */ -export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4548,9 +6987,9 @@ export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = Throughp }; /** - * Contains response data for the migrateMongoDBDatabaseToManualThroughput operation. + * Contains response data for the migrateCassandraKeyspaceToAutoscale operation. */ -export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4568,9 +7007,9 @@ export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = T }; /** - * Contains response data for the listMongoDBCollections operation. + * Contains response data for the migrateCassandraKeyspaceToManualThroughput operation. */ -export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionListResult & { +export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4583,14 +7022,14 @@ export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionLi /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getMongoDBCollection operation. + * Contains response data for the listCassandraTables operation. */ -export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type CassandraResourcesListCassandraTablesResponse = CassandraTableListResult & { /** * The underlying HTTP response. */ @@ -4603,14 +7042,14 @@ export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetR /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionGetResults; + parsedBody: CassandraTableListResult; }; }; /** - * Contains response data for the createUpdateMongoDBCollection operation. + * Contains response data for the getCassandraTable operation. */ -export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ @@ -4623,14 +7062,14 @@ export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBColle /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionGetResults; + parsedBody: CassandraTableGetResults; }; }; /** - * Contains response data for the getMongoDBCollectionThroughput operation. + * Contains response data for the createUpdateCassandraTable operation. */ -export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ @@ -4643,14 +7082,14 @@ export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputS /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraTableGetResults; }; }; /** - * Contains response data for the updateMongoDBCollectionThroughput operation. + * Contains response data for the getCassandraTableThroughput operation. */ -export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4668,9 +7107,9 @@ export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = Throughp }; /** - * Contains response data for the migrateMongoDBCollectionToAutoscale operation. + * Contains response data for the updateCassandraTableThroughput operation. */ -export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4688,9 +7127,9 @@ export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = Throug }; /** - * Contains response data for the migrateMongoDBCollectionToManualThroughput operation. + * Contains response data for the migrateCassandraTableToAutoscale operation. */ -export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4708,9 +7147,9 @@ export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = }; /** - * Contains response data for the beginCreateUpdateMongoDBDatabase operation. + * Contains response data for the migrateCassandraTableToManualThroughput operation. */ -export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4723,14 +7162,14 @@ export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDa /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBDatabaseGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateMongoDBDatabaseThroughput operation. + * Contains response data for the beginCreateUpdateCassandraKeyspace operation. */ -export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ @@ -4743,14 +7182,14 @@ export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = Throu /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraKeyspaceGetResults; }; }; /** - * Contains response data for the beginMigrateMongoDBDatabaseToAutoscale operation. + * Contains response data for the beginUpdateCassandraKeyspaceThroughput operation. */ -export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4768,9 +7207,9 @@ export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = Thr }; /** - * Contains response data for the beginMigrateMongoDBDatabaseToManualThroughput operation. + * Contains response data for the beginMigrateCassandraKeyspaceToAutoscale operation. */ -export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4788,9 +7227,9 @@ export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputRespons }; /** - * Contains response data for the beginCreateUpdateMongoDBCollection operation. + * Contains response data for the beginMigrateCassandraKeyspaceToManualThroughput operation. */ -export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4803,14 +7242,14 @@ export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDB /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateMongoDBCollectionThroughput operation. + * Contains response data for the beginCreateUpdateCassandraTable operation. */ -export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ @@ -4823,14 +7262,14 @@ export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = Thr /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraTableGetResults; }; }; /** - * Contains response data for the beginMigrateMongoDBCollectionToAutoscale operation. + * Contains response data for the beginUpdateCassandraTableThroughput operation. */ -export type MongoDBResourcesBeginMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4848,9 +7287,9 @@ export type MongoDBResourcesBeginMigrateMongoDBCollectionToAutoscaleResponse = T }; /** - * Contains response data for the beginMigrateMongoDBCollectionToManualThroughput operation. + * Contains response data for the beginMigrateCassandraTableToAutoscale operation. */ -export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4868,9 +7307,9 @@ export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputRespo }; /** - * Contains response data for the listTables operation. + * Contains response data for the beginMigrateCassandraTableToManualThroughput operation. */ -export type TableResourcesListTablesResponse = TableListResult & { +export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4883,14 +7322,14 @@ export type TableResourcesListTablesResponse = TableListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: TableListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getTable operation. + * Contains response data for the listGremlinDatabases operation. */ -export type TableResourcesGetTableResponse = TableGetResults & { +export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListResult & { /** * The underlying HTTP response. */ @@ -4903,14 +7342,14 @@ export type TableResourcesGetTableResponse = TableGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: TableGetResults; + parsedBody: GremlinDatabaseListResult; }; }; /** - * Contains response data for the createUpdateTable operation. + * Contains response data for the getGremlinDatabase operation. */ -export type TableResourcesCreateUpdateTableResponse = TableGetResults & { +export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -4923,14 +7362,14 @@ export type TableResourcesCreateUpdateTableResponse = TableGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: TableGetResults; + parsedBody: GremlinDatabaseGetResults; }; }; /** - * Contains response data for the getTableThroughput operation. + * Contains response data for the createUpdateGremlinDatabase operation. */ -export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -4943,14 +7382,14 @@ export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResu /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinDatabaseGetResults; }; }; /** - * Contains response data for the updateTableThroughput operation. + * Contains response data for the getGremlinDatabaseThroughput operation. */ -export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4968,9 +7407,9 @@ export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetR }; /** - * Contains response data for the migrateTableToAutoscale operation. + * Contains response data for the updateGremlinDatabaseThroughput operation. */ -export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4988,9 +7427,9 @@ export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGe }; /** - * Contains response data for the migrateTableToManualThroughput operation. + * Contains response data for the migrateGremlinDatabaseToAutoscale operation. */ -export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5008,9 +7447,9 @@ export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSet }; /** - * Contains response data for the beginCreateUpdateTable operation. + * Contains response data for the migrateGremlinDatabaseToManualThroughput operation. */ -export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { +export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5023,14 +7462,14 @@ export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: TableGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateTableThroughput operation. + * Contains response data for the listGremlinGraphs operation. */ -export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & { /** * The underlying HTTP response. */ @@ -5043,14 +7482,14 @@ export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSetting /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinGraphListResult; }; }; /** - * Contains response data for the beginMigrateTableToAutoscale operation. + * Contains response data for the getGremlinGraph operation. */ -export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ @@ -5063,14 +7502,14 @@ export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSetti /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinGraphGetResults; }; }; /** - * Contains response data for the beginMigrateTableToManualThroughput operation. + * Contains response data for the createUpdateGremlinGraph operation. */ -export type TableResourcesBeginMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ @@ -5083,14 +7522,14 @@ export type TableResourcesBeginMigrateTableToManualThroughputResponse = Throughp /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinGraphGetResults; }; }; /** - * Contains response data for the listCassandraKeyspaces operation. + * Contains response data for the getGremlinGraphThroughput operation. */ -export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspaceListResult & { +export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5103,14 +7542,14 @@ export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspace /** * The response body as parsed JSON or XML */ - parsedBody: CassandraKeyspaceListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getCassandraKeyspace operation. + * Contains response data for the updateGremlinGraphThroughput operation. */ -export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5123,14 +7562,14 @@ export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGe /** * The response body as parsed JSON or XML */ - parsedBody: CassandraKeyspaceGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateCassandraKeyspace operation. + * Contains response data for the migrateGremlinGraphToAutoscale operation. */ -export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5143,14 +7582,14 @@ export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraK /** * The response body as parsed JSON or XML */ - parsedBody: CassandraKeyspaceGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getCassandraKeyspaceThroughput operation. + * Contains response data for the migrateGremlinGraphToManualThroughput operation. */ -export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5168,9 +7607,9 @@ export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = Throughpu }; /** - * Contains response data for the updateCassandraKeyspaceThroughput operation. + * Contains response data for the beginCreateUpdateGremlinDatabase operation. */ -export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -5183,14 +7622,14 @@ export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = Throug /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinDatabaseGetResults; }; }; /** - * Contains response data for the migrateCassandraKeyspaceToAutoscale operation. + * Contains response data for the beginUpdateGremlinDatabaseThroughput operation. */ -export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5208,9 +7647,9 @@ export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = Thro }; /** - * Contains response data for the migrateCassandraKeyspaceToManualThroughput operation. + * Contains response data for the beginMigrateGremlinDatabaseToAutoscale operation. */ -export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5228,9 +7667,9 @@ export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse }; /** - * Contains response data for the listCassandraTables operation. + * Contains response data for the beginMigrateGremlinDatabaseToManualThroughput operation. */ -export type CassandraResourcesListCassandraTablesResponse = CassandraTableListResult & { +export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5243,14 +7682,14 @@ export type CassandraResourcesListCassandraTablesResponse = CassandraTableListRe /** * The response body as parsed JSON or XML */ - parsedBody: CassandraTableListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getCassandraTable operation. + * Contains response data for the beginCreateUpdateGremlinGraph operation. */ -export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResults & { +export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ @@ -5263,14 +7702,14 @@ export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResul /** * The response body as parsed JSON or XML */ - parsedBody: CassandraTableGetResults; + parsedBody: GremlinGraphGetResults; }; }; /** - * Contains response data for the createUpdateCassandraTable operation. + * Contains response data for the beginUpdateGremlinGraphThroughput operation. */ -export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTableGetResults & { +export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5283,14 +7722,14 @@ export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTabl /** * The response body as parsed JSON or XML */ - parsedBody: CassandraTableGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getCassandraTableThroughput operation. + * Contains response data for the beginMigrateGremlinGraphToAutoscale operation. */ -export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5308,9 +7747,9 @@ export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSe }; /** - * Contains response data for the updateCassandraTableThroughput operation. + * Contains response data for the beginMigrateGremlinGraphToManualThroughput operation. */ -export type CassandraResourcesUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5328,9 +7767,9 @@ export type CassandraResourcesUpdateCassandraTableThroughputResponse = Throughpu }; /** - * Contains response data for the migrateCassandraTableToAutoscale operation. + * Contains response data for the listByLocation operation. */ -export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type RestorableDatabaseAccountsListByLocationResponse = RestorableDatabaseAccountsListResult & { /** * The underlying HTTP response. */ @@ -5343,14 +7782,14 @@ export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = Through /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableDatabaseAccountsListResult; }; }; /** - * Contains response data for the migrateCassandraTableToManualThroughput operation. + * Contains response data for the list operation. */ -export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type RestorableDatabaseAccountsListResponse = RestorableDatabaseAccountsListResult & { /** * The underlying HTTP response. */ @@ -5363,14 +7802,14 @@ export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableDatabaseAccountsListResult; }; }; /** - * Contains response data for the beginCreateUpdateCassandraKeyspace operation. + * Contains response data for the getByLocation operation. */ -export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type RestorableDatabaseAccountsGetByLocationResponse = RestorableDatabaseAccountGetResult & { /** * The underlying HTTP response. */ @@ -5383,14 +7822,14 @@ export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = Cassa /** * The response body as parsed JSON or XML */ - parsedBody: CassandraKeyspaceGetResults; + parsedBody: RestorableDatabaseAccountGetResult; }; }; /** - * Contains response data for the beginUpdateCassandraKeyspaceThroughput operation. + * Contains response data for the locationList operation. */ -export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type LocationListResponse = LocationListResult & { /** * The underlying HTTP response. */ @@ -5403,14 +7842,14 @@ export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = T /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: LocationListResult; }; }; /** - * Contains response data for the beginMigrateCassandraKeyspaceToAutoscale operation. + * Contains response data for the locationGet operation. */ -export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { +export type LocationGetResponse = LocationGetResult & { /** * The underlying HTTP response. */ @@ -5423,14 +7862,14 @@ export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: LocationGetResult; }; }; /** - * Contains response data for the beginMigrateCassandraKeyspaceToManualThroughput operation. + * Contains response data for the listByDatabaseAccount operation. */ -export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { +export type NotebookWorkspacesListByDatabaseAccountResponse = NotebookWorkspaceListResult & { /** * The underlying HTTP response. */ @@ -5443,14 +7882,14 @@ export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputRes /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: NotebookWorkspaceListResult; }; }; /** - * Contains response data for the beginCreateUpdateCassandraTable operation. + * Contains response data for the get operation. */ -export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = CassandraTableGetResults & { +export type NotebookWorkspacesGetResponse = NotebookWorkspace & { /** * The underlying HTTP response. */ @@ -5463,14 +7902,14 @@ export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = Cassandr /** * The response body as parsed JSON or XML */ - parsedBody: CassandraTableGetResults; + parsedBody: NotebookWorkspace; }; }; /** - * Contains response data for the beginUpdateCassandraTableThroughput operation. + * Contains response data for the createOrUpdate operation. */ -export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type NotebookWorkspacesCreateOrUpdateResponse = NotebookWorkspace & { /** * The underlying HTTP response. */ @@ -5483,14 +7922,14 @@ export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = Thro /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: NotebookWorkspace; }; }; /** - * Contains response data for the beginMigrateCassandraTableToAutoscale operation. + * Contains response data for the listConnectionInfo operation. */ -export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type NotebookWorkspacesListConnectionInfoResponse = NotebookWorkspaceConnectionInfoResult & { /** * The underlying HTTP response. */ @@ -5503,14 +7942,14 @@ export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = Th /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: NotebookWorkspaceConnectionInfoResult; }; }; /** - * Contains response data for the beginMigrateCassandraTableToManualThroughput operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type NotebookWorkspacesBeginCreateOrUpdateResponse = NotebookWorkspace & { /** * The underlying HTTP response. */ @@ -5523,14 +7962,14 @@ export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputRespon /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: NotebookWorkspace; }; }; /** - * Contains response data for the listGremlinDatabases operation. + * Contains response data for the list operation. */ -export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListResult & { +export type RestorableSqlDatabasesListResponse = RestorableSqlDatabasesListResult & { /** * The underlying HTTP response. */ @@ -5543,14 +7982,14 @@ export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListRe /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseListResult; + parsedBody: RestorableSqlDatabasesListResult; }; }; /** - * Contains response data for the getGremlinDatabase operation. + * Contains response data for the list operation. */ -export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type RestorableSqlContainersListResponse = RestorableSqlContainersListResult & { /** * The underlying HTTP response. */ @@ -5563,14 +8002,14 @@ export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResul /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseGetResults; + parsedBody: RestorableSqlContainersListResult; }; }; /** - * Contains response data for the createUpdateGremlinDatabase operation. + * Contains response data for the list operation. */ -export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type RestorableSqlResourcesListResponse = RestorableSqlResourcesListResult & { /** * The underlying HTTP response. */ @@ -5583,14 +8022,14 @@ export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabas /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseGetResults; + parsedBody: RestorableSqlResourcesListResult; }; }; /** - * Contains response data for the getGremlinDatabaseThroughput operation. + * Contains response data for the list operation. */ -export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type RestorableMongodbDatabasesListResponse = RestorableMongodbDatabasesListResult & { /** * The underlying HTTP response. */ @@ -5603,14 +8042,14 @@ export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableMongodbDatabasesListResult; }; }; /** - * Contains response data for the updateGremlinDatabaseThroughput operation. + * Contains response data for the list operation. */ -export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type RestorableMongodbCollectionsListResponse = RestorableMongodbCollectionsListResult & { /** * The underlying HTTP response. */ @@ -5623,14 +8062,14 @@ export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = Throughput /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableMongodbCollectionsListResult; }; }; /** - * Contains response data for the migrateGremlinDatabaseToAutoscale operation. + * Contains response data for the list operation. */ -export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type RestorableMongodbResourcesListResponse = RestorableMongodbResourcesListResult & { /** * The underlying HTTP response. */ @@ -5643,14 +8082,14 @@ export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = Throughp /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableMongodbResourcesListResult; }; }; /** - * Contains response data for the migrateGremlinDatabaseToManualThroughput operation. + * Contains response data for the listBySubscription operation. */ -export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraClustersListBySubscriptionResponse = ListClusters & { /** * The underlying HTTP response. */ @@ -5663,14 +8102,14 @@ export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = T /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ListClusters; }; }; /** - * Contains response data for the listGremlinGraphs operation. + * Contains response data for the listByResourceGroup operation. */ -export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & { +export type CassandraClustersListByResourceGroupResponse = ListClusters & { /** * The underlying HTTP response. */ @@ -5683,14 +8122,14 @@ export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphListResult; + parsedBody: ListClusters; }; }; /** - * Contains response data for the getGremlinGraph operation. + * Contains response data for the get operation. */ -export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { +export type CassandraClustersGetResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -5703,14 +8142,14 @@ export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphGetResults; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the createUpdateGremlinGraph operation. + * Contains response data for the createUpdate operation. */ -export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { +export type CassandraClustersCreateUpdateResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -5723,14 +8162,14 @@ export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetRe /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphGetResults; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the getGremlinGraphThroughput operation. + * Contains response data for the update operation. */ -export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraClustersUpdateResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -5743,14 +8182,14 @@ export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettin /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the updateGremlinGraphThroughput operation. + * Contains response data for the fetchNodeStatus operation. */ -export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraClustersFetchNodeStatusResponse = ClusterNodeStatus & { /** * The underlying HTTP response. */ @@ -5763,14 +8202,14 @@ export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ClusterNodeStatus; }; }; /** - * Contains response data for the migrateGremlinGraphToAutoscale operation. + * Contains response data for the listBackupsMethod operation. */ -export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraClustersListBackupsMethodResponse = ListBackups & { /** * The underlying HTTP response. */ @@ -5783,14 +8222,14 @@ export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputS /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ListBackups; }; }; /** - * Contains response data for the migrateGremlinGraphToManualThroughput operation. + * Contains response data for the getBackup operation. */ -export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraClustersGetBackupResponse = BackupResource & { /** * The underlying HTTP response. */ @@ -5803,14 +8242,14 @@ export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = Thro /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: BackupResource; }; }; /** - * Contains response data for the beginCreateUpdateGremlinDatabase operation. + * Contains response data for the beginCreateUpdate operation. */ -export type GremlinResourcesBeginCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type CassandraClustersBeginCreateUpdateResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -5823,14 +8262,14 @@ export type GremlinResourcesBeginCreateUpdateGremlinDatabaseResponse = GremlinDa /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseGetResults; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the beginUpdateGremlinDatabaseThroughput operation. + * Contains response data for the beginUpdate operation. */ -export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraClustersBeginUpdateResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -5843,14 +8282,14 @@ export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = Throu /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the beginMigrateGremlinDatabaseToAutoscale operation. + * Contains response data for the beginFetchNodeStatus operation. */ -export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraClustersBeginFetchNodeStatusResponse = ClusterNodeStatus & { /** * The underlying HTTP response. */ @@ -5863,14 +8302,14 @@ export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = Thr /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ClusterNodeStatus; }; }; /** - * Contains response data for the beginMigrateGremlinDatabaseToManualThroughput operation. + * Contains response data for the list operation. */ -export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraDataCentersListResponse = ListDataCenters & { /** * The underlying HTTP response. */ @@ -5883,14 +8322,14 @@ export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputRespons /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ListDataCenters; }; }; /** - * Contains response data for the beginCreateUpdateGremlinGraph operation. + * Contains response data for the get operation. */ -export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { +export type CassandraDataCentersGetResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -5903,14 +8342,14 @@ export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraph /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphGetResults; + parsedBody: DataCenterResource; }; }; /** - * Contains response data for the beginUpdateGremlinGraphThroughput operation. + * Contains response data for the createUpdate operation. */ -export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraDataCentersCreateUpdateResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -5923,14 +8362,14 @@ export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = Throughp /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: DataCenterResource; }; }; /** - * Contains response data for the beginMigrateGremlinGraphToAutoscale operation. + * Contains response data for the update operation. */ -export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraDataCentersUpdateResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -5943,14 +8382,14 @@ export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = Throug /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: DataCenterResource; }; }; /** - * Contains response data for the beginMigrateGremlinGraphToManualThroughput operation. + * Contains response data for the beginCreateUpdate operation. */ -export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraDataCentersBeginCreateUpdateResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -5963,14 +8402,14 @@ export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: DataCenterResource; }; }; /** - * Contains response data for the listByDatabaseAccount operation. + * Contains response data for the beginUpdate operation. */ -export type NotebookWorkspacesListByDatabaseAccountResponse = NotebookWorkspaceListResult & { +export type CassandraDataCentersBeginUpdateResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -5983,14 +8422,14 @@ export type NotebookWorkspacesListByDatabaseAccountResponse = NotebookWorkspaceL /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspaceListResult; + parsedBody: DataCenterResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByDatabaseAccount operation. */ -export type NotebookWorkspacesGetResponse = NotebookWorkspace & { +export type PrivateLinkResourcesListByDatabaseAccountResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ @@ -6003,14 +8442,14 @@ export type NotebookWorkspacesGetResponse = NotebookWorkspace & { /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspace; + parsedBody: PrivateLinkResourceListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type NotebookWorkspacesCreateOrUpdateResponse = NotebookWorkspace & { +export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { /** * The underlying HTTP response. */ @@ -6023,14 +8462,14 @@ export type NotebookWorkspacesCreateOrUpdateResponse = NotebookWorkspace & { /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspace; + parsedBody: PrivateLinkResource; }; }; /** - * Contains response data for the listConnectionInfo operation. + * Contains response data for the listByDatabaseAccount operation. */ -export type NotebookWorkspacesListConnectionInfoResponse = NotebookWorkspaceConnectionInfoResult & { +export type PrivateEndpointConnectionsListByDatabaseAccountResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -6043,14 +8482,14 @@ export type NotebookWorkspacesListConnectionInfoResponse = NotebookWorkspaceConn /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspaceConnectionInfoResult; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type NotebookWorkspacesBeginCreateOrUpdateResponse = NotebookWorkspace & { +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -6063,14 +8502,14 @@ export type NotebookWorkspacesBeginCreateOrUpdateResponse = NotebookWorkspace & /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspace; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listByDatabaseAccount operation. + * Contains response data for the createOrUpdate operation. */ -export type PrivateLinkResourcesListByDatabaseAccountResponse = PrivateLinkResourceListResult & { +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -6083,14 +8522,14 @@ export type PrivateLinkResourcesListByDatabaseAccountResponse = PrivateLinkResou /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResourceListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { +export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -6103,14 +8542,14 @@ export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResource; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listByDatabaseAccount operation. + * Contains response data for the list operation. */ -export type PrivateEndpointConnectionsListByDatabaseAccountResponse = PrivateEndpointConnectionListResult & { +export type ServiceListResponse = ServiceResourceListResult & { /** * The underlying HTTP response. */ @@ -6123,14 +8562,14 @@ export type PrivateEndpointConnectionsListByDatabaseAccountResponse = PrivateEnd /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnectionListResult; + parsedBody: ServiceResourceListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the create operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { +export type ServiceCreateResponse = ServiceResource & { /** * The underlying HTTP response. */ @@ -6143,14 +8582,14 @@ export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: ServiceResource; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { +export type ServiceGetResponse = ServiceResource & { /** * The underlying HTTP response. */ @@ -6163,14 +8602,14 @@ export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointCo /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: ServiceResource; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginCreate operation. */ -export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { +export type ServiceBeginCreateResponse = ServiceResource & { /** * The underlying HTTP response. */ @@ -6183,6 +8622,6 @@ export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpo /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: ServiceResource; }; }; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts index e3c964010fe5..d158bbada1cd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts @@ -12,78 +12,6 @@ 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: { @@ -405,6 +333,73 @@ export const ApiProperties: msRest.CompositeMapper = { } }; +export const DatabaseRestoreResource: msRest.CompositeMapper = { + serializedName: "DatabaseRestoreResource", + type: { + name: "Composite", + className: "DatabaseRestoreResource", + modelProperties: { + databaseName: { + serializedName: "databaseName", + type: { + name: "String" + } + }, + collectionNames: { + serializedName: "collectionNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const RestoreParameters: msRest.CompositeMapper = { + serializedName: "RestoreParameters", + type: { + name: "Composite", + className: "RestoreParameters", + modelProperties: { + restoreMode: { + serializedName: "restoreMode", + type: { + name: "String" + } + }, + restoreSource: { + serializedName: "restoreSource", + type: { + name: "String" + } + }, + restoreTimestampInUtc: { + serializedName: "restoreTimestampInUtc", + type: { + name: "DateTime" + } + }, + databasesToRestore: { + serializedName: "databasesToRestore", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseRestoreResource" + } + } + } + } + } + } +}; + export const BackupPolicy: msRest.CompositeMapper = { serializedName: "BackupPolicy", type: { @@ -472,6 +467,52 @@ export const CorsPolicy: msRest.CompositeMapper = { } }; +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + export const ARMResourceProperties: msRest.CompositeMapper = { serializedName: "ARMResourceProperties", type: { @@ -515,6 +556,13 @@ export const ARMResourceProperties: msRest.CompositeMapper = { } } } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } } } } @@ -534,13 +582,6 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { name: "String" } }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, provisioningState: { serializedName: "properties.provisioningState", type: { @@ -745,6 +786,27 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { name: "Boolean" } }, + instanceId: { + readOnly: true, + serializedName: "properties.instanceId", + type: { + name: "String" + } + }, + createMode: { + serializedName: "properties.createMode", + defaultValue: 'Default', + type: { + name: "String" + } + }, + restoreParameters: { + serializedName: "properties.restoreParameters", + type: { + name: "Composite", + className: "RestoreParameters" + } + }, backupPolicy: { serializedName: "properties.backupPolicy", type: { @@ -784,6 +846,14 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { } } } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -2321,23 +2391,6 @@ export const ErrorResponse: msRest.CompositeMapper = { } }; -export const ErrorResponseUpdatedFormat: msRest.CompositeMapper = { - serializedName: "ErrorResponseUpdatedFormat", - type: { - name: "Composite", - className: "ErrorResponseUpdatedFormat", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponse" - } - } - } - } -}; - export const FailoverPolicies: msRest.CompositeMapper = { serializedName: "FailoverPolicies", type: { @@ -2378,29 +2431,22 @@ export const RegionForOnlineOffline: msRest.CompositeMapper = { } }; -export const ARMProxyResource: msRest.CompositeMapper = { - serializedName: "ARMProxyResource", +export const ManagedServiceIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { + serializedName: "ManagedServiceIdentity_userAssignedIdentitiesValue", type: { name: "Composite", - className: "ARMProxyResource", + className: "ManagedServiceIdentityUserAssignedIdentitiesValue", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { + principalId: { readOnly: true, - serializedName: "name", + serializedName: "principalId", type: { name: "String" } }, - type: { + clientId: { readOnly: true, - serializedName: "type", + serializedName: "clientId", type: { name: "String" } @@ -2409,31 +2455,110 @@ export const ARMProxyResource: msRest.CompositeMapper = { } }; -export const ExtendedResourceProperties: msRest.CompositeMapper = { - serializedName: "ExtendedResourceProperties", +export const ManagedServiceIdentity: msRest.CompositeMapper = { + serializedName: "ManagedServiceIdentity", type: { name: "Composite", - className: "ExtendedResourceProperties", + className: "ManagedServiceIdentity", modelProperties: { - _rid: { + principalId: { readOnly: true, - serializedName: "_rid", + serializedName: "principalId", type: { name: "String" } }, - _ts: { + tenantId: { readOnly: true, - serializedName: "_ts", + serializedName: "tenantId", type: { - name: "Number" + name: "String" } }, - _etag: { - readOnly: true, - serializedName: "_etag", + type: { + serializedName: "type", type: { - name: "String" + 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: { + name: "Composite", + className: "ARMProxyResource", + modelProperties: { + 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 ExtendedResourceProperties: msRest.CompositeMapper = { + serializedName: "ExtendedResourceProperties", + type: { + name: "Composite", + className: "ExtendedResourceProperties", + modelProperties: { + _rid: { + readOnly: true, + serializedName: "_rid", + type: { + name: "String" + } + }, + _ts: { + readOnly: true, + serializedName: "_ts", + type: { + name: "Number" + } + }, + _etag: { + readOnly: true, + serializedName: "_etag", + type: { + name: "String" } } } @@ -2586,29 +2711,19 @@ export const ThroughputSettingsGetResults: msRest.CompositeMapper = { } }; -export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { - serializedName: "DatabaseAccountCreateUpdateParameters", +export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { + serializedName: "DatabaseAccountCreateUpdateProperties", type: { name: "Composite", - className: "DatabaseAccountCreateUpdateParameters", + polymorphicDiscriminator: { + serializedName: "createMode", + clientName: "createMode" + }, + uberParent: "DatabaseAccountCreateUpdateProperties", + className: "DatabaseAccountCreateUpdateProperties", modelProperties: { - ...ARMResourceProperties.type.modelProperties, - kind: { - serializedName: "kind", - defaultValue: 'GlobalDocumentDB', - type: { - name: "String" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, consistencyPolicy: { - serializedName: "properties.consistencyPolicy", + serializedName: "consistencyPolicy", type: { name: "Composite", className: "ConsistencyPolicy" @@ -2616,7 +2731,7 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { }, locations: { required: true, - serializedName: "properties.locations", + serializedName: "locations", type: { name: "Sequence", element: { @@ -2630,14 +2745,14 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { databaseAccountOfferType: { required: true, isConstant: true, - serializedName: "properties.databaseAccountOfferType", + serializedName: "databaseAccountOfferType", defaultValue: 'Standard', type: { name: "String" } }, ipRules: { - serializedName: "properties.ipRules", + serializedName: "ipRules", type: { name: "Sequence", element: { @@ -2649,19 +2764,19 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, isVirtualNetworkFilterEnabled: { - serializedName: "properties.isVirtualNetworkFilterEnabled", + serializedName: "isVirtualNetworkFilterEnabled", type: { name: "Boolean" } }, enableAutomaticFailover: { - serializedName: "properties.enableAutomaticFailover", + serializedName: "enableAutomaticFailover", type: { name: "Boolean" } }, capabilities: { - serializedName: "properties.capabilities", + serializedName: "capabilities", type: { name: "Sequence", element: { @@ -2673,7 +2788,7 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, virtualNetworkRules: { - serializedName: "properties.virtualNetworkRules", + serializedName: "virtualNetworkRules", type: { name: "Sequence", element: { @@ -2685,75 +2800,75 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, enableMultipleWriteLocations: { - serializedName: "properties.enableMultipleWriteLocations", + serializedName: "enableMultipleWriteLocations", type: { name: "Boolean" } }, enableCassandraConnector: { - serializedName: "properties.enableCassandraConnector", + serializedName: "enableCassandraConnector", type: { name: "Boolean" } }, connectorOffer: { - serializedName: "properties.connectorOffer", + serializedName: "connectorOffer", type: { name: "String" } }, disableKeyBasedMetadataWriteAccess: { - serializedName: "properties.disableKeyBasedMetadataWriteAccess", + serializedName: "disableKeyBasedMetadataWriteAccess", type: { name: "Boolean" } }, keyVaultKeyUri: { - serializedName: "properties.keyVaultKeyUri", + serializedName: "keyVaultKeyUri", type: { name: "String" } }, defaultIdentity: { - serializedName: "properties.defaultIdentity", + serializedName: "defaultIdentity", type: { name: "String" } }, publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + serializedName: "publicNetworkAccess", type: { name: "String" } }, enableFreeTier: { - serializedName: "properties.enableFreeTier", + serializedName: "enableFreeTier", type: { name: "Boolean" } }, apiProperties: { - serializedName: "properties.apiProperties", + serializedName: "apiProperties", type: { name: "Composite", className: "ApiProperties" } }, enableAnalyticalStorage: { - serializedName: "properties.enableAnalyticalStorage", + serializedName: "enableAnalyticalStorage", type: { name: "Boolean" } }, backupPolicy: { - serializedName: "properties.backupPolicy", + serializedName: "backupPolicy", type: { name: "Composite", className: "BackupPolicy" } }, cors: { - serializedName: "properties.cors", + serializedName: "cors", type: { name: "Sequence", element: { @@ -2765,7 +2880,7 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, networkAclBypass: { - serializedName: "properties.networkAclBypass", + serializedName: "networkAclBypass", type: { name: "Enum", allowedValues: [ @@ -2775,7 +2890,7 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, networkAclBypassResourceIds: { - serializedName: "properties.networkAclBypassResourceIds", + serializedName: "networkAclBypassResourceIds", type: { name: "Sequence", element: { @@ -2784,6 +2899,73 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } } } + }, + createMode: { + required: true, + serializedName: "createMode", + type: { + name: "String" + } + } + } + } +}; + +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" + } } } } @@ -2812,13 +2994,6 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { name: "String" } }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, consistencyPolicy: { serializedName: "properties.consistencyPolicy", type: { @@ -2986,6 +3161,13 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { } } } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } } } } @@ -4368,6 +4550,12 @@ export const PeriodicModeProperties: msRest.CompositeMapper = { type: { name: "Number" } + }, + backupStorageRedundancy: { + serializedName: "backupStorageRedundancy", + type: { + name: "String" + } } } } @@ -4406,147 +4594,1948 @@ export const ContinuousModeBackupPolicy: msRest.CompositeMapper = { } }; -export const TrackedResource: msRest.CompositeMapper = { - serializedName: "TrackedResource", +export const RestorableLocationResource: msRest.CompositeMapper = { + serializedName: "RestorableLocationResource", type: { name: "Composite", - className: "TrackedResource", + className: "RestorableLocationResource", modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - location: { - required: true, - serializedName: "location", + locationName: { + readOnly: true, + serializedName: "locationName", type: { name: "String" } - } - } - } -}; - -export const AzureEntityResource: msRest.CompositeMapper = { - serializedName: "AzureEntityResource", - type: { - name: "Composite", - className: "AzureEntityResource", - modelProperties: { - ...Resource.type.modelProperties, - etag: { + }, + regionalDatabaseAccountInstanceId: { readOnly: true, - serializedName: "etag", + serializedName: "regionalDatabaseAccountInstanceId", 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: { + }, + creationTime: { readOnly: true, - serializedName: "properties.notebookServerEndpoint", + serializedName: "creationTime", type: { - name: "String" + name: "DateTime" } }, - status: { + deletionTime: { readOnly: true, - serializedName: "properties.status", + serializedName: "deletionTime", type: { - name: "String" + name: "DateTime" } } } } }; -export const NotebookWorkspaceConnectionInfoResult: msRest.CompositeMapper = { - serializedName: "NotebookWorkspaceConnectionInfoResult", +export const RestorableDatabaseAccountGetResult: msRest.CompositeMapper = { + serializedName: "RestorableDatabaseAccountGetResult", type: { name: "Composite", - className: "NotebookWorkspaceConnectionInfoResult", + className: "RestorableDatabaseAccountGetResult", modelProperties: { - authToken: { - readOnly: true, - serializedName: "authToken", + accountName: { + serializedName: "properties.accountName", type: { name: "String" } }, - notebookServerEndpoint: { + creationTime: { + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + deletionTime: { + serializedName: "properties.deletionTime", + type: { + name: "DateTime" + } + }, + apiType: { readOnly: true, - serializedName: "notebookServerEndpoint", + 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 LocationProperties: msRest.CompositeMapper = { + serializedName: "LocationProperties", + type: { + name: "Composite", + className: "LocationProperties", + modelProperties: { + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + supportsAvailabilityZone: { + readOnly: true, + serializedName: "supportsAvailabilityZone", + type: { + name: "Boolean" + } + }, + isResidencyRestricted: { + readOnly: true, + serializedName: "isResidencyRestricted", + type: { + name: "Boolean" + } + }, + backupStorageRedundancies: { + readOnly: true, + serializedName: "backupStorageRedundancies", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const LocationGetResult: msRest.CompositeMapper = { + serializedName: "LocationGetResult", + type: { + name: "Composite", + className: "LocationGetResult", + modelProperties: { + ...ARMProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "LocationProperties" + } + } + } + } +}; + +export const ContinuousBackupRestoreLocation: msRest.CompositeMapper = { + serializedName: "ContinuousBackupRestoreLocation", + type: { + name: "Composite", + className: "ContinuousBackupRestoreLocation", + 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", + type: { + name: "String" + } + }, + type: { + serializedName: "properties.type", + type: { + name: "Enum", + allowedValues: [ + "BuiltInRole", + "CustomRole" + ] + } + }, + assignableScopes: { + serializedName: "properties.assignableScopes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + permissions: { + serializedName: "properties.permissions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Permission" + } + } + } + } + } + } +}; + +export const SqlRoleDefinitionGetResults: msRest.CompositeMapper = { + serializedName: "SqlRoleDefinitionGetResults", + type: { + name: "Composite", + className: "SqlRoleDefinitionGetResults", + modelProperties: { + ...ARMProxyResource.type.modelProperties, + roleName: { + serializedName: "properties.roleName", + type: { + name: "String" + } + }, + sqlRoleDefinitionGetResultsType: { + serializedName: "properties.type", + type: { + name: "Enum", + allowedValues: [ + "BuiltInRole", + "CustomRole" + ] + } + }, + assignableScopes: { + serializedName: "properties.assignableScopes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + permissions: { + serializedName: "properties.permissions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Permission" + } + } + } + } + } + } +}; + +export const SqlRoleAssignmentCreateUpdateParameters: msRest.CompositeMapper = { + serializedName: "SqlRoleAssignmentCreateUpdateParameters", + type: { + name: "Composite", + className: "SqlRoleAssignmentCreateUpdateParameters", + modelProperties: { + roleDefinitionId: { + serializedName: "properties.roleDefinitionId", + type: { + name: "String" + } + }, + scope: { + serializedName: "properties.scope", + type: { + name: "String" + } + }, + principalId: { + serializedName: "properties.principalId", + type: { + name: "String" + } + } + } + } +}; + +export const SqlRoleAssignmentGetResults: msRest.CompositeMapper = { + serializedName: "SqlRoleAssignmentGetResults", + type: { + name: "Composite", + className: "SqlRoleAssignmentGetResults", + modelProperties: { + ...ARMProxyResource.type.modelProperties, + roleDefinitionId: { + serializedName: "properties.roleDefinitionId", + type: { + name: "String" + } + }, + scope: { + serializedName: "properties.scope", + type: { + name: "String" + } + }, + principalId: { + serializedName: "properties.principalId", + 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" + } + }, + ownerId: { + readOnly: true, + serializedName: "ownerId", + type: { + name: "String" + } + }, + ownerResourceId: { + readOnly: true, + serializedName: "ownerResourceId", + type: { + name: "String" + } + }, + database: { + serializedName: "database", + type: { + name: "Composite", + className: "RestorableSqlDatabasePropertiesResourceDatabase" + } + } + } + } +}; + +export const RestorableSqlDatabaseGetResult: msRest.CompositeMapper = { + serializedName: "RestorableSqlDatabaseGetResult", + type: { + name: "Composite", + className: "RestorableSqlDatabaseGetResult", + modelProperties: { + resource: { + serializedName: "properties.resource", + type: { + name: "Composite", + className: "RestorableSqlDatabasePropertiesResource" + } + }, + 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 RestorableSqlContainerPropertiesResourceContainer: msRest.CompositeMapper = { + serializedName: "RestorableSqlContainerProperties_resource_container", + type: { + name: "Composite", + className: "RestorableSqlContainerPropertiesResourceContainer", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + }, + indexingPolicy: { + serializedName: "indexingPolicy", + type: { + name: "Composite", + className: "IndexingPolicy" + } + }, + partitionKey: { + serializedName: "partitionKey", + type: { + name: "Composite", + className: "ContainerPartitionKey" + } + }, + defaultTtl: { + serializedName: "defaultTtl", + type: { + name: "Number" + } + }, + uniqueKeyPolicy: { + serializedName: "uniqueKeyPolicy", + type: { + name: "Composite", + className: "UniqueKeyPolicy" + } + }, + conflictResolutionPolicy: { + serializedName: "conflictResolutionPolicy", + type: { + name: "Composite", + className: "ConflictResolutionPolicy" + } + }, + analyticalStorageTtl: { + serializedName: "analyticalStorageTtl", + type: { + name: "Number" + } + }, + _rid: { + readOnly: true, + serializedName: "_rid", + type: { + name: "String" + } + }, + _ts: { + readOnly: true, + serializedName: "_ts", + type: { + name: "Number" + } + }, + _etag: { + readOnly: true, + serializedName: "_etag", + type: { + name: "String" + } + }, + _self: { + readOnly: true, + serializedName: "_self", + type: { + name: "String" + } + } + } + } +}; + +export const RestorableSqlContainerPropertiesResource: msRest.CompositeMapper = { + serializedName: "RestorableSqlContainerProperties_resource", + type: { + name: "Composite", + className: "RestorableSqlContainerPropertiesResource", + 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" + } + }, + ownerId: { + readOnly: true, + serializedName: "ownerId", + type: { + name: "String" + } + }, + ownerResourceId: { + readOnly: true, + serializedName: "ownerResourceId", + type: { + name: "String" + } + }, + container: { + serializedName: "container", + type: { + name: "Composite", + className: "RestorableSqlContainerPropertiesResourceContainer" + } + } + } + } +}; + +export const RestorableSqlContainerGetResult: msRest.CompositeMapper = { + serializedName: "RestorableSqlContainerGetResult", + type: { + name: "Composite", + className: "RestorableSqlContainerGetResult", + modelProperties: { + resource: { + serializedName: "properties.resource", + type: { + name: "Composite", + className: "RestorableSqlContainerPropertiesResource" + } + }, + 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 RestorableMongodbDatabasePropertiesResource: msRest.CompositeMapper = { + serializedName: "RestorableMongodbDatabaseProperties_resource", + type: { + name: "Composite", + className: "RestorableMongodbDatabasePropertiesResource", + 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" + } + }, + ownerId: { + readOnly: true, + serializedName: "ownerId", + type: { + name: "String" + } + }, + ownerResourceId: { + readOnly: true, + serializedName: "ownerResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const RestorableMongodbDatabaseGetResult: msRest.CompositeMapper = { + serializedName: "RestorableMongodbDatabaseGetResult", + type: { + name: "Composite", + className: "RestorableMongodbDatabaseGetResult", + modelProperties: { + resource: { + serializedName: "properties.resource", + type: { + name: "Composite", + className: "RestorableMongodbDatabasePropertiesResource" + } + }, + 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 RestorableMongodbCollectionPropertiesResource: msRest.CompositeMapper = { + serializedName: "RestorableMongodbCollectionProperties_resource", + type: { + name: "Composite", + className: "RestorableMongodbCollectionPropertiesResource", + 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" + } + }, + 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: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const DataTransferRegionalServiceResource: msRest.CompositeMapper = { + serializedName: "DataTransferRegionalServiceResource", + type: { + name: "Composite", + className: "DataTransferRegionalServiceResource", + modelProperties: { + ...RegionalServiceResource.type.modelProperties + } + } +}; + +export const DataTransferServiceResourceProperties: msRest.CompositeMapper = { + serializedName: "DataTransferServiceResourceProperties", + type: { + name: "Composite", + polymorphicDiscriminator: ServiceResourceProperties.type.polymorphicDiscriminator, + uberParent: "ServiceResourceProperties", + className: "DataTransferServiceResourceProperties", + modelProperties: { + ...ServiceResourceProperties.type.modelProperties, + locations: { + readOnly: true, + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataTransferRegionalServiceResource" + } + } + } + } + }, + additionalProperties: ServiceResourceProperties.type.additionalProperties + } +}; + +export const DataTransferServiceResource: msRest.CompositeMapper = { + serializedName: "DataTransferServiceResource", + type: { + name: "Composite", + className: "DataTransferServiceResource", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataTransferServiceResourceProperties", + additionalProperties: ServiceResourceProperties.type.additionalProperties + } + } + } + } +}; + +export const SqlDedicatedGatewayRegionalServiceResource: msRest.CompositeMapper = { + serializedName: "SqlDedicatedGatewayRegionalServiceResource", + type: { + name: "Composite", + className: "SqlDedicatedGatewayRegionalServiceResource", + modelProperties: { + ...RegionalServiceResource.type.modelProperties, + sqlDedicatedGatewayEndpoint: { + readOnly: true, + serializedName: "sqlDedicatedGatewayEndpoint", + type: { + name: "String" + } + } + } + } +}; + +export const SqlDedicatedGatewayServiceResourceProperties: msRest.CompositeMapper = { + serializedName: "SqlDedicatedGatewayServiceResourceProperties", + type: { + name: "Composite", + polymorphicDiscriminator: ServiceResourceProperties.type.polymorphicDiscriminator, + uberParent: "ServiceResourceProperties", + className: "SqlDedicatedGatewayServiceResourceProperties", + modelProperties: { + ...ServiceResourceProperties.type.modelProperties, + sqlDedicatedGatewayEndpoint: { + serializedName: "sqlDedicatedGatewayEndpoint", + 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", + type: { + name: "Composite", + className: "SqlDedicatedGatewayServiceResource", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SqlDedicatedGatewayServiceResourceProperties", + additionalProperties: ServiceResourceProperties.type.additionalProperties + } + } + } + } +}; + +export const DatabaseAccountsListResult: msRest.CompositeMapper = { + serializedName: "DatabaseAccountsListResult", + type: { + name: "Composite", + className: "DatabaseAccountsListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseAccountGetResults" + } + } + } + } + } + } +}; + +export const MetricListResult: msRest.CompositeMapper = { + serializedName: "MetricListResult", + type: { + name: "Composite", + className: "MetricListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Metric" + } + } + } + } + } + } +}; + +export const UsagesResult: msRest.CompositeMapper = { + serializedName: "UsagesResult", + type: { + name: "Composite", + className: "UsagesResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } + } + } + } + } +}; + +export const MetricDefinitionsListResult: msRest.CompositeMapper = { + serializedName: "MetricDefinitionsListResult", + type: { + name: "Composite", + className: "MetricDefinitionsListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricDefinition" + } + } + } + } + } + } +}; + +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PercentileMetricListResult: msRest.CompositeMapper = { + serializedName: "PercentileMetricListResult", + type: { + name: "Composite", + className: "PercentileMetricListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PercentileMetric" + } + } + } + } + } + } +}; + +export const PartitionMetricListResult: msRest.CompositeMapper = { + serializedName: "PartitionMetricListResult", + type: { + name: "Composite", + className: "PartitionMetricListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartitionMetric" + } + } + } + } + } + } +}; + +export const PartitionUsagesResult: msRest.CompositeMapper = { + serializedName: "PartitionUsagesResult", + type: { + name: "Composite", + className: "PartitionUsagesResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartitionUsage" + } + } + } + } + } + } +}; -export const PrivateLinkResource: msRest.CompositeMapper = { - serializedName: "PrivateLinkResource", +export const SqlDatabaseListResult: msRest.CompositeMapper = { + serializedName: "SqlDatabaseListResult", type: { name: "Composite", - className: "PrivateLinkResource", + className: "SqlDatabaseListResult", modelProperties: { - ...ARMProxyResource.type.modelProperties, - groupId: { + value: { readOnly: true, - serializedName: "properties.groupId", + serializedName: "", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlDatabaseGetResults" + } + } } - }, - requiredMembers: { + } + } + } +}; + +export const SqlContainerListResult: msRest.CompositeMapper = { + serializedName: "SqlContainerListResult", + type: { + name: "Composite", + className: "SqlContainerListResult", + modelProperties: { + value: { readOnly: true, - serializedName: "properties.requiredMembers", + serializedName: "", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SqlContainerGetResults" } } } - }, - requiredZoneNames: { + } + } + } +}; + +export const SqlStoredProcedureListResult: msRest.CompositeMapper = { + serializedName: "SqlStoredProcedureListResult", + type: { + name: "Composite", + className: "SqlStoredProcedureListResult", + modelProperties: { + value: { readOnly: true, - serializedName: "properties.requiredZoneNames", + serializedName: "", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SqlStoredProcedureGetResults" } } } @@ -4555,11 +6544,11 @@ export const PrivateLinkResource: msRest.CompositeMapper = { } }; -export const DatabaseAccountsListResult: msRest.CompositeMapper = { - serializedName: "DatabaseAccountsListResult", +export const SqlUserDefinedFunctionListResult: msRest.CompositeMapper = { + serializedName: "SqlUserDefinedFunctionListResult", type: { name: "Composite", - className: "DatabaseAccountsListResult", + className: "SqlUserDefinedFunctionListResult", modelProperties: { value: { readOnly: true, @@ -4569,7 +6558,7 @@ export const DatabaseAccountsListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "DatabaseAccountGetResults" + className: "SqlUserDefinedFunctionGetResults" } } } @@ -4578,11 +6567,11 @@ export const DatabaseAccountsListResult: msRest.CompositeMapper = { } }; -export const MetricListResult: msRest.CompositeMapper = { - serializedName: "MetricListResult", +export const SqlTriggerListResult: msRest.CompositeMapper = { + serializedName: "SqlTriggerListResult", type: { name: "Composite", - className: "MetricListResult", + className: "SqlTriggerListResult", modelProperties: { value: { readOnly: true, @@ -4592,7 +6581,7 @@ export const MetricListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Metric" + className: "SqlTriggerGetResults" } } } @@ -4601,11 +6590,11 @@ export const MetricListResult: msRest.CompositeMapper = { } }; -export const UsagesResult: msRest.CompositeMapper = { - serializedName: "UsagesResult", +export const SqlRoleDefinitionListResult: msRest.CompositeMapper = { + serializedName: "SqlRoleDefinitionListResult", type: { name: "Composite", - className: "UsagesResult", + className: "SqlRoleDefinitionListResult", modelProperties: { value: { readOnly: true, @@ -4615,7 +6604,7 @@ export const UsagesResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Usage" + className: "SqlRoleDefinitionGetResults" } } } @@ -4624,11 +6613,11 @@ export const UsagesResult: msRest.CompositeMapper = { } }; -export const MetricDefinitionsListResult: msRest.CompositeMapper = { - serializedName: "MetricDefinitionsListResult", +export const SqlRoleAssignmentListResult: msRest.CompositeMapper = { + serializedName: "SqlRoleAssignmentListResult", type: { name: "Composite", - className: "MetricDefinitionsListResult", + className: "SqlRoleAssignmentListResult", modelProperties: { value: { readOnly: true, @@ -4638,7 +6627,7 @@ export const MetricDefinitionsListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "MetricDefinition" + className: "SqlRoleAssignmentGetResults" } } } @@ -4647,39 +6636,57 @@ export const MetricDefinitionsListResult: msRest.CompositeMapper = { } }; -export const OperationListResult: msRest.CompositeMapper = { - serializedName: "OperationListResult", +export const MongoDBDatabaseListResult: msRest.CompositeMapper = { + serializedName: "MongoDBDatabaseListResult", type: { name: "Composite", - className: "OperationListResult", + className: "MongoDBDatabaseListResult", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Operation" + className: "MongoDBDatabaseGetResults" } } } - }, - nextLink: { - serializedName: "nextLink", + } + } + } +}; + +export const MongoDBCollectionListResult: msRest.CompositeMapper = { + serializedName: "MongoDBCollectionListResult", + type: { + name: "Composite", + className: "MongoDBCollectionListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MongoDBCollectionGetResults" + } + } } } } } }; -export const PercentileMetricListResult: msRest.CompositeMapper = { - serializedName: "PercentileMetricListResult", +export const TableListResult: msRest.CompositeMapper = { + serializedName: "TableListResult", type: { name: "Composite", - className: "PercentileMetricListResult", + className: "TableListResult", modelProperties: { value: { readOnly: true, @@ -4689,7 +6696,7 @@ export const PercentileMetricListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "PercentileMetric" + className: "TableGetResults" } } } @@ -4698,11 +6705,11 @@ export const PercentileMetricListResult: msRest.CompositeMapper = { } }; -export const PartitionMetricListResult: msRest.CompositeMapper = { - serializedName: "PartitionMetricListResult", +export const CassandraKeyspaceListResult: msRest.CompositeMapper = { + serializedName: "CassandraKeyspaceListResult", type: { name: "Composite", - className: "PartitionMetricListResult", + className: "CassandraKeyspaceListResult", modelProperties: { value: { readOnly: true, @@ -4712,7 +6719,7 @@ export const PartitionMetricListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "PartitionMetric" + className: "CassandraKeyspaceGetResults" } } } @@ -4721,11 +6728,11 @@ export const PartitionMetricListResult: msRest.CompositeMapper = { } }; -export const PartitionUsagesResult: msRest.CompositeMapper = { - serializedName: "PartitionUsagesResult", +export const CassandraTableListResult: msRest.CompositeMapper = { + serializedName: "CassandraTableListResult", type: { name: "Composite", - className: "PartitionUsagesResult", + className: "CassandraTableListResult", modelProperties: { value: { readOnly: true, @@ -4735,7 +6742,7 @@ export const PartitionUsagesResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "PartitionUsage" + className: "CassandraTableGetResults" } } } @@ -4744,11 +6751,11 @@ export const PartitionUsagesResult: msRest.CompositeMapper = { } }; -export const SqlDatabaseListResult: msRest.CompositeMapper = { - serializedName: "SqlDatabaseListResult", +export const GremlinDatabaseListResult: msRest.CompositeMapper = { + serializedName: "GremlinDatabaseListResult", type: { name: "Composite", - className: "SqlDatabaseListResult", + className: "GremlinDatabaseListResult", modelProperties: { value: { readOnly: true, @@ -4758,7 +6765,7 @@ export const SqlDatabaseListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SqlDatabaseGetResults" + className: "GremlinDatabaseGetResults" } } } @@ -4767,11 +6774,11 @@ export const SqlDatabaseListResult: msRest.CompositeMapper = { } }; -export const SqlContainerListResult: msRest.CompositeMapper = { - serializedName: "SqlContainerListResult", +export const GremlinGraphListResult: msRest.CompositeMapper = { + serializedName: "GremlinGraphListResult", type: { name: "Composite", - className: "SqlContainerListResult", + className: "GremlinGraphListResult", modelProperties: { value: { readOnly: true, @@ -4781,7 +6788,7 @@ export const SqlContainerListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SqlContainerGetResults" + className: "GremlinGraphGetResults" } } } @@ -4790,11 +6797,11 @@ export const SqlContainerListResult: msRest.CompositeMapper = { } }; -export const SqlStoredProcedureListResult: msRest.CompositeMapper = { - serializedName: "SqlStoredProcedureListResult", +export const RestorableDatabaseAccountsListResult: msRest.CompositeMapper = { + serializedName: "RestorableDatabaseAccountsListResult", type: { name: "Composite", - className: "SqlStoredProcedureListResult", + className: "RestorableDatabaseAccountsListResult", modelProperties: { value: { readOnly: true, @@ -4804,7 +6811,7 @@ export const SqlStoredProcedureListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SqlStoredProcedureGetResults" + className: "RestorableDatabaseAccountGetResult" } } } @@ -4813,11 +6820,11 @@ export const SqlStoredProcedureListResult: msRest.CompositeMapper = { } }; -export const SqlUserDefinedFunctionListResult: msRest.CompositeMapper = { - serializedName: "SqlUserDefinedFunctionListResult", +export const LocationListResult: msRest.CompositeMapper = { + serializedName: "LocationListResult", type: { name: "Composite", - className: "SqlUserDefinedFunctionListResult", + className: "LocationListResult", modelProperties: { value: { readOnly: true, @@ -4827,7 +6834,7 @@ export const SqlUserDefinedFunctionListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SqlUserDefinedFunctionGetResults" + className: "LocationGetResult" } } } @@ -4836,21 +6843,20 @@ export const SqlUserDefinedFunctionListResult: msRest.CompositeMapper = { } }; -export const SqlTriggerListResult: msRest.CompositeMapper = { - serializedName: "SqlTriggerListResult", +export const NotebookWorkspaceListResult: msRest.CompositeMapper = { + serializedName: "NotebookWorkspaceListResult", type: { name: "Composite", - className: "SqlTriggerListResult", + className: "NotebookWorkspaceListResult", modelProperties: { value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SqlTriggerGetResults" + className: "NotebookWorkspace" } } } @@ -4859,11 +6865,11 @@ export const SqlTriggerListResult: msRest.CompositeMapper = { } }; -export const MongoDBDatabaseListResult: msRest.CompositeMapper = { - serializedName: "MongoDBDatabaseListResult", +export const RestorableSqlDatabasesListResult: msRest.CompositeMapper = { + serializedName: "RestorableSqlDatabasesListResult", type: { name: "Composite", - className: "MongoDBDatabaseListResult", + className: "RestorableSqlDatabasesListResult", modelProperties: { value: { readOnly: true, @@ -4873,7 +6879,7 @@ export const MongoDBDatabaseListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "MongoDBDatabaseGetResults" + className: "RestorableSqlDatabaseGetResult" } } } @@ -4882,11 +6888,11 @@ export const MongoDBDatabaseListResult: msRest.CompositeMapper = { } }; -export const MongoDBCollectionListResult: msRest.CompositeMapper = { - serializedName: "MongoDBCollectionListResult", +export const RestorableSqlContainersListResult: msRest.CompositeMapper = { + serializedName: "RestorableSqlContainersListResult", type: { name: "Composite", - className: "MongoDBCollectionListResult", + className: "RestorableSqlContainersListResult", modelProperties: { value: { readOnly: true, @@ -4896,7 +6902,7 @@ export const MongoDBCollectionListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "MongoDBCollectionGetResults" + className: "RestorableSqlContainerGetResult" } } } @@ -4905,11 +6911,11 @@ export const MongoDBCollectionListResult: msRest.CompositeMapper = { } }; -export const TableListResult: msRest.CompositeMapper = { - serializedName: "TableListResult", +export const RestorableSqlResourcesListResult: msRest.CompositeMapper = { + serializedName: "RestorableSqlResourcesListResult", type: { name: "Composite", - className: "TableListResult", + className: "RestorableSqlResourcesListResult", modelProperties: { value: { readOnly: true, @@ -4919,7 +6925,7 @@ export const TableListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "TableGetResults" + className: "DatabaseRestoreResource" } } } @@ -4928,11 +6934,11 @@ export const TableListResult: msRest.CompositeMapper = { } }; -export const CassandraKeyspaceListResult: msRest.CompositeMapper = { - serializedName: "CassandraKeyspaceListResult", +export const RestorableMongodbDatabasesListResult: msRest.CompositeMapper = { + serializedName: "RestorableMongodbDatabasesListResult", type: { name: "Composite", - className: "CassandraKeyspaceListResult", + className: "RestorableMongodbDatabasesListResult", modelProperties: { value: { readOnly: true, @@ -4942,7 +6948,7 @@ export const CassandraKeyspaceListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "CassandraKeyspaceGetResults" + className: "RestorableMongodbDatabaseGetResult" } } } @@ -4951,11 +6957,11 @@ export const CassandraKeyspaceListResult: msRest.CompositeMapper = { } }; -export const CassandraTableListResult: msRest.CompositeMapper = { - serializedName: "CassandraTableListResult", +export const RestorableMongodbCollectionsListResult: msRest.CompositeMapper = { + serializedName: "RestorableMongodbCollectionsListResult", type: { name: "Composite", - className: "CassandraTableListResult", + className: "RestorableMongodbCollectionsListResult", modelProperties: { value: { readOnly: true, @@ -4965,7 +6971,7 @@ export const CassandraTableListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "CassandraTableGetResults" + className: "RestorableMongodbCollectionGetResult" } } } @@ -4974,11 +6980,11 @@ export const CassandraTableListResult: msRest.CompositeMapper = { } }; -export const GremlinDatabaseListResult: msRest.CompositeMapper = { - serializedName: "GremlinDatabaseListResult", +export const RestorableMongodbResourcesListResult: msRest.CompositeMapper = { + serializedName: "RestorableMongodbResourcesListResult", type: { name: "Composite", - className: "GremlinDatabaseListResult", + className: "RestorableMongodbResourcesListResult", modelProperties: { value: { readOnly: true, @@ -4988,7 +6994,7 @@ export const GremlinDatabaseListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "GremlinDatabaseGetResults" + className: "DatabaseRestoreResource" } } } @@ -4997,11 +7003,33 @@ export const GremlinDatabaseListResult: msRest.CompositeMapper = { } }; -export const GremlinGraphListResult: msRest.CompositeMapper = { - serializedName: "GremlinGraphListResult", +export const ListClusters: msRest.CompositeMapper = { + serializedName: "ListClusters", type: { name: "Composite", - className: "GremlinGraphListResult", + className: "ListClusters", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ClusterResource" + } + } + } + } + } + } +}; + +export const ListBackups: msRest.CompositeMapper = { + serializedName: "ListBackups", + type: { + name: "Composite", + className: "ListBackups", modelProperties: { value: { readOnly: true, @@ -5011,7 +7039,7 @@ export const GremlinGraphListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "GremlinGraphGetResults" + className: "BackupResource" } } } @@ -5020,20 +7048,21 @@ export const GremlinGraphListResult: msRest.CompositeMapper = { } }; -export const NotebookWorkspaceListResult: msRest.CompositeMapper = { - serializedName: "NotebookWorkspaceListResult", +export const ListDataCenters: msRest.CompositeMapper = { + serializedName: "ListDataCenters", type: { name: "Composite", - className: "NotebookWorkspaceListResult", + className: "ListDataCenters", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NotebookWorkspace" + className: "DataCenterResource" } } } @@ -5086,9 +7115,38 @@ export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { } }; +export const ServiceResourceListResult: msRest.CompositeMapper = { + serializedName: "ServiceResourceListResult", + type: { + name: "Composite", + className: "ServiceResourceListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceResource" + } + } + } + } + } + } +}; + export const discriminators = { 'BackupPolicy' : BackupPolicy, + 'DatabaseAccountCreateUpdateProperties' : DatabaseAccountCreateUpdateProperties, + 'DatabaseAccountCreateUpdateProperties.Default' : DefaultRequestDatabaseAccountCreateUpdateProperties, + 'DatabaseAccountCreateUpdateProperties.Restore' : RestoreReqeustDatabaseAccountCreateUpdateProperties, 'BackupPolicy.Periodic' : PeriodicModeBackupPolicy, - 'BackupPolicy.Continuous' : ContinuousModeBackupPolicy + 'BackupPolicy.Continuous' : ContinuousModeBackupPolicy, + 'ServiceResourceProperties' : ServiceResourceProperties, + 'ServiceResourceProperties.DataTransferServiceResourceProperties' : DataTransferServiceResourceProperties, + 'ServiceResourceProperties.SqlDedicatedGatewayServiceResourceProperties' : SqlDedicatedGatewayServiceResourceProperties }; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts index 5248ef09a143..68f5e03df3da 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,8 +32,11 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -41,9 +46,14 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - ErrorResponse, - ErrorResponseUpdatedFormat, + DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -61,6 +71,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -83,12 +95,19 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -100,6 +119,10 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -112,6 +135,7 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, + SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts index 79d079fb2ace..55409fedee67 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,7 +32,10 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -40,7 +45,14 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, + DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicy, @@ -59,6 +71,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -81,12 +95,19 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -98,6 +119,10 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -110,6 +135,7 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, + SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts index 955ccc3a8c0a..f2a0c394aa7e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts @@ -47,6 +47,36 @@ 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: { @@ -97,6 +127,33 @@ 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" + ], + mapper: { + serializedName: "endTime", + type: { + name: "String" + } + } +}; export const filter0: msRest.OperationQueryParameter = { parameterPath: "filter", mapper: { @@ -139,6 +196,16 @@ export const groupName: msRest.OperationURLParameter = { } } }; +export const instanceId: msRest.OperationURLParameter = { + parameterPath: "instanceId", + mapper: { + required: true, + serializedName: "instanceId", + type: { + name: "String" + } + } +}; export const keyspaceName: msRest.OperationURLParameter = { parameterPath: "keyspaceName", mapper: { @@ -149,6 +216,16 @@ export const keyspaceName: msRest.OperationURLParameter = { } } }; +export const location: msRest.OperationURLParameter = { + parameterPath: "location", + mapper: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } +}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { @@ -217,6 +294,88 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; +export const restorableMongodbDatabaseRid: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "restorableMongodbDatabaseRid" + ], + mapper: { + serializedName: "restorableMongodbDatabaseRid", + type: { + name: "String" + } + } +}; +export const restorableSqlDatabaseRid: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "restorableSqlDatabaseRid" + ], + mapper: { + serializedName: "restorableSqlDatabaseRid", + type: { + name: "String" + } + } +}; +export const restoreLocation: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "restoreLocation" + ], + mapper: { + serializedName: "restoreLocation", + type: { + name: "String" + } + } +}; +export const restoreTimestampInUtc: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "restoreTimestampInUtc" + ], + mapper: { + serializedName: "restoreTimestampInUtc", + type: { + name: "String" + } + } +}; +export const roleAssignmentId: msRest.OperationURLParameter = { + parameterPath: "roleAssignmentId", + mapper: { + required: true, + serializedName: "roleAssignmentId", + type: { + name: "String" + } + } +}; +export const roleDefinitionId: msRest.OperationURLParameter = { + parameterPath: "roleDefinitionId", + mapper: { + required: true, + serializedName: "roleDefinitionId", + type: { + name: "String" + } + } +}; +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: { @@ -227,6 +386,18 @@ export const sourceRegion: msRest.OperationURLParameter = { } } }; +export const startTime: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "startTime" + ], + mapper: { + serializedName: "startTime", + type: { + name: "String" + } + } +}; export const storedProcedureName: msRest.OperationURLParameter = { parameterPath: "storedProcedureName", mapper: { diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts index aeef528e1d2a..3d0aa6b1596c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,8 +32,11 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -41,7 +46,14 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, + DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicy, @@ -60,6 +72,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -80,13 +94,20 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointConnectionListResult, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -98,6 +119,10 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -110,6 +135,7 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, + SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts index 3ff0ed3ab2e7..152c9cd2b84f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,8 +32,11 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -41,7 +46,14 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, + DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -59,6 +71,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -79,13 +93,20 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceListResult, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -97,6 +118,10 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -109,6 +134,7 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, + SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableDatabaseAccountsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableDatabaseAccountsMappers.ts new file mode 100644 index 000000000000..0a96a80c157a --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableDatabaseAccountsMappers.ts @@ -0,0 +1,16 @@ +/* + * 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, + CloudError, + ErrorResponse, + RestorableDatabaseAccountGetResult, + RestorableDatabaseAccountsListResult, + RestorableLocationResource +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbCollectionsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbCollectionsMappers.ts new file mode 100644 index 000000000000..44c2c51f4a76 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbCollectionsMappers.ts @@ -0,0 +1,16 @@ +/* + * 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, + CloudError, + ErrorResponse, + RestorableMongodbCollectionGetResult, + RestorableMongodbCollectionPropertiesResource, + RestorableMongodbCollectionsListResult +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbDatabasesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbDatabasesMappers.ts new file mode 100644 index 000000000000..17b169da89a7 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbDatabasesMappers.ts @@ -0,0 +1,16 @@ +/* + * 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, + CloudError, + ErrorResponse, + RestorableMongodbDatabaseGetResult, + RestorableMongodbDatabasePropertiesResource, + RestorableMongodbDatabasesListResult +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbResourcesMappers.ts new file mode 100644 index 000000000000..e8cc50bfb74b --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbResourcesMappers.ts @@ -0,0 +1,15 @@ +/* + * 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, + CloudError, + DatabaseRestoreResource, + ErrorResponse, + RestorableMongodbResourcesListResult +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlContainersMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlContainersMappers.ts new file mode 100644 index 000000000000..a85679017367 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlContainersMappers.ts @@ -0,0 +1,27 @@ +/* + * 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, + CloudError, + CompositePath, + ConflictResolutionPolicy, + ContainerPartitionKey, + ErrorResponse, + ExcludedPath, + IncludedPath, + Indexes, + IndexingPolicy, + RestorableSqlContainerGetResult, + RestorableSqlContainerPropertiesResource, + RestorableSqlContainerPropertiesResourceContainer, + RestorableSqlContainersListResult, + SpatialSpec, + UniqueKey, + UniqueKeyPolicy +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlDatabasesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlDatabasesMappers.ts new file mode 100644 index 000000000000..9e949616c3d9 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlDatabasesMappers.ts @@ -0,0 +1,17 @@ +/* + * 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, + CloudError, + ErrorResponse, + RestorableSqlDatabaseGetResult, + RestorableSqlDatabasePropertiesResource, + RestorableSqlDatabasePropertiesResourceDatabase, + RestorableSqlDatabasesListResult +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlResourcesMappers.ts new file mode 100644 index 000000000000..f9284b16f0e1 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlResourcesMappers.ts @@ -0,0 +1,15 @@ +/* + * 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, + CloudError, + DatabaseRestoreResource, + ErrorResponse, + RestorableSqlResourcesListResult +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/serviceMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/serviceMappers.ts new file mode 100644 index 000000000000..48068ec49b90 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/serviceMappers.ts @@ -0,0 +1,153 @@ +/* + * 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 776fe06e2a93..8662633bf668 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts @@ -15,7 +15,10 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, + BackupInformation, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,20 +33,30 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + ContinuousBackupInformation, + ContinuousBackupRestoreLocation, ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - ErrorResponse, - ErrorResponseUpdatedFormat, + DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -61,6 +74,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -81,12 +96,19 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -100,6 +122,14 @@ export { SqlDatabaseGetResults, SqlDatabaseListResult, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, + SqlRoleAssignmentCreateUpdateParameters, + SqlRoleAssignmentGetResults, + SqlRoleAssignmentListResult, + SqlRoleDefinitionCreateUpdateParameters, + SqlRoleDefinitionGetResults, + SqlRoleDefinitionListResult, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -115,6 +145,7 @@ export { SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionListResult, SqlUserDefinedFunctionResource, + SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts index 92286d1a8eb1..dca9439fe106 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,8 +32,11 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -41,9 +46,14 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - ErrorResponse, - ErrorResponseUpdatedFormat, + DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -61,6 +71,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -81,12 +93,19 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -98,6 +117,10 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -110,6 +133,7 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, + SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts new file mode 100644 index 000000000000..40be501ddd67 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts @@ -0,0 +1,616 @@ +/* + * 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 new file mode 100644 index 000000000000..3356998a5e46 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts @@ -0,0 +1,353 @@ +/* + * 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; + } + + /** + * 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; + } + + /** + * 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 c00e66340523..cc3d315664f3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts @@ -888,7 +888,7 @@ const beginMigrateCassandraKeyspaceToAutoscaleOperationSpec: msRest.OperationSpe }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -915,7 +915,7 @@ const beginMigrateCassandraKeyspaceToManualThroughputOperationSpec: msRest.Opera }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1039,7 +1039,7 @@ const beginMigrateCassandraTableToAutoscaleOperationSpec: msRest.OperationSpec = }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1067,7 +1067,7 @@ const beginMigrateCassandraTableToManualThroughputOperationSpec: msRest.Operatio }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts index 1b8eeab4ef71..68c437ee319b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts @@ -888,7 +888,7 @@ const beginMigrateGremlinDatabaseToAutoscaleOperationSpec: msRest.OperationSpec }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -915,7 +915,7 @@ const beginMigrateGremlinDatabaseToManualThroughputOperationSpec: msRest.Operati }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1039,7 +1039,7 @@ const beginMigrateGremlinGraphToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1067,7 +1067,7 @@ const beginMigrateGremlinGraphToManualThroughputOperationSpec: msRest.OperationS }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts index d5736137864a..13447e20cb95 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts @@ -25,6 +25,16 @@ export * from "./mongoDBResources"; export * from "./tableResources"; export * from "./cassandraResources"; export * from "./gremlinResources"; +export * from "./restorableDatabaseAccounts"; export * from "./notebookWorkspaces"; +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 c4d218dd4636..11847cee69eb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts @@ -861,7 +861,7 @@ const beginUpdateMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -888,7 +888,7 @@ const beginMigrateMongoDBDatabaseToAutoscaleOperationSpec: msRest.OperationSpec }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -915,7 +915,7 @@ const beginMigrateMongoDBDatabaseToManualThroughputOperationSpec: msRest.Operati }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1039,7 +1039,7 @@ const beginMigrateMongoDBCollectionToAutoscaleOperationSpec: msRest.OperationSpe }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1067,7 +1067,7 @@ const beginMigrateMongoDBCollectionToManualThroughputOperationSpec: msRest.Opera }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts new file mode 100644 index 000000000000..196125de93ea --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts @@ -0,0 +1,189 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/restorableDatabaseAccountsMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a RestorableDatabaseAccounts. */ +export class RestorableDatabaseAccounts { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a RestorableDatabaseAccounts. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Lists all the restorable Azure Cosmos DB database accounts available under the subscription and + * in a region. This call requires + * 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. + * @param location Cosmos DB region, with spaces between words and each word capitalized. + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + location, + options + }, + listByLocationOperationSpec, + callback) as Promise; + } + + /** + * Lists all the restorable Azure Cosmos DB database accounts available under the subscription. + * This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @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 { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call + * requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission. + * @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 + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + location, + instanceId, + options + }, + getByLocationOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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 + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableDatabaseAccountsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/restorableDatabaseAccounts", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableDatabaseAccountsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +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 + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableDatabaseAccountGetResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts new file mode 100644 index 000000000000..0fe490a4c3e3 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts @@ -0,0 +1,89 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/restorableMongodbCollectionsMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a RestorableMongodbCollections. */ +export class RestorableMongodbCollections { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a RestorableMongodbCollections. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a + * specific database. This helps in scenario where container was accidentally deleted. This API + * requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission + * @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 + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + location, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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 + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableMongodbCollectionsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts new file mode 100644 index 000000000000..5144f20e34df --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts @@ -0,0 +1,89 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/restorableMongodbDatabasesMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a RestorableMongodbDatabases. */ +export class RestorableMongodbDatabases { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a RestorableMongodbDatabases. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the + * restorable account. This helps in scenario where database was accidentally deleted to get the + * deletion time. This API requires + * 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission + * @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 + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + location, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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 + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableMongodbDatabasesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts new file mode 100644 index 000000000000..5d4f07933664 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts @@ -0,0 +1,91 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/restorableMongodbResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a RestorableMongodbResources. */ +export class RestorableMongodbResources { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a RestorableMongodbResources. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Return a list of database and collection combo that exist on the account at the given timestamp + * and location. This helps in scenarios to validate what resources exist at given timestamp and + * location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + * permission. + * @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 + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + location, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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 + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.restoreLocation, + Parameters.restoreTimestampInUtc + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableMongodbResourcesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts new file mode 100644 index 000000000000..b193a249a6b0 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts @@ -0,0 +1,91 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/restorableSqlContainersMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a RestorableSqlContainers. */ +export class RestorableSqlContainers { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a RestorableSqlContainers. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a + * specific database. This helps in scenario where container was accidentally deleted. This API + * requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission + * @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 + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + location, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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 + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.restorableSqlDatabaseRid, + Parameters.startTime, + Parameters.endTime + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableSqlContainersListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts new file mode 100644 index 000000000000..49eb4039b1d9 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts @@ -0,0 +1,89 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/restorableSqlDatabasesMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a RestorableSqlDatabases. */ +export class RestorableSqlDatabases { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a RestorableSqlDatabases. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the + * restorable account. This helps in scenario where database was accidentally deleted to get the + * deletion time. This API requires + * 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission + * @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 + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + location, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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 + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableSqlDatabasesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts new file mode 100644 index 000000000000..da5a23fb80d4 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts @@ -0,0 +1,91 @@ +/* + * 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 Models from "../models"; +import * as Mappers from "../models/restorableSqlResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a RestorableSqlResources. */ +export class RestorableSqlResources { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a RestorableSqlResources. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Return a list of database and container combo that exist on the account at the given timestamp + * and location. This helps in scenarios to validate what resources exist at given timestamp and + * location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + * permission. + * @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 + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + location, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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 + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.restoreLocation, + Parameters.restoreTimestampInUtc + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableSqlResourcesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/service.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/service.ts new file mode 100644 index 000000000000..b6dcd1a688d2 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/service.ts @@ -0,0 +1,278 @@ +/* + * 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 6854cff3534d..e67a7b06ff64 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts @@ -736,6 +736,213 @@ export class SqlResources { .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; + } + + /** + * Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. + * @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 [options] The optional parameters + * @returns 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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + roleDefinitionId, + resourceGroupName, + accountName, + options + }, + getSqlRoleDefinitionOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates an Azure Cosmos DB SQL Role Definition. + * @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 createUpdateSqlRoleDefinitionParameters The properties required to create or update a + * Role Definition. + * @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; + } + + /** + * Deletes an existing Azure Cosmos DB SQL Role Definition. + * @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 [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()); + } + + /** + * Retrieves the list of all Azure Cosmos DB SQL Role Definitions. + * @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 + */ + 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listSqlRoleDefinitionsOperationSpec, + callback) as Promise; + } + + /** + * Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. + * @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 [options] The optional parameters + * @returns 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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + roleAssignmentId, + resourceGroupName, + accountName, + options + }, + getSqlRoleAssignmentOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates an Azure Cosmos DB SQL Role Assignment. + * @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 createUpdateSqlRoleAssignmentParameters The properties required to create or update a + * Role Assignment. + * @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; + } + + /** + * Deletes an existing Azure Cosmos DB SQL Role Assignment. + * @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 [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()); + } + + /** + * Retrieves the list of all Azure Cosmos DB SQL Role Assignments. + * @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 + */ + 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listSqlRoleAssignmentsOperationSpec, + callback) as Promise; + } + /** * Create or update an Azure Cosmos DB SQL database * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1108,6 +1315,116 @@ export class SqlResources { 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); + } + + /** + * Creates or updates an Azure Cosmos DB SQL Role Definition. + * @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 createUpdateSqlRoleDefinitionParameters The properties required to create or update a + * Role Definition. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateUpdateSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, createUpdateSqlRoleDefinitionParameters: Models.SqlRoleDefinitionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + roleDefinitionId, + resourceGroupName, + accountName, + createUpdateSqlRoleDefinitionParameters, + options + }, + beginCreateUpdateSqlRoleDefinitionOperationSpec, + options); + } + + /** + * Deletes an existing Azure Cosmos DB SQL Role Definition. + * @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 [options] The optional parameters + * @returns Promise + */ + beginDeleteSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + roleDefinitionId, + resourceGroupName, + accountName, + options + }, + beginDeleteSqlRoleDefinitionOperationSpec, + options); + } + + /** + * Creates or updates an Azure Cosmos DB SQL Role Assignment. + * @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 createUpdateSqlRoleAssignmentParameters The properties required to create or update a + * Role Assignment. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateUpdateSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, createUpdateSqlRoleAssignmentParameters: Models.SqlRoleAssignmentCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + roleAssignmentId, + resourceGroupName, + accountName, + createUpdateSqlRoleAssignmentParameters, + options + }, + beginCreateUpdateSqlRoleAssignmentOperationSpec, + options); + } + + /** + * Deletes an existing Azure Cosmos DB SQL Role Assignment. + * @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 [options] The optional parameters + * @returns Promise + */ + beginDeleteSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + roleAssignmentId, + resourceGroupName, + accountName, + options + }, + beginDeleteSqlRoleAssignmentOperationSpec, + options); + } } // Operation Specifications @@ -1290,7 +1607,7 @@ const listSqlStoredProceduresOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.SqlStoredProcedureListResult }, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1434,6 +1751,108 @@ const getSqlTriggerOperationSpec: msRest.OperationSpec = { serializer }; +const getSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + 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 + ], + responses: { + 200: { + bodyMapper: Mappers.SqlRoleDefinitionGetResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +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 + ], + responses: { + 200: { + bodyMapper: Mappers.SqlRoleDefinitionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + 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 + ], + responses: { + 200: { + bodyMapper: Mappers.SqlRoleAssignmentGetResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +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 + ], + responses: { + 200: { + bodyMapper: Mappers.SqlRoleAssignmentListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateUpdateSqlDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}", @@ -1548,7 +1967,7 @@ const beginMigrateSqlDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1575,7 +1994,7 @@ const beginMigrateSqlDatabaseToManualThroughputOperationSpec: msRest.OperationSp }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1699,7 +2118,7 @@ const beginMigrateSqlContainerToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1727,7 +2146,7 @@ const beginMigrateSqlContainerToManualThroughputOperationSpec: msRest.OperationS }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1921,3 +2340,158 @@ const beginDeleteSqlTriggerOperationSpec: 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 +}; + +const beginCreateUpdateSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + 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 + ], + requestBody: { + parameterPath: "createUpdateSqlRoleDefinitionParameters", + mapper: { + ...Mappers.SqlRoleDefinitionCreateUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SqlRoleDefinitionGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + 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 + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateUpdateSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + 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 + ], + requestBody: { + parameterPath: "createUpdateSqlRoleAssignmentParameters", + mapper: { + ...Mappers.SqlRoleAssignmentCreateUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SqlRoleAssignmentGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + 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 + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + 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 984ac69af484..b0ccec17248b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts @@ -498,7 +498,7 @@ const beginMigrateTableToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -525,7 +525,7 @@ const beginMigrateTableToManualThroughputOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer From 9bd40a5953308d2b8cc0fac3f2c8161b0a0757a0 Mon Sep 17 00:00:00 2001 From: colawwj Date: Sun, 25 Apr 2021 15:48:42 +0800 Subject: [PATCH 2/2] arm-cosmosdb-release --- .../src/cosmosDBManagementClient.ts | 65 +- .../src/cosmosDBManagementClientContext.ts | 19 +- sdk/cosmosdb/arm-cosmosdb/src/models/index.ts | 3804 ++++++++--------- .../arm-cosmosdb/src/models/mappers.ts | 81 +- .../arm-cosmosdb/src/models/parameters.ts | 39 +- .../src/operations/cassandraClusters.ts | 400 +- .../src/operations/cassandraDataCenters.ts | 208 +- .../src/operations/cassandraResources.ts | 685 ++- .../src/operations/gremlinResources.ts | 681 ++- .../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 | 165 +- .../src/operations/sqlResources.ts | 1642 +++++-- .../src/operations/tableResources.ts | 330 +- 20 files changed, 5604 insertions(+), 3595 deletions(-) diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts index 3bc4acc63363..21d46d89a9ef 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts @@ -14,7 +14,6 @@ import * as Parameters from "./models/parameters"; import * as operations from "./operations"; import { CosmosDBManagementClientContext } from "./cosmosDBManagementClientContext"; - class CosmosDBManagementClient extends CosmosDBManagementClientContext { // Operation groups databaseAccounts: operations.DatabaseAccounts; @@ -55,7 +54,11 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { * @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, + subscriptionId: string, + options?: Models.CosmosDBManagementClientOptions + ) { super(credentials, subscriptionId, options); this.databaseAccounts = new operations.DatabaseAccounts(this); this.operations = new operations.Operations(this); @@ -104,14 +107,21 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { * @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 { + 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; + callback + ) as Promise; } /** @@ -120,7 +130,10 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { * @param [options] The optional parameters * @returns Promise */ - locationGet(location: string, options?: msRest.RequestOptionsBase): 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 @@ -131,15 +144,24 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { * @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 { + 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; + callback + ) as Promise; } } @@ -148,15 +170,9 @@ 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 - ], + urlParameters: [Parameters.subscriptionId], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.LocationListResult @@ -171,16 +187,9 @@ const locationListOperationSpec: msRest.OperationSpec = { 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 - ], + urlParameters: [Parameters.subscriptionId, Parameters.location], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.LocationGetResult diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts index e5aab87680c2..d86495da1fe1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts @@ -25,12 +25,16 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli * @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, + 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) { @@ -43,8 +47,8 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli super(credentials, options); - this.apiVersion = '2021-04-01-preview'; - this.acceptLanguage = 'en-US'; + this.apiVersion = "2021-04-01-preview"; + this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; this.requestContentType = "application/json; charset=utf-8"; @@ -54,7 +58,10 @@ 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/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts index 387410e5910a..363ffc4e526a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts @@ -186,8 +186,7 @@ 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 @@ -263,7 +262,10 @@ export interface RestoreParameters { /** * 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. @@ -569,8 +571,7 @@ export interface OptionsResource { /** * An interface representing SqlDatabaseGetPropertiesOptions. */ -export interface SqlDatabaseGetPropertiesOptions extends OptionsResource { -} +export interface SqlDatabaseGetPropertiesOptions extends OptionsResource {} /** * An Azure Cosmos DB SQL database. @@ -810,8 +811,7 @@ export interface SqlContainerGetPropertiesResource { /** * An interface representing SqlContainerGetPropertiesOptions. */ -export interface SqlContainerGetPropertiesOptions extends OptionsResource { -} +export interface SqlContainerGetPropertiesOptions extends OptionsResource {} /** * An Azure Cosmos DB container. @@ -970,8 +970,7 @@ export interface MongoDBDatabaseGetPropertiesResource { /** * An interface representing MongoDBDatabaseGetPropertiesOptions. */ -export interface MongoDBDatabaseGetPropertiesOptions extends OptionsResource { -} +export interface MongoDBDatabaseGetPropertiesOptions extends OptionsResource {} /** * An Azure Cosmos DB MongoDB database. @@ -1060,8 +1059,7 @@ export interface MongoDBCollectionGetPropertiesResource { /** * An interface representing MongoDBCollectionGetPropertiesOptions. */ -export interface MongoDBCollectionGetPropertiesOptions extends OptionsResource { -} +export interface MongoDBCollectionGetPropertiesOptions extends OptionsResource {} /** * An Azure Cosmos DB MongoDB collection. @@ -1100,8 +1098,7 @@ export interface TableGetPropertiesResource { /** * An interface representing TableGetPropertiesOptions. */ -export interface TableGetPropertiesOptions extends OptionsResource { -} +export interface TableGetPropertiesOptions extends OptionsResource {} /** * An Azure Cosmos DB Table. @@ -1140,8 +1137,7 @@ export interface CassandraKeyspaceGetPropertiesResource { /** * An interface representing CassandraKeyspaceGetPropertiesOptions. */ -export interface CassandraKeyspaceGetPropertiesOptions extends OptionsResource { -} +export interface CassandraKeyspaceGetPropertiesOptions extends OptionsResource {} /** * An Azure Cosmos DB Cassandra keyspace. @@ -1248,8 +1244,7 @@ export interface CassandraTableGetPropertiesResource { /** * An interface representing CassandraTableGetPropertiesOptions. */ -export interface CassandraTableGetPropertiesOptions extends OptionsResource { -} +export interface CassandraTableGetPropertiesOptions extends OptionsResource {} /** * An Azure Cosmos DB Cassandra table. @@ -1288,8 +1283,7 @@ export interface GremlinDatabaseGetPropertiesResource { /** * An interface representing GremlinDatabaseGetPropertiesOptions. */ -export interface GremlinDatabaseGetPropertiesOptions extends OptionsResource { -} +export interface GremlinDatabaseGetPropertiesOptions extends OptionsResource {} /** * An Azure Cosmos DB Gremlin database. @@ -1351,8 +1345,7 @@ export interface GremlinGraphGetPropertiesResource { /** * An interface representing GremlinGraphGetPropertiesOptions. */ -export interface GremlinGraphGetPropertiesOptions extends OptionsResource { -} +export interface GremlinGraphGetPropertiesOptions extends OptionsResource {} /** * An Azure Cosmos DB Gremlin graph. @@ -1440,7 +1433,9 @@ export interface ManagedServiceIdentity { * references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ - userAssignedIdentities?: { [propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue }; + userAssignedIdentities?: { + [propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue; + }; } /** @@ -1585,7 +1580,10 @@ export interface ThroughputSettingsGetResults extends ARMResourceProperties { /** * Contains the possible cases for DatabaseAccountCreateUpdateProperties. */ -export type DatabaseAccountCreateUpdatePropertiesUnion = DatabaseAccountCreateUpdateProperties | DefaultRequestDatabaseAccountCreateUpdateProperties | RestoreReqeustDatabaseAccountCreateUpdateProperties; +export type DatabaseAccountCreateUpdatePropertiesUnion = + | DatabaseAccountCreateUpdateProperties + | DefaultRequestDatabaseAccountCreateUpdateProperties + | RestoreReqeustDatabaseAccountCreateUpdateProperties; /** * Properties to create and update Azure Cosmos DB database accounts. @@ -3062,8 +3060,7 @@ 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 @@ -3828,7 +3825,10 @@ export interface PrivateLinkResource extends ARMProxyResource { /** * Contains the possible cases for ServiceResourceProperties. */ -export type ServiceResourcePropertiesUnion = ServiceResourceProperties | DataTransferServiceResourceProperties | SqlDedicatedGatewayServiceResourceProperties; +export type ServiceResourcePropertiesUnion = + | ServiceResourceProperties + | DataTransferServiceResourceProperties + | SqlDedicatedGatewayServiceResourceProperties; /** * Services response resource. @@ -3893,8 +3893,7 @@ export interface RegionalServiceResource { /** * Resource for a regional service location. */ -export interface DataTransferRegionalServiceResource extends RegionalServiceResource { -} +export interface DataTransferRegionalServiceResource extends RegionalServiceResource {} /** * Properties for DataTransferServiceResource. @@ -4103,32 +4102,28 @@ 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 @@ -4148,136 +4143,119 @@ 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 @@ -4285,120 +4263,108 @@ export interface GremlinGraphListResult extends Array { * properties. * @extends Array */ -export interface RestorableDatabaseAccountsListResult extends Array { -} +export interface RestorableDatabaseAccountsListResult + extends Array {} /** * @interface * The List operation response, that contains Cosmos DB locations and their properties. * @extends Array */ -export interface LocationListResult extends Array { -} +export interface LocationListResult extends Array {} /** * @interface * A list of notebook workspace resources * @extends Array */ -export interface NotebookWorkspaceListResult extends Array { -} +export interface NotebookWorkspaceListResult 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 { -} +export interface RestorableMongodbResourcesListResult extends Array {} /** * @interface * List of managed Cassandra clusters. * @extends Array */ -export interface ListClusters extends Array { -} +export interface ListClusters extends Array {} /** * @interface * List of restorable backups for a Cassandra cluster. * @extends Array */ -export interface ListBackups extends Array { -} +export interface ListBackups extends Array {} /** * @interface * List of managed Cassandra data centers and their properties. * @extends Array */ -export interface ListDataCenters extends Array { -} +export interface ListDataCenters extends Array {} /** * @interface * A list of private link resources * @extends Array */ -export interface PrivateLinkResourceListResult extends Array { -} +export interface PrivateLinkResourceListResult extends Array {} /** * @interface * A list of private endpoint connections * @extends Array */ -export interface PrivateEndpointConnectionListResult extends Array { -} +export interface PrivateEndpointConnectionListResult extends Array {} /** * @interface * The List operation response, that contains the Service Resource and their properties. * @extends Array */ -export interface ServiceResourceListResult extends Array { -} +export interface ServiceResourceListResult extends Array {} /** * Defines values for DatabaseAccountKind. @@ -4406,7 +4372,7 @@ export interface ServiceResourceListResult extends Array { * @readonly * @enum {string} */ -export type DatabaseAccountKind = 'GlobalDocumentDB' | 'MongoDB' | 'Parse'; +export type DatabaseAccountKind = "GlobalDocumentDB" | "MongoDB" | "Parse"; /** * Defines values for DatabaseAccountOfferType. @@ -4414,7 +4380,7 @@ export type DatabaseAccountKind = 'GlobalDocumentDB' | 'MongoDB' | 'Parse'; * @readonly * @enum {string} */ -export type DatabaseAccountOfferType = 'Standard'; +export type DatabaseAccountOfferType = "Standard"; /** * Defines values for DefaultConsistencyLevel. @@ -4422,7 +4388,12 @@ 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. @@ -4430,7 +4401,7 @@ export type DefaultConsistencyLevel = 'Eventual' | 'Session' | 'BoundedStaleness * @readonly * @enum {string} */ -export type ConnectorOffer = 'Small'; +export type ConnectorOffer = "Small"; /** * Defines values for PublicNetworkAccess. @@ -4438,7 +4409,7 @@ export type ConnectorOffer = 'Small'; * @readonly * @enum {string} */ -export type PublicNetworkAccess = 'Enabled' | 'Disabled'; +export type PublicNetworkAccess = "Enabled" | "Disabled"; /** * Defines values for ServerVersion. @@ -4446,7 +4417,7 @@ 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 CreateMode. @@ -4454,7 +4425,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. @@ -4462,7 +4433,7 @@ export type CreateMode = 'Default' | 'Restore'; * @readonly * @enum {string} */ -export type RestoreMode = 'PointInTime'; +export type RestoreMode = "PointInTime"; /** * Defines values for NetworkAclBypass. @@ -4470,7 +4441,7 @@ export type RestoreMode = 'PointInTime'; * @readonly * @enum {string} */ -export type NetworkAclBypass = 'None' | 'AzureServices'; +export type NetworkAclBypass = "None" | "AzureServices"; /** * Defines values for CreatedByType. @@ -4478,7 +4449,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. @@ -4486,7 +4457,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. @@ -4494,7 +4465,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. @@ -4502,7 +4473,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. @@ -4510,7 +4481,7 @@ export type IndexKind = 'Hash' | 'Range' | 'Spatial'; * @readonly * @enum {string} */ -export type CompositePathSortOrder = 'ascending' | 'descending'; +export type CompositePathSortOrder = "ascending" | "descending"; /** * Defines values for SpatialType. @@ -4518,7 +4489,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. @@ -4526,7 +4497,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. @@ -4534,7 +4505,7 @@ export type PartitionKind = 'Hash' | 'Range' | 'MultiHash'; * @readonly * @enum {string} */ -export type ConflictResolutionMode = 'LastWriterWins' | 'Custom'; +export type ConflictResolutionMode = "LastWriterWins" | "Custom"; /** * Defines values for TriggerType. @@ -4542,7 +4513,7 @@ export type ConflictResolutionMode = 'LastWriterWins' | 'Custom'; * @readonly * @enum {string} */ -export type TriggerType = 'Pre' | 'Post'; +export type TriggerType = "Pre" | "Post"; /** * Defines values for TriggerOperation. @@ -4550,7 +4521,7 @@ export type TriggerType = 'Pre' | 'Post'; * @readonly * @enum {string} */ -export type TriggerOperation = 'All' | 'Create' | 'Update' | 'Delete' | 'Replace'; +export type TriggerOperation = "All" | "Create" | "Update" | "Delete" | "Replace"; /** * Defines values for ResourceIdentityType. @@ -4558,7 +4529,11 @@ export type TriggerOperation = 'All' | 'Create' | 'Update' | 'Delete' | 'Replace * @readonly * @enum {string} */ -export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; +export type ResourceIdentityType = + | "SystemAssigned" + | "UserAssigned" + | "SystemAssigned,UserAssigned" + | "None"; /** * Defines values for KeyKind. @@ -4566,7 +4541,7 @@ export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAs * @readonly * @enum {string} */ -export type KeyKind = 'primary' | 'secondary' | 'primaryReadonly' | 'secondaryReadonly'; +export type KeyKind = "primary" | "secondary" | "primaryReadonly" | "secondaryReadonly"; /** * Defines values for UnitType. @@ -4575,7 +4550,14 @@ 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. @@ -4583,7 +4565,7 @@ export type UnitType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSeco * @readonly * @enum {string} */ -export type PrimaryAggregationType = 'None' | 'Average' | 'Total' | 'Minimum' | 'Maximum' | 'Last'; +export type PrimaryAggregationType = "None" | "Average" | "Total" | "Minimum" | "Maximum" | "Last"; /** * Defines values for BackupPolicyType. @@ -4591,7 +4573,7 @@ export type PrimaryAggregationType = 'None' | 'Average' | 'Total' | 'Minimum' | * @readonly * @enum {string} */ -export type BackupPolicyType = 'Periodic' | 'Continuous'; +export type BackupPolicyType = "Periodic" | "Continuous"; /** * Defines values for BackupStorageRedundancy. @@ -4599,7 +4581,7 @@ export type BackupPolicyType = 'Periodic' | 'Continuous'; * @readonly * @enum {string} */ -export type BackupStorageRedundancy = 'Geo' | 'Local' | 'Zone'; +export type BackupStorageRedundancy = "Geo" | "Local" | "Zone"; /** * Defines values for ApiType. @@ -4607,7 +4589,7 @@ export type BackupStorageRedundancy = 'Geo' | 'Local' | 'Zone'; * @readonly * @enum {string} */ -export type ApiType = 'MongoDB' | 'Gremlin' | 'Cassandra' | 'Table' | 'Sql' | 'GremlinV2'; +export type ApiType = "MongoDB" | "Gremlin" | "Cassandra" | "Table" | "Sql" | "GremlinV2"; /** * Defines values for RoleDefinitionType. @@ -4615,7 +4597,7 @@ export type ApiType = 'MongoDB' | 'Gremlin' | 'Cassandra' | 'Table' | 'Sql' | 'G * @readonly * @enum {string} */ -export type RoleDefinitionType = 'BuiltInRole' | 'CustomRole'; +export type RoleDefinitionType = "BuiltInRole" | "CustomRole"; /** * Defines values for OperationType. @@ -4623,7 +4605,7 @@ export type RoleDefinitionType = 'BuiltInRole' | 'CustomRole'; * @readonly * @enum {string} */ -export type OperationType = 'Create' | 'Replace' | 'Delete' | 'SystemOperation'; +export type OperationType = "Create" | "Replace" | "Delete" | "SystemOperation"; /** * Defines values for ManagedCassandraProvisioningState. @@ -4631,7 +4613,13 @@ export type OperationType = 'Create' | 'Replace' | 'Delete' | 'SystemOperation'; * @readonly * @enum {string} */ -export type ManagedCassandraProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; +export type ManagedCassandraProvisioningState = + | "Creating" + | "Updating" + | "Deleting" + | "Succeeded" + | "Failed" + | "Canceled"; /** * Defines values for AuthenticationMethod. @@ -4639,7 +4627,7 @@ export type ManagedCassandraProvisioningState = 'Creating' | 'Updating' | 'Delet * @readonly * @enum {string} */ -export type AuthenticationMethod = 'None' | 'Cassandra'; +export type AuthenticationMethod = "None" | "Cassandra"; /** * Defines values for NodeStatus. @@ -4647,7 +4635,7 @@ export type AuthenticationMethod = 'None' | 'Cassandra'; * @readonly * @enum {string} */ -export type NodeStatus = 'Up' | 'Down'; +export type NodeStatus = "Up" | "Down"; /** * Defines values for NodeState. @@ -4655,7 +4643,7 @@ export type NodeStatus = 'Up' | 'Down'; * @readonly * @enum {string} */ -export type NodeState = 'Normal' | 'Leaving' | 'Joining' | 'Moving' | 'Stopped'; +export type NodeState = "Normal" | "Leaving" | "Joining" | "Moving" | "Stopped"; /** * Defines values for ServiceSize. @@ -4663,7 +4651,7 @@ export type NodeState = 'Normal' | 'Leaving' | 'Joining' | 'Moving' | 'Stopped'; * @readonly * @enum {string} */ -export type ServiceSize = 'Cosmos.D4s' | 'Cosmos.D8s' | 'Cosmos.D16s'; +export type ServiceSize = "Cosmos.D4s" | "Cosmos.D8s" | "Cosmos.D16s"; /** * Defines values for ServiceStatus. @@ -4671,7 +4659,7 @@ export type ServiceSize = 'Cosmos.D4s' | 'Cosmos.D8s' | 'Cosmos.D16s'; * @readonly * @enum {string} */ -export type ServiceStatus = 'Creating' | 'Running' | 'Updating' | 'Deleting' | 'Error' | 'Stopped'; +export type ServiceStatus = "Creating" | "Running" | "Updating" | "Deleting" | "Error" | "Stopped"; /** * Defines values for ServiceType. @@ -4679,7 +4667,7 @@ export type ServiceStatus = 'Creating' | 'Running' | 'Updating' | 'Deleting' | ' * @readonly * @enum {string} */ -export type ServiceType = 'SqlDedicatedGateway' | 'DataTransfer'; +export type ServiceType = "SqlDedicatedGateway" | "DataTransfer"; /** * Contains response data for the get operation. @@ -4689,16 +4677,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; + }; }; /** @@ -4709,16 +4697,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; + }; }; /** @@ -4729,16 +4717,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; + }; }; /** @@ -4749,16 +4737,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; + }; }; /** @@ -4769,16 +4757,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; + }; }; /** @@ -4789,16 +4777,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; + }; }; /** @@ -4809,16 +4797,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; + }; }; /** @@ -4829,16 +4817,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; + }; }; /** @@ -4849,16 +4837,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; + }; }; /** @@ -4874,16 +4862,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; + }; }; /** @@ -4894,16 +4882,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; + }; }; /** @@ -4914,16 +4902,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; + }; }; /** @@ -4934,16 +4922,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; + }; }; /** @@ -4954,16 +4942,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; + }; }; /** @@ -4974,16 +4962,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; + }; }; /** @@ -4994,16 +4982,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; + }; }; /** @@ -5014,16 +5002,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; + }; }; /** @@ -5034,16 +5022,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; + }; }; /** @@ -5054,16 +5042,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; + }; }; /** @@ -5074,16 +5062,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; + }; }; /** @@ -5094,16 +5082,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; + }; }; /** @@ -5114,16 +5102,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; + }; }; /** @@ -5134,16 +5122,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; + }; }; /** @@ -5154,16 +5142,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; + }; }; /** @@ -5174,16 +5162,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; + }; }; /** @@ -5194,16 +5182,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; + }; }; /** @@ -5214,16 +5202,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; + }; }; /** @@ -5234,16 +5222,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; + }; }; /** @@ -5254,16 +5242,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; + }; }; /** @@ -5274,16 +5262,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; + }; }; /** @@ -5294,16 +5282,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; + }; }; /** @@ -5314,16 +5302,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; + }; }; /** @@ -5334,16 +5322,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; + }; }; /** @@ -5354,16 +5342,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; + }; }; /** @@ -5374,16 +5362,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; + }; }; /** @@ -5394,16 +5382,16 @@ 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; + }; }; /** @@ -5414,16 +5402,16 @@ export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGet * 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; + }; }; /** @@ -5434,16 +5422,16 @@ export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettings * 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; + }; }; /** @@ -5454,16 +5442,16 @@ export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettin * 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; + }; }; /** @@ -5474,16 +5462,16 @@ export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = Throughpu * 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; + }; }; /** @@ -5494,16 +5482,16 @@ 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: SqlContainerListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlContainerListResult; + }; }; /** @@ -5514,16 +5502,16 @@ 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: SqlContainerGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlContainerGetResults; + }; }; /** @@ -5534,16 +5522,16 @@ export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResult * 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: SqlContainerGetResults; + }; }; /** @@ -5554,16 +5542,16 @@ export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGe * 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; + }; }; /** @@ -5574,16 +5562,16 @@ export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSetting * 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; + }; }; /** @@ -5594,16 +5582,16 @@ export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSetti * 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; + }; }; /** @@ -5614,16 +5602,16 @@ export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = Throughp * 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; + }; }; /** @@ -5634,16 +5622,16 @@ export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureList * 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: SqlStoredProcedureListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlStoredProcedureListResult; + }; }; /** @@ -5654,16 +5642,16 @@ export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetRes * 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; + }; }; /** @@ -5674,16 +5662,16 @@ export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProced * 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; + }; }; /** @@ -5694,16 +5682,16 @@ export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunc * 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: SqlUserDefinedFunctionListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlUserDefinedFunctionListResult; + }; }; /** @@ -5714,16 +5702,16 @@ export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFuncti * 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: SqlUserDefinedFunctionGetResults; + }; }; /** @@ -5734,16 +5722,16 @@ export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefi * 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: SqlUserDefinedFunctionGetResults; + }; }; /** @@ -5754,16 +5742,16 @@ 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: SqlTriggerListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlTriggerListResult; + }; }; /** @@ -5774,16 +5762,16 @@ 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: SqlTriggerGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlTriggerGetResults; + }; }; /** @@ -5794,16 +5782,16 @@ 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: SqlTriggerGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlTriggerGetResults; + }; }; /** @@ -5814,16 +5802,16 @@ export type SqlResourcesRetrieveContinuousBackupInformationResponse = BackupInfo * 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: BackupInformation; + }; }; /** @@ -5834,16 +5822,16 @@ export type SqlResourcesGetSqlRoleDefinitionResponse = SqlRoleDefinitionGetResul * 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: SqlRoleDefinitionGetResults; + }; }; /** @@ -5854,16 +5842,16 @@ export type SqlResourcesCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitio * 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: SqlRoleDefinitionGetResults; + }; }; /** @@ -5874,16 +5862,16 @@ export type SqlResourcesListSqlRoleDefinitionsResponse = SqlRoleDefinitionListRe * 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: SqlRoleDefinitionListResult; + }; }; /** @@ -5894,16 +5882,16 @@ export type SqlResourcesGetSqlRoleAssignmentResponse = SqlRoleAssignmentGetResul * 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: SqlRoleAssignmentGetResults; + }; }; /** @@ -5914,16 +5902,16 @@ export type SqlResourcesCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmen * 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: SqlRoleAssignmentGetResults; + }; }; /** @@ -5934,16 +5922,16 @@ export type SqlResourcesListSqlRoleAssignmentsResponse = SqlRoleAssignmentListRe * 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: SqlRoleAssignmentListResult; + }; }; /** @@ -5954,16 +5942,16 @@ export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetRes * 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; + }; }; /** @@ -5974,16 +5962,16 @@ export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSet * 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; + }; }; /** @@ -5994,16 +5982,16 @@ export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputS * 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; + }; }; /** @@ -6014,16 +6002,16 @@ export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = Thro * 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; + }; }; /** @@ -6034,16 +6022,16 @@ export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetR * 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: SqlContainerGetResults; + }; }; /** @@ -6054,16 +6042,16 @@ export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSe * 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; + }; }; /** @@ -6074,16 +6062,16 @@ export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = Throughput * 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; + }; }; /** @@ -6094,16 +6082,16 @@ export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = Thr * 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; + }; }; /** @@ -6114,16 +6102,16 @@ export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredP * 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; + }; }; /** @@ -6134,16 +6122,16 @@ export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUse * 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: SqlUserDefinedFunctionGetResults; + }; }; /** @@ -6154,16 +6142,16 @@ export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResul * 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: SqlTriggerGetResults; + }; }; /** @@ -6174,16 +6162,16 @@ export type SqlResourcesBeginRetrieveContinuousBackupInformationResponse = Backu * 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: BackupInformation; + }; }; /** @@ -6194,16 +6182,16 @@ export type SqlResourcesBeginCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefi * 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: SqlRoleDefinitionGetResults; + }; }; /** @@ -6214,16 +6202,16 @@ export type SqlResourcesBeginCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssi * 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: SqlRoleAssignmentGetResults; + }; }; /** @@ -6234,16 +6222,16 @@ export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListRe * 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: MongoDBDatabaseListResult; + }; }; /** @@ -6254,16 +6242,16 @@ export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResul * 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: MongoDBDatabaseGetResults; + }; }; /** @@ -6274,16 +6262,16 @@ export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabas * 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: MongoDBDatabaseGetResults; + }; }; /** @@ -6294,16 +6282,16 @@ export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSet * 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; + }; }; /** @@ -6314,16 +6302,16 @@ export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = Throughput * 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; + }; }; /** @@ -6334,16 +6322,16 @@ export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = Throughp * 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; + }; }; /** @@ -6354,16 +6342,16 @@ export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = T * 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; + }; }; /** @@ -6374,16 +6362,16 @@ export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionLi * 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: MongoDBCollectionListResult; + }; }; /** @@ -6394,16 +6382,16 @@ export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetR * 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: MongoDBCollectionGetResults; + }; }; /** @@ -6414,16 +6402,16 @@ export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBColle * 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: MongoDBCollectionGetResults; + }; }; /** @@ -6434,16 +6422,16 @@ export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputS * 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; + }; }; /** @@ -6454,16 +6442,16 @@ export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = Throughp * 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; + }; }; /** @@ -6474,16 +6462,16 @@ export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = Throug * 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; + }; }; /** @@ -6494,16 +6482,16 @@ export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = * 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; + }; }; /** @@ -6514,16 +6502,16 @@ export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDa * 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: MongoDBDatabaseGetResults; + }; }; /** @@ -6534,16 +6522,16 @@ export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = Throu * 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; + }; }; /** @@ -6554,16 +6542,16 @@ export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = Thr * 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; + }; }; /** @@ -6574,16 +6562,16 @@ export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputRespons * 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; + }; }; /** @@ -6594,16 +6582,16 @@ export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDB * 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: MongoDBCollectionGetResults; + }; }; /** @@ -6614,16 +6602,16 @@ export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = Thr * 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; + }; }; /** @@ -6634,16 +6622,16 @@ export type MongoDBResourcesBeginMigrateMongoDBCollectionToAutoscaleResponse = T * 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; + }; }; /** @@ -6654,16 +6642,16 @@ export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputRespo * 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; + }; }; /** @@ -6674,16 +6662,16 @@ 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: TableListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TableListResult; + }; }; /** @@ -6694,16 +6682,16 @@ 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: TableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TableGetResults; + }; }; /** @@ -6714,16 +6702,16 @@ 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: TableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TableGetResults; + }; }; /** @@ -6734,16 +6722,16 @@ export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResu * 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; + }; }; /** @@ -6754,16 +6742,16 @@ export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetR * 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; + }; }; /** @@ -6774,16 +6762,16 @@ export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGe * 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; + }; }; /** @@ -6794,16 +6782,16 @@ export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSet * 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; + }; }; /** @@ -6814,16 +6802,16 @@ 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: TableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TableGetResults; + }; }; /** @@ -6834,16 +6822,16 @@ export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSetting * 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; + }; }; /** @@ -6854,16 +6842,16 @@ export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSetti * 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; + }; }; /** @@ -6874,16 +6862,16 @@ export type TableResourcesBeginMigrateTableToManualThroughputResponse = Throughp * 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; + }; }; /** @@ -6894,16 +6882,16 @@ export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspace * 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: CassandraKeyspaceListResult; + }; }; /** @@ -6914,16 +6902,16 @@ export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGe * 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: CassandraKeyspaceGetResults; + }; }; /** @@ -6934,16 +6922,16 @@ export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraK * 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: CassandraKeyspaceGetResults; + }; }; /** @@ -6954,16 +6942,16 @@ export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = Throughpu * 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; + }; }; /** @@ -6974,16 +6962,16 @@ export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = Throug * 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; + }; }; /** @@ -6994,16 +6982,16 @@ export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = Thro * 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; + }; }; /** @@ -7014,16 +7002,16 @@ export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse * 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; + }; }; /** @@ -7034,16 +7022,16 @@ export type CassandraResourcesListCassandraTablesResponse = CassandraTableListRe * 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: CassandraTableListResult; + }; }; /** @@ -7054,16 +7042,16 @@ export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResul * 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: CassandraTableGetResults; + }; }; /** @@ -7074,16 +7062,16 @@ export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTabl * 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: CassandraTableGetResults; + }; }; /** @@ -7094,16 +7082,16 @@ export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSe * 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; + }; }; /** @@ -7114,16 +7102,16 @@ export type CassandraResourcesUpdateCassandraTableThroughputResponse = Throughpu * 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; + }; }; /** @@ -7134,16 +7122,16 @@ export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = Through * 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; + }; }; /** @@ -7154,16 +7142,16 @@ export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = * 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; + }; }; /** @@ -7174,16 +7162,16 @@ export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = Cassa * 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: CassandraKeyspaceGetResults; + }; }; /** @@ -7194,16 +7182,16 @@ export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = T * 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; + }; }; /** @@ -7214,16 +7202,16 @@ export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = * 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; + }; }; /** @@ -7234,16 +7222,16 @@ export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputRes * 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; + }; }; /** @@ -7254,16 +7242,16 @@ export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = Cassandr * 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: CassandraTableGetResults; + }; }; /** @@ -7274,16 +7262,16 @@ export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = Thro * 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; + }; }; /** @@ -7294,16 +7282,16 @@ export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = Th * 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; + }; }; /** @@ -7314,16 +7302,16 @@ export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputRespon * 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; + }; }; /** @@ -7334,16 +7322,16 @@ export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListRe * 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: GremlinDatabaseListResult; + }; }; /** @@ -7354,16 +7342,16 @@ export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResul * 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: GremlinDatabaseGetResults; + }; }; /** @@ -7374,16 +7362,16 @@ export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabas * 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: GremlinDatabaseGetResults; + }; }; /** @@ -7394,16 +7382,16 @@ export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSet * 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; + }; }; /** @@ -7414,16 +7402,16 @@ export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = Throughput * 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; + }; }; /** @@ -7434,16 +7422,16 @@ export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = Throughp * 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; + }; }; /** @@ -7454,16 +7442,16 @@ export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = T * 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; + }; }; /** @@ -7474,16 +7462,16 @@ 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: GremlinGraphListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinGraphListResult; + }; }; /** @@ -7494,16 +7482,16 @@ 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: GremlinGraphGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinGraphGetResults; + }; }; /** @@ -7514,16 +7502,16 @@ export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetRe * 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: GremlinGraphGetResults; + }; }; /** @@ -7534,16 +7522,16 @@ export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettin * 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; + }; }; /** @@ -7554,16 +7542,16 @@ export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSet * 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; + }; }; /** @@ -7574,16 +7562,16 @@ export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputS * 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; + }; }; /** @@ -7594,16 +7582,16 @@ export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = Thro * 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; + }; }; /** @@ -7614,16 +7602,16 @@ export type GremlinResourcesBeginCreateUpdateGremlinDatabaseResponse = GremlinDa * 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: GremlinDatabaseGetResults; + }; }; /** @@ -7634,16 +7622,16 @@ export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = Throu * 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; + }; }; /** @@ -7654,16 +7642,16 @@ export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = Thr * 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; + }; }; /** @@ -7674,16 +7662,16 @@ export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputRespons * 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; + }; }; /** @@ -7694,16 +7682,16 @@ export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraph * 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: GremlinGraphGetResults; + }; }; /** @@ -7714,16 +7702,16 @@ export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = Throughp * 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; + }; }; /** @@ -7734,16 +7722,16 @@ export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = Throug * 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; + }; }; /** @@ -7754,16 +7742,16 @@ export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = * 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; + }; }; /** @@ -7774,16 +7762,16 @@ export type RestorableDatabaseAccountsListByLocationResponse = RestorableDatabas * 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: RestorableDatabaseAccountsListResult; + }; }; /** @@ -7794,16 +7782,16 @@ export type RestorableDatabaseAccountsListResponse = RestorableDatabaseAccountsL * 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: RestorableDatabaseAccountsListResult; + }; }; /** @@ -7814,16 +7802,16 @@ export type RestorableDatabaseAccountsGetByLocationResponse = RestorableDatabase * 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: RestorableDatabaseAccountGetResult; + }; }; /** @@ -7834,16 +7822,16 @@ export type LocationListResponse = LocationListResult & { * 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: LocationListResult; + }; }; /** @@ -7854,16 +7842,16 @@ export type LocationGetResponse = LocationGetResult & { * 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: LocationGetResult; + }; }; /** @@ -7874,16 +7862,16 @@ export type NotebookWorkspacesListByDatabaseAccountResponse = NotebookWorkspaceL * 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: NotebookWorkspaceListResult; + }; }; /** @@ -7894,16 +7882,16 @@ 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: NotebookWorkspace; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookWorkspace; + }; }; /** @@ -7914,16 +7902,16 @@ 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: NotebookWorkspace; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookWorkspace; + }; }; /** @@ -7934,16 +7922,16 @@ export type NotebookWorkspacesListConnectionInfoResponse = NotebookWorkspaceConn * 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: NotebookWorkspaceConnectionInfoResult; + }; }; /** @@ -7954,16 +7942,16 @@ 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: NotebookWorkspace; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookWorkspace; + }; }; /** @@ -7974,16 +7962,16 @@ export type RestorableSqlDatabasesListResponse = RestorableSqlDatabasesListResul * 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: RestorableSqlDatabasesListResult; + }; }; /** @@ -7994,16 +7982,16 @@ export type RestorableSqlContainersListResponse = RestorableSqlContainersListRes * 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: RestorableSqlContainersListResult; + }; }; /** @@ -8014,16 +8002,16 @@ export type RestorableSqlResourcesListResponse = RestorableSqlResourcesListResul * 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: RestorableSqlResourcesListResult; + }; }; /** @@ -8034,16 +8022,16 @@ export type RestorableMongodbDatabasesListResponse = RestorableMongodbDatabasesL * 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: RestorableMongodbDatabasesListResult; + }; }; /** @@ -8054,16 +8042,16 @@ export type RestorableMongodbCollectionsListResponse = RestorableMongodbCollecti * 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: RestorableMongodbCollectionsListResult; + }; }; /** @@ -8074,16 +8062,16 @@ export type RestorableMongodbResourcesListResponse = RestorableMongodbResourcesL * 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: RestorableMongodbResourcesListResult; + }; }; /** @@ -8094,16 +8082,16 @@ export type CassandraClustersListBySubscriptionResponse = ListClusters & { * 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: ListClusters; + }; }; /** @@ -8114,16 +8102,16 @@ export type CassandraClustersListByResourceGroupResponse = ListClusters & { * 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: ListClusters; + }; }; /** @@ -8134,16 +8122,16 @@ export type CassandraClustersGetResponse = ClusterResource & { * 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: ClusterResource; + }; }; /** @@ -8154,16 +8142,16 @@ export type CassandraClustersCreateUpdateResponse = ClusterResource & { * 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: ClusterResource; + }; }; /** @@ -8174,16 +8162,16 @@ export type CassandraClustersUpdateResponse = ClusterResource & { * 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: ClusterResource; + }; }; /** @@ -8194,16 +8182,16 @@ export type CassandraClustersFetchNodeStatusResponse = ClusterNodeStatus & { * 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: ClusterNodeStatus; + }; }; /** @@ -8214,16 +8202,16 @@ export type CassandraClustersListBackupsMethodResponse = ListBackups & { * 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: ListBackups; + }; }; /** @@ -8234,16 +8222,16 @@ export type CassandraClustersGetBackupResponse = BackupResource & { * 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: BackupResource; + }; }; /** @@ -8254,16 +8242,16 @@ export type CassandraClustersBeginCreateUpdateResponse = ClusterResource & { * 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: ClusterResource; + }; }; /** @@ -8274,16 +8262,16 @@ export type CassandraClustersBeginUpdateResponse = ClusterResource & { * 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: ClusterResource; + }; }; /** @@ -8294,16 +8282,16 @@ export type CassandraClustersBeginFetchNodeStatusResponse = ClusterNodeStatus & * 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: ClusterNodeStatus; + }; }; /** @@ -8314,16 +8302,16 @@ export type CassandraDataCentersListResponse = ListDataCenters & { * 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: ListDataCenters; + }; }; /** @@ -8334,16 +8322,16 @@ export type CassandraDataCentersGetResponse = DataCenterResource & { * 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: DataCenterResource; + }; }; /** @@ -8354,16 +8342,16 @@ export type CassandraDataCentersCreateUpdateResponse = DataCenterResource & { * 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: DataCenterResource; + }; }; /** @@ -8374,16 +8362,16 @@ export type CassandraDataCentersUpdateResponse = DataCenterResource & { * 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: DataCenterResource; + }; }; /** @@ -8394,16 +8382,16 @@ export type CassandraDataCentersBeginCreateUpdateResponse = DataCenterResource & * 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: DataCenterResource; + }; }; /** @@ -8414,16 +8402,16 @@ export type CassandraDataCentersBeginUpdateResponse = DataCenterResource & { * 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: DataCenterResource; + }; }; /** @@ -8434,16 +8422,16 @@ export type PrivateLinkResourcesListByDatabaseAccountResponse = PrivateLinkResou * 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: PrivateLinkResourceListResult; + }; }; /** @@ -8454,16 +8442,16 @@ 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: PrivateLinkResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateLinkResource; + }; }; /** @@ -8474,16 +8462,16 @@ export type PrivateEndpointConnectionsListByDatabaseAccountResponse = PrivateEnd * 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: PrivateEndpointConnectionListResult; + }; }; /** @@ -8494,16 +8482,16 @@ 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: PrivateEndpointConnection; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; + }; }; /** @@ -8514,16 +8502,16 @@ export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointCo * 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: PrivateEndpointConnection; + }; }; /** @@ -8534,16 +8522,16 @@ export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpo * 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: PrivateEndpointConnection; + }; }; /** @@ -8554,16 +8542,16 @@ export type ServiceListResponse = ServiceResourceListResult & { * 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: ServiceResourceListResult; + }; }; /** @@ -8574,16 +8562,16 @@ export type ServiceCreateResponse = ServiceResource & { * 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: ServiceResource; + }; }; /** @@ -8594,16 +8582,16 @@ export type ServiceGetResponse = ServiceResource & { * 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: ServiceResource; + }; }; /** @@ -8614,14 +8602,14 @@ export type ServiceBeginCreateResponse = ServiceResource & { * 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: ServiceResource; + }; }; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts index d158bbada1cd..6d0310fa7afe 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts @@ -39,13 +39,7 @@ export const ConsistencyPolicy: msRest.CompositeMapper = { serializedName: "defaultConsistencyLevel", type: { name: "Enum", - allowedValues: [ - "Eventual", - "Session", - "BoundedStaleness", - "Strong", - "ConsistentPrefix" - ] + allowedValues: ["Eventual", "Session", "BoundedStaleness", "Strong", "ConsistentPrefix"] } }, maxStalenessPrefix: { @@ -577,7 +571,7 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { ...ARMResourceProperties.type.modelProperties, kind: { serializedName: "kind", - defaultValue: 'GlobalDocumentDB', + defaultValue: "GlobalDocumentDB", type: { name: "String" } @@ -600,9 +594,7 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { serializedName: "properties.databaseAccountOfferType", type: { name: "Enum", - allowedValues: [ - "Standard" - ] + allowedValues: ["Standard"] } }, ipRules: { @@ -795,7 +787,7 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { }, createMode: { serializedName: "properties.createMode", - defaultValue: 'Default', + defaultValue: "Default", type: { name: "String" } @@ -830,10 +822,7 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { serializedName: "properties.networkAclBypass", type: { name: "Enum", - allowedValues: [ - "None", - "AzureServices" - ] + allowedValues: ["None", "AzureServices"] } }, networkAclBypassResourceIds: { @@ -976,7 +965,7 @@ export const Indexes: msRest.CompositeMapper = { modelProperties: { dataType: { serializedName: "dataType", - defaultValue: 'String', + defaultValue: "String", type: { name: "String" } @@ -989,7 +978,7 @@ export const Indexes: msRest.CompositeMapper = { }, kind: { serializedName: "kind", - defaultValue: 'Hash', + defaultValue: "Hash", type: { name: "String" } @@ -1105,7 +1094,7 @@ export const IndexingPolicy: msRest.CompositeMapper = { }, indexingMode: { serializedName: "indexingMode", - defaultValue: 'consistent', + defaultValue: "consistent", type: { name: "String" } @@ -1186,7 +1175,7 @@ export const ContainerPartitionKey: msRest.CompositeMapper = { }, kind: { serializedName: "kind", - defaultValue: 'Hash', + defaultValue: "Hash", type: { name: "String" } @@ -1263,7 +1252,7 @@ export const ConflictResolutionPolicy: msRest.CompositeMapper = { modelProperties: { mode: { serializedName: "mode", - defaultValue: 'LastWriterWins', + defaultValue: "LastWriterWins", type: { name: "String" } @@ -2479,12 +2468,7 @@ export const ManagedServiceIdentity: msRest.CompositeMapper = { serializedName: "type", type: { name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned,UserAssigned", - "None" - ] + allowedValues: ["SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned", "None"] } }, userAssignedIdentities: { @@ -2746,7 +2730,7 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { required: true, isConstant: true, serializedName: "databaseAccountOfferType", - defaultValue: 'Standard', + defaultValue: "Standard", type: { name: "String" } @@ -2883,10 +2867,7 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { serializedName: "networkAclBypass", type: { name: "Enum", - allowedValues: [ - "None", - "AzureServices" - ] + allowedValues: ["None", "AzureServices"] } }, networkAclBypassResourceIds: { @@ -2953,7 +2934,7 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { ...ARMResourceProperties.type.modelProperties, kind: { serializedName: "kind", - defaultValue: 'GlobalDocumentDB', + defaultValue: "GlobalDocumentDB", type: { name: "String" } @@ -3145,10 +3126,7 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { serializedName: "properties.networkAclBypass", type: { name: "Enum", - allowedValues: [ - "None", - "AzureServices" - ] + allowedValues: ["None", "AzureServices"] } }, networkAclBypassResourceIds: { @@ -4972,10 +4950,7 @@ export const SqlRoleDefinitionCreateUpdateParameters: msRest.CompositeMapper = { serializedName: "properties.type", type: { name: "Enum", - allowedValues: [ - "BuiltInRole", - "CustomRole" - ] + allowedValues: ["BuiltInRole", "CustomRole"] } }, assignableScopes: { @@ -5022,10 +4997,7 @@ export const SqlRoleDefinitionGetResults: msRest.CompositeMapper = { serializedName: "properties.type", type: { name: "Enum", - allowedValues: [ - "BuiltInRole", - "CustomRole" - ] + allowedValues: ["BuiltInRole", "CustomRole"] } }, assignableScopes: { @@ -7139,14 +7111,13 @@ 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, + DatabaseAccountCreateUpdateProperties: DatabaseAccountCreateUpdateProperties, + "DatabaseAccountCreateUpdateProperties.Default": DefaultRequestDatabaseAccountCreateUpdateProperties, + "DatabaseAccountCreateUpdateProperties.Restore": RestoreReqeustDatabaseAccountCreateUpdateProperties, + "BackupPolicy.Periodic": PeriodicModeBackupPolicy, + "BackupPolicy.Continuous": ContinuousModeBackupPolicy, + ServiceResourceProperties: ServiceResourceProperties, + "ServiceResourceProperties.DataTransferServiceResourceProperties": DataTransferServiceResourceProperties, + "ServiceResourceProperties.SqlDedicatedGatewayServiceResourceProperties": SqlDedicatedGatewayServiceResourceProperties }; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts index f2a0c394aa7e..d0afe7fcb0b7 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" } @@ -143,10 +143,7 @@ export const dataCenterName: msRest.OperationURLParameter = { } }; export const endTime: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "endTime" - ], + parameterPath: ["options", "endTime"], mapper: { serializedName: "endTime", type: { @@ -165,10 +162,7 @@ export const filter0: msRest.OperationQueryParameter = { } }; export const filter1: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "filter" - ], + parameterPath: ["options", "filter"], mapper: { serializedName: "$filter", type: { @@ -243,7 +237,7 @@ export const notebookWorkspaceName: msRest.OperationURLParameter = { required: true, isConstant: true, serializedName: "notebookWorkspaceName", - defaultValue: 'default', + defaultValue: "default", type: { name: "String" } @@ -295,10 +289,7 @@ export const resourceGroupName: msRest.OperationURLParameter = { } }; export const restorableMongodbDatabaseRid: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "restorableMongodbDatabaseRid" - ], + parameterPath: ["options", "restorableMongodbDatabaseRid"], mapper: { serializedName: "restorableMongodbDatabaseRid", type: { @@ -307,10 +298,7 @@ export const restorableMongodbDatabaseRid: msRest.OperationQueryParameter = { } }; export const restorableSqlDatabaseRid: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "restorableSqlDatabaseRid" - ], + parameterPath: ["options", "restorableSqlDatabaseRid"], mapper: { serializedName: "restorableSqlDatabaseRid", type: { @@ -319,10 +307,7 @@ export const restorableSqlDatabaseRid: msRest.OperationQueryParameter = { } }; export const restoreLocation: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "restoreLocation" - ], + parameterPath: ["options", "restoreLocation"], mapper: { serializedName: "restoreLocation", type: { @@ -331,10 +316,7 @@ export const restoreLocation: msRest.OperationQueryParameter = { } }; export const restoreTimestampInUtc: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "restoreTimestampInUtc" - ], + parameterPath: ["options", "restoreTimestampInUtc"], mapper: { serializedName: "restoreTimestampInUtc", type: { @@ -387,10 +369,7 @@ 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/operations/cassandraClusters.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts index 40be501ddd67..81f23ee93f35 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts @@ -31,7 +31,9 @@ export class CassandraClusters { * @param [options] The optional parameters * @returns Promise */ - listBySubscription(options?: msRest.RequestOptionsBase): Promise; + listBySubscription( + options?: msRest.RequestOptionsBase + ): Promise; /** * @param callback The callback */ @@ -40,14 +42,21 @@ export class CassandraClusters { * @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 { + 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; + callback + ) as Promise; } /** @@ -56,26 +65,41 @@ export class CassandraClusters { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): 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; + 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 { + 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; + callback + ) as Promise; } /** @@ -85,21 +109,39 @@ export class CassandraClusters { * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): 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; + 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 { + 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, @@ -107,7 +149,8 @@ export class CassandraClusters { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -117,9 +160,14 @@ export class CassandraClusters { * @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()); + deleteMethod( + resourceGroupName: string, + clusterName: string, + options?: msRest.RequestOptionsBase + ): Promise { + return this.beginDeleteMethod(resourceGroupName, clusterName, options).then((lroPoller) => + lroPoller.pollUntilFinished() + ); } /** @@ -131,9 +179,15 @@ export class CassandraClusters { * @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; + 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; } /** @@ -144,9 +198,15 @@ export class CassandraClusters { * @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; + 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; } /** @@ -157,9 +217,18 @@ export class CassandraClusters { * @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()); + requestRepair( + resourceGroupName: string, + clusterName: string, + body: Models.RepairPostBody, + options?: msRest.RequestOptionsBase + ): Promise { + return this.beginRequestRepair( + resourceGroupName, + clusterName, + body, + options + ).then((lroPoller) => lroPoller.pollUntilFinished()); } /** @@ -169,9 +238,14 @@ export class CassandraClusters { * @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; + fetchNodeStatus( + resourceGroupName: string, + clusterName: string, + options?: msRest.RequestOptionsBase + ): Promise { + return this.beginFetchNodeStatus(resourceGroupName, clusterName, options).then((lroPoller) => + lroPoller.pollUntilFinished() + ) as Promise; } /** @@ -181,21 +255,39 @@ export class CassandraClusters { * @param [options] The optional parameters * @returns Promise */ - listBackupsMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): 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; + 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 { + 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, @@ -203,7 +295,8 @@ export class CassandraClusters { options }, listBackupsMethodOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -214,14 +307,24 @@ export class CassandraClusters { * @param [options] The optional parameters * @returns Promise */ - getBackup(resourceGroupName: string, clusterName: string, backupId: string, options?: msRest.RequestOptionsBase): 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; + 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. @@ -229,8 +332,20 @@ export class CassandraClusters { * @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 { + 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, @@ -239,7 +354,8 @@ export class CassandraClusters { options }, getBackupOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -249,7 +365,11 @@ export class CassandraClusters { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod( + resourceGroupName: string, + clusterName: string, + options?: msRest.RequestOptionsBase + ): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -257,7 +377,8 @@ export class CassandraClusters { options }, beginDeleteMethodOperationSpec, - options); + options + ); } /** @@ -269,7 +390,12 @@ export class CassandraClusters { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdate(resourceGroupName: string, clusterName: string, body: Models.ClusterResource, options?: msRest.RequestOptionsBase): Promise { + beginCreateUpdate( + resourceGroupName: string, + clusterName: string, + body: Models.ClusterResource, + options?: msRest.RequestOptionsBase + ): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -278,7 +404,8 @@ export class CassandraClusters { options }, beginCreateUpdateOperationSpec, - options); + options + ); } /** @@ -289,7 +416,12 @@ export class CassandraClusters { * @param [options] The optional parameters * @returns Promise */ - beginUpdate(resourceGroupName: string, clusterName: string, body: Models.ClusterResource, options?: msRest.RequestOptionsBase): Promise { + beginUpdate( + resourceGroupName: string, + clusterName: string, + body: Models.ClusterResource, + options?: msRest.RequestOptionsBase + ): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -298,7 +430,8 @@ export class CassandraClusters { options }, beginUpdateOperationSpec, - options); + options + ); } /** @@ -309,7 +442,12 @@ export class CassandraClusters { * @param [options] The optional parameters * @returns Promise */ - beginRequestRepair(resourceGroupName: string, clusterName: string, body: Models.RepairPostBody, options?: msRest.RequestOptionsBase): Promise { + beginRequestRepair( + resourceGroupName: string, + clusterName: string, + body: Models.RepairPostBody, + options?: msRest.RequestOptionsBase + ): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -318,7 +456,8 @@ export class CassandraClusters { options }, beginRequestRepairOperationSpec, - options); + options + ); } /** @@ -328,7 +467,11 @@ export class CassandraClusters { * @param [options] The optional parameters * @returns Promise */ - beginFetchNodeStatus(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + beginFetchNodeStatus( + resourceGroupName: string, + clusterName: string, + options?: msRest.RequestOptionsBase + ): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -336,7 +479,8 @@ export class CassandraClusters { options }, beginFetchNodeStatusOperationSpec, - options); + options + ); } } @@ -345,15 +489,9 @@ 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 - ], + urlParameters: [Parameters.subscriptionId], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.ListClusters @@ -367,17 +505,11 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { 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 - ], + 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 @@ -391,18 +523,11 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { 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 - ], + 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 @@ -416,18 +541,11 @@ const getOperationSpec: msRest.OperationSpec = { 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 - ], + 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 @@ -441,19 +559,16 @@ const listBackupsMethodOperationSpec: msRest.OperationSpec = { const getBackupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups/{backupId}", + 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 - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.BackupResource @@ -467,18 +582,11 @@ const getBackupOperationSpec: msRest.OperationSpec = { 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 - ], + 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: {}, @@ -491,18 +599,11 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 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 - ], + 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: { @@ -526,18 +627,11 @@ const beginCreateUpdateOperationSpec: msRest.OperationSpec = { 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 - ], + 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: { @@ -561,18 +655,11 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { 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 - ], + 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: { @@ -591,18 +678,11 @@ const beginRequestRepairOperationSpec: msRest.OperationSpec = { 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 - ], + 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts index 3356998a5e46..e084c5afd55c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts @@ -33,21 +33,39 @@ export class CassandraDataCenters { * @param [options] The optional parameters * @returns Promise */ - list(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): 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; + 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 { + 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, @@ -55,7 +73,8 @@ export class CassandraDataCenters { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -66,14 +85,24 @@ export class CassandraDataCenters { * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, clusterName: string, dataCenterName: string, options?: msRest.RequestOptionsBase): 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; + 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. @@ -81,8 +110,20 @@ export class CassandraDataCenters { * @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 { + 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, @@ -91,7 +132,8 @@ export class CassandraDataCenters { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -102,9 +144,18 @@ export class CassandraDataCenters { * @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()); + deleteMethod( + resourceGroupName: string, + clusterName: string, + dataCenterName: string, + options?: msRest.RequestOptionsBase + ): Promise { + return this.beginDeleteMethod( + resourceGroupName, + clusterName, + dataCenterName, + options + ).then((lroPoller) => lroPoller.pollUntilFinished()); } /** @@ -117,9 +168,22 @@ export class CassandraDataCenters { * @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; + 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 + >; } /** @@ -131,9 +195,22 @@ export class CassandraDataCenters { * @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; + 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 + >; } /** @@ -144,7 +221,12 @@ export class CassandraDataCenters { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, clusterName: string, dataCenterName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod( + resourceGroupName: string, + clusterName: string, + dataCenterName: string, + options?: msRest.RequestOptionsBase + ): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -153,7 +235,8 @@ export class CassandraDataCenters { options }, beginDeleteMethodOperationSpec, - options); + options + ); } /** @@ -166,7 +249,13 @@ export class CassandraDataCenters { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdate(resourceGroupName: string, clusterName: string, dataCenterName: string, body: Models.DataCenterResource, options?: msRest.RequestOptionsBase): Promise { + beginCreateUpdate( + resourceGroupName: string, + clusterName: string, + dataCenterName: string, + body: Models.DataCenterResource, + options?: msRest.RequestOptionsBase + ): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -176,7 +265,8 @@ export class CassandraDataCenters { options }, beginCreateUpdateOperationSpec, - options); + options + ); } /** @@ -188,7 +278,13 @@ export class CassandraDataCenters { * @param [options] The optional parameters * @returns Promise */ - beginUpdate(resourceGroupName: string, clusterName: string, dataCenterName: string, body: Models.DataCenterResource, options?: msRest.RequestOptionsBase): Promise { + beginUpdate( + resourceGroupName: string, + clusterName: string, + dataCenterName: string, + body: Models.DataCenterResource, + options?: msRest.RequestOptionsBase + ): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -198,7 +294,8 @@ export class CassandraDataCenters { options }, beginUpdateOperationSpec, - options); + options + ); } } @@ -206,18 +303,11 @@ export class CassandraDataCenters { 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 - ], + 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 @@ -231,19 +321,16 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", + 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 - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.DataCenterResource @@ -257,19 +344,16 @@ const getOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", + 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 - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 202: {}, 204: {}, @@ -282,19 +366,16 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginCreateUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", + 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 - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "body", mapper: { @@ -318,19 +399,16 @@ const beginCreateUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", + 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 - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "body", mapper: { diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts index cc3d315664f3..59be05478d6e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts @@ -33,21 +33,41 @@ 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, @@ -55,7 +75,8 @@ export class CassandraResources { options }, listCassandraKeyspacesOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -67,14 +88,24 @@ 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. @@ -82,8 +113,22 @@ 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, @@ -92,7 +137,8 @@ export class CassandraResources { options }, getCassandraKeyspaceOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -105,9 +151,22 @@ 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; + 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 + >; } /** @@ -118,9 +177,18 @@ 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()); } /** @@ -132,14 +200,24 @@ 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. @@ -147,8 +225,22 @@ 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, @@ -157,7 +249,8 @@ export class CassandraResources { options }, getCassandraKeyspaceThroughputOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -170,9 +263,22 @@ 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; + 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 + >; } /** @@ -183,9 +289,20 @@ 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; + 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 + >; } /** @@ -196,9 +313,20 @@ 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; + 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 + >; } /** @@ -209,14 +337,24 @@ 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. @@ -224,8 +362,20 @@ 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, @@ -234,7 +384,8 @@ export class CassandraResources { options }, listCassandraTablesOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -246,7 +397,13 @@ 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. @@ -254,7 +411,13 @@ 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. @@ -263,8 +426,22 @@ 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, @@ -274,7 +451,8 @@ export class CassandraResources { options }, getCassandraTableOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -288,9 +466,24 @@ 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; + 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 + >; } /** @@ -302,9 +495,20 @@ 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()); } /** @@ -317,7 +521,13 @@ 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. @@ -325,7 +535,13 @@ 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. @@ -334,8 +550,24 @@ 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, @@ -345,7 +577,8 @@ export class CassandraResources { options }, getCassandraTableThroughputOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -359,9 +592,24 @@ 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; + 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 + >; } /** @@ -373,9 +621,22 @@ 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; + 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 + >; } /** @@ -387,9 +648,22 @@ 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; + 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 + >; } /** @@ -402,7 +676,13 @@ 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, @@ -412,7 +692,8 @@ export class CassandraResources { options }, beginCreateUpdateCassandraKeyspaceOperationSpec, - options); + options + ); } /** @@ -423,7 +704,12 @@ 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, @@ -432,7 +718,8 @@ export class CassandraResources { options }, beginDeleteCassandraKeyspaceOperationSpec, - options); + options + ); } /** @@ -445,7 +732,13 @@ 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, @@ -455,7 +748,8 @@ export class CassandraResources { options }, beginUpdateCassandraKeyspaceThroughputOperationSpec, - options); + options + ); } /** @@ -466,7 +760,12 @@ 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, @@ -475,7 +774,8 @@ export class CassandraResources { options }, beginMigrateCassandraKeyspaceToAutoscaleOperationSpec, - options); + options + ); } /** @@ -486,7 +786,12 @@ 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, @@ -495,7 +800,8 @@ export class CassandraResources { options }, beginMigrateCassandraKeyspaceToManualThroughputOperationSpec, - options); + options + ); } /** @@ -509,7 +815,14 @@ 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, @@ -520,7 +833,8 @@ export class CassandraResources { options }, beginCreateUpdateCassandraTableOperationSpec, - options); + options + ); } /** @@ -532,7 +846,13 @@ 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, @@ -542,7 +862,8 @@ export class CassandraResources { options }, beginDeleteCassandraTableOperationSpec, - options); + options + ); } /** @@ -556,7 +877,14 @@ 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, @@ -567,7 +895,8 @@ export class CassandraResources { options }, beginUpdateCassandraTableThroughputOperationSpec, - options); + options + ); } /** @@ -579,7 +908,13 @@ 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, @@ -589,7 +924,8 @@ export class CassandraResources { options }, beginMigrateCassandraTableToAutoscaleOperationSpec, - options); + options + ); } /** @@ -601,7 +937,13 @@ 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, @@ -611,7 +953,8 @@ export class CassandraResources { options }, beginMigrateCassandraTableToManualThroughputOperationSpec, - options); + options + ); } } @@ -619,18 +962,11 @@ 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 @@ -644,19 +980,16 @@ 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 @@ -670,19 +1003,16 @@ 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 @@ -696,19 +1026,16 @@ 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 @@ -722,7 +1049,8 @@ 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, @@ -730,12 +1058,8 @@ 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 @@ -749,7 +1073,8 @@ 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, @@ -757,12 +1082,8 @@ 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 @@ -776,19 +1097,16 @@ 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: { @@ -810,19 +1128,16 @@ 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: {}, @@ -835,19 +1150,16 @@ 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: { @@ -869,19 +1181,16 @@ 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 @@ -896,19 +1205,16 @@ 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 @@ -923,7 +1229,8 @@ 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, @@ -931,12 +1238,8 @@ const beginCreateUpdateCassandraTableOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "createUpdateCassandraTableParameters", mapper: { @@ -958,7 +1261,8 @@ 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, @@ -966,12 +1270,8 @@ const beginDeleteCassandraTableOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 202: {}, 204: {}, @@ -984,7 +1284,8 @@ 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, @@ -992,12 +1293,8 @@ const beginUpdateCassandraTableThroughputOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1019,7 +1316,8 @@ 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, @@ -1027,12 +1325,8 @@ 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 @@ -1047,7 +1341,8 @@ 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, @@ -1055,12 +1350,8 @@ 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 68c437ee319b..642c17104a8a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts @@ -33,21 +33,39 @@ 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, @@ -55,7 +73,8 @@ export class GremlinResources { options }, listGremlinDatabasesOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -67,14 +86,24 @@ 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. @@ -82,8 +111,20 @@ 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, @@ -92,7 +133,8 @@ export class GremlinResources { options }, getGremlinDatabaseOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -105,9 +147,22 @@ 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; + 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 + >; } /** @@ -118,9 +173,18 @@ 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()); } /** @@ -132,14 +196,24 @@ 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. @@ -147,8 +221,22 @@ 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, @@ -157,7 +245,8 @@ export class GremlinResources { options }, getGremlinDatabaseThroughputOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -170,9 +259,22 @@ 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; + 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 + >; } /** @@ -183,9 +285,20 @@ 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; + 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 + >; } /** @@ -196,9 +309,20 @@ 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; + 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 + >; } /** @@ -209,14 +333,24 @@ 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. @@ -224,8 +358,20 @@ 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, @@ -234,7 +380,8 @@ export class GremlinResources { options }, listGremlinGraphsOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -246,7 +393,13 @@ 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. @@ -254,7 +407,13 @@ 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. @@ -263,8 +422,22 @@ 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, @@ -274,7 +447,8 @@ export class GremlinResources { options }, getGremlinGraphOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -288,9 +462,24 @@ 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; + 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 + >; } /** @@ -302,9 +491,20 @@ 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()); } /** @@ -317,7 +517,13 @@ 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. @@ -325,7 +531,13 @@ 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. @@ -334,8 +546,24 @@ 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, @@ -345,7 +573,8 @@ export class GremlinResources { options }, getGremlinGraphThroughputOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -359,9 +588,24 @@ 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; + 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 + >; } /** @@ -373,9 +617,22 @@ 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; + 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 + >; } /** @@ -387,9 +644,22 @@ 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; + 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 + >; } /** @@ -402,7 +672,13 @@ 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, @@ -412,7 +688,8 @@ export class GremlinResources { options }, beginCreateUpdateGremlinDatabaseOperationSpec, - options); + options + ); } /** @@ -423,7 +700,12 @@ 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, @@ -432,7 +714,8 @@ export class GremlinResources { options }, beginDeleteGremlinDatabaseOperationSpec, - options); + options + ); } /** @@ -445,7 +728,13 @@ 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, @@ -455,7 +744,8 @@ export class GremlinResources { options }, beginUpdateGremlinDatabaseThroughputOperationSpec, - options); + options + ); } /** @@ -466,7 +756,12 @@ 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, @@ -475,7 +770,8 @@ export class GremlinResources { options }, beginMigrateGremlinDatabaseToAutoscaleOperationSpec, - options); + options + ); } /** @@ -486,7 +782,12 @@ 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, @@ -495,7 +796,8 @@ export class GremlinResources { options }, beginMigrateGremlinDatabaseToManualThroughputOperationSpec, - options); + options + ); } /** @@ -509,7 +811,14 @@ 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, @@ -520,7 +829,8 @@ export class GremlinResources { options }, beginCreateUpdateGremlinGraphOperationSpec, - options); + options + ); } /** @@ -532,7 +842,13 @@ 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, @@ -542,7 +858,8 @@ export class GremlinResources { options }, beginDeleteGremlinGraphOperationSpec, - options); + options + ); } /** @@ -556,7 +873,14 @@ 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, @@ -567,7 +891,8 @@ export class GremlinResources { options }, beginUpdateGremlinGraphThroughputOperationSpec, - options); + options + ); } /** @@ -579,7 +904,13 @@ 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, @@ -589,7 +920,8 @@ export class GremlinResources { options }, beginMigrateGremlinGraphToAutoscaleOperationSpec, - options); + options + ); } /** @@ -601,7 +933,13 @@ 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, @@ -611,7 +949,8 @@ export class GremlinResources { options }, beginMigrateGremlinGraphToManualThroughputOperationSpec, - options); + options + ); } } @@ -619,18 +958,11 @@ 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 @@ -644,19 +976,16 @@ 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 @@ -670,19 +999,16 @@ 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 @@ -696,19 +1022,16 @@ 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 @@ -722,7 +1045,8 @@ 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, @@ -730,12 +1054,8 @@ 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 @@ -749,7 +1069,8 @@ 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, @@ -757,12 +1078,8 @@ 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 @@ -776,19 +1093,16 @@ 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: { @@ -810,19 +1124,16 @@ 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: {}, @@ -835,19 +1146,16 @@ 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: { @@ -869,19 +1177,16 @@ 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 @@ -896,19 +1201,16 @@ 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 @@ -923,7 +1225,8 @@ 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, @@ -931,12 +1234,8 @@ const beginCreateUpdateGremlinGraphOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "createUpdateGremlinGraphParameters", mapper: { @@ -958,7 +1257,8 @@ 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, @@ -966,12 +1266,8 @@ const beginDeleteGremlinGraphOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 202: {}, 204: {}, @@ -984,7 +1280,8 @@ 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, @@ -992,12 +1289,8 @@ const beginUpdateGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1019,7 +1312,8 @@ 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, @@ -1027,12 +1321,8 @@ 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 @@ -1047,7 +1337,8 @@ 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, @@ -1055,12 +1346,8 @@ 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/mongoDBResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts index 11847cee69eb..2597d4823fa8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts @@ -33,21 +33,39 @@ 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, @@ -55,7 +73,8 @@ export class MongoDBResources { options }, listMongoDBDatabasesOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -67,14 +86,24 @@ 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. @@ -82,8 +111,20 @@ 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, @@ -92,7 +133,8 @@ export class MongoDBResources { options }, getMongoDBDatabaseOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -105,9 +147,22 @@ 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; + 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 + >; } /** @@ -118,9 +173,18 @@ 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()); } /** @@ -132,14 +196,24 @@ 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. @@ -147,8 +221,22 @@ 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, @@ -157,7 +245,8 @@ export class MongoDBResources { options }, getMongoDBDatabaseThroughputOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -170,9 +259,22 @@ 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; + 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 + >; } /** @@ -183,9 +285,20 @@ 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; + 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 + >; } /** @@ -196,9 +309,20 @@ 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; + 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 + >; } /** @@ -209,14 +333,24 @@ 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. @@ -224,8 +358,22 @@ 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, @@ -234,7 +382,8 @@ export class MongoDBResources { options }, listMongoDBCollectionsOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -246,7 +395,13 @@ 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. @@ -254,7 +409,13 @@ 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. @@ -263,8 +424,24 @@ 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, @@ -274,7 +451,8 @@ export class MongoDBResources { options }, getMongoDBCollectionOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -288,9 +466,24 @@ 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; + 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 + >; } /** @@ -302,9 +495,20 @@ 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()); } /** @@ -317,7 +521,13 @@ 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. @@ -325,7 +535,13 @@ 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. @@ -334,8 +550,24 @@ 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, @@ -345,7 +577,8 @@ export class MongoDBResources { options }, getMongoDBCollectionThroughputOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -359,9 +592,24 @@ 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; + 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 + >; } /** @@ -373,9 +621,22 @@ 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; + 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 + >; } /** @@ -387,9 +648,22 @@ 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; + 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 + >; } /** @@ -402,7 +676,13 @@ 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, @@ -412,7 +692,8 @@ export class MongoDBResources { options }, beginCreateUpdateMongoDBDatabaseOperationSpec, - options); + options + ); } /** @@ -423,7 +704,12 @@ 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, @@ -432,7 +718,8 @@ export class MongoDBResources { options }, beginDeleteMongoDBDatabaseOperationSpec, - options); + options + ); } /** @@ -445,7 +732,13 @@ 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, @@ -455,7 +748,8 @@ export class MongoDBResources { options }, beginUpdateMongoDBDatabaseThroughputOperationSpec, - options); + options + ); } /** @@ -466,7 +760,12 @@ 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, @@ -475,7 +774,8 @@ export class MongoDBResources { options }, beginMigrateMongoDBDatabaseToAutoscaleOperationSpec, - options); + options + ); } /** @@ -486,7 +786,12 @@ 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, @@ -495,7 +800,8 @@ export class MongoDBResources { options }, beginMigrateMongoDBDatabaseToManualThroughputOperationSpec, - options); + options + ); } /** @@ -509,7 +815,14 @@ 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, @@ -520,7 +833,8 @@ export class MongoDBResources { options }, beginCreateUpdateMongoDBCollectionOperationSpec, - options); + options + ); } /** @@ -532,7 +846,13 @@ 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, @@ -542,7 +862,8 @@ export class MongoDBResources { options }, beginDeleteMongoDBCollectionOperationSpec, - options); + options + ); } /** @@ -556,7 +877,14 @@ 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, @@ -567,7 +895,8 @@ export class MongoDBResources { options }, beginUpdateMongoDBCollectionThroughputOperationSpec, - options); + options + ); } /** @@ -579,7 +908,13 @@ 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, @@ -589,7 +924,8 @@ export class MongoDBResources { options }, beginMigrateMongoDBCollectionToAutoscaleOperationSpec, - options); + options + ); } /** @@ -601,7 +937,13 @@ 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, @@ -611,7 +953,8 @@ export class MongoDBResources { options }, beginMigrateMongoDBCollectionToManualThroughputOperationSpec, - options); + options + ); } } @@ -619,18 +962,11 @@ 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 @@ -644,19 +980,16 @@ 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 @@ -670,19 +1003,16 @@ 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 @@ -696,19 +1026,16 @@ 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 @@ -722,7 +1049,8 @@ 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, @@ -730,12 +1058,8 @@ 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 @@ -749,7 +1073,8 @@ 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, @@ -757,12 +1082,8 @@ 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 @@ -776,19 +1097,16 @@ 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: { @@ -810,19 +1128,16 @@ 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: {}, @@ -835,19 +1150,16 @@ 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: { @@ -869,19 +1181,16 @@ 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 @@ -896,19 +1205,16 @@ 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 @@ -923,7 +1229,8 @@ 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, @@ -931,12 +1238,8 @@ const beginCreateUpdateMongoDBCollectionOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.collectionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "createUpdateMongoDBCollectionParameters", mapper: { @@ -958,7 +1261,8 @@ 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, @@ -966,12 +1270,8 @@ const beginDeleteMongoDBCollectionOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.collectionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 202: {}, 204: {}, @@ -984,7 +1284,8 @@ 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, @@ -992,12 +1293,8 @@ const beginUpdateMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec Parameters.databaseName, Parameters.collectionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1019,7 +1316,8 @@ 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, @@ -1027,12 +1325,8 @@ 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 @@ -1047,7 +1341,8 @@ 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, @@ -1055,12 +1350,8 @@ 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 196125de93ea..364e09f1883b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts @@ -33,26 +33,43 @@ 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; } /** @@ -70,14 +87,23 @@ 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; } /** @@ -88,21 +114,41 @@ 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, @@ -110,7 +156,8 @@ export class RestorableDatabaseAccounts { options }, getByLocationOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -118,17 +165,11 @@ 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 @@ -143,15 +184,9 @@ 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 @@ -165,18 +200,11 @@ 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 0fe490a4c3e3..2395844f84d6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts @@ -34,21 +34,41 @@ 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, @@ -56,7 +76,8 @@ export class RestorableMongodbCollections { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -64,19 +85,11 @@ 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 5144f20e34df..aa5b26b47e8e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts @@ -35,21 +35,41 @@ 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, @@ -57,7 +77,8 @@ export class RestorableMongodbDatabases { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -65,18 +86,11 @@ 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 5d4f07933664..fb3476425279 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts @@ -35,21 +35,41 @@ 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, @@ -57,7 +77,8 @@ export class RestorableMongodbResources { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -65,20 +86,15 @@ 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 b193a249a6b0..caa3a87402f2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts @@ -34,21 +34,41 @@ 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, @@ -56,7 +76,8 @@ export class RestorableSqlContainers { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -64,21 +85,16 @@ 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 49eb4039b1d9..10f3e4e137c3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts @@ -35,21 +35,41 @@ 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, @@ -57,7 +77,8 @@ export class RestorableSqlDatabases { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -65,18 +86,11 @@ 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 da5a23fb80d4..f60e04f80dd7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts @@ -35,21 +35,41 @@ 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, @@ -57,7 +77,8 @@ export class RestorableSqlResources { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -65,20 +86,15 @@ 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 index b6dcd1a688d2..10582f113afd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/service.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/service.ts @@ -33,21 +33,39 @@ export class Service { * @param [options] The optional parameters * @returns Promise */ - list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): 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; + 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 { + 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, @@ -55,7 +73,8 @@ export class Service { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -67,9 +86,20 @@ export class Service { * @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; + 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; } /** @@ -80,14 +110,24 @@ export class Service { * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, accountName: string, serviceName: string, options?: msRest.RequestOptionsBase): 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; + 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. @@ -95,8 +135,20 @@ export class Service { * @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 { + 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, @@ -105,7 +157,8 @@ export class Service { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -116,9 +169,18 @@ export class Service { * @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()); + deleteMethod( + resourceGroupName: string, + accountName: string, + serviceName: string, + options?: msRest.RequestOptionsBase + ): Promise { + return this.beginDeleteMethod( + resourceGroupName, + accountName, + serviceName, + options + ).then((lroPoller) => lroPoller.pollUntilFinished()); } /** @@ -130,7 +192,13 @@ export class Service { * @param [options] The optional parameters * @returns Promise */ - beginCreate(resourceGroupName: string, accountName: string, serviceName: string, createUpdateParameters: Models.ServiceResource, options?: msRest.RequestOptionsBase): Promise { + beginCreate( + resourceGroupName: string, + accountName: string, + serviceName: string, + createUpdateParameters: Models.ServiceResource, + options?: msRest.RequestOptionsBase + ): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -140,7 +208,8 @@ export class Service { options }, beginCreateOperationSpec, - options); + options + ); } /** @@ -151,7 +220,12 @@ export class Service { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, accountName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod( + resourceGroupName: string, + accountName: string, + serviceName: string, + options?: msRest.RequestOptionsBase + ): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -160,7 +234,8 @@ export class Service { options }, beginDeleteMethodOperationSpec, - options); + options + ); } } @@ -168,18 +243,11 @@ export class Service { 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 - ], + 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 @@ -193,19 +261,16 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}", + 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 - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.ServiceResource @@ -219,19 +284,16 @@ const getOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}", + 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 - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "createUpdateParameters", mapper: { @@ -253,19 +315,16 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}", + 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 - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: {}, 202: {}, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts index e67a7b06ff64..1c2415ee7d52 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts @@ -33,21 +33,39 @@ 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, @@ -55,7 +73,8 @@ export class SqlResources { options }, listSqlDatabasesOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -66,14 +85,24 @@ 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. @@ -81,8 +110,20 @@ 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, @@ -91,7 +132,8 @@ export class SqlResources { options }, getSqlDatabaseOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -103,9 +145,22 @@ 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; + 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 + >; } /** @@ -116,9 +171,18 @@ 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()); } /** @@ -130,14 +194,24 @@ 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. @@ -145,8 +219,22 @@ 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, @@ -155,7 +243,8 @@ export class SqlResources { options }, getSqlDatabaseThroughputOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -168,9 +257,22 @@ 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; + 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 + >; } /** @@ -181,9 +283,20 @@ 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; + 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 + >; } /** @@ -194,9 +307,20 @@ 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; + 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 + >; } /** @@ -207,14 +331,24 @@ 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. @@ -222,8 +356,20 @@ 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, @@ -232,7 +378,8 @@ export class SqlResources { options }, listSqlContainersOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -244,7 +391,13 @@ 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. @@ -252,7 +405,13 @@ 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. @@ -261,8 +420,22 @@ 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, @@ -272,7 +445,8 @@ export class SqlResources { options }, getSqlContainerOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -286,9 +460,24 @@ 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; + 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 + >; } /** @@ -300,9 +489,20 @@ 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()); } /** @@ -314,7 +514,13 @@ 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. @@ -322,7 +528,13 @@ 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. @@ -331,8 +543,24 @@ 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, @@ -342,7 +570,8 @@ export class SqlResources { options }, getSqlContainerThroughputOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -356,9 +585,24 @@ 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; + 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 + >; } /** @@ -370,9 +614,22 @@ 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; + 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 + >; } /** @@ -384,9 +641,22 @@ 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; + 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 + >; } /** @@ -398,7 +668,13 @@ 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. @@ -406,7 +682,13 @@ 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. @@ -415,8 +697,24 @@ 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, @@ -426,7 +724,8 @@ export class SqlResources { options }, listSqlStoredProceduresOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -439,7 +738,14 @@ 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. @@ -448,7 +754,14 @@ 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. @@ -458,8 +771,26 @@ 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, @@ -470,7 +801,8 @@ export class SqlResources { options }, getSqlStoredProcedureOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -485,9 +817,26 @@ 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; + 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 + >; } /** @@ -500,9 +849,22 @@ 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()); } /** @@ -514,7 +876,13 @@ 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. @@ -522,7 +890,13 @@ 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. @@ -531,8 +905,24 @@ 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, @@ -542,7 +932,8 @@ export class SqlResources { options }, listSqlUserDefinedFunctionsOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -555,7 +946,14 @@ 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. @@ -564,7 +962,14 @@ 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. @@ -574,8 +979,26 @@ 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, @@ -586,7 +1009,8 @@ export class SqlResources { options }, getSqlUserDefinedFunctionOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -601,9 +1025,26 @@ 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; + 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 + >; } /** @@ -616,9 +1057,22 @@ 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()); } /** @@ -630,7 +1084,13 @@ 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. @@ -638,7 +1098,13 @@ 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. @@ -647,8 +1113,22 @@ 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, @@ -658,7 +1138,8 @@ export class SqlResources { options }, listSqlTriggersOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -671,7 +1152,14 @@ 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. @@ -680,7 +1168,14 @@ 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. @@ -690,8 +1185,24 @@ 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, @@ -702,7 +1213,8 @@ export class SqlResources { options }, getSqlTriggerOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -716,9 +1228,26 @@ 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; + 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 + >; } /** @@ -731,9 +1260,22 @@ 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()); + 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()); } /** @@ -746,9 +1288,24 @@ export class SqlResources { * @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; + 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 + >; } /** @@ -759,14 +1316,24 @@ 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. @@ -774,8 +1341,22 @@ 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, @@ -784,7 +1365,8 @@ export class SqlResources { options }, getSqlRoleDefinitionOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -797,9 +1379,22 @@ 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; + 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 + >; } /** @@ -810,9 +1405,18 @@ 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()); } /** @@ -822,21 +1426,41 @@ 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, @@ -844,7 +1468,8 @@ export class SqlResources { options }, listSqlRoleDefinitionsOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -855,14 +1480,24 @@ 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. @@ -870,8 +1505,22 @@ 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, @@ -880,7 +1529,8 @@ export class SqlResources { options }, getSqlRoleAssignmentOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -893,9 +1543,22 @@ 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; + 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 + >; } /** @@ -906,9 +1569,18 @@ 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()); } /** @@ -918,21 +1590,41 @@ 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, @@ -940,7 +1632,8 @@ export class SqlResources { options }, listSqlRoleAssignmentsOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -952,7 +1645,13 @@ 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, @@ -962,7 +1661,8 @@ export class SqlResources { options }, beginCreateUpdateSqlDatabaseOperationSpec, - options); + options + ); } /** @@ -973,7 +1673,12 @@ 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, @@ -982,7 +1687,8 @@ export class SqlResources { options }, beginDeleteSqlDatabaseOperationSpec, - options); + options + ); } /** @@ -995,7 +1701,13 @@ 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, @@ -1005,7 +1717,8 @@ export class SqlResources { options }, beginUpdateSqlDatabaseThroughputOperationSpec, - options); + options + ); } /** @@ -1016,7 +1729,12 @@ 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, @@ -1025,7 +1743,8 @@ export class SqlResources { options }, beginMigrateSqlDatabaseToAutoscaleOperationSpec, - options); + options + ); } /** @@ -1036,7 +1755,12 @@ 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, @@ -1045,7 +1769,8 @@ export class SqlResources { options }, beginMigrateSqlDatabaseToManualThroughputOperationSpec, - options); + options + ); } /** @@ -1059,7 +1784,14 @@ 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, @@ -1070,7 +1802,8 @@ export class SqlResources { options }, beginCreateUpdateSqlContainerOperationSpec, - options); + options + ); } /** @@ -1082,7 +1815,13 @@ 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, @@ -1092,7 +1831,8 @@ export class SqlResources { options }, beginDeleteSqlContainerOperationSpec, - options); + options + ); } /** @@ -1106,7 +1846,14 @@ 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, @@ -1117,7 +1864,8 @@ export class SqlResources { options }, beginUpdateSqlContainerThroughputOperationSpec, - options); + options + ); } /** @@ -1129,7 +1877,13 @@ 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, @@ -1139,7 +1893,8 @@ export class SqlResources { options }, beginMigrateSqlContainerToAutoscaleOperationSpec, - options); + options + ); } /** @@ -1151,7 +1906,13 @@ 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, @@ -1161,7 +1922,8 @@ export class SqlResources { options }, beginMigrateSqlContainerToManualThroughputOperationSpec, - options); + options + ); } /** @@ -1176,7 +1938,15 @@ 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, @@ -1188,7 +1958,8 @@ export class SqlResources { options }, beginCreateUpdateSqlStoredProcedureOperationSpec, - options); + options + ); } /** @@ -1201,7 +1972,14 @@ 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, @@ -1212,7 +1990,8 @@ export class SqlResources { options }, beginDeleteSqlStoredProcedureOperationSpec, - options); + options + ); } /** @@ -1227,7 +2006,15 @@ 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, @@ -1239,7 +2026,8 @@ export class SqlResources { options }, beginCreateUpdateSqlUserDefinedFunctionOperationSpec, - options); + options + ); } /** @@ -1252,7 +2040,14 @@ 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, @@ -1263,7 +2058,8 @@ export class SqlResources { options }, beginDeleteSqlUserDefinedFunctionOperationSpec, - options); + options + ); } /** @@ -1277,7 +2073,15 @@ 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, @@ -1289,7 +2093,8 @@ export class SqlResources { options }, beginCreateUpdateSqlTriggerOperationSpec, - options); + options + ); } /** @@ -1302,7 +2107,14 @@ 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, @@ -1313,7 +2125,8 @@ export class SqlResources { options }, beginDeleteSqlTriggerOperationSpec, - options); + options + ); } /** @@ -1326,7 +2139,14 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginRetrieveContinuousBackupInformation(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, location: Models.ContinuousBackupRestoreLocation, options?: msRest.RequestOptionsBase): Promise { + beginRetrieveContinuousBackupInformation( + resourceGroupName: string, + accountName: string, + databaseName: string, + containerName: string, + location: Models.ContinuousBackupRestoreLocation, + options?: msRest.RequestOptionsBase + ): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1337,7 +2157,8 @@ export class SqlResources { options }, beginRetrieveContinuousBackupInformationOperationSpec, - options); + options + ); } /** @@ -1350,7 +2171,13 @@ 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, @@ -1360,7 +2187,8 @@ export class SqlResources { options }, beginCreateUpdateSqlRoleDefinitionOperationSpec, - options); + options + ); } /** @@ -1371,7 +2199,12 @@ 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, @@ -1380,7 +2213,8 @@ export class SqlResources { options }, beginDeleteSqlRoleDefinitionOperationSpec, - options); + options + ); } /** @@ -1393,7 +2227,13 @@ 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, @@ -1403,7 +2243,8 @@ export class SqlResources { options }, beginCreateUpdateSqlRoleAssignmentOperationSpec, - options); + options + ); } /** @@ -1414,7 +2255,12 @@ 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, @@ -1423,7 +2269,8 @@ export class SqlResources { options }, beginDeleteSqlRoleAssignmentOperationSpec, - options); + options + ); } } @@ -1431,18 +2278,11 @@ 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 @@ -1456,19 +2296,16 @@ 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 @@ -1482,19 +2319,16 @@ 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 @@ -1508,19 +2342,16 @@ 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 @@ -1534,7 +2365,8 @@ 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, @@ -1542,12 +2374,8 @@ 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 @@ -1561,7 +2389,8 @@ 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, @@ -1569,12 +2398,8 @@ 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 @@ -1588,7 +2413,8 @@ 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, @@ -1596,12 +2422,8 @@ 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 @@ -1615,7 +2437,8 @@ 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, @@ -1624,12 +2447,8 @@ 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 @@ -1643,7 +2462,8 @@ 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, @@ -1651,12 +2471,8 @@ 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 @@ -1670,7 +2486,8 @@ 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, @@ -1679,12 +2496,8 @@ 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 @@ -1698,7 +2511,8 @@ 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, @@ -1706,12 +2520,8 @@ 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 @@ -1725,7 +2535,8 @@ 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, @@ -1734,12 +2545,8 @@ 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 @@ -1753,19 +2560,16 @@ 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 @@ -1779,18 +2583,11 @@ 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 @@ -1804,19 +2601,16 @@ 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 @@ -1830,18 +2624,11 @@ 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 @@ -1855,19 +2642,16 @@ 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: { @@ -1889,19 +2673,16 @@ 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: {}, @@ -1914,19 +2695,16 @@ 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: { @@ -1948,19 +2726,16 @@ 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 @@ -1975,19 +2750,16 @@ 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 @@ -2002,7 +2774,8 @@ 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, @@ -2010,12 +2783,8 @@ const beginCreateUpdateSqlContainerOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "createUpdateSqlContainerParameters", mapper: { @@ -2037,7 +2806,8 @@ 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, @@ -2045,12 +2815,8 @@ const beginDeleteSqlContainerOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 202: {}, 204: {}, @@ -2063,7 +2829,8 @@ 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, @@ -2071,12 +2838,8 @@ const beginUpdateSqlContainerThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -2098,7 +2861,8 @@ 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, @@ -2106,12 +2870,8 @@ 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 @@ -2126,7 +2886,8 @@ 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, @@ -2134,12 +2895,8 @@ 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 @@ -2154,7 +2911,8 @@ 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, @@ -2163,12 +2921,8 @@ const beginCreateUpdateSqlStoredProcedureOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.storedProcedureName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "createUpdateSqlStoredProcedureParameters", mapper: { @@ -2190,7 +2944,8 @@ 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, @@ -2199,12 +2954,8 @@ const beginDeleteSqlStoredProcedureOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.storedProcedureName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 202: {}, 204: {}, @@ -2217,7 +2968,8 @@ 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, @@ -2226,12 +2978,8 @@ const beginCreateUpdateSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec Parameters.containerName, Parameters.userDefinedFunctionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "createUpdateSqlUserDefinedFunctionParameters", mapper: { @@ -2253,7 +3001,8 @@ 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, @@ -2262,12 +3011,8 @@ const beginDeleteSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.userDefinedFunctionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 202: {}, 204: {}, @@ -2280,7 +3025,8 @@ 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, @@ -2289,12 +3035,8 @@ const beginCreateUpdateSqlTriggerOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.triggerName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "createUpdateSqlTriggerParameters", mapper: { @@ -2316,7 +3058,8 @@ 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, @@ -2325,12 +3068,8 @@ const beginDeleteSqlTriggerOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.triggerName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 202: {}, 204: {}, @@ -2343,7 +3082,8 @@ const beginDeleteSqlTriggerOperationSpec: msRest.OperationSpec = { const beginRetrieveContinuousBackupInformationOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/retrieveContinuousBackupInformation", + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/retrieveContinuousBackupInformation", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2351,12 +3091,8 @@ const beginRetrieveContinuousBackupInformationOperationSpec: msRest.OperationSpe Parameters.databaseName, Parameters.containerName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "location", mapper: { @@ -2378,19 +3114,16 @@ 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: { @@ -2412,19 +3145,16 @@ 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: {}, @@ -2438,19 +3168,16 @@ 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: { @@ -2472,19 +3199,16 @@ 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: {}, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts index b0ccec17248b..2c51037b59b0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts @@ -33,21 +33,39 @@ 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, @@ -55,7 +73,8 @@ export class TableResources { options }, listTablesOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -66,14 +85,24 @@ 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. @@ -81,8 +110,20 @@ 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, @@ -91,7 +132,8 @@ export class TableResources { options }, getTableOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -103,9 +145,22 @@ 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; + 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 + >; } /** @@ -116,9 +171,18 @@ 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()); } /** @@ -130,14 +194,24 @@ 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. @@ -145,8 +219,22 @@ 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, @@ -155,7 +243,8 @@ export class TableResources { options }, getTableThroughputOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -168,9 +257,22 @@ 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; + 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 + >; } /** @@ -181,9 +283,20 @@ 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; + 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 + >; } /** @@ -194,9 +307,20 @@ 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; + 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 + >; } /** @@ -208,7 +332,13 @@ 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, @@ -218,7 +348,8 @@ export class TableResources { options }, beginCreateUpdateTableOperationSpec, - options); + options + ); } /** @@ -229,7 +360,12 @@ 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, @@ -238,7 +374,8 @@ export class TableResources { options }, beginDeleteTableOperationSpec, - options); + options + ); } /** @@ -251,7 +388,13 @@ 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, @@ -261,7 +404,8 @@ export class TableResources { options }, beginUpdateTableThroughputOperationSpec, - options); + options + ); } /** @@ -272,7 +416,12 @@ 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, @@ -281,7 +430,8 @@ export class TableResources { options }, beginMigrateTableToAutoscaleOperationSpec, - options); + options + ); } /** @@ -292,7 +442,12 @@ 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, @@ -301,7 +456,8 @@ export class TableResources { options }, beginMigrateTableToManualThroughputOperationSpec, - options); + options + ); } } @@ -309,18 +465,11 @@ 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 @@ -334,19 +483,16 @@ 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 @@ -360,19 +506,16 @@ 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 @@ -386,19 +529,16 @@ 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: { @@ -420,19 +560,16 @@ 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: {}, @@ -445,19 +582,16 @@ 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: { @@ -479,19 +613,16 @@ 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 @@ -506,19 +637,16 @@ 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