diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts index 21d46d89a9ef..cba63f35cc5b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts @@ -10,10 +10,10 @@ 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"; + class CosmosDBManagementClient extends CosmosDBManagementClientContext { // Operation groups databaseAccounts: operations.DatabaseAccounts; @@ -34,19 +34,9 @@ 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. @@ -54,11 +44,7 @@ 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); @@ -78,128 +64,13 @@ 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 d86495da1fe1..7f37d586ae7e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts @@ -25,43 +25,36 @@ 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) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = "2021-04-01-preview"; - this.acceptLanguage = "en-US"; + this.apiVersion = '2021-05-15'; + this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; this.requestContentType = "application/json; charset=utf-8"; this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if ( - options.longRunningOperationRetryTimeout !== null && - options.longRunningOperationRetryTimeout !== undefined - ) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts deleted file mode 100644 index 9e67fdfb9e8f..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ApiProperties, - ARMProxyResource, - ARMResourceProperties, - AutoscaleSettings, - AutoscaleSettingsResource, - AutoUpgradePolicyResource, - AzureEntityResource, - BackupPolicy, - BackupResource, - BackupResourceProperties, - BaseResource, - Capability, - CassandraKeyspaceCreateUpdateParameters, - CassandraKeyspaceGetPropertiesOptions, - CassandraKeyspaceGetPropertiesResource, - CassandraKeyspaceGetResults, - CassandraKeyspaceResource, - CassandraPartitionKey, - CassandraSchema, - CassandraTableCreateUpdateParameters, - CassandraTableGetPropertiesOptions, - CassandraTableGetPropertiesResource, - CassandraTableGetResults, - CassandraTableResource, - Certificate, - CloudError, - ClusterKey, - ClusterNodeStatus, - ClusterNodeStatusNodesItem, - ClusterResource, - ClusterResourceProperties, - Column, - CompositePath, - ConflictResolutionPolicy, - ConsistencyPolicy, - ContainerPartitionKey, - ContinuousModeBackupPolicy, - CorsPolicy, - CreateUpdateOptions, - DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, - DatabaseAccountGetResults, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, - ErrorResponse, - ExcludedPath, - FailoverPolicy, - GremlinDatabaseCreateUpdateParameters, - GremlinDatabaseGetPropertiesOptions, - GremlinDatabaseGetPropertiesResource, - GremlinDatabaseGetResults, - GremlinDatabaseResource, - GremlinGraphCreateUpdateParameters, - GremlinGraphGetPropertiesOptions, - GremlinGraphGetPropertiesResource, - GremlinGraphGetResults, - GremlinGraphResource, - IncludedPath, - Indexes, - IndexingPolicy, - IpAddressOrRange, - ListBackups, - ListClusters, - Location, - LocationGetResult, - LocationProperties, - ManagedServiceIdentity, - ManagedServiceIdentityUserAssignedIdentitiesValue, - MongoDBCollectionCreateUpdateParameters, - MongoDBCollectionGetPropertiesOptions, - MongoDBCollectionGetPropertiesResource, - MongoDBCollectionGetResults, - MongoDBCollectionResource, - MongoDBDatabaseCreateUpdateParameters, - MongoDBDatabaseGetPropertiesOptions, - MongoDBDatabaseGetPropertiesResource, - MongoDBDatabaseGetResults, - MongoDBDatabaseResource, - MongoIndex, - MongoIndexKeys, - MongoIndexOptions, - NotebookWorkspace, - NotebookWorkspaceCreateUpdateParameters, - OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, - Permission, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RegionalServiceResource, - RepairPostBody, - Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, - SpatialSpec, - SqlContainerCreateUpdateParameters, - SqlContainerGetPropertiesOptions, - SqlContainerGetPropertiesResource, - SqlContainerGetResults, - SqlContainerResource, - SqlDatabaseCreateUpdateParameters, - SqlDatabaseGetPropertiesOptions, - SqlDatabaseGetPropertiesResource, - SqlDatabaseGetResults, - SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, - SqlRoleAssignmentGetResults, - SqlRoleDefinitionGetResults, - SqlStoredProcedureCreateUpdateParameters, - SqlStoredProcedureGetPropertiesResource, - SqlStoredProcedureGetResults, - SqlStoredProcedureResource, - SqlTriggerCreateUpdateParameters, - SqlTriggerGetPropertiesResource, - SqlTriggerGetResults, - SqlTriggerResource, - SqlUserDefinedFunctionCreateUpdateParameters, - SqlUserDefinedFunctionGetPropertiesResource, - SqlUserDefinedFunctionGetResults, - SqlUserDefinedFunctionResource, - SystemData, - TableCreateUpdateParameters, - TableGetPropertiesOptions, - TableGetPropertiesResource, - TableGetResults, - TableResource, - ThroughputPolicyResource, - ThroughputSettingsGetPropertiesResource, - ThroughputSettingsGetResults, - ThroughputSettingsResource, - ThroughputSettingsUpdateParameters, - TrackedResource, - UniqueKey, - UniqueKeyPolicy, - VirtualNetworkRule -} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts deleted file mode 100644 index d57558e9a0f3..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ApiProperties, - ARMProxyResource, - ARMResourceProperties, - AutoscaleSettings, - AutoscaleSettingsResource, - AutoUpgradePolicyResource, - AzureEntityResource, - BackupPolicy, - BackupResource, - BackupResourceProperties, - BaseResource, - Capability, - CassandraKeyspaceCreateUpdateParameters, - CassandraKeyspaceGetPropertiesOptions, - CassandraKeyspaceGetPropertiesResource, - CassandraKeyspaceGetResults, - CassandraKeyspaceResource, - CassandraPartitionKey, - CassandraSchema, - CassandraTableCreateUpdateParameters, - CassandraTableGetPropertiesOptions, - CassandraTableGetPropertiesResource, - CassandraTableGetResults, - CassandraTableResource, - Certificate, - CloudError, - ClusterKey, - ClusterResource, - ClusterResourceProperties, - Column, - CompositePath, - ConflictResolutionPolicy, - ConsistencyPolicy, - ContainerPartitionKey, - ContinuousModeBackupPolicy, - CorsPolicy, - CreateUpdateOptions, - DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, - DatabaseAccountGetResults, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, - ErrorResponse, - ExcludedPath, - FailoverPolicy, - GremlinDatabaseCreateUpdateParameters, - GremlinDatabaseGetPropertiesOptions, - GremlinDatabaseGetPropertiesResource, - GremlinDatabaseGetResults, - GremlinDatabaseResource, - GremlinGraphCreateUpdateParameters, - GremlinGraphGetPropertiesOptions, - GremlinGraphGetPropertiesResource, - GremlinGraphGetResults, - GremlinGraphResource, - IncludedPath, - Indexes, - IndexingPolicy, - IpAddressOrRange, - ListDataCenters, - Location, - LocationGetResult, - LocationProperties, - ManagedServiceIdentity, - ManagedServiceIdentityUserAssignedIdentitiesValue, - MongoDBCollectionCreateUpdateParameters, - MongoDBCollectionGetPropertiesOptions, - MongoDBCollectionGetPropertiesResource, - MongoDBCollectionGetResults, - MongoDBCollectionResource, - MongoDBDatabaseCreateUpdateParameters, - MongoDBDatabaseGetPropertiesOptions, - MongoDBDatabaseGetPropertiesResource, - MongoDBDatabaseGetResults, - MongoDBDatabaseResource, - MongoIndex, - MongoIndexKeys, - MongoIndexOptions, - NotebookWorkspace, - NotebookWorkspaceCreateUpdateParameters, - OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, - Permission, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RegionalServiceResource, - Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, - SpatialSpec, - SqlContainerCreateUpdateParameters, - SqlContainerGetPropertiesOptions, - SqlContainerGetPropertiesResource, - SqlContainerGetResults, - SqlContainerResource, - SqlDatabaseCreateUpdateParameters, - SqlDatabaseGetPropertiesOptions, - SqlDatabaseGetPropertiesResource, - SqlDatabaseGetResults, - SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, - SqlRoleAssignmentGetResults, - SqlRoleDefinitionGetResults, - SqlStoredProcedureCreateUpdateParameters, - SqlStoredProcedureGetPropertiesResource, - SqlStoredProcedureGetResults, - SqlStoredProcedureResource, - SqlTriggerCreateUpdateParameters, - SqlTriggerGetPropertiesResource, - SqlTriggerGetResults, - SqlTriggerResource, - SqlUserDefinedFunctionCreateUpdateParameters, - SqlUserDefinedFunctionGetPropertiesResource, - SqlUserDefinedFunctionGetResults, - SqlUserDefinedFunctionResource, - SystemData, - TableCreateUpdateParameters, - TableGetPropertiesOptions, - TableGetPropertiesResource, - TableGetResults, - TableResource, - ThroughputPolicyResource, - ThroughputSettingsGetPropertiesResource, - ThroughputSettingsGetResults, - ThroughputSettingsResource, - ThroughputSettingsUpdateParameters, - TrackedResource, - UniqueKey, - UniqueKeyPolicy, - VirtualNetworkRule -} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts index c591def4958d..d23b609ceecb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,6 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -34,11 +33,8 @@ export { CassandraTableGetResults, CassandraTableListResult, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -48,14 +44,7 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -73,8 +62,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -101,13 +88,7 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -119,8 +100,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, @@ -135,7 +114,6 @@ 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 f649a0bbf516..59afb81faa5d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,6 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,11 +31,8 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -47,7 +43,6 @@ export { CreateUpdateOptions, DatabaseAccountConnectionString, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, DatabaseAccountListConnectionStringsResult, DatabaseAccountListKeysResult, @@ -55,12 +50,6 @@ export { DatabaseAccountRegenerateKeyParameters, DatabaseAccountsListResult, DatabaseAccountUpdateParameters, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicies, @@ -80,8 +69,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, Metric, @@ -118,14 +105,8 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, RegionForOnlineOffline, Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -137,8 +118,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, @@ -153,7 +132,6 @@ 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 6729f9193f42..1754395e323f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,6 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,11 +31,8 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -46,14 +42,7 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -73,8 +62,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -101,13 +88,7 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -119,8 +100,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, @@ -135,7 +114,6 @@ 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 363ffc4e526a..fbe7e543819a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts @@ -11,6 +11,53 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; +/** + * An interface representing ManagedServiceIdentityUserAssignedIdentitiesValue. + */ +export interface ManagedServiceIdentityUserAssignedIdentitiesValue { + /** + * The principal id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The client id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clientId?: string; +} + +/** + * Identity for the resource. + */ +export interface ManagedServiceIdentity { + /** + * The principal id of the system assigned identity. This property will only be provided for a + * system assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The tenant id of the system assigned identity. This property will only be provided for a + * system assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes + * both an implicitly created identity and a set of user assigned identities. The type 'None' + * will remove any identities from the service. Possible values include: 'SystemAssigned', + * 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' + */ + type?: ResourceIdentityType; + /** + * The list of user identities associated with resource. The user identity dictionary key + * references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + */ + userAssignedIdentities?: { [propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue }; +} + /** * IpAddressOrRange object */ @@ -186,7 +233,8 @@ export interface Resource extends BaseResource { * and a location * @summary Proxy Resource */ -export interface ProxyResource extends Resource {} +export interface ProxyResource extends Resource { +} /** * A private endpoint connection @@ -222,50 +270,19 @@ export interface ApiProperties { } /** - * 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. + * Analytical storage specific properties. */ -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; +export interface AnalyticalStorageConfiguration { /** - * List of specific databases available for restore. + * Possible values include: 'WellDefined', 'FullFidelity' */ - databasesToRestore?: DatabaseRestoreResource[]; + schemaType?: AnalyticalStorageSchemaType; } /** * 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. @@ -304,38 +321,6 @@ 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. */ @@ -360,7 +345,6 @@ export interface ARMResourceProperties extends BaseResource { */ location?: string; tags?: { [propertyName: string]: string }; - identity?: ManagedServiceIdentity; } /** @@ -373,6 +357,7 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * 'GlobalDocumentDB'. */ kind?: DatabaseAccountKind; + identity?: ManagedServiceIdentity; provisioningState?: string; /** * The connection endpoint for the Cosmos DB database account. @@ -482,19 +467,9 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { */ 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. + * Analytical storage specific properties. */ - restoreParameters?: RestoreParameters; + analyticalStorageConfiguration?: AnalyticalStorageConfiguration; /** * The object representing the policy for taking backups on an account. */ @@ -512,11 +487,6 @@ 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; } /** @@ -571,7 +541,8 @@ export interface OptionsResource { /** * An interface representing SqlDatabaseGetPropertiesOptions. */ -export interface SqlDatabaseGetPropertiesOptions extends OptionsResource {} +export interface SqlDatabaseGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB SQL database. @@ -811,7 +782,8 @@ export interface SqlContainerGetPropertiesResource { /** * An interface representing SqlContainerGetPropertiesOptions. */ -export interface SqlContainerGetPropertiesOptions extends OptionsResource {} +export interface SqlContainerGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB container. @@ -970,7 +942,8 @@ export interface MongoDBDatabaseGetPropertiesResource { /** * An interface representing MongoDBDatabaseGetPropertiesOptions. */ -export interface MongoDBDatabaseGetPropertiesOptions extends OptionsResource {} +export interface MongoDBDatabaseGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB MongoDB database. @@ -1059,7 +1032,8 @@ export interface MongoDBCollectionGetPropertiesResource { /** * An interface representing MongoDBCollectionGetPropertiesOptions. */ -export interface MongoDBCollectionGetPropertiesOptions extends OptionsResource {} +export interface MongoDBCollectionGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB MongoDB collection. @@ -1098,7 +1072,8 @@ export interface TableGetPropertiesResource { /** * An interface representing TableGetPropertiesOptions. */ -export interface TableGetPropertiesOptions extends OptionsResource {} +export interface TableGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB Table. @@ -1137,7 +1112,8 @@ export interface CassandraKeyspaceGetPropertiesResource { /** * An interface representing CassandraKeyspaceGetPropertiesOptions. */ -export interface CassandraKeyspaceGetPropertiesOptions extends OptionsResource {} +export interface CassandraKeyspaceGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB Cassandra keyspace. @@ -1244,7 +1220,8 @@ export interface CassandraTableGetPropertiesResource { /** * An interface representing CassandraTableGetPropertiesOptions. */ -export interface CassandraTableGetPropertiesOptions extends OptionsResource {} +export interface CassandraTableGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB Cassandra table. @@ -1283,7 +1260,8 @@ export interface GremlinDatabaseGetPropertiesResource { /** * An interface representing GremlinDatabaseGetPropertiesOptions. */ -export interface GremlinDatabaseGetPropertiesOptions extends OptionsResource {} +export interface GremlinDatabaseGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB Gremlin database. @@ -1345,7 +1323,8 @@ export interface GremlinGraphGetPropertiesResource { /** * An interface representing GremlinGraphGetPropertiesOptions. */ -export interface GremlinGraphGetPropertiesOptions extends OptionsResource {} +export interface GremlinGraphGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB Gremlin graph. @@ -1389,55 +1368,6 @@ export interface RegionForOnlineOffline { region: string; } -/** - * An interface representing ManagedServiceIdentityUserAssignedIdentitiesValue. - */ -export interface ManagedServiceIdentityUserAssignedIdentitiesValue { - /** - * The principal id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly principalId?: string; - /** - * The client id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly clientId?: string; -} - -/** - * Identity for the resource. - */ -export interface ManagedServiceIdentity { - /** - * The principal id of the system assigned identity. This property will only be provided for a - * system assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly principalId?: string; - /** - * The tenant id of the system assigned identity. This property will only be provided for a - * system assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly tenantId?: string; - /** - * The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes - * both an implicitly created identity and a set of user assigned identities. The type 'None' - * will remove any identities from the service. Possible values include: 'SystemAssigned', - * 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' - */ - type?: ResourceIdentityType; - /** - * The list of user identities associated with resource. The user identity dictionary key - * references will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - */ - userAssignedIdentities?: { - [propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue; - }; -} - /** * The resource model definition for a ARM proxy resource. It will have everything other than * required location and tags @@ -1578,21 +1508,16 @@ export interface ThroughputSettingsGetResults extends ARMResourceProperties { } /** - * Contains the possible cases for DatabaseAccountCreateUpdateProperties. - */ -export type DatabaseAccountCreateUpdatePropertiesUnion = - | DatabaseAccountCreateUpdateProperties - | DefaultRequestDatabaseAccountCreateUpdateProperties - | RestoreReqeustDatabaseAccountCreateUpdateProperties; - -/** - * Properties to create and update Azure Cosmos DB database accounts. + * Parameters to create and update Cosmos DB database accounts. */ -export interface DatabaseAccountCreateUpdateProperties { +export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProperties { /** - * Polymorphic Discriminator + * Indicates the type of database account. This can only be set at database account creation. + * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. Default value: + * 'GlobalDocumentDB'. */ - createMode: "DatabaseAccountCreateUpdateProperties"; + kind?: DatabaseAccountKind; + identity?: ManagedServiceIdentity; /** * The consistency policy for the Cosmos DB account. */ @@ -1668,6 +1593,10 @@ export interface DatabaseAccountCreateUpdateProperties { * Flag to indicate whether to enable storage analytics. */ enableAnalyticalStorage?: boolean; + /** + * Analytical storage specific properties. + */ + analyticalStorageConfiguration?: AnalyticalStorageConfiguration; /** * The object representing the policy for taking backups on an account. */ @@ -1688,13 +1617,15 @@ export interface DatabaseAccountCreateUpdateProperties { } /** - * Properties for non-restore Azure Cosmos DB database account requests. + * Parameters for patching Azure Cosmos DB database account properties. */ -export interface DefaultRequestDatabaseAccountCreateUpdateProperties { +export interface DatabaseAccountUpdateParameters { + tags?: { [propertyName: string]: string }; /** - * Polymorphic Discriminator + * The location of the resource group to which the resource belongs. */ - createMode: "Default"; + location?: string; + identity?: ManagedServiceIdentity; /** * The consistency policy for the Cosmos DB account. */ @@ -1702,7 +1633,7 @@ export interface DefaultRequestDatabaseAccountCreateUpdateProperties { /** * An array that contains the georeplication locations enabled for the Cosmos DB account. */ - locations: Location[]; + locations?: Location[]; /** * List of IpRules. */ @@ -1770,6 +1701,10 @@ export interface DefaultRequestDatabaseAccountCreateUpdateProperties { * Flag to indicate whether to enable storage analytics. */ enableAnalyticalStorage?: boolean; + /** + * Analytical storage specific properties. + */ + analyticalStorageConfiguration?: AnalyticalStorageConfiguration; /** * The object representing the policy for taking backups on an account. */ @@ -1790,377 +1725,414 @@ export interface DefaultRequestDatabaseAccountCreateUpdateProperties { } /** - * Properties to restore Azure Cosmos DB database account. + * The read-only access keys for the given database account. */ -export interface RestoreReqeustDatabaseAccountCreateUpdateProperties { +export interface DatabaseAccountListReadOnlyKeysResult { /** - * Polymorphic Discriminator + * Base 64 encoded value of the primary read-only key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - createMode: "Restore"; + readonly primaryReadonlyMasterKey?: string; /** - * The consistency policy for the Cosmos DB account. + * Base 64 encoded value of the secondary read-only key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - consistencyPolicy?: ConsistencyPolicy; + readonly secondaryReadonlyMasterKey?: string; +} + +/** + * The access keys for the given database account. + */ +export interface DatabaseAccountListKeysResult extends DatabaseAccountListReadOnlyKeysResult { /** - * An array that contains the georeplication locations enabled for the Cosmos DB account. + * Base 64 encoded value of the primary read-write key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - locations: Location[]; + readonly primaryMasterKey?: string; /** - * List of IpRules. + * Base 64 encoded value of the secondary read-write key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ipRules?: IpAddressOrRange[]; + readonly secondaryMasterKey?: string; +} + +/** + * Connection string for the Cosmos DB account + */ +export interface DatabaseAccountConnectionString { /** - * Flag to indicate whether to enable/disable Virtual Network ACL rules. + * Value of the connection string + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - isVirtualNetworkFilterEnabled?: boolean; + readonly connectionString?: string; /** - * Enables automatic failover of the write region in the rare event that the region is - * unavailable due to an outage. Automatic failover will result in a new write region for the - * account and is chosen based on the failover priorities configured for the account. + * Description of the connection string + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - enableAutomaticFailover?: boolean; + readonly description?: string; +} + +/** + * The connection strings for the given database account. + */ +export interface DatabaseAccountListConnectionStringsResult { /** - * List of Cosmos DB capabilities for the account + * An array that contains the connection strings for the Cosmos DB account. */ - capabilities?: Capability[]; + connectionStrings?: DatabaseAccountConnectionString[]; +} + +/** + * Parameters to regenerate the keys within the database account. + */ +export interface DatabaseAccountRegenerateKeyParameters { /** - * List of Virtual Network ACL rules configured for the Cosmos DB account. + * The access key to regenerate. Possible values include: 'primary', 'secondary', + * 'primaryReadonly', 'secondaryReadonly' */ - virtualNetworkRules?: VirtualNetworkRule[]; + keyKind: KeyKind; +} + +/** + * Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is + * required, but not both. + */ +export interface ThroughputSettingsResource { /** - * Enables the account to write in multiple locations + * Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings + * is required, but not both. */ - enableMultipleWriteLocations?: boolean; + throughput?: number; /** - * Enables the cassandra connector on the Cosmos DB C* account + * Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings + * is required, but not both. */ - enableCassandraConnector?: boolean; + autoscaleSettings?: AutoscaleSettingsResource; /** - * The cassandra connector offer type for the Cosmos DB database C* account. Possible values - * include: 'Small' + * The minimum throughput of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - connectorOffer?: ConnectorOffer; + readonly minimumThroughput?: string; /** - * Disable write operations on metadata resources (databases, containers, throughput) via account - * keys - */ - disableKeyBasedMetadataWriteAccess?: boolean; - /** - * The URI of the key vault - */ - keyVaultKeyUri?: string; - /** - * The default identity for accessing key vault used in features like customer managed keys. The - * default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", - * "SystemAssignedIdentity" and more. - */ - defaultIdentity?: string; - /** - * Whether requests from Public Network are allowed. Possible values include: 'Enabled', - * 'Disabled' - */ - publicNetworkAccess?: PublicNetworkAccess; - /** - * Flag to indicate whether Free Tier is enabled. - */ - enableFreeTier?: boolean; - /** - * API specific properties. Currently, supported only for MongoDB API. - */ - apiProperties?: ApiProperties; - /** - * Flag to indicate whether to enable storage analytics. + * The throughput replace is pending + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - enableAnalyticalStorage?: boolean; + readonly offerReplacePending?: string; +} + +/** + * Parameters to update Cosmos DB resource throughput. + */ +export interface ThroughputSettingsUpdateParameters extends ARMResourceProperties { /** - * The object representing the policy for taking backups on an account. + * The standard JSON format of a resource throughput */ - backupPolicy?: BackupPolicyUnion; + resource: ThroughputSettingsResource; +} + +/** + * Cosmos DB SQL database resource object + */ +export interface SqlDatabaseResource { /** - * The CORS policy for the Cosmos DB database account. + * Name of the Cosmos DB SQL database */ - cors?: CorsPolicy[]; + id: string; +} + +/** + * An interface representing AutoscaleSettings. + */ +export interface AutoscaleSettings { /** - * Indicates what services are allowed to bypass firewall checks. Possible values include: - * 'None', 'AzureServices' + * Represents maximum throughput, the resource can scale up to. */ - networkAclBypass?: NetworkAclBypass; + 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 { /** - * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. + * Request Units per second. For example, "throughput": 10000. */ - networkAclBypassResourceIds?: string[]; + throughput?: number; /** - * Parameters to indicate the information about the restore. + * Specifies the Autoscale settings. */ - restoreParameters?: RestoreParameters; + autoscaleSettings?: AutoscaleSettings; } /** - * Parameters to create and update Cosmos DB database accounts. + * Parameters to create and update Cosmos DB SQL database. */ -export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProperties { +export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties { /** - * Indicates the type of database account. This can only be set at database account creation. - * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. Default value: - * 'GlobalDocumentDB'. + * The standard JSON format of a SQL database */ - kind?: DatabaseAccountKind; - properties: DatabaseAccountCreateUpdatePropertiesUnion; + resource: SqlDatabaseResource; + /** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. + */ + options?: CreateUpdateOptions; } /** - * Parameters for patching Azure Cosmos DB database account properties. + * Cosmos DB SQL container resource object */ -export interface DatabaseAccountUpdateParameters { - tags?: { [propertyName: string]: string }; - /** - * The location of the resource group to which the resource belongs. - */ - location?: string; +export interface SqlContainerResource { /** - * The consistency policy for the Cosmos DB account. + * Name of the Cosmos DB SQL container */ - consistencyPolicy?: ConsistencyPolicy; + id: string; /** - * An array that contains the georeplication locations enabled for the Cosmos DB account. + * The configuration of the indexing policy. By default, the indexing is automatic for all + * document paths within the container */ - locations?: Location[]; + indexingPolicy?: IndexingPolicy; /** - * List of IpRules. + * The configuration of the partition key to be used for partitioning data into multiple + * partitions */ - ipRules?: IpAddressOrRange[]; + partitionKey?: ContainerPartitionKey; /** - * Flag to indicate whether to enable/disable Virtual Network ACL rules. + * Default time to live */ - isVirtualNetworkFilterEnabled?: boolean; + defaultTtl?: number; /** - * 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. + * The unique key policy configuration for specifying uniqueness constraints on documents in the + * collection in the Azure Cosmos DB service. */ - enableAutomaticFailover?: boolean; + uniqueKeyPolicy?: UniqueKeyPolicy; /** - * List of Cosmos DB capabilities for the account + * The conflict resolution policy for the container. */ - capabilities?: Capability[]; + conflictResolutionPolicy?: ConflictResolutionPolicy; /** - * List of Virtual Network ACL rules configured for the Cosmos DB account. + * Analytical TTL. */ - virtualNetworkRules?: VirtualNetworkRule[]; + analyticalStorageTtl?: number; +} + +/** + * Parameters to create and update Cosmos DB container. + */ +export interface SqlContainerCreateUpdateParameters extends ARMResourceProperties { /** - * Enables the account to write in multiple locations + * The standard JSON format of a container */ - enableMultipleWriteLocations?: boolean; + resource: SqlContainerResource; /** - * Enables the cassandra connector on the Cosmos DB C* account + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - enableCassandraConnector?: boolean; + options?: CreateUpdateOptions; +} + +/** + * Cosmos DB SQL storedProcedure resource object + */ +export interface SqlStoredProcedureResource { /** - * The cassandra connector offer type for the Cosmos DB database C* account. Possible values - * include: 'Small' + * Name of the Cosmos DB SQL storedProcedure */ - connectorOffer?: ConnectorOffer; + id: string; /** - * Disable write operations on metadata resources (databases, containers, throughput) via account - * keys + * Body of the Stored Procedure */ - disableKeyBasedMetadataWriteAccess?: boolean; + body?: string; +} + +/** + * Parameters to create and update Cosmos DB storedProcedure. + */ +export interface SqlStoredProcedureCreateUpdateParameters extends ARMResourceProperties { /** - * The URI of the key vault + * The standard JSON format of a storedProcedure */ - keyVaultKeyUri?: string; + resource: SqlStoredProcedureResource; /** - * 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. + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - defaultIdentity?: string; + options?: CreateUpdateOptions; +} + +/** + * Cosmos DB SQL userDefinedFunction resource object + */ +export interface SqlUserDefinedFunctionResource { /** - * Whether requests from Public Network are allowed. Possible values include: 'Enabled', - * 'Disabled' + * Name of the Cosmos DB SQL userDefinedFunction */ - publicNetworkAccess?: PublicNetworkAccess; + id: string; /** - * Flag to indicate whether Free Tier is enabled. + * Body of the User Defined Function */ - enableFreeTier?: boolean; + body?: string; +} + +/** + * Parameters to create and update Cosmos DB userDefinedFunction. + */ +export interface SqlUserDefinedFunctionCreateUpdateParameters extends ARMResourceProperties { /** - * API specific properties. Currently, supported only for MongoDB API. + * The standard JSON format of a userDefinedFunction */ - apiProperties?: ApiProperties; + resource: SqlUserDefinedFunctionResource; /** - * Flag to indicate whether to enable storage analytics. + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - enableAnalyticalStorage?: boolean; + options?: CreateUpdateOptions; +} + +/** + * Cosmos DB SQL trigger resource object + */ +export interface SqlTriggerResource { /** - * The object representing the policy for taking backups on an account. + * Name of the Cosmos DB SQL trigger */ - backupPolicy?: BackupPolicyUnion; + id: string; /** - * The CORS policy for the Cosmos DB database account. + * Body of the Trigger */ - cors?: CorsPolicy[]; + body?: string; /** - * Indicates what services are allowed to bypass firewall checks. Possible values include: - * 'None', 'AzureServices' + * Type of the Trigger. Possible values include: 'Pre', 'Post' */ - networkAclBypass?: NetworkAclBypass; + triggerType?: TriggerType; /** - * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. + * The operation the trigger is associated with. Possible values include: 'All', 'Create', + * 'Update', 'Delete', 'Replace' */ - networkAclBypassResourceIds?: string[]; - identity?: ManagedServiceIdentity; + triggerOperation?: TriggerOperation; } /** - * The read-only access keys for the given database account. + * Parameters to create and update Cosmos DB trigger. */ -export interface DatabaseAccountListReadOnlyKeysResult { +export interface SqlTriggerCreateUpdateParameters extends ARMResourceProperties { /** - * 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.** + * The standard JSON format of a trigger */ - readonly primaryReadonlyMasterKey?: string; + resource: SqlTriggerResource; /** - * 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.** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - readonly secondaryReadonlyMasterKey?: string; + options?: CreateUpdateOptions; } /** - * The access keys for the given database account. + * Cosmos DB MongoDB database resource object */ -export interface DatabaseAccountListKeysResult extends DatabaseAccountListReadOnlyKeysResult { +export interface MongoDBDatabaseResource { /** - * Base 64 encoded value of the primary read-write key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly primaryMasterKey?: string; - /** - * Base 64 encoded value of the secondary read-write key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly secondaryMasterKey?: string; -} - -/** - * Connection string for the Cosmos DB account - */ -export interface DatabaseAccountConnectionString { - /** - * Value of the connection string - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly connectionString?: string; - /** - * Description of the connection string - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Name of the Cosmos DB MongoDB database */ - readonly description?: string; + id: string; } /** - * The connection strings for the given database account. + * Parameters to create and update Cosmos DB MongoDB database. */ -export interface DatabaseAccountListConnectionStringsResult { +export interface MongoDBDatabaseCreateUpdateParameters extends ARMResourceProperties { /** - * An array that contains the connection strings for the Cosmos DB account. + * The standard JSON format of a MongoDB database */ - connectionStrings?: DatabaseAccountConnectionString[]; -} - -/** - * Parameters to regenerate the keys within the database account. - */ -export interface DatabaseAccountRegenerateKeyParameters { + resource: MongoDBDatabaseResource; /** - * The access key to regenerate. Possible values include: 'primary', 'secondary', - * 'primaryReadonly', 'secondaryReadonly' + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - keyKind: KeyKind; + options?: CreateUpdateOptions; } /** - * Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is - * required, but not both. + * Cosmos DB MongoDB collection resource object */ -export interface ThroughputSettingsResource { +export interface MongoDBCollectionResource { /** - * Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings - * is required, but not both. + * Name of the Cosmos DB MongoDB collection */ - throughput?: number; + id: string; /** - * Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings - * is required, but not both. + * A key-value pair of shard keys to be applied for the request. */ - autoscaleSettings?: AutoscaleSettingsResource; + shardKey?: { [propertyName: string]: string }; /** - * The minimum throughput of the resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of index keys */ - readonly minimumThroughput?: string; + indexes?: MongoIndex[]; /** - * The throughput replace is pending - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Analytical TTL. */ - readonly offerReplacePending?: string; + analyticalStorageTtl?: number; } /** - * Parameters to update Cosmos DB resource throughput. + * Parameters to create and update Cosmos DB MongoDB collection. */ -export interface ThroughputSettingsUpdateParameters extends ARMResourceProperties { +export interface MongoDBCollectionCreateUpdateParameters extends ARMResourceProperties { /** - * The standard JSON format of a resource throughput + * The standard JSON format of a MongoDB collection */ - resource: ThroughputSettingsResource; + resource: MongoDBCollectionResource; + /** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. + */ + options?: CreateUpdateOptions; } /** - * Cosmos DB SQL database resource object + * Cosmos DB table resource object */ -export interface SqlDatabaseResource { +export interface TableResource { /** - * Name of the Cosmos DB SQL database + * Name of the Cosmos DB table */ id: string; } /** - * An interface representing AutoscaleSettings. + * Parameters to create and update Cosmos DB Table. */ -export interface AutoscaleSettings { +export interface TableCreateUpdateParameters extends ARMResourceProperties { /** - * Represents maximum throughput, the resource can scale up to. + * The standard JSON format of a Table */ - maxThroughput?: number; + resource: TableResource; + /** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. + */ + options?: CreateUpdateOptions; } /** - * CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are - * "If-Match", "If-None-Match", "Session-Token" and "Throughput" + * Cosmos DB Cassandra keyspace resource object */ -export interface CreateUpdateOptions { - /** - * Request Units per second. For example, "throughput": 10000. - */ - throughput?: number; +export interface CassandraKeyspaceResource { /** - * Specifies the Autoscale settings. + * Name of the Cosmos DB Cassandra keyspace */ - autoscaleSettings?: AutoscaleSettings; + id: string; } /** - * Parameters to create and update Cosmos DB SQL database. + * Parameters to create and update Cosmos DB Cassandra keyspace. */ -export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties { +export interface CassandraKeyspaceCreateUpdateParameters extends ARMResourceProperties { /** - * The standard JSON format of a SQL database + * The standard JSON format of a Cassandra keyspace */ - resource: SqlDatabaseResource; + resource: CassandraKeyspaceResource; /** * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. @@ -2169,36 +2141,21 @@ export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties } /** - * Cosmos DB SQL container resource object + * Cosmos DB Cassandra table resource object */ -export interface SqlContainerResource { +export interface CassandraTableResource { /** - * Name of the Cosmos DB SQL container + * Name of the Cosmos DB Cassandra table */ 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 + * Time to live of the Cosmos DB Cassandra table */ 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. + * Schema of the Cosmos DB Cassandra table */ - conflictResolutionPolicy?: ConflictResolutionPolicy; + schema?: CassandraSchema; /** * Analytical TTL. */ @@ -2206,13 +2163,13 @@ export interface SqlContainerResource { } /** - * Parameters to create and update Cosmos DB container. + * Parameters to create and update Cosmos DB Cassandra table. */ -export interface SqlContainerCreateUpdateParameters extends ARMResourceProperties { +export interface CassandraTableCreateUpdateParameters extends ARMResourceProperties { /** - * The standard JSON format of a container + * The standard JSON format of a Cassandra table */ - resource: SqlContainerResource; + resource: CassandraTableResource; /** * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. @@ -2221,27 +2178,23 @@ export interface SqlContainerCreateUpdateParameters extends ARMResourcePropertie } /** - * Cosmos DB SQL storedProcedure resource object + * Cosmos DB Gremlin database resource object */ -export interface SqlStoredProcedureResource { +export interface GremlinDatabaseResource { /** - * Name of the Cosmos DB SQL storedProcedure + * Name of the Cosmos DB Gremlin database */ id: string; - /** - * Body of the Stored Procedure - */ - body?: string; } /** - * Parameters to create and update Cosmos DB storedProcedure. + * Parameters to create and update Cosmos DB Gremlin database. */ -export interface SqlStoredProcedureCreateUpdateParameters extends ARMResourceProperties { +export interface GremlinDatabaseCreateUpdateParameters extends ARMResourceProperties { /** - * The standard JSON format of a storedProcedure + * The standard JSON format of a Gremlin database */ - resource: SqlStoredProcedureResource; + resource: GremlinDatabaseResource; /** * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. @@ -2250,27 +2203,46 @@ export interface SqlStoredProcedureCreateUpdateParameters extends ARMResourcePro } /** - * Cosmos DB SQL userDefinedFunction resource object + * Cosmos DB Gremlin graph resource object */ -export interface SqlUserDefinedFunctionResource { +export interface GremlinGraphResource { /** - * Name of the Cosmos DB SQL userDefinedFunction + * Name of the Cosmos DB Gremlin graph */ id: string; /** - * Body of the User Defined Function + * The configuration of the indexing policy. By default, the indexing is automatic for all + * document paths within the graph */ - body?: string; + 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. + */ + conflictResolutionPolicy?: ConflictResolutionPolicy; } /** - * Parameters to create and update Cosmos DB userDefinedFunction. + * Parameters to create and update Cosmos DB Gremlin graph. */ -export interface SqlUserDefinedFunctionCreateUpdateParameters extends ARMResourceProperties { +export interface GremlinGraphCreateUpdateParameters extends ARMResourceProperties { /** - * The standard JSON format of a userDefinedFunction + * The standard JSON format of a Gremlin graph */ - resource: SqlUserDefinedFunctionResource; + resource: GremlinGraphResource; /** * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. @@ -2279,6337 +2251,4253 @@ export interface SqlUserDefinedFunctionCreateUpdateParameters extends ARMResourc } /** - * Cosmos DB SQL trigger resource object + * The object that represents the operation. */ -export interface SqlTriggerResource { +export interface OperationDisplay { /** - * Name of the Cosmos DB SQL trigger + * Service provider: Microsoft.ResourceProvider */ - id: string; + provider?: string; /** - * Body of the Trigger + * Resource on which the operation is performed: Profile, endpoint, etc. */ - body?: string; + resource?: string; /** - * Type of the Trigger. Possible values include: 'Pre', 'Post' + * Operation type: Read, write, delete, etc. */ - triggerType?: TriggerType; + operation?: string; /** - * The operation the trigger is associated with. Possible values include: 'All', 'Create', - * 'Update', 'Delete', 'Replace' + * Description of operation */ - triggerOperation?: TriggerOperation; + description?: string; } /** - * Parameters to create and update Cosmos DB trigger. + * REST API operation */ -export interface SqlTriggerCreateUpdateParameters extends ARMResourceProperties { +export interface Operation { /** - * The standard JSON format of a trigger + * Operation name: {provider}/{resource}/{operation} */ - resource: SqlTriggerResource; + name?: string; /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * The object that represents the operation. */ - options?: CreateUpdateOptions; + display?: OperationDisplay; } /** - * Cosmos DB MongoDB database resource object + * A metric name. */ -export interface MongoDBDatabaseResource { +export interface MetricName { /** - * Name of the Cosmos DB MongoDB database + * The name of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - id: string; -} - -/** - * Parameters to create and update Cosmos DB MongoDB database. - */ -export interface MongoDBDatabaseCreateUpdateParameters extends ARMResourceProperties { - /** - * The standard JSON format of a MongoDB database - */ - resource: MongoDBDatabaseResource; + readonly value?: string; /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * The friendly name of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - options?: CreateUpdateOptions; + readonly localizedValue?: string; } /** - * Cosmos DB MongoDB collection resource object + * The usage data for a usage request. */ -export interface MongoDBCollectionResource { +export interface Usage { /** - * Name of the Cosmos DB MongoDB collection + * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' */ - id: string; + unit?: UnitType; /** - * A key-value pair of shard keys to be applied for the request. + * The name information for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - shardKey?: { [propertyName: string]: string }; + readonly name?: MetricName; /** - * List of index keys + * The quota period used to summarize the usage values. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - indexes?: MongoIndex[]; + readonly quotaPeriod?: string; /** - * Analytical TTL. + * Maximum value for this metric + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - analyticalStorageTtl?: number; + readonly limit?: number; + /** + * Current value for this metric + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly currentValue?: number; } /** - * Parameters to create and update Cosmos DB MongoDB collection. + * The partition level usage data for a usage request. */ -export interface MongoDBCollectionCreateUpdateParameters extends ARMResourceProperties { +export interface PartitionUsage extends Usage { /** - * The standard JSON format of a MongoDB collection + * The partition id (GUID identifier) of the usages. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resource: MongoDBCollectionResource; + readonly partitionId?: string; /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * 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.** */ - options?: CreateUpdateOptions; + readonly partitionKeyRangeId?: string; } /** - * Cosmos DB table resource object + * The availability of the metric. */ -export interface TableResource { +export interface MetricAvailability { /** - * Name of the Cosmos DB table + * 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.** */ - id: string; + readonly timeGrain?: string; + /** + * The retention for the metric values. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly retention?: string; } /** - * Parameters to create and update Cosmos DB Table. + * The definition of a metric. */ -export interface TableCreateUpdateParameters extends ARMResourceProperties { +export interface MetricDefinition { /** - * The standard JSON format of a Table + * The list of metric availabilities for the account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resource: TableResource; + readonly metricAvailabilities?: MetricAvailability[]; /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * 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.** */ - options?: CreateUpdateOptions; -} - -/** - * Cosmos DB Cassandra keyspace resource object - */ -export interface CassandraKeyspaceResource { + readonly primaryAggregationType?: PrimaryAggregationType; /** - * Name of the Cosmos DB Cassandra keyspace + * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' */ - id: string; -} - -/** - * Parameters to create and update Cosmos DB Cassandra keyspace. - */ -export interface CassandraKeyspaceCreateUpdateParameters extends ARMResourceProperties { + unit?: UnitType; /** - * The standard JSON format of a Cassandra keyspace + * The resource uri of the database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resource: CassandraKeyspaceResource; + readonly resourceUri?: string; /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * The name information for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - options?: CreateUpdateOptions; + readonly name?: MetricName; } /** - * Cosmos DB Cassandra table resource object + * Represents metrics values. */ -export interface CassandraTableResource { +export interface MetricValue { /** - * Name of the Cosmos DB Cassandra table + * The number of values for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - id: string; + readonly _count?: number; /** - * Time to live of the Cosmos DB Cassandra table + * The average value of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - defaultTtl?: number; + readonly average?: number; /** - * Schema of the Cosmos DB Cassandra table + * The max value of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - schema?: CassandraSchema; + readonly maximum?: number; /** - * Analytical TTL. + * The min value of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - analyticalStorageTtl?: number; -} - -/** - * Parameters to create and update Cosmos DB Cassandra table. - */ -export interface CassandraTableCreateUpdateParameters extends ARMResourceProperties { + readonly minimum?: number; /** - * The standard JSON format of a Cassandra table + * The metric timestamp (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resource: CassandraTableResource; + readonly timestamp?: Date; /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * The total value of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - options?: CreateUpdateOptions; + readonly total?: number; } /** - * Cosmos DB Gremlin database resource object + * Metric data */ -export interface GremlinDatabaseResource { +export interface Metric { /** - * Name of the Cosmos DB Gremlin database + * The start time for the metric (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - id: string; -} - -/** - * Parameters to create and update Cosmos DB Gremlin database. - */ -export interface GremlinDatabaseCreateUpdateParameters extends ARMResourceProperties { + readonly startTime?: Date; /** - * The standard JSON format of a Gremlin database + * The end time for the metric (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resource: GremlinDatabaseResource; + readonly endTime?: Date; /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * 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.** */ - options?: CreateUpdateOptions; + 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[]; } /** - * Cosmos DB Gremlin graph resource object + * Represents percentile metrics values. */ -export interface GremlinGraphResource { +export interface PercentileMetricValue extends MetricValue { /** - * Name of the Cosmos DB Gremlin graph + * The 10th percentile value for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - id: string; + readonly p10?: number; /** - * The configuration of the indexing policy. By default, the indexing is automatic for all - * document paths within the graph + * The 25th percentile value for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - indexingPolicy?: IndexingPolicy; + readonly p25?: number; /** - * The configuration of the partition key to be used for partitioning data into multiple - * partitions + * The 50th percentile value for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - partitionKey?: ContainerPartitionKey; + readonly p50?: number; /** - * Default time to live + * The 75th percentile value for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - defaultTtl?: number; + readonly p75?: number; /** - * The unique key policy configuration for specifying uniqueness constraints on documents in the - * collection in the Azure Cosmos DB service. + * The 90th percentile value for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - uniqueKeyPolicy?: UniqueKeyPolicy; + readonly p90?: number; /** - * The conflict resolution policy for the graph. + * The 95th percentile value for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - conflictResolutionPolicy?: ConflictResolutionPolicy; + 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; } /** - * Parameters to create and update Cosmos DB Gremlin graph. + * Percentile Metric data */ -export interface GremlinGraphCreateUpdateParameters extends ARMResourceProperties { +export interface PercentileMetric { /** - * The standard JSON format of a Gremlin graph + * The start time for the metric (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resource: GremlinGraphResource; + readonly startTime?: Date; /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. + * The end time for the metric (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - options?: CreateUpdateOptions; -} - -/** - * The object that represents the operation. - */ -export interface OperationDisplay { + readonly endTime?: Date; /** - * Service provider: Microsoft.ResourceProvider + * 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.** */ - provider?: string; + readonly timeGrain?: string; /** - * Resource on which the operation is performed: Profile, endpoint, etc. + * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' */ - resource?: string; + unit?: UnitType; /** - * Operation type: Read, write, delete, etc. + * The name information for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - operation?: string; + readonly name?: MetricName; /** - * Description of operation + * 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?: string; + readonly metricValues?: PercentileMetricValue[]; } /** - * REST API operation + * The metric values for a single partition. */ -export interface Operation { +export interface PartitionMetric extends Metric { /** - * Operation name: {provider}/{resource}/{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.** */ - name?: string; + readonly partitionId?: string; /** - * The object that represents the operation. + * 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.** */ - display?: OperationDisplay; + readonly partitionKeyRangeId?: string; } /** - * A metric name. + * Configuration values for periodic mode backup */ -export interface MetricName { +export interface PeriodicModeProperties { /** - * The name of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * An integer representing the interval in minutes between two backups */ - readonly value?: string; + backupIntervalInMinutes?: number; /** - * The friendly name of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * An integer representing the time (in hours) that each backup is retained */ - readonly localizedValue?: string; + backupRetentionIntervalInHours?: number; } /** - * The usage data for a usage request. + * The object representing periodic mode backup policy. */ -export interface Usage { - /** - * 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; +export interface PeriodicModeBackupPolicy { /** - * The quota period used to summarize the usage values. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly quotaPeriod?: string; + type: "Periodic"; /** - * Maximum value for this metric - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Configuration values for periodic mode backup */ - readonly limit?: number; + periodicModeProperties?: PeriodicModeProperties; +} + +/** + * The object representing continuous mode backup policy. + */ +export interface ContinuousModeBackupPolicy { /** - * Current value for this metric - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly currentValue?: number; + type: "Continuous"; } /** - * The partition level usage data for a usage request. + * The resource model definition for an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location' + * @summary Tracked Resource */ -export interface PartitionUsage extends Usage { +export interface TrackedResource extends Resource { /** - * The partition id (GUID identifier) of the usages. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource tags. */ - readonly partitionId?: string; + tags?: { [propertyName: string]: 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.** + * The geo-location where the resource lives */ - readonly partitionKeyRangeId?: string; + location: string; } /** - * The availability of the metric. + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource */ -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 AzureEntityResource extends Resource { /** - * The retention for the metric values. + * Resource Etag. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly retention?: string; + readonly etag?: string; } /** - * The definition of a metric. + * Parameters to create a notebook workspace resource */ -export interface MetricDefinition { +export interface NotebookWorkspaceCreateUpdateParameters extends ARMProxyResource { +} + +/** + * A notebook workspace resource + */ +export interface NotebookWorkspace extends ARMProxyResource { /** - * The list of metric availabilities for the account. + * Specifies the endpoint of Notebook server. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly metricAvailabilities?: MetricAvailability[]; + readonly notebookServerEndpoint?: string; /** - * The primary aggregation type of the metric. Possible values include: 'None', 'Average', - * 'Total', 'Minimum', 'Maximum', 'Last' + * 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 primaryAggregationType?: PrimaryAggregationType; - /** - * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' - */ - unit?: UnitType; + readonly status?: string; +} + +/** + * The connection info for the given notebook workspace + */ +export interface NotebookWorkspaceConnectionInfoResult { /** - * The resource uri of the database. + * 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 resourceUri?: string; + readonly authToken?: string; /** - * The name information for the metric. + * Specifies the endpoint of Notebook server. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: MetricName; + readonly notebookServerEndpoint?: string; } /** - * Represents metrics values. + * The set of data plane operations permitted through this Role Definition. */ -export interface MetricValue { +export interface Permission { /** - * The number of values for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * An array of data actions that are allowed. */ - readonly _count?: number; + dataActions?: string[]; /** - * The average value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * An array of data actions that are denied. */ - readonly average?: number; + notDataActions?: string[]; +} + +/** + * Parameters to create and update an Azure Cosmos DB SQL Role Definition. + */ +export interface SqlRoleDefinitionCreateUpdateParameters { /** - * The max value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A user-friendly name for the Role Definition. Must be unique for the database account. */ - readonly maximum?: number; + roleName?: string; /** - * The min value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Indicates whether the Role Definition was built-in or user created. Possible values include: + * 'BuiltInRole', 'CustomRole' */ - readonly minimum?: number; + type?: RoleDefinitionType; /** - * The metric timestamp (ISO-8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. */ - readonly timestamp?: Date; + assignableScopes?: string[]; /** - * The total value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The set of operations allowed through this Role Definition. */ - readonly total?: number; + permissions?: Permission[]; } /** - * Metric data + * An Azure Cosmos DB SQL Role Definition. */ -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; - /** - * 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; +export interface SqlRoleDefinitionGetResults extends ARMProxyResource { /** - * 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 user-friendly name for the Role Definition. Must be unique for the database account. */ - readonly timeGrain?: string; + roleName?: string; /** - * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond', 'Milliseconds' + * Indicates whether the Role Definition was built-in or user created. Possible values include: + * 'BuiltInRole', 'CustomRole' */ - unit?: UnitType; + sqlRoleDefinitionGetResultsType?: RoleDefinitionType; /** - * The name information for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. */ - readonly name?: MetricName; + assignableScopes?: string[]; /** - * 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.** + * The set of operations allowed through this Role Definition. */ - readonly metricValues?: MetricValue[]; + permissions?: Permission[]; } /** - * Represents percentile metrics values. + * Parameters to create and update an Azure Cosmos DB SQL Role Assignment. */ -export interface PercentileMetricValue extends MetricValue { +export interface SqlRoleAssignmentCreateUpdateParameters { /** - * The 10th percentile value for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The unique identifier for the associated Role Definition. */ - readonly p10?: number; + roleDefinitionId?: string; /** - * The 25th percentile value for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The data plane resource path for which access is being granted through this Role Assignment. */ - readonly p25?: number; + scope?: string; /** - * 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.** + * The unique identifier for the associated AAD principal in the AAD graph to which access is + * being granted through this Role Assignment. Tenant ID for the principal is inferred using the + * tenant associated with the subscription. */ - readonly p75?: number; + principalId?: string; +} + +/** + * An Azure Cosmos DB Role Assignment + */ +export interface SqlRoleAssignmentGetResults extends ARMProxyResource { /** - * The 90th percentile value for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The unique identifier for the associated Role Definition. */ - readonly p90?: number; + roleDefinitionId?: string; /** - * The 95th percentile value for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The data plane resource path for which access is being granted through this Role Assignment. */ - readonly p95?: number; + scope?: string; /** - * The 99th percentile value for the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The unique identifier for the associated AAD principal in the AAD graph to which access is + * being granted through this Role Assignment. Tenant ID for the principal is inferred using the + * tenant associated with the subscription. */ - readonly p99?: number; + principalId?: string; } /** - * Percentile Metric data + * A private link resource */ -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; +export interface PrivateLinkResource extends ARMProxyResource { /** - * The time grain to be used to summarize the metric values. + * The private link resource group id. * **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; + readonly groupId?: string; /** - * The name information for the metric. + * The private link resource required member names. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: MetricName; + readonly requiredMembers?: string[]; /** - * The percentile metric values for the specified time window and timestep. + * The private link resource required zone names. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly metricValues?: PercentileMetricValue[]; + readonly requiredZoneNames?: string[]; } /** - * The metric values for a single partition. + * Optional Parameters. */ -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; +export interface DatabaseAccountsListUsagesOptionalParams extends msRest.RequestOptionsBase { /** - * 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.** + * 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). */ - readonly partitionKeyRangeId?: string; + filter?: string; } /** - * Configuration values for periodic mode backup + * Optional Parameters. */ -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; +export interface DatabaseListUsagesOptionalParams extends msRest.RequestOptionsBase { /** - * Enum to indicate type of backup residency. Possible values include: 'Geo', 'Local', 'Zone' + * 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). */ - backupStorageRedundancy?: BackupStorageRedundancy; + filter?: string; } /** - * The object representing periodic mode backup policy. + * Optional Parameters. */ -export interface PeriodicModeBackupPolicy { - /** - * Polymorphic Discriminator - */ - type: "Periodic"; +export interface CollectionListUsagesOptionalParams extends msRest.RequestOptionsBase { /** - * Configuration values for periodic mode backup + * 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). */ - periodicModeProperties?: PeriodicModeProperties; + filter?: string; } /** - * The object representing continuous mode backup policy. + * Optional Parameters. */ -export interface ContinuousModeBackupPolicy { +export interface CollectionPartitionListUsagesOptionalParams extends msRest.RequestOptionsBase { /** - * Polymorphic Discriminator + * 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). */ - type: "Continuous"; + filter?: string; } /** - * Properties of the regional restorable account. + * An interface representing CosmosDBManagementClientOptions. */ -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; +export interface CosmosDBManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; } /** - * A Azure Cosmos DB restorable database account. + * @interface + * The List operation response, that contains the database accounts and their properties. + * @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; +export interface DatabaseAccountsListResult extends Array { } /** - * Cosmos DB location metadata + * @interface + * The response to a list metrics request. + * @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[]; +export interface MetricListResult extends Array { } /** - * Cosmos DB location get result + * @interface + * The response to a list usage request. + * @extends Array */ -export interface LocationGetResult extends ARMProxyResource { - /** - * Cosmos DB location metadata - */ - properties?: LocationProperties; +export interface UsagesResult extends Array { } /** - * Properties of the regional restorable account. + * @interface + * The response to a list metric definitions request. + * @extends Array */ -export interface ContinuousBackupRestoreLocation { - /** - * The name of the continuous backup restore location. - */ - location?: string; +export interface MetricDefinitionsListResult extends Array { } /** - * Continuous backup description. + * @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 ContinuousBackupInformation { +export interface OperationListResult extends Array { /** - * The latest restorable timestamp for a resource. + * URL to get the next set of operation list results if there are any. */ - latestRestorableTimestamp?: string; + nextLink?: string; } /** - * Backup information of a resource. + * @interface + * The response to a list percentile metrics request. + * @extends Array */ -export interface BackupInformation { - continuousBackupInformation?: ContinuousBackupInformation; +export interface PercentileMetricListResult extends Array { } /** - * The resource model definition for an Azure Resource Manager tracked top level resource which has - * 'tags' and a 'location' - * @summary Tracked Resource + * @interface + * The response to a list partition metrics request. + * @extends Array */ -export interface TrackedResource extends Resource { - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; - /** - * The geo-location where the resource lives - */ - location: string; +export interface PartitionMetricListResult extends Array { } /** - * The resource model definition for an Azure Resource Manager resource with an etag. - * @summary Entity Resource + * @interface + * The response to a list partition level usage request. + * @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; +export interface PartitionUsagesResult extends Array { } /** - * Parameters to create a notebook workspace resource + * @interface + * The List operation response, that contains the SQL databases and their properties. + * @extends Array */ -export interface NotebookWorkspaceCreateUpdateParameters extends ARMProxyResource {} +export interface SqlDatabaseListResult extends Array { +} /** - * A notebook workspace resource + * @interface + * The List operation response, that contains the containers and their properties. + * @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; +export interface SqlContainerListResult extends Array { } /** - * The connection info for the given notebook workspace + * @interface + * The List operation response, that contains the storedProcedures and their properties. + * @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; -} - -/** - * The set of data plane operations permitted through this Role Definition. - */ -export interface Permission { - /** - * An array of data actions that are allowed. - */ - dataActions?: string[]; - /** - * An array of data actions that are denied. - */ - notDataActions?: string[]; -} - -/** - * Parameters to create and update an Azure Cosmos DB SQL Role Definition. - */ -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[]; -} - -/** - * An Azure Cosmos DB SQL Role Definition. - */ -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[]; -} - -/** - * Parameters to create and update an Azure Cosmos DB SQL Role Assignment. - */ -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; -} - -/** - * An Azure Cosmos DB Role Assignment - */ -export interface SqlRoleAssignmentGetResults extends ARMProxyResource { - /** - * The unique identifier for the associated Role Definition. - */ - roleDefinitionId?: string; - /** - * The data plane resource path for which access is being granted through this Role Assignment. - */ - scope?: string; - /** - * The unique identifier for the associated AAD principal in the AAD graph to which access is - * being granted through this Role Assignment. Tenant ID for the principal is inferred using the - * tenant associated with the subscription. - */ - principalId?: string; -} - -/** - * Cosmos DB SQL database resource object - */ -export interface RestorableSqlDatabasePropertiesResourceDatabase { - /** - * Name of the Cosmos DB SQL database - */ - id: string; - /** - * A system generated property. A unique identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _rid?: string; - /** - * A system generated property that denotes the last updated timestamp of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _ts?: number; - /** - * A system generated property representing the resource etag required for optimistic concurrency - * control. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _etag?: string; - /** - * A system generated property that specified the addressable path of the collections resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _colls?: string; - /** - * A system generated property that specifies the addressable path of the users resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _users?: string; - /** - * A system generated property that specifies the addressable path of the database resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _self?: string; -} - -/** - * The resource of an Azure Cosmos DB SQL database event - */ -export interface RestorableSqlDatabasePropertiesResource { - /** - * A system generated property. A unique identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _rid?: string; - /** - * The operation type of this database event. Possible values include: 'Create', 'Replace', - * 'Delete', 'SystemOperation' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly operationType?: OperationType; - /** - * The time when this database event happened. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly eventTimestamp?: string; - /** - * The name of the SQL database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly ownerId?: string; - /** - * The resource ID of the SQL database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly ownerResourceId?: string; - /** - * Cosmos DB SQL database resource object - */ - database?: RestorableSqlDatabasePropertiesResourceDatabase; -} - -/** - * An Azure Cosmos DB SQL database event - */ -export interface RestorableSqlDatabaseGetResult { - /** - * The resource of an Azure Cosmos DB SQL database event - */ - resource?: RestorableSqlDatabasePropertiesResource; - /** - * The unique resource Identifier of the ARM resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * The name of the ARM resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The type of Azure resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; -} - -/** - * Cosmos DB SQL container resource object - */ -export interface RestorableSqlContainerPropertiesResourceContainer { - /** - * Name of the Cosmos DB SQL container - */ - id: string; - /** - * The configuration of the indexing policy. By default, the indexing is automatic for all - * document paths within the container - */ - indexingPolicy?: IndexingPolicy; - /** - * The configuration of the partition key to be used for partitioning data into multiple - * partitions - */ - partitionKey?: ContainerPartitionKey; - /** - * Default time to live - */ - defaultTtl?: number; - /** - * The unique key policy configuration for specifying uniqueness constraints on documents in the - * collection in the Azure Cosmos DB service. - */ - uniqueKeyPolicy?: UniqueKeyPolicy; - /** - * The conflict resolution policy for the container. - */ - conflictResolutionPolicy?: ConflictResolutionPolicy; - /** - * Analytical TTL. - */ - analyticalStorageTtl?: number; - /** - * A system generated property. A unique identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _rid?: string; - /** - * A system generated property that denotes the last updated timestamp of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _ts?: number; - /** - * A system generated property representing the resource etag required for optimistic concurrency - * control. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _etag?: string; - /** - * A system generated property that specifies the addressable path of the container resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _self?: string; -} - -/** - * The resource of an Azure Cosmos DB SQL container event - */ -export interface RestorableSqlContainerPropertiesResource { - /** - * A system generated property. A unique identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _rid?: string; - /** - * The operation type of this container event. Possible values include: 'Create', 'Replace', - * 'Delete', 'SystemOperation' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly operationType?: OperationType; - /** - * The when this container event happened. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly eventTimestamp?: string; - /** - * The name of this SQL container. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly ownerId?: string; - /** - * The resource ID of this SQL container. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly ownerResourceId?: string; - /** - * Cosmos DB SQL container resource object - */ - container?: RestorableSqlContainerPropertiesResourceContainer; -} - -/** - * An Azure Cosmos DB SQL container event - */ -export interface RestorableSqlContainerGetResult { - /** - * The resource of an Azure Cosmos DB SQL container event - */ - resource?: RestorableSqlContainerPropertiesResource; - /** - * The unique resource Identifier of the ARM resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * The name of the ARM resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The type of Azure resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; -} - -/** - * The resource of an Azure Cosmos DB MongoDB database event - */ -export interface RestorableMongodbDatabasePropertiesResource { - /** - * A system generated property. A unique identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _rid?: string; - /** - * The operation type of this database event. Possible values include: 'Create', 'Replace', - * 'Delete', 'SystemOperation' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly operationType?: OperationType; - /** - * 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 {} +export interface SqlStoredProcedureListResult extends Array { +} /** * @interface - * A list of private endpoint connections - * @extends Array + * The List operation response, that contains the userDefinedFunctions and their properties. + * @extends Array */ -export interface PrivateEndpointConnectionListResult extends Array {} +export interface SqlUserDefinedFunctionListResult 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} + * The List operation response, that contains the triggers and their properties. + * @extends Array */ -export type ServiceSize = "Cosmos.D4s" | "Cosmos.D8s" | "Cosmos.D16s"; +export interface SqlTriggerListResult extends Array { +} /** - * Defines values for ServiceStatus. - * Possible values include: 'Creating', 'Running', 'Updating', 'Deleting', 'Error', 'Stopped' - * @readonly - * @enum {string} + * @interface + * The relevant Role Definitions. + * @extends Array */ -export type ServiceStatus = "Creating" | "Running" | "Updating" | "Deleting" | "Error" | "Stopped"; +export interface SqlRoleDefinitionListResult extends Array { +} /** - * Defines values for ServiceType. - * Possible values include: 'SqlDedicatedGateway', 'DataTransfer' - * @readonly - * @enum {string} + * @interface + * The relevant Role Assignments. + * @extends Array */ -export type ServiceType = "SqlDedicatedGateway" | "DataTransfer"; +export interface SqlRoleAssignmentListResult extends Array { +} /** - * Contains response data for the get operation. + * @interface + * The List operation response, that contains the MongoDB databases and their properties. + * @extends Array */ -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; - }; -}; +export interface MongoDBDatabaseListResult extends Array { +} /** - * Contains response data for the update operation. + * @interface + * The List operation response, that contains the MongoDB collections and their properties. + * @extends Array */ -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; - }; -}; +export interface MongoDBCollectionListResult extends Array { +} /** - * Contains response data for the createOrUpdate operation. + * @interface + * The List operation response, that contains the Table and their properties. + * @extends Array */ -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; - }; -}; +export interface TableListResult extends Array { +} /** - * Contains response data for the list operation. + * @interface + * The List operation response, that contains the Cassandra keyspaces and their properties. + * @extends Array */ -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; - }; -}; +export interface CassandraKeyspaceListResult extends Array { +} /** - * Contains response data for the listByResourceGroup operation. + * @interface + * The List operation response, that contains the Cassandra tables and their properties. + * @extends Array */ -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; - }; -}; +export interface CassandraTableListResult extends Array { +} /** - * Contains response data for the listKeys operation. + * @interface + * The List operation response, that contains the Gremlin databases and their properties. + * @extends Array */ -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; - }; -}; +export interface GremlinDatabaseListResult extends Array { +} /** - * Contains response data for the listConnectionStrings operation. + * @interface + * The List operation response, that contains the graphs and their properties. + * @extends Array */ -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; - }; -}; +export interface GremlinGraphListResult extends Array { +} /** - * Contains response data for the getReadOnlyKeys operation. + * @interface + * A list of notebook workspace resources + * @extends Array */ -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; - }; -}; +export interface NotebookWorkspaceListResult extends Array { +} /** - * Contains response data for the listReadOnlyKeys operation. + * @interface + * A list of private link resources + * @extends Array */ -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; - }; -}; +export interface PrivateLinkResourceListResult extends Array { +} /** - * Contains response data for the checkNameExists operation. + * @interface + * A list of private endpoint connections + * @extends Array */ -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; - }; -}; +export interface PrivateEndpointConnectionListResult extends Array { +} /** - * Contains response data for the listMetrics operation. + * Defines values for DatabaseAccountKind. + * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' + * @readonly + * @enum {string} */ -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; - }; -}; +export type DatabaseAccountKind = 'GlobalDocumentDB' | 'MongoDB' | 'Parse'; /** - * Contains response data for the listUsages operation. + * Defines values for ResourceIdentityType. + * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' + * @readonly + * @enum {string} */ -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; - }; -}; +export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; /** - * Contains response data for the listMetricDefinitions operation. + * Defines values for DatabaseAccountOfferType. + * Possible values include: 'Standard' + * @readonly + * @enum {string} */ -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; - }; -}; +export type DatabaseAccountOfferType = 'Standard'; /** - * Contains response data for the beginUpdate operation. + * Defines values for DefaultConsistencyLevel. + * Possible values include: 'Eventual', 'Session', 'BoundedStaleness', 'Strong', 'ConsistentPrefix' + * @readonly + * @enum {string} */ -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; - }; -}; +export type DefaultConsistencyLevel = 'Eventual' | 'Session' | 'BoundedStaleness' | 'Strong' | 'ConsistentPrefix'; /** - * Contains response data for the beginCreateOrUpdate operation. + * Defines values for ConnectorOffer. + * Possible values include: 'Small' + * @readonly + * @enum {string} */ -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; - }; -}; +export type ConnectorOffer = 'Small'; /** - * Contains response data for the list operation. + * Defines values for PublicNetworkAccess. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} */ -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; - }; -}; +export type PublicNetworkAccess = 'Enabled' | 'Disabled'; /** - * Contains response data for the listNext operation. + * Defines values for ServerVersion. + * Possible values include: '3.2', '3.6', '4.0' + * @readonly + * @enum {string} */ -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; - }; -}; +export type ServerVersion = '3.2' | '3.6' | '4.0'; /** - * Contains response data for the listMetrics operation. + * Defines values for AnalyticalStorageSchemaType. + * Possible values include: 'WellDefined', 'FullFidelity' + * @readonly + * @enum {string} */ -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; - }; -}; +export type AnalyticalStorageSchemaType = 'WellDefined' | 'FullFidelity'; /** - * Contains response data for the listUsages operation. + * Defines values for NetworkAclBypass. + * Possible values include: 'None', 'AzureServices' + * @readonly + * @enum {string} */ -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; - }; -}; +export type NetworkAclBypass = 'None' | 'AzureServices'; /** - * Contains response data for the listMetricDefinitions operation. + * Defines values for IndexingMode. + * Possible values include: 'consistent', 'lazy', 'none' + * @readonly + * @enum {string} */ -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; - }; -}; +export type IndexingMode = 'consistent' | 'lazy' | 'none'; /** - * Contains response data for the listMetrics operation. + * Defines values for DataType. + * Possible values include: 'String', 'Number', 'Point', 'Polygon', 'LineString', 'MultiPolygon' + * @readonly + * @enum {string} */ -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; - }; -}; +export type DataType = 'String' | 'Number' | 'Point' | 'Polygon' | 'LineString' | 'MultiPolygon'; /** - * Contains response data for the listUsages operation. + * Defines values for IndexKind. + * Possible values include: 'Hash', 'Range', 'Spatial' + * @readonly + * @enum {string} */ -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; - }; -}; +export type IndexKind = 'Hash' | 'Range' | 'Spatial'; /** - * Contains response data for the listMetricDefinitions operation. + * Defines values for CompositePathSortOrder. + * Possible values include: 'ascending', 'descending' + * @readonly + * @enum {string} */ -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; - }; -}; +export type CompositePathSortOrder = 'ascending' | 'descending'; /** - * Contains response data for the listMetrics operation. + * Defines values for SpatialType. + * Possible values include: 'Point', 'LineString', 'Polygon', 'MultiPolygon' + * @readonly + * @enum {string} */ -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; - }; -}; +export type SpatialType = 'Point' | 'LineString' | 'Polygon' | 'MultiPolygon'; /** - * Contains response data for the listMetrics operation. + * Defines values for PartitionKind. + * Possible values include: 'Hash', 'Range', 'MultiHash' + * @readonly + * @enum {string} */ -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; - }; -}; +export type PartitionKind = 'Hash' | 'Range' | 'MultiHash'; /** - * Contains response data for the listMetrics operation. + * Defines values for ConflictResolutionMode. + * Possible values include: 'LastWriterWins', 'Custom' + * @readonly + * @enum {string} */ -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; - }; -}; +export type ConflictResolutionMode = 'LastWriterWins' | 'Custom'; /** - * Contains response data for the listMetrics operation. + * Defines values for TriggerType. + * Possible values include: 'Pre', 'Post' + * @readonly + * @enum {string} */ -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; - }; -}; +export type TriggerType = 'Pre' | 'Post'; /** - * Contains response data for the listMetrics operation. + * Defines values for TriggerOperation. + * Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace' + * @readonly + * @enum {string} */ -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; - }; -}; +export type TriggerOperation = 'All' | 'Create' | 'Update' | 'Delete' | 'Replace'; /** - * Contains response data for the listMetrics operation. + * Defines values for KeyKind. + * Possible values include: 'primary', 'secondary', 'primaryReadonly', 'secondaryReadonly' + * @readonly + * @enum {string} */ -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; - }; -}; +export type KeyKind = 'primary' | 'secondary' | 'primaryReadonly' | 'secondaryReadonly'; /** - * Contains response data for the listMetrics operation. + * Defines values for UnitType. + * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', + * 'BytesPerSecond', 'Milliseconds' + * @readonly + * @enum {string} */ -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; - }; -}; +export type UnitType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSecond' | 'BytesPerSecond' | 'Milliseconds'; /** - * Contains response data for the listUsages operation. + * Defines values for PrimaryAggregationType. + * Possible values include: 'None', 'Average', 'Total', 'Minimum', 'Maximum', 'Last' + * @readonly + * @enum {string} */ -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; - }; -}; +export type PrimaryAggregationType = 'None' | 'Average' | 'Total' | 'Minimum' | 'Maximum' | 'Last'; /** - * Contains response data for the listMetrics operation. + * Defines values for BackupPolicyType. + * Possible values include: 'Periodic', 'Continuous' + * @readonly + * @enum {string} */ -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; - }; -}; +export type BackupPolicyType = 'Periodic' | 'Continuous'; /** - * Contains response data for the listMetrics operation. + * Defines values for RoleDefinitionType. + * Possible values include: 'BuiltInRole', 'CustomRole' + * @readonly + * @enum {string} */ -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; - }; -}; +export type RoleDefinitionType = 'BuiltInRole' | 'CustomRole'; /** - * Contains response data for the listSqlDatabases operation. + * Contains response data for the get operation. */ -export type SqlResourcesListSqlDatabasesResponse = SqlDatabaseListResult & { +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: SqlDatabaseListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; }; /** - * Contains response data for the getSqlDatabase operation. + * Contains response data for the update operation. */ -export type SqlResourcesGetSqlDatabaseResponse = SqlDatabaseGetResults & { +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: SqlDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; }; /** - * Contains response data for the createUpdateSqlDatabase operation. + * Contains response data for the createOrUpdate operation. */ -export type SqlResourcesCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { +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: SqlDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; }; /** - * Contains response data for the getSqlDatabaseThroughput operation. + * Contains response data for the list operation. */ -export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +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: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountsListResult; + }; }; /** - * Contains response data for the updateSqlDatabaseThroughput operation. + * Contains response data for the listByResourceGroup operation. */ -export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type DatabaseAccountsListByResourceGroupResponse = 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: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountsListResult; + }; }; /** - * Contains response data for the migrateSqlDatabaseToAutoscale operation. + * Contains response data for the listKeys operation. */ -export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +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: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountListKeysResult; + }; }; /** - * Contains response data for the migrateSqlDatabaseToManualThroughput operation. + * Contains response data for the listConnectionStrings operation. */ -export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type DatabaseAccountsListConnectionStringsResponse = DatabaseAccountListConnectionStringsResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body 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: DatabaseAccountListConnectionStringsResult; + }; }; /** - * Contains response data for the listSqlContainers operation. + * Contains response data for the getReadOnlyKeys operation. */ -export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { +export type DatabaseAccountsGetReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body 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: DatabaseAccountListReadOnlyKeysResult; + }; }; /** - * Contains response data for the getSqlContainer operation. + * Contains response data for the listReadOnlyKeys operation. */ -export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults & { +export type DatabaseAccountsListReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body 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: DatabaseAccountListReadOnlyKeysResult; + }; }; /** - * Contains response data for the createUpdateSqlContainer operation. + * Contains response data for the checkNameExists operation. */ -export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResults & { +export type DatabaseAccountsCheckNameExistsResponse = { /** - * The underlying HTTP response. + * The parsed response body. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlContainerGetResults; - }; -}; + body: boolean; -/** - * Contains response data for the getSqlContainerThroughput operation. - */ -export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: boolean; + }; }; /** - * Contains response data for the updateSqlContainerThroughput operation. + * Contains response data for the listMetrics operation. */ -export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { +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: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; }; /** - * Contains response data for the migrateSqlContainerToAutoscale operation. + * Contains response data for the listUsages operation. */ -export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { +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: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsagesResult; + }; }; /** - * Contains response data for the migrateSqlContainerToManualThroughput operation. + * Contains response data for the listMetricDefinitions operation. */ -export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { +export type DatabaseAccountsListMetricDefinitionsResponse = 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: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricDefinitionsListResult; + }; }; /** - * Contains response data for the listSqlStoredProcedures operation. + * Contains response data for the beginUpdate operation. */ -export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureListResult & { +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: SqlStoredProcedureListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; }; /** - * Contains response data for the getSqlStoredProcedure operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type DatabaseAccountsBeginCreateOrUpdateResponse = 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: SqlStoredProcedureGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; }; /** - * Contains response data for the createUpdateSqlStoredProcedure operation. + * Contains response data for the list operation. */ -export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +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: SqlStoredProcedureGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; }; /** - * Contains response data for the listSqlUserDefinedFunctions operation. + * Contains response data for the listNext operation. */ -export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunctionListResult & { +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: SqlUserDefinedFunctionListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; }; /** - * Contains response data for the getSqlUserDefinedFunction operation. + * Contains response data for the listMetrics operation. */ -export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +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: SqlUserDefinedFunctionGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; }; /** - * Contains response data for the createUpdateSqlUserDefinedFunction operation. + * Contains response data for the listUsages operation. */ -export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +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: SqlUserDefinedFunctionGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsagesResult; + }; }; /** - * Contains response data for the listSqlTriggers operation. + * Contains response data for the listMetricDefinitions operation. */ -export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { +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: SqlTriggerListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricDefinitionsListResult; + }; }; /** - * Contains response data for the getSqlTrigger operation. + * Contains response data for the listMetrics operation. */ -export type SqlResourcesGetSqlTriggerResponse = SqlTriggerGetResults & { +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: SqlTriggerGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; }; /** - * Contains response data for the createUpdateSqlTrigger operation. + * Contains response data for the listUsages operation. */ -export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { +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: SqlTriggerGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsagesResult; + }; }; /** - * Contains response data for the retrieveContinuousBackupInformation operation. + * Contains response data for the listMetricDefinitions operation. */ -export type SqlResourcesRetrieveContinuousBackupInformationResponse = BackupInformation & { +export type CollectionListMetricDefinitionsResponse = 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: BackupInformation; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricDefinitionsListResult; + }; }; /** - * Contains response data for the getSqlRoleDefinition operation. + * Contains response data for the listMetrics operation. */ -export type SqlResourcesGetSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { +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: SqlRoleDefinitionGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; }; /** - * Contains response data for the createUpdateSqlRoleDefinition operation. + * Contains response data for the listMetrics operation. */ -export type SqlResourcesCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { +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: SqlRoleDefinitionGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; }; /** - * Contains response data for the listSqlRoleDefinitions operation. + * Contains response data for the listMetrics operation. */ -export type SqlResourcesListSqlRoleDefinitionsResponse = SqlRoleDefinitionListResult & { +export type PercentileSourceTargetListMetricsResponse = 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: SqlRoleDefinitionListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PercentileMetricListResult; + }; }; /** - * Contains response data for the getSqlRoleAssignment operation. + * Contains response data for the listMetrics operation. */ -export type SqlResourcesGetSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { +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: SqlRoleAssignmentGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PercentileMetricListResult; + }; }; /** - * Contains response data for the createUpdateSqlRoleAssignment operation. + * Contains response data for the listMetrics operation. */ -export type SqlResourcesCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { +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: SqlRoleAssignmentGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PercentileMetricListResult; + }; }; /** - * Contains response data for the listSqlRoleAssignments operation. + * Contains response data for the listMetrics operation. */ -export type SqlResourcesListSqlRoleAssignmentsResponse = SqlRoleAssignmentListResult & { +export type CollectionPartitionRegionListMetricsResponse = 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: SqlRoleAssignmentListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionMetricListResult; + }; }; /** - * Contains response data for the beginCreateUpdateSqlDatabase operation. + * Contains response data for the listMetrics operation. */ -export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { +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: SqlDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionMetricListResult; + }; }; /** - * Contains response data for the beginUpdateSqlDatabaseThroughput operation. + * Contains response data for the listUsages operation. */ -export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +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: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionUsagesResult; + }; }; /** - * Contains response data for the beginMigrateSqlDatabaseToAutoscale operation. + * Contains response data for the listMetrics operation. */ -export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +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: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionMetricListResult; + }; }; /** - * Contains response data for the beginMigrateSqlDatabaseToManualThroughput operation. + * Contains response data for the listMetrics operation. */ -export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type PartitionKeyRangeIdRegionListMetricsResponse = 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: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionMetricListResult; + }; }; /** - * Contains response data for the beginCreateUpdateSqlContainer operation. + * Contains response data for the listSqlDatabases operation. */ -export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetResults & { +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: SqlContainerGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlDatabaseListResult; + }; }; /** - * Contains response data for the beginUpdateSqlContainerThroughput operation. + * Contains response data for the getSqlDatabase operation. */ -export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { +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: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlDatabaseGetResults; + }; }; /** - * Contains response data for the beginMigrateSqlContainerToAutoscale operation. + * Contains response data for the createUpdateSqlDatabase operation. */ -export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { +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: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlDatabaseGetResults; + }; }; /** - * Contains response data for the beginMigrateSqlContainerToManualThroughput operation. + * Contains response data for the getSqlDatabaseThroughput operation. */ -export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateSqlStoredProcedure operation. + * Contains response data for the updateSqlDatabaseThroughput operation. */ -export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlStoredProcedureGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateSqlUserDefinedFunction operation. + * Contains response data for the migrateSqlDatabaseToAutoscale operation. */ -export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlUserDefinedFunctionGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateSqlTrigger operation. + * Contains response data for the migrateSqlDatabaseToManualThroughput operation. */ -export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { +export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlTriggerGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginRetrieveContinuousBackupInformation operation. + * Contains response data for the listSqlContainers operation. */ -export type SqlResourcesBeginRetrieveContinuousBackupInformationResponse = BackupInformation & { +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: BackupInformation; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlContainerListResult; + }; }; /** - * Contains response data for the beginCreateUpdateSqlRoleDefinition operation. + * Contains response data for the getSqlContainer operation. */ -export type SqlResourcesBeginCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { +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: SqlRoleDefinitionGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlContainerGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateSqlRoleAssignment operation. + * Contains response data for the createUpdateSqlContainer operation. */ -export type SqlResourcesBeginCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { +export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlRoleAssignmentGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlContainerGetResults; + }; }; /** - * Contains response data for the listMongoDBDatabases operation. + * Contains response data for the getSqlContainerThroughput operation. */ -export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListResult & { +export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBDatabaseListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getMongoDBDatabase operation. + * Contains response data for the updateSqlContainerThroughput operation. */ -export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the createUpdateMongoDBDatabase operation. + * Contains response data for the migrateSqlContainerToAutoscale operation. */ -export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getMongoDBDatabaseThroughput operation. + * Contains response data for the migrateSqlContainerToManualThroughput operation. */ -export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the updateMongoDBDatabaseThroughput operation. + * Contains response data for the listSqlStoredProcedures operation. */ -export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlStoredProcedureListResult; + }; }; /** - * Contains response data for the migrateMongoDBDatabaseToAutoscale operation. + * Contains response data for the getSqlStoredProcedure operation. */ -export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlStoredProcedureGetResults; + }; }; /** - * Contains response data for the migrateMongoDBDatabaseToManualThroughput operation. + * Contains response data for the createUpdateSqlStoredProcedure operation. */ -export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlStoredProcedureGetResults; + }; }; /** - * Contains response data for the listMongoDBCollections operation. + * Contains response data for the listSqlUserDefinedFunctions operation. */ -export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionListResult & { +export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunctionListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBCollectionListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlUserDefinedFunctionListResult; + }; }; /** - * Contains response data for the getMongoDBCollection operation. + * Contains response data for the getSqlUserDefinedFunction operation. */ -export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBCollectionGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlUserDefinedFunctionGetResults; + }; }; /** - * Contains response data for the createUpdateMongoDBCollection operation. + * Contains response data for the createUpdateSqlUserDefinedFunction operation. */ -export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBCollectionGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlUserDefinedFunctionGetResults; + }; }; /** - * Contains response data for the getMongoDBCollectionThroughput operation. + * Contains response data for the listSqlTriggers operation. */ -export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +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: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlTriggerListResult; + }; }; /** - * Contains response data for the updateMongoDBCollectionThroughput operation. + * Contains response data for the getSqlTrigger operation. */ -export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +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: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlTriggerGetResults; + }; }; /** - * Contains response data for the migrateMongoDBCollectionToAutoscale operation. + * Contains response data for the createUpdateSqlTrigger operation. */ -export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { +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: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlTriggerGetResults; + }; }; /** - * Contains response data for the migrateMongoDBCollectionToManualThroughput operation. + * Contains response data for the getSqlRoleDefinition operation. */ -export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesGetSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleDefinitionGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateMongoDBDatabase operation. + * Contains response data for the createUpdateSqlRoleDefinition operation. */ -export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type SqlResourcesCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleDefinitionGetResults; + }; }; /** - * Contains response data for the beginUpdateMongoDBDatabaseThroughput operation. + * Contains response data for the listSqlRoleDefinitions operation. */ -export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesListSqlRoleDefinitionsResponse = SqlRoleDefinitionListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleDefinitionListResult; + }; }; /** - * Contains response data for the beginMigrateMongoDBDatabaseToAutoscale operation. + * Contains response data for the getSqlRoleAssignment operation. */ -export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type SqlResourcesGetSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleAssignmentGetResults; + }; }; /** - * Contains response data for the beginMigrateMongoDBDatabaseToManualThroughput operation. + * Contains response data for the createUpdateSqlRoleAssignment operation. */ -export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleAssignmentGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateMongoDBCollection operation. + * Contains response data for the listSqlRoleAssignments operation. */ -export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type SqlResourcesListSqlRoleAssignmentsResponse = SqlRoleAssignmentListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBCollectionGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleAssignmentListResult; + }; }; /** - * Contains response data for the beginUpdateMongoDBCollectionThroughput operation. + * Contains response data for the beginCreateUpdateSqlDatabase operation. */ -export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlDatabaseGetResults; + }; }; /** - * Contains response data for the beginMigrateMongoDBCollectionToAutoscale operation. + * Contains response data for the beginUpdateSqlDatabaseThroughput operation. */ -export type MongoDBResourcesBeginMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateMongoDBCollectionToManualThroughput operation. + * Contains response data for the beginMigrateSqlDatabaseToAutoscale operation. */ -export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listTables operation. + * Contains response data for the beginMigrateSqlDatabaseToManualThroughput operation. */ -export type TableResourcesListTablesResponse = TableListResult & { +export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: TableListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getTable operation. + * Contains response data for the beginCreateUpdateSqlContainer operation. */ -export type TableResourcesGetTableResponse = TableGetResults & { +export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: TableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlContainerGetResults; + }; }; /** - * Contains response data for the createUpdateTable operation. + * Contains response data for the beginUpdateSqlContainerThroughput operation. */ -export type TableResourcesCreateUpdateTableResponse = TableGetResults & { +export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: TableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getTableThroughput operation. + * Contains response data for the beginMigrateSqlContainerToAutoscale operation. */ -export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the updateTableThroughput operation. + * Contains response data for the beginMigrateSqlContainerToManualThroughput operation. */ -export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateTableToAutoscale operation. + * Contains response data for the beginCreateUpdateSqlStoredProcedure operation. */ -export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlStoredProcedureGetResults; + }; }; /** - * Contains response data for the migrateTableToManualThroughput operation. + * Contains response data for the beginCreateUpdateSqlUserDefinedFunction operation. */ -export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlUserDefinedFunctionGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateTable operation. + * Contains response data for the beginCreateUpdateSqlTrigger operation. */ -export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { +export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: TableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlTriggerGetResults; + }; }; /** - * Contains response data for the beginUpdateTableThroughput operation. + * Contains response data for the beginCreateUpdateSqlRoleDefinition operation. */ -export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleDefinitionGetResults; + }; }; /** - * Contains response data for the beginMigrateTableToAutoscale operation. + * Contains response data for the beginCreateUpdateSqlRoleAssignment operation. */ -export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleAssignmentGetResults; + }; }; /** - * Contains response data for the beginMigrateTableToManualThroughput operation. + * Contains response data for the listMongoDBDatabases operation. */ -export type TableResourcesBeginMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBDatabaseListResult; + }; }; /** - * Contains response data for the listCassandraKeyspaces operation. + * Contains response data for the getMongoDBDatabase operation. */ -export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspaceListResult & { +export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraKeyspaceListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBDatabaseGetResults; + }; }; /** - * Contains response data for the getCassandraKeyspace operation. + * Contains response data for the createUpdateMongoDBDatabase operation. */ -export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraKeyspaceGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBDatabaseGetResults; + }; }; /** - * Contains response data for the createUpdateCassandraKeyspace operation. + * Contains response data for the getMongoDBDatabaseThroughput operation. */ -export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraKeyspaceGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getCassandraKeyspaceThroughput operation. + * Contains response data for the updateMongoDBDatabaseThroughput operation. */ -export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the updateCassandraKeyspaceThroughput operation. + * Contains response data for the migrateMongoDBDatabaseToAutoscale operation. */ -export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateCassandraKeyspaceToAutoscale operation. + * Contains response data for the migrateMongoDBDatabaseToManualThroughput operation. */ -export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateCassandraKeyspaceToManualThroughput operation. + * Contains response data for the listMongoDBCollections operation. */ -export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBCollectionListResult; + }; }; /** - * Contains response data for the listCassandraTables operation. + * Contains response data for the getMongoDBCollection operation. */ -export type CassandraResourcesListCassandraTablesResponse = CassandraTableListResult & { +export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraTableListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBCollectionGetResults; + }; }; /** - * Contains response data for the getCassandraTable operation. + * Contains response data for the createUpdateMongoDBCollection operation. */ -export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResults & { +export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraTableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBCollectionGetResults; + }; }; /** - * Contains response data for the createUpdateCassandraTable operation. + * Contains response data for the getMongoDBCollectionThroughput operation. */ -export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTableGetResults & { +export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraTableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getCassandraTableThroughput operation. + * Contains response data for the updateMongoDBCollectionThroughput operation. */ -export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the updateCassandraTableThroughput operation. + * Contains response data for the migrateMongoDBCollectionToAutoscale operation. */ -export type CassandraResourcesUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateCassandraTableToAutoscale operation. + * Contains response data for the migrateMongoDBCollectionToManualThroughput operation. */ -export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateCassandraTableToManualThroughput operation. + * Contains response data for the beginCreateUpdateMongoDBDatabase operation. */ -export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBDatabaseGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateCassandraKeyspace operation. + * Contains response data for the beginUpdateMongoDBDatabaseThroughput operation. */ -export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraKeyspaceGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginUpdateCassandraKeyspaceThroughput operation. + * Contains response data for the beginMigrateMongoDBDatabaseToAutoscale operation. */ -export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateCassandraKeyspaceToAutoscale operation. + * Contains response data for the beginMigrateMongoDBDatabaseToManualThroughput operation. */ -export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateCassandraKeyspaceToManualThroughput operation. + * Contains response data for the beginCreateUpdateMongoDBCollection operation. */ -export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBCollectionGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateCassandraTable operation. + * Contains response data for the beginUpdateMongoDBCollectionThroughput operation. */ -export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = CassandraTableGetResults & { +export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraTableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginUpdateCassandraTableThroughput operation. + * Contains response data for the beginMigrateMongoDBCollectionToAutoscale operation. */ -export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateCassandraTableToAutoscale operation. + * Contains response data for the beginMigrateMongoDBCollectionToManualThroughput operation. */ -export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateCassandraTableToManualThroughput operation. + * Contains response data for the listTables operation. */ -export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesListTablesResponse = TableListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TableListResult; + }; }; /** - * Contains response data for the listGremlinDatabases operation. + * Contains response data for the getTable operation. */ -export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListResult & { +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: GremlinDatabaseListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TableGetResults; + }; }; /** - * Contains response data for the getGremlinDatabase operation. + * Contains response data for the createUpdateTable operation. */ -export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResults & { +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: GremlinDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TableGetResults; + }; }; /** - * Contains response data for the createUpdateGremlinDatabase operation. + * Contains response data for the getTableThroughput operation. */ -export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GremlinDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getGremlinDatabaseThroughput operation. + * Contains response data for the updateTableThroughput operation. */ -export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the updateGremlinDatabaseThroughput operation. + * Contains response data for the migrateTableToAutoscale operation. */ -export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateGremlinDatabaseToAutoscale operation. + * Contains response data for the migrateTableToManualThroughput operation. */ -export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateGremlinDatabaseToManualThroughput operation. + * Contains response data for the beginCreateUpdateTable operation. */ -export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TableGetResults; + }; }; /** - * Contains response data for the listGremlinGraphs operation. + * Contains response data for the beginUpdateTableThroughput operation. */ -export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & { +export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GremlinGraphListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getGremlinGraph operation. + * Contains response data for the beginMigrateTableToAutoscale operation. */ -export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { +export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GremlinGraphGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the createUpdateGremlinGraph operation. + * Contains response data for the beginMigrateTableToManualThroughput operation. */ -export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { +export type TableResourcesBeginMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GremlinGraphGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getGremlinGraphThroughput operation. + * Contains response data for the listCassandraKeyspaces operation. */ -export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspaceListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraKeyspaceListResult; + }; }; /** - * Contains response data for the updateGremlinGraphThroughput operation. + * Contains response data for the getCassandraKeyspace operation. */ -export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraKeyspaceGetResults; + }; }; /** - * Contains response data for the migrateGremlinGraphToAutoscale operation. + * Contains response data for the createUpdateCassandraKeyspace operation. */ -export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraKeyspaceGetResults; + }; }; /** - * Contains response data for the migrateGremlinGraphToManualThroughput operation. + * Contains response data for the getCassandraKeyspaceThroughput operation. */ -export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateGremlinDatabase operation. + * Contains response data for the updateCassandraKeyspaceThroughput operation. */ -export type GremlinResourcesBeginCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GremlinDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginUpdateGremlinDatabaseThroughput operation. + * Contains response data for the migrateCassandraKeyspaceToAutoscale operation. */ -export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateGremlinDatabaseToAutoscale operation. + * Contains response data for the migrateCassandraKeyspaceToManualThroughput operation. */ -export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateGremlinDatabaseToManualThroughput operation. + * Contains response data for the listCassandraTables operation. */ -export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesListCassandraTablesResponse = CassandraTableListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraTableListResult; + }; }; /** - * Contains response data for the beginCreateUpdateGremlinGraph operation. + * Contains response data for the getCassandraTable operation. */ -export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { +export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GremlinGraphGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraTableGetResults; + }; }; /** - * Contains response data for the beginUpdateGremlinGraphThroughput operation. + * Contains response data for the createUpdateCassandraTable operation. */ -export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraTableGetResults; + }; }; /** - * Contains response data for the beginMigrateGremlinGraphToAutoscale operation. + * Contains response data for the getCassandraTableThroughput operation. */ -export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateGremlinGraphToManualThroughput operation. + * Contains response data for the updateCassandraTableThroughput operation. */ -export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listByLocation operation. + * Contains response data for the migrateCassandraTableToAutoscale operation. */ -export type RestorableDatabaseAccountsListByLocationResponse = RestorableDatabaseAccountsListResult & { +export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableDatabaseAccountsListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the migrateCassandraTableToManualThroughput operation. */ -export type RestorableDatabaseAccountsListResponse = RestorableDatabaseAccountsListResult & { +export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableDatabaseAccountsListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getByLocation operation. + * Contains response data for the beginCreateUpdateCassandraKeyspace operation. */ -export type RestorableDatabaseAccountsGetByLocationResponse = RestorableDatabaseAccountGetResult & { +export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableDatabaseAccountGetResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraKeyspaceGetResults; + }; }; /** - * Contains response data for the locationList operation. + * Contains response data for the beginUpdateCassandraKeyspaceThroughput operation. */ -export type LocationListResponse = LocationListResult & { +export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: LocationListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the locationGet operation. + * Contains response data for the beginMigrateCassandraKeyspaceToAutoscale operation. */ -export type LocationGetResponse = LocationGetResult & { +export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: LocationGetResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listByDatabaseAccount operation. + * Contains response data for the beginMigrateCassandraKeyspaceToManualThroughput operation. */ -export type NotebookWorkspacesListByDatabaseAccountResponse = NotebookWorkspaceListResult & { +export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: NotebookWorkspaceListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateUpdateCassandraTable operation. */ -export type NotebookWorkspacesGetResponse = NotebookWorkspace & { +export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: NotebookWorkspace; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraTableGetResults; + }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginUpdateCassandraTableThroughput operation. */ -export type NotebookWorkspacesCreateOrUpdateResponse = NotebookWorkspace & { +export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: NotebookWorkspace; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listConnectionInfo operation. + * Contains response data for the beginMigrateCassandraTableToAutoscale operation. */ -export type NotebookWorkspacesListConnectionInfoResponse = NotebookWorkspaceConnectionInfoResult & { +export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: NotebookWorkspaceConnectionInfoResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginMigrateCassandraTableToManualThroughput operation. */ -export type NotebookWorkspacesBeginCreateOrUpdateResponse = NotebookWorkspace & { +export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: NotebookWorkspace; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the listGremlinDatabases operation. */ -export type RestorableSqlDatabasesListResponse = RestorableSqlDatabasesListResult & { +export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableSqlDatabasesListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinDatabaseListResult; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the getGremlinDatabase operation. */ -export type RestorableSqlContainersListResponse = RestorableSqlContainersListResult & { +export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableSqlContainersListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinDatabaseGetResults; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the createUpdateGremlinDatabase operation. */ -export type RestorableSqlResourcesListResponse = RestorableSqlResourcesListResult & { +export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableSqlResourcesListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinDatabaseGetResults; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the getGremlinDatabaseThroughput operation. */ -export type RestorableMongodbDatabasesListResponse = RestorableMongodbDatabasesListResult & { +export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableMongodbDatabasesListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the updateGremlinDatabaseThroughput operation. */ -export type RestorableMongodbCollectionsListResponse = RestorableMongodbCollectionsListResult & { +export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableMongodbCollectionsListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the migrateGremlinDatabaseToAutoscale operation. */ -export type RestorableMongodbResourcesListResponse = RestorableMongodbResourcesListResult & { +export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableMongodbResourcesListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the migrateGremlinDatabaseToManualThroughput operation. */ -export type CassandraClustersListBySubscriptionResponse = ListClusters & { +export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListClusters; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listGremlinGraphs operation. */ -export type CassandraClustersListByResourceGroupResponse = ListClusters & { +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: ListClusters; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinGraphListResult; + }; }; /** - * Contains response data for the get operation. + * Contains response data for the getGremlinGraph operation. */ -export type CassandraClustersGetResponse = ClusterResource & { +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: ClusterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinGraphGetResults; + }; }; /** - * Contains response data for the createUpdate operation. + * Contains response data for the createUpdateGremlinGraph operation. */ -export type CassandraClustersCreateUpdateResponse = ClusterResource & { +export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClusterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinGraphGetResults; + }; }; /** - * Contains response data for the update operation. + * Contains response data for the getGremlinGraphThroughput operation. */ -export type CassandraClustersUpdateResponse = ClusterResource & { +export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClusterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the fetchNodeStatus operation. + * Contains response data for the updateGremlinGraphThroughput operation. */ -export type CassandraClustersFetchNodeStatusResponse = ClusterNodeStatus & { +export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClusterNodeStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listBackupsMethod operation. + * Contains response data for the migrateGremlinGraphToAutoscale operation. */ -export type CassandraClustersListBackupsMethodResponse = ListBackups & { +export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListBackups; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getBackup operation. + * Contains response data for the migrateGremlinGraphToManualThroughput operation. */ -export type CassandraClustersGetBackupResponse = BackupResource & { +export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginCreateUpdate operation. + * Contains response data for the beginCreateUpdateGremlinDatabase operation. */ -export type CassandraClustersBeginCreateUpdateResponse = ClusterResource & { +export type GremlinResourcesBeginCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClusterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinDatabaseGetResults; + }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the beginUpdateGremlinDatabaseThroughput operation. */ -export type CassandraClustersBeginUpdateResponse = ClusterResource & { +export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClusterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginFetchNodeStatus operation. + * Contains response data for the beginMigrateGremlinDatabaseToAutoscale operation. */ -export type CassandraClustersBeginFetchNodeStatusResponse = ClusterNodeStatus & { +export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClusterNodeStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginMigrateGremlinDatabaseToManualThroughput operation. */ -export type CassandraDataCentersListResponse = ListDataCenters & { +export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListDataCenters; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateUpdateGremlinGraph operation. */ -export type CassandraDataCentersGetResponse = DataCenterResource & { +export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataCenterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinGraphGetResults; + }; }; /** - * Contains response data for the createUpdate operation. + * Contains response data for the beginUpdateGremlinGraphThroughput operation. */ -export type CassandraDataCentersCreateUpdateResponse = DataCenterResource & { +export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataCenterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginMigrateGremlinGraphToAutoscale operation. */ -export type CassandraDataCentersUpdateResponse = DataCenterResource & { +export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataCenterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginCreateUpdate operation. + * Contains response data for the beginMigrateGremlinGraphToManualThroughput operation. */ -export type CassandraDataCentersBeginCreateUpdateResponse = DataCenterResource & { +export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataCenterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByDatabaseAccount operation. */ -export type CassandraDataCentersBeginUpdateResponse = DataCenterResource & { +export type NotebookWorkspacesListByDatabaseAccountResponse = NotebookWorkspaceListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataCenterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookWorkspaceListResult; + }; }; /** - * Contains response data for the listByDatabaseAccount operation. + * Contains response data for the get operation. */ -export type PrivateLinkResourcesListByDatabaseAccountResponse = PrivateLinkResourceListResult & { +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: PrivateLinkResourceListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookWorkspace; + }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { +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: PrivateLinkResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookWorkspace; + }; }; /** - * Contains response data for the listByDatabaseAccount operation. + * Contains response data for the listConnectionInfo operation. */ -export type PrivateEndpointConnectionsListByDatabaseAccountResponse = PrivateEndpointConnectionListResult & { +export type NotebookWorkspacesListConnectionInfoResponse = NotebookWorkspaceConnectionInfoResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnectionListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookWorkspaceConnectionInfoResult; + }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { +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: PrivateEndpointConnection; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookWorkspace; + }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByDatabaseAccount operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { +export type PrivateLinkResourcesListByDatabaseAccountResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnection; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateLinkResourceListResult; + }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { +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: PrivateEndpointConnection; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateLinkResource; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByDatabaseAccount operation. */ -export type ServiceListResponse = ServiceResourceListResult & { +export type PrivateEndpointConnectionsListByDatabaseAccountResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServiceResourceListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnectionListResult; + }; }; /** - * Contains response data for the create operation. + * Contains response data for the get operation. */ -export type ServiceCreateResponse = ServiceResource & { +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: ServiceResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; + }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type ServiceGetResponse = ServiceResource & { +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServiceResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; + }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ServiceBeginCreateResponse = ServiceResource & { +export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServiceResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; + }; }; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts index 6d0310fa7afe..2c29d1e23d44 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts @@ -12,6 +12,78 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; +export const ManagedServiceIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { + serializedName: "ManagedServiceIdentity_userAssignedIdentitiesValue", + type: { + name: "Composite", + className: "ManagedServiceIdentityUserAssignedIdentitiesValue", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + clientId: { + readOnly: true, + serializedName: "clientId", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedServiceIdentity: msRest.CompositeMapper = { + serializedName: "ManagedServiceIdentity", + type: { + name: "Composite", + className: "ManagedServiceIdentity", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned", + "None" + ] + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ManagedServiceIdentityUserAssignedIdentitiesValue" + } + } + } + } + } + } +}; + export const IpAddressOrRange: msRest.CompositeMapper = { serializedName: "IpAddressOrRange", type: { @@ -39,7 +111,13 @@ export const ConsistencyPolicy: msRest.CompositeMapper = { serializedName: "defaultConsistencyLevel", type: { name: "Enum", - allowedValues: ["Eventual", "Session", "BoundedStaleness", "Strong", "ConsistentPrefix"] + allowedValues: [ + "Eventual", + "Session", + "BoundedStaleness", + "Strong", + "ConsistentPrefix" + ] } }, maxStalenessPrefix: { @@ -327,68 +405,17 @@ 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", +export const AnalyticalStorageConfiguration: msRest.CompositeMapper = { + serializedName: "AnalyticalStorageConfiguration", type: { name: "Composite", - className: "RestoreParameters", + className: "AnalyticalStorageConfiguration", modelProperties: { - restoreMode: { - serializedName: "restoreMode", - type: { - name: "String" - } - }, - restoreSource: { - serializedName: "restoreSource", + schemaType: { + serializedName: "schemaType", type: { name: "String" } - }, - restoreTimestampInUtc: { - serializedName: "restoreTimestampInUtc", - type: { - name: "DateTime" - } - }, - databasesToRestore: { - serializedName: "databasesToRestore", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseRestoreResource" - } - } - } } } } @@ -461,52 +488,6 @@ 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: { @@ -550,13 +531,6 @@ export const ARMResourceProperties: msRest.CompositeMapper = { } } } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } } } } @@ -571,11 +545,18 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { ...ARMResourceProperties.type.modelProperties, kind: { serializedName: "kind", - defaultValue: "GlobalDocumentDB", + defaultValue: 'GlobalDocumentDB', type: { name: "String" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, provisioningState: { serializedName: "properties.provisioningState", type: { @@ -594,7 +575,9 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { serializedName: "properties.databaseAccountOfferType", type: { name: "Enum", - allowedValues: ["Standard"] + allowedValues: [ + "Standard" + ] } }, ipRules: { @@ -778,25 +761,11 @@ 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", + analyticalStorageConfiguration: { + serializedName: "properties.analyticalStorageConfiguration", type: { name: "Composite", - className: "RestoreParameters" + className: "AnalyticalStorageConfiguration" } }, backupPolicy: { @@ -822,7 +791,10 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { serializedName: "properties.networkAclBypass", type: { name: "Enum", - allowedValues: ["None", "AzureServices"] + allowedValues: [ + "None", + "AzureServices" + ] } }, networkAclBypassResourceIds: { @@ -835,14 +807,6 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { } } } - }, - systemData: { - readOnly: true, - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } } } } @@ -965,7 +929,7 @@ export const Indexes: msRest.CompositeMapper = { modelProperties: { dataType: { serializedName: "dataType", - defaultValue: "String", + defaultValue: 'String', type: { name: "String" } @@ -978,7 +942,7 @@ export const Indexes: msRest.CompositeMapper = { }, kind: { serializedName: "kind", - defaultValue: "Hash", + defaultValue: 'Hash', type: { name: "String" } @@ -1094,7 +1058,7 @@ export const IndexingPolicy: msRest.CompositeMapper = { }, indexingMode: { serializedName: "indexingMode", - defaultValue: "consistent", + defaultValue: 'consistent', type: { name: "String" } @@ -1175,7 +1139,7 @@ export const ContainerPartitionKey: msRest.CompositeMapper = { }, kind: { serializedName: "kind", - defaultValue: "Hash", + defaultValue: 'Hash', type: { name: "String" } @@ -1252,7 +1216,7 @@ export const ConflictResolutionPolicy: msRest.CompositeMapper = { modelProperties: { mode: { serializedName: "mode", - defaultValue: "LastWriterWins", + defaultValue: 'LastWriterWins', type: { name: "String" } @@ -2420,73 +2384,6 @@ export const RegionForOnlineOffline: msRest.CompositeMapper = { } }; -export const ManagedServiceIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { - serializedName: "ManagedServiceIdentity_userAssignedIdentitiesValue", - type: { - name: "Composite", - className: "ManagedServiceIdentityUserAssignedIdentitiesValue", - modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", - type: { - name: "String" - } - }, - clientId: { - readOnly: true, - serializedName: "clientId", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedServiceIdentity: msRest.CompositeMapper = { - serializedName: "ManagedServiceIdentity", - type: { - name: "Composite", - className: "ManagedServiceIdentity", - modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", - type: { - name: "String" - } - }, - tenantId: { - readOnly: true, - serializedName: "tenantId", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "Enum", - allowedValues: ["SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned", "None"] - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "ManagedServiceIdentityUserAssignedIdentitiesValue" - } - } - } - } - } - } -}; - export const ARMProxyResource: msRest.CompositeMapper = { serializedName: "ARMProxyResource", type: { @@ -2695,19 +2592,29 @@ export const ThroughputSettingsGetResults: msRest.CompositeMapper = { } }; -export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { - serializedName: "DatabaseAccountCreateUpdateProperties", +export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { + serializedName: "DatabaseAccountCreateUpdateParameters", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "createMode", - clientName: "createMode" - }, - uberParent: "DatabaseAccountCreateUpdateProperties", - className: "DatabaseAccountCreateUpdateProperties", + className: "DatabaseAccountCreateUpdateParameters", modelProperties: { + ...ARMResourceProperties.type.modelProperties, + kind: { + serializedName: "kind", + defaultValue: 'GlobalDocumentDB', + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, consistencyPolicy: { - serializedName: "consistencyPolicy", + serializedName: "properties.consistencyPolicy", type: { name: "Composite", className: "ConsistencyPolicy" @@ -2715,7 +2622,7 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { }, locations: { required: true, - serializedName: "locations", + serializedName: "properties.locations", type: { name: "Sequence", element: { @@ -2729,14 +2636,14 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { databaseAccountOfferType: { required: true, isConstant: true, - serializedName: "databaseAccountOfferType", - defaultValue: "Standard", + serializedName: "properties.databaseAccountOfferType", + defaultValue: 'Standard', type: { name: "String" } }, ipRules: { - serializedName: "ipRules", + serializedName: "properties.ipRules", type: { name: "Sequence", element: { @@ -2748,19 +2655,19 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { } }, isVirtualNetworkFilterEnabled: { - serializedName: "isVirtualNetworkFilterEnabled", + serializedName: "properties.isVirtualNetworkFilterEnabled", type: { name: "Boolean" } }, enableAutomaticFailover: { - serializedName: "enableAutomaticFailover", + serializedName: "properties.enableAutomaticFailover", type: { name: "Boolean" } }, capabilities: { - serializedName: "capabilities", + serializedName: "properties.capabilities", type: { name: "Sequence", element: { @@ -2772,7 +2679,7 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { } }, virtualNetworkRules: { - serializedName: "virtualNetworkRules", + serializedName: "properties.virtualNetworkRules", type: { name: "Sequence", element: { @@ -2784,75 +2691,82 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { } }, enableMultipleWriteLocations: { - serializedName: "enableMultipleWriteLocations", + serializedName: "properties.enableMultipleWriteLocations", type: { name: "Boolean" } }, enableCassandraConnector: { - serializedName: "enableCassandraConnector", + serializedName: "properties.enableCassandraConnector", type: { name: "Boolean" } }, connectorOffer: { - serializedName: "connectorOffer", + serializedName: "properties.connectorOffer", type: { name: "String" } }, disableKeyBasedMetadataWriteAccess: { - serializedName: "disableKeyBasedMetadataWriteAccess", + serializedName: "properties.disableKeyBasedMetadataWriteAccess", type: { name: "Boolean" } }, keyVaultKeyUri: { - serializedName: "keyVaultKeyUri", + serializedName: "properties.keyVaultKeyUri", type: { name: "String" } }, defaultIdentity: { - serializedName: "defaultIdentity", + serializedName: "properties.defaultIdentity", type: { name: "String" } }, publicNetworkAccess: { - serializedName: "publicNetworkAccess", + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, enableFreeTier: { - serializedName: "enableFreeTier", + serializedName: "properties.enableFreeTier", type: { name: "Boolean" } }, apiProperties: { - serializedName: "apiProperties", + serializedName: "properties.apiProperties", type: { name: "Composite", className: "ApiProperties" } }, enableAnalyticalStorage: { - serializedName: "enableAnalyticalStorage", + serializedName: "properties.enableAnalyticalStorage", type: { name: "Boolean" } }, + analyticalStorageConfiguration: { + serializedName: "properties.analyticalStorageConfiguration", + type: { + name: "Composite", + className: "AnalyticalStorageConfiguration" + } + }, backupPolicy: { - serializedName: "backupPolicy", + serializedName: "properties.backupPolicy", type: { name: "Composite", className: "BackupPolicy" } }, cors: { - serializedName: "cors", + serializedName: "properties.cors", type: { name: "Sequence", element: { @@ -2864,14 +2778,17 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { } }, networkAclBypass: { - serializedName: "networkAclBypass", + serializedName: "properties.networkAclBypass", type: { name: "Enum", - allowedValues: ["None", "AzureServices"] + allowedValues: [ + "None", + "AzureServices" + ] } }, networkAclBypassResourceIds: { - serializedName: "networkAclBypassResourceIds", + serializedName: "properties.networkAclBypassResourceIds", type: { name: "Sequence", element: { @@ -2880,73 +2797,6 @@ export const DatabaseAccountCreateUpdateProperties: 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" - } } } } @@ -2975,6 +2825,13 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, consistencyPolicy: { serializedName: "properties.consistencyPolicy", type: { @@ -3103,6 +2960,13 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { name: "Boolean" } }, + analyticalStorageConfiguration: { + serializedName: "properties.analyticalStorageConfiguration", + type: { + name: "Composite", + className: "AnalyticalStorageConfiguration" + } + }, backupPolicy: { serializedName: "properties.backupPolicy", type: { @@ -3126,7 +2990,10 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { serializedName: "properties.networkAclBypass", type: { name: "Enum", - allowedValues: ["None", "AzureServices"] + allowedValues: [ + "None", + "AzureServices" + ] } }, networkAclBypassResourceIds: { @@ -3139,13 +3006,6 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { } } } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } } } } @@ -4528,12 +4388,6 @@ export const PeriodicModeProperties: msRest.CompositeMapper = { type: { name: "Number" } - }, - backupStorageRedundancy: { - serializedName: "backupStorageRedundancy", - type: { - name: "String" - } } } } @@ -4572,229 +4426,6 @@ export const ContinuousModeBackupPolicy: msRest.CompositeMapper = { } }; -export const RestorableLocationResource: msRest.CompositeMapper = { - serializedName: "RestorableLocationResource", - type: { - name: "Composite", - className: "RestorableLocationResource", - modelProperties: { - locationName: { - readOnly: true, - serializedName: "locationName", - type: { - name: "String" - } - }, - regionalDatabaseAccountInstanceId: { - readOnly: true, - serializedName: "regionalDatabaseAccountInstanceId", - type: { - name: "String" - } - }, - creationTime: { - readOnly: true, - serializedName: "creationTime", - type: { - name: "DateTime" - } - }, - deletionTime: { - readOnly: true, - serializedName: "deletionTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const RestorableDatabaseAccountGetResult: msRest.CompositeMapper = { - serializedName: "RestorableDatabaseAccountGetResult", - type: { - name: "Composite", - className: "RestorableDatabaseAccountGetResult", - modelProperties: { - accountName: { - serializedName: "properties.accountName", - type: { - name: "String" - } - }, - creationTime: { - serializedName: "properties.creationTime", - type: { - name: "DateTime" - } - }, - deletionTime: { - serializedName: "properties.deletionTime", - type: { - name: "DateTime" - } - }, - apiType: { - readOnly: true, - serializedName: "properties.apiType", - type: { - name: "String" - } - }, - restorableLocations: { - readOnly: true, - serializedName: "properties.restorableLocations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableLocationResource" - } - } - } - }, - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const 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: { @@ -4950,7 +4581,10 @@ export const SqlRoleDefinitionCreateUpdateParameters: msRest.CompositeMapper = { serializedName: "properties.type", type: { name: "Enum", - allowedValues: ["BuiltInRole", "CustomRole"] + allowedValues: [ + "BuiltInRole", + "CustomRole" + ] } }, assignableScopes: { @@ -4997,7 +4631,10 @@ export const SqlRoleDefinitionGetResults: msRest.CompositeMapper = { serializedName: "properties.type", type: { name: "Enum", - allowedValues: ["BuiltInRole", "CustomRole"] + allowedValues: [ + "BuiltInRole", + "CustomRole" + ] } }, assignableScopes: { @@ -5084,1174 +4721,42 @@ export const SqlRoleAssignmentGetResults: msRest.CompositeMapper = { } }; -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", + ...ARMProxyResource.type.modelProperties, + groupId: { + readOnly: true, + serializedName: "properties.groupId", type: { name: "String" } }, - locations: { + requiredMembers: { readOnly: true, - serializedName: "locations", + serializedName: "properties.requiredMembers", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SqlDedicatedGatewayRegionalServiceResource" + name: "String" } } } - } - }, - additionalProperties: ServiceResourceProperties.type.additionalProperties - } -}; - -export const SqlDedicatedGatewayServiceResource: msRest.CompositeMapper = { - serializedName: "SqlDedicatedGatewayServiceResource", - type: { - name: "Composite", - className: "SqlDedicatedGatewayServiceResource", - modelProperties: { - properties: { - serializedName: "properties", + }, + requiredZoneNames: { + readOnly: true, + serializedName: "properties.requiredZoneNames", type: { - name: "Composite", - className: "SqlDedicatedGatewayServiceResourceProperties", - additionalProperties: ServiceResourceProperties.type.additionalProperties + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } @@ -6769,52 +5274,6 @@ export const GremlinGraphListResult: msRest.CompositeMapper = { } }; -export const RestorableDatabaseAccountsListResult: msRest.CompositeMapper = { - serializedName: "RestorableDatabaseAccountsListResult", - type: { - name: "Composite", - className: "RestorableDatabaseAccountsListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableDatabaseAccountGetResult" - } - } - } - } - } - } -}; - -export const LocationListResult: msRest.CompositeMapper = { - serializedName: "LocationListResult", - type: { - name: "Composite", - className: "LocationListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LocationGetResult" - } - } - } - } - } - } -}; - export const NotebookWorkspaceListResult: msRest.CompositeMapper = { serializedName: "NotebookWorkspaceListResult", type: { @@ -6837,212 +5296,6 @@ export const NotebookWorkspaceListResult: msRest.CompositeMapper = { } }; -export const RestorableSqlDatabasesListResult: msRest.CompositeMapper = { - serializedName: "RestorableSqlDatabasesListResult", - type: { - name: "Composite", - className: "RestorableSqlDatabasesListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableSqlDatabaseGetResult" - } - } - } - } - } - } -}; - -export const RestorableSqlContainersListResult: msRest.CompositeMapper = { - serializedName: "RestorableSqlContainersListResult", - type: { - name: "Composite", - className: "RestorableSqlContainersListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableSqlContainerGetResult" - } - } - } - } - } - } -}; - -export const RestorableSqlResourcesListResult: msRest.CompositeMapper = { - serializedName: "RestorableSqlResourcesListResult", - type: { - name: "Composite", - className: "RestorableSqlResourcesListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseRestoreResource" - } - } - } - } - } - } -}; - -export const RestorableMongodbDatabasesListResult: msRest.CompositeMapper = { - serializedName: "RestorableMongodbDatabasesListResult", - type: { - name: "Composite", - className: "RestorableMongodbDatabasesListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableMongodbDatabaseGetResult" - } - } - } - } - } - } -}; - -export const RestorableMongodbCollectionsListResult: msRest.CompositeMapper = { - serializedName: "RestorableMongodbCollectionsListResult", - type: { - name: "Composite", - className: "RestorableMongodbCollectionsListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableMongodbCollectionGetResult" - } - } - } - } - } - } -}; - -export const RestorableMongodbResourcesListResult: msRest.CompositeMapper = { - serializedName: "RestorableMongodbResourcesListResult", - type: { - name: "Composite", - className: "RestorableMongodbResourcesListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseRestoreResource" - } - } - } - } - } - } -}; - -export const ListClusters: msRest.CompositeMapper = { - serializedName: "ListClusters", - type: { - name: "Composite", - className: "ListClusters", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ClusterResource" - } - } - } - } - } - } -}; - -export const ListBackups: msRest.CompositeMapper = { - serializedName: "ListBackups", - type: { - name: "Composite", - className: "ListBackups", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BackupResource" - } - } - } - } - } - } -}; - -export const ListDataCenters: msRest.CompositeMapper = { - serializedName: "ListDataCenters", - type: { - name: "Composite", - className: "ListDataCenters", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataCenterResource" - } - } - } - } - } - } -}; - export const PrivateLinkResourceListResult: msRest.CompositeMapper = { serializedName: "PrivateLinkResourceListResult", type: { @@ -7087,37 +5340,9 @@ 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, - ServiceResourceProperties: ServiceResourceProperties, - "ServiceResourceProperties.DataTransferServiceResourceProperties": DataTransferServiceResourceProperties, - "ServiceResourceProperties.SqlDedicatedGatewayServiceResourceProperties": SqlDedicatedGatewayServiceResourceProperties + 'BackupPolicy' : BackupPolicy, + 'BackupPolicy.Periodic' : PeriodicModeBackupPolicy, + 'BackupPolicy.Continuous' : ContinuousModeBackupPolicy + }; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts index 68f5e03df3da..5cda3410cfdc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,6 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,11 +31,8 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -46,14 +42,7 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -71,8 +60,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -101,13 +88,7 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -119,8 +100,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, @@ -135,7 +114,6 @@ 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 55409fedee67..53c84da4ba12 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,6 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,10 +31,7 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -45,14 +41,7 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicy, @@ -71,8 +60,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -101,13 +88,7 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -119,8 +100,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, @@ -135,7 +114,6 @@ 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 d0afe7fcb0b7..ee215bd0bb8a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts @@ -13,7 +13,7 @@ export const acceptLanguage: msRest.OperationParameter = { parameterPath: "acceptLanguage", mapper: { serializedName: "accept-language", - defaultValue: "en-US", + defaultValue: 'en-US', type: { name: "String" } @@ -47,36 +47,6 @@ export const apiVersion: msRest.OperationQueryParameter = { } } }; -export const backupId: msRest.OperationURLParameter = { - parameterPath: "backupId", - mapper: { - required: true, - serializedName: "backupId", - constraints: { - MaxLength: 15, - MinLength: 1, - Pattern: /^[0-9]+$/ - }, - type: { - name: "String" - } - } -}; -export const clusterName: msRest.OperationURLParameter = { - parameterPath: "clusterName", - mapper: { - required: true, - serializedName: "clusterName", - constraints: { - MaxLength: 100, - MinLength: 1, - Pattern: /^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*/ - }, - type: { - name: "String" - } - } -}; export const collectionName: msRest.OperationURLParameter = { parameterPath: "collectionName", mapper: { @@ -127,30 +97,6 @@ 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: { @@ -162,7 +108,10 @@ export const filter0: msRest.OperationQueryParameter = { } }; export const filter1: msRest.OperationQueryParameter = { - parameterPath: ["options", "filter"], + parameterPath: [ + "options", + "filter" + ], mapper: { serializedName: "$filter", type: { @@ -190,16 +139,6 @@ 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: { @@ -210,16 +149,6 @@ 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: { @@ -237,7 +166,7 @@ export const notebookWorkspaceName: msRest.OperationURLParameter = { required: true, isConstant: true, serializedName: "notebookWorkspaceName", - defaultValue: "default", + defaultValue: 'default', type: { name: "String" } @@ -288,42 +217,6 @@ 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: { @@ -344,20 +237,6 @@ export const roleDefinitionId: msRest.OperationURLParameter = { } } }; -export const serviceName: msRest.OperationURLParameter = { - parameterPath: "serviceName", - mapper: { - required: true, - serializedName: "serviceName", - constraints: { - MaxLength: 50, - MinLength: 3 - }, - type: { - name: "String" - } - } -}; export const sourceRegion: msRest.OperationURLParameter = { parameterPath: "sourceRegion", mapper: { @@ -368,15 +247,6 @@ 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 3d0aa6b1596c..207a5c62c3c3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,6 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,11 +31,8 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -46,14 +42,7 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicy, @@ -72,8 +61,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -101,13 +88,7 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -119,8 +100,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, @@ -135,7 +114,6 @@ 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 152c9cd2b84f..15e123814e5e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,6 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,11 +31,8 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -46,14 +42,7 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -71,8 +60,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -100,13 +87,7 @@ export { PrivateLinkResourceListResult, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -118,8 +99,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, @@ -134,7 +113,6 @@ 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 deleted file mode 100644 index 0a96a80c157a..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableDatabaseAccountsMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - 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 deleted file mode 100644 index 44c2c51f4a76..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbCollectionsMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - 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 deleted file mode 100644 index 17b169da89a7..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbDatabasesMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - 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 deleted file mode 100644 index e8cc50bfb74b..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbResourcesMappers.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - 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 deleted file mode 100644 index a85679017367..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlContainersMappers.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - 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 deleted file mode 100644 index 9e949616c3d9..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlDatabasesMappers.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - 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 deleted file mode 100644 index f9284b16f0e1..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlResourcesMappers.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - 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 deleted file mode 100644 index 48068ec49b90..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/serviceMappers.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ApiProperties, - ARMProxyResource, - ARMResourceProperties, - AutoscaleSettings, - AutoscaleSettingsResource, - AutoUpgradePolicyResource, - AzureEntityResource, - BackupPolicy, - BackupResource, - BackupResourceProperties, - BaseResource, - Capability, - CassandraKeyspaceCreateUpdateParameters, - CassandraKeyspaceGetPropertiesOptions, - CassandraKeyspaceGetPropertiesResource, - CassandraKeyspaceGetResults, - CassandraKeyspaceResource, - CassandraPartitionKey, - CassandraSchema, - CassandraTableCreateUpdateParameters, - CassandraTableGetPropertiesOptions, - CassandraTableGetPropertiesResource, - CassandraTableGetResults, - CassandraTableResource, - Certificate, - CloudError, - ClusterKey, - ClusterResource, - ClusterResourceProperties, - Column, - CompositePath, - ConflictResolutionPolicy, - ConsistencyPolicy, - ContainerPartitionKey, - ContinuousModeBackupPolicy, - CorsPolicy, - CreateUpdateOptions, - DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, - DatabaseAccountGetResults, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, - ErrorResponse, - ExcludedPath, - FailoverPolicy, - GremlinDatabaseCreateUpdateParameters, - GremlinDatabaseGetPropertiesOptions, - GremlinDatabaseGetPropertiesResource, - GremlinDatabaseGetResults, - GremlinDatabaseResource, - GremlinGraphCreateUpdateParameters, - GremlinGraphGetPropertiesOptions, - GremlinGraphGetPropertiesResource, - GremlinGraphGetResults, - GremlinGraphResource, - IncludedPath, - Indexes, - IndexingPolicy, - IpAddressOrRange, - Location, - LocationGetResult, - LocationProperties, - ManagedServiceIdentity, - ManagedServiceIdentityUserAssignedIdentitiesValue, - MongoDBCollectionCreateUpdateParameters, - MongoDBCollectionGetPropertiesOptions, - MongoDBCollectionGetPropertiesResource, - MongoDBCollectionGetResults, - MongoDBCollectionResource, - MongoDBDatabaseCreateUpdateParameters, - MongoDBDatabaseGetPropertiesOptions, - MongoDBDatabaseGetPropertiesResource, - MongoDBDatabaseGetResults, - MongoDBDatabaseResource, - MongoIndex, - MongoIndexKeys, - MongoIndexOptions, - NotebookWorkspace, - NotebookWorkspaceCreateUpdateParameters, - OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, - Permission, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RegionalServiceResource, - Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceListResult, - ServiceResourceProperties, - SpatialSpec, - SqlContainerCreateUpdateParameters, - SqlContainerGetPropertiesOptions, - SqlContainerGetPropertiesResource, - SqlContainerGetResults, - SqlContainerResource, - SqlDatabaseCreateUpdateParameters, - SqlDatabaseGetPropertiesOptions, - SqlDatabaseGetPropertiesResource, - SqlDatabaseGetResults, - SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, - SqlRoleAssignmentGetResults, - SqlRoleDefinitionGetResults, - SqlStoredProcedureCreateUpdateParameters, - SqlStoredProcedureGetPropertiesResource, - SqlStoredProcedureGetResults, - SqlStoredProcedureResource, - SqlTriggerCreateUpdateParameters, - SqlTriggerGetPropertiesResource, - SqlTriggerGetResults, - SqlTriggerResource, - SqlUserDefinedFunctionCreateUpdateParameters, - SqlUserDefinedFunctionGetPropertiesResource, - SqlUserDefinedFunctionGetResults, - SqlUserDefinedFunctionResource, - SystemData, - TableCreateUpdateParameters, - TableGetPropertiesOptions, - TableGetPropertiesResource, - TableGetResults, - TableResource, - ThroughputPolicyResource, - ThroughputSettingsGetPropertiesResource, - ThroughputSettingsGetResults, - ThroughputSettingsResource, - ThroughputSettingsUpdateParameters, - TrackedResource, - UniqueKey, - UniqueKeyPolicy, - VirtualNetworkRule -} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts index 8662633bf668..fd387301b2f2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -15,10 +16,7 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, - BackupInformation, BackupPolicy, - BackupResource, - BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -33,30 +31,18 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, - ContinuousBackupInformation, - ContinuousBackupRestoreLocation, ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -74,8 +60,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -102,13 +86,7 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -122,8 +100,6 @@ export { SqlDatabaseGetResults, SqlDatabaseListResult, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentCreateUpdateParameters, SqlRoleAssignmentGetResults, SqlRoleAssignmentListResult, @@ -145,7 +121,6 @@ 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 dca9439fe106..b3392ad5ac1f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,6 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,11 +31,8 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -46,14 +42,7 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -71,8 +60,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -99,13 +86,7 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -117,8 +98,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, @@ -133,7 +112,6 @@ 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 deleted file mode 100644 index 81f23ee93f35..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts +++ /dev/null @@ -1,696 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/cassandraClustersMappers"; -import * as Parameters from "../models/parameters"; -import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; - -/** Class representing a CassandraClusters. */ -export class CassandraClusters { - private readonly client: CosmosDBManagementClientContext; - - /** - * Create a CassandraClusters. - * @param {CosmosDBManagementClientContext} client Reference to the service client. - */ - constructor(client: CosmosDBManagementClientContext) { - this.client = client; - } - - /** - * List all managed Cassandra clusters in this subscription. - * @param [options] The optional parameters - * @returns Promise - */ - listBySubscription( - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param callback The callback - */ - listBySubscription(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - listBySubscription( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listBySubscription( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - options - }, - listBySubscriptionOperationSpec, - callback - ) as Promise; - } - - /** - * List all managed Cassandra clusters in this resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param callback The callback - */ - listByResourceGroup( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroup( - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - options - }, - listByResourceGroupOperationSpec, - callback - ) as Promise; - } - - /** - * Get the properties of a managed Cassandra cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param [options] The optional parameters - * @returns Promise - */ - get( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param callback The callback - */ - get( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param options The optional parameters - * @param callback The callback - */ - get( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - clusterName, - options - }, - getOperationSpec, - callback - ) as Promise; - } - - /** - * Deletes a managed Cassandra cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod(resourceGroupName, clusterName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); - } - - /** - * Create or update a managed Cassandra cluster. When updating, you must specify all writable - * properties. To update only some properties, use PATCH. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body The properties specifying the desired state of the managed Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - createUpdate( - resourceGroupName: string, - clusterName: string, - body: Models.ClusterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdate(resourceGroupName, clusterName, body, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; - } - - /** - * Updates some of the properties of a managed Cassandra cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body Parameters to provide for specifying the managed Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - update( - resourceGroupName: string, - clusterName: string, - body: Models.ClusterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate(resourceGroupName, clusterName, body, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; - } - - /** - * Request that repair begin on this cluster as soon as possible. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body Specification of what keyspaces and tables to run repair on. - * @param [options] The optional parameters - * @returns Promise - */ - requestRepair( - resourceGroupName: string, - clusterName: string, - body: Models.RepairPostBody, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRequestRepair( - resourceGroupName, - clusterName, - body, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); - } - - /** - * Request the status of all nodes in the cluster (as returned by 'nodetool status'). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param [options] The optional parameters - * @returns Promise - */ - fetchNodeStatus( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginFetchNodeStatus(resourceGroupName, clusterName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; - } - - /** - * List the backups of this cluster that are available to restore. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param [options] The optional parameters - * @returns Promise - */ - listBackupsMethod( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param callback The callback - */ - listBackupsMethod( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param options The optional parameters - * @param callback The callback - */ - listBackupsMethod( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listBackupsMethod( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - clusterName, - options - }, - listBackupsMethodOperationSpec, - callback - ) as Promise; - } - - /** - * Get the properties of an individual backup of this cluster that is available to restore. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param backupId Id of a restorable backup of a Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - getBackup( - resourceGroupName: string, - clusterName: string, - backupId: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param backupId Id of a restorable backup of a Cassandra cluster. - * @param callback The callback - */ - getBackup( - resourceGroupName: string, - clusterName: string, - backupId: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param backupId Id of a restorable backup of a Cassandra cluster. - * @param options The optional parameters - * @param callback The callback - */ - getBackup( - resourceGroupName: string, - clusterName: string, - backupId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getBackup( - resourceGroupName: string, - clusterName: string, - backupId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - clusterName, - backupId, - options - }, - getBackupOperationSpec, - callback - ) as Promise; - } - - /** - * Deletes a managed Cassandra cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - options - }, - beginDeleteMethodOperationSpec, - options - ); - } - - /** - * Create or update a managed Cassandra cluster. When updating, you must specify all writable - * properties. To update only some properties, use PATCH. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body The properties specifying the desired state of the managed Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateUpdate( - resourceGroupName: string, - clusterName: string, - body: Models.ClusterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - body, - options - }, - beginCreateUpdateOperationSpec, - options - ); - } - - /** - * Updates some of the properties of a managed Cassandra cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body Parameters to provide for specifying the managed Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate( - resourceGroupName: string, - clusterName: string, - body: Models.ClusterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - body, - options - }, - beginUpdateOperationSpec, - options - ); - } - - /** - * Request that repair begin on this cluster as soon as possible. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body Specification of what keyspaces and tables to run repair on. - * @param [options] The optional parameters - * @returns Promise - */ - beginRequestRepair( - resourceGroupName: string, - clusterName: string, - body: Models.RepairPostBody, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - body, - options - }, - beginRequestRepairOperationSpec, - options - ); - } - - /** - * Request the status of all nodes in the cluster (as returned by 'nodetool status'). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param [options] The optional parameters - * @returns Promise - */ - beginFetchNodeStatus( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - options - }, - beginFetchNodeStatusOperationSpec, - options - ); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listBySubscriptionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/cassandraClusters", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ListClusters - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ListClusters - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ClusterResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listBackupsMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ListBackups - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getBackupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups/{backupId}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - Parameters.backupId - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.BackupResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.ClusterResource, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ClusterResource - }, - 201: { - bodyMapper: Mappers.ClusterResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.ClusterResource, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ClusterResource - }, - 202: { - bodyMapper: Mappers.ClusterResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginRequestRepairOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/repair", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.RepairPostBody, - required: true - } - }, - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginFetchNodeStatusOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/fetchNodeStatus", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ClusterNodeStatus - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts deleted file mode 100644 index e084c5afd55c..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts +++ /dev/null @@ -1,431 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/cassandraDataCentersMappers"; -import * as Parameters from "../models/parameters"; -import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; - -/** Class representing a CassandraDataCenters. */ -export class CassandraDataCenters { - private readonly client: CosmosDBManagementClientContext; - - /** - * Create a CassandraDataCenters. - * @param {CosmosDBManagementClientContext} client Reference to the service client. - */ - constructor(client: CosmosDBManagementClientContext) { - this.client = client; - } - - /** - * List all data centers in a particular managed Cassandra cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param [options] The optional parameters - * @returns Promise - */ - list( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param callback The callback - */ - list( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param options The optional parameters - * @param callback The callback - */ - list( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - clusterName, - options - }, - listOperationSpec, - callback - ) as Promise; - } - - /** - * Get the properties of a managed Cassandra data center. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - get( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param callback The callback - */ - get( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param options The optional parameters - * @param callback The callback - */ - get( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - clusterName, - dataCenterName, - options - }, - getOperationSpec, - callback - ) as Promise; - } - - /** - * Delete a managed Cassandra data center. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - clusterName, - dataCenterName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); - } - - /** - * Create or update a managed Cassandra data center. When updating, overwrite all properties. To - * update only some properties, use PATCH. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param body Parameters specifying the managed Cassandra data center. - * @param [options] The optional parameters - * @returns Promise - */ - createUpdate( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - body: Models.DataCenterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdate( - resourceGroupName, - clusterName, - dataCenterName, - body, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraDataCentersCreateUpdateResponse - >; - } - - /** - * Update some of the properties of a managed Cassandra data center. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param body Parameters to provide for specifying the managed Cassandra data center. - * @param [options] The optional parameters - * @returns Promise - */ - update( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - body: Models.DataCenterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate( - resourceGroupName, - clusterName, - dataCenterName, - body, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraDataCentersUpdateResponse - >; - } - - /** - * Delete a managed Cassandra data center. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - dataCenterName, - options - }, - beginDeleteMethodOperationSpec, - options - ); - } - - /** - * Create or update a managed Cassandra data center. When updating, overwrite all properties. To - * update only some properties, use PATCH. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param body Parameters specifying the managed Cassandra data center. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateUpdate( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - body: Models.DataCenterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - dataCenterName, - body, - options - }, - beginCreateUpdateOperationSpec, - options - ); - } - - /** - * Update some of the properties of a managed Cassandra data center. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param body Parameters to provide for specifying the managed Cassandra data center. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - body: Models.DataCenterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - dataCenterName, - body, - options - }, - beginUpdateOperationSpec, - options - ); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ListDataCenters - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - Parameters.dataCenterName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.DataCenterResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - Parameters.dataCenterName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - Parameters.dataCenterName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.DataCenterResource, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DataCenterResource - }, - 201: { - bodyMapper: Mappers.DataCenterResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - Parameters.dataCenterName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.DataCenterResource, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DataCenterResource - }, - 202: { - bodyMapper: Mappers.DataCenterResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts index 59be05478d6e..cc3d315664f3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts @@ -33,41 +33,21 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - listCassandraKeyspaces( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listCassandraKeyspaces(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - listCassandraKeyspaces( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + listCassandraKeyspaces(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param options The optional parameters * @param callback The callback */ - listCassandraKeyspaces( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listCassandraKeyspaces( - resourceGroupName: string, - accountName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listCassandraKeyspaces(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCassandraKeyspaces(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -75,8 +55,7 @@ export class CassandraResources { options }, listCassandraKeyspacesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -88,24 +67,14 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - getCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param keyspaceName Cosmos DB keyspace name. * @param callback The callback */ - getCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - callback: msRest.ServiceCallback - ): void; + getCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -113,22 +82,8 @@ export class CassandraResources { * @param options The optional parameters * @param callback The callback */ - getCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -137,8 +92,7 @@ export class CassandraResources { options }, getCassandraKeyspaceOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -151,22 +105,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - createUpdateCassandraKeyspaceParameters: Models.CassandraKeyspaceCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateCassandraKeyspace( - resourceGroupName, - accountName, - keyspaceName, - createUpdateCassandraKeyspaceParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesCreateUpdateCassandraKeyspaceResponse - >; + createUpdateCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, createUpdateCassandraKeyspaceParameters: Models.CassandraKeyspaceCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateCassandraKeyspace(resourceGroupName,accountName,keyspaceName,createUpdateCassandraKeyspaceParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -177,18 +118,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - deleteCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteCassandraKeyspace( - resourceGroupName, - accountName, - keyspaceName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteCassandraKeyspace(resourceGroupName,accountName,keyspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -200,24 +132,14 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - getCassandraKeyspaceThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getCassandraKeyspaceThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param keyspaceName Cosmos DB keyspace name. * @param callback The callback */ - getCassandraKeyspaceThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - callback: msRest.ServiceCallback - ): void; + getCassandraKeyspaceThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -225,22 +147,8 @@ export class CassandraResources { * @param options The optional parameters * @param callback The callback */ - getCassandraKeyspaceThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getCassandraKeyspaceThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getCassandraKeyspaceThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCassandraKeyspaceThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -249,8 +157,7 @@ export class CassandraResources { options }, getCassandraKeyspaceThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -263,22 +170,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - updateCassandraKeyspaceThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateCassandraKeyspaceThroughput( - resourceGroupName, - accountName, - keyspaceName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesUpdateCassandraKeyspaceThroughputResponse - >; + updateCassandraKeyspaceThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateCassandraKeyspaceThroughput(resourceGroupName,accountName,keyspaceName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -289,20 +183,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - migrateCassandraKeyspaceToAutoscale( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateCassandraKeyspaceToAutoscale( - resourceGroupName, - accountName, - keyspaceName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse - >; + migrateCassandraKeyspaceToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateCassandraKeyspaceToAutoscale(resourceGroupName,accountName,keyspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -313,20 +196,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - migrateCassandraKeyspaceToManualThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateCassandraKeyspaceToManualThroughput( - resourceGroupName, - accountName, - keyspaceName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse - >; + migrateCassandraKeyspaceToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateCassandraKeyspaceToManualThroughput(resourceGroupName,accountName,keyspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -337,24 +209,14 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - listCassandraTables( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listCassandraTables(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param keyspaceName Cosmos DB keyspace name. * @param callback The callback */ - listCassandraTables( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - callback: msRest.ServiceCallback - ): void; + listCassandraTables(resourceGroupName: string, accountName: string, keyspaceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -362,20 +224,8 @@ export class CassandraResources { * @param options The optional parameters * @param callback The callback */ - listCassandraTables( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listCassandraTables( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listCassandraTables(resourceGroupName: string, accountName: string, keyspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCassandraTables(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -384,8 +234,7 @@ export class CassandraResources { options }, listCassandraTablesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -397,13 +246,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - getCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -411,13 +254,7 @@ export class CassandraResources { * @param tableName Cosmos DB table name. * @param callback The callback */ - getCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - callback: msRest.ServiceCallback - ): void; + getCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -426,22 +263,8 @@ export class CassandraResources { * @param options The optional parameters * @param callback The callback */ - getCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -451,8 +274,7 @@ export class CassandraResources { options }, getCassandraTableOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -466,24 +288,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - createUpdateCassandraTableParameters: Models.CassandraTableCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateCassandraTable( - resourceGroupName, - accountName, - keyspaceName, - tableName, - createUpdateCassandraTableParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesCreateUpdateCassandraTableResponse - >; + createUpdateCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, createUpdateCassandraTableParameters: Models.CassandraTableCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateCassandraTable(resourceGroupName,accountName,keyspaceName,tableName,createUpdateCassandraTableParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -495,20 +302,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - deleteCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteCassandraTable( - resourceGroupName, - accountName, - keyspaceName, - tableName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteCassandraTable(resourceGroupName,accountName,keyspaceName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -521,13 +317,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - getCassandraTableThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getCassandraTableThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -535,13 +325,7 @@ export class CassandraResources { * @param tableName Cosmos DB table name. * @param callback The callback */ - getCassandraTableThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - callback: msRest.ServiceCallback - ): void; + getCassandraTableThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -550,24 +334,8 @@ export class CassandraResources { * @param options The optional parameters * @param callback The callback */ - getCassandraTableThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getCassandraTableThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getCassandraTableThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCassandraTableThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -577,8 +345,7 @@ export class CassandraResources { options }, getCassandraTableThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -592,24 +359,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - updateCassandraTableThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateCassandraTableThroughput( - resourceGroupName, - accountName, - keyspaceName, - tableName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesUpdateCassandraTableThroughputResponse - >; + updateCassandraTableThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateCassandraTableThroughput(resourceGroupName,accountName,keyspaceName,tableName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -621,22 +373,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - migrateCassandraTableToAutoscale( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateCassandraTableToAutoscale( - resourceGroupName, - accountName, - keyspaceName, - tableName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesMigrateCassandraTableToAutoscaleResponse - >; + migrateCassandraTableToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateCassandraTableToAutoscale(resourceGroupName,accountName,keyspaceName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -648,22 +387,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - migrateCassandraTableToManualThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateCassandraTableToManualThroughput( - resourceGroupName, - accountName, - keyspaceName, - tableName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesMigrateCassandraTableToManualThroughputResponse - >; + migrateCassandraTableToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateCassandraTableToManualThroughput(resourceGroupName,accountName,keyspaceName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -676,13 +402,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - createUpdateCassandraKeyspaceParameters: Models.CassandraKeyspaceCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, createUpdateCassandraKeyspaceParameters: Models.CassandraKeyspaceCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -692,8 +412,7 @@ export class CassandraResources { options }, beginCreateUpdateCassandraKeyspaceOperationSpec, - options - ); + options); } /** @@ -704,12 +423,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -718,8 +432,7 @@ export class CassandraResources { options }, beginDeleteCassandraKeyspaceOperationSpec, - options - ); + options); } /** @@ -732,13 +445,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateCassandraKeyspaceThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateCassandraKeyspaceThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -748,8 +455,7 @@ export class CassandraResources { options }, beginUpdateCassandraKeyspaceThroughputOperationSpec, - options - ); + options); } /** @@ -760,12 +466,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateCassandraKeyspaceToAutoscale( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateCassandraKeyspaceToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -774,8 +475,7 @@ export class CassandraResources { options }, beginMigrateCassandraKeyspaceToAutoscaleOperationSpec, - options - ); + options); } /** @@ -786,12 +486,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateCassandraKeyspaceToManualThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateCassandraKeyspaceToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -800,8 +495,7 @@ export class CassandraResources { options }, beginMigrateCassandraKeyspaceToManualThroughputOperationSpec, - options - ); + options); } /** @@ -815,14 +509,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - createUpdateCassandraTableParameters: Models.CassandraTableCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, createUpdateCassandraTableParameters: Models.CassandraTableCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -833,8 +520,7 @@ export class CassandraResources { options }, beginCreateUpdateCassandraTableOperationSpec, - options - ); + options); } /** @@ -846,13 +532,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -862,8 +542,7 @@ export class CassandraResources { options }, beginDeleteCassandraTableOperationSpec, - options - ); + options); } /** @@ -877,14 +556,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateCassandraTableThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateCassandraTableThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -895,8 +567,7 @@ export class CassandraResources { options }, beginUpdateCassandraTableThroughputOperationSpec, - options - ); + options); } /** @@ -908,13 +579,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateCassandraTableToAutoscale( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateCassandraTableToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -924,8 +589,7 @@ export class CassandraResources { options }, beginMigrateCassandraTableToAutoscaleOperationSpec, - options - ); + options); } /** @@ -937,13 +601,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateCassandraTableToManualThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateCassandraTableToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -953,8 +611,7 @@ export class CassandraResources { options }, beginMigrateCassandraTableToManualThroughputOperationSpec, - options - ); + options); } } @@ -962,11 +619,18 @@ export class CassandraResources { const serializer = new msRest.Serializer(Mappers); const listCassandraKeyspacesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CassandraKeyspaceListResult @@ -980,16 +644,19 @@ const listCassandraKeyspacesOperationSpec: msRest.OperationSpec = { const getCassandraKeyspaceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CassandraKeyspaceGetResults @@ -1003,16 +670,19 @@ const getCassandraKeyspaceOperationSpec: msRest.OperationSpec = { const getCassandraKeyspaceThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1026,16 +696,19 @@ const getCassandraKeyspaceThroughputOperationSpec: msRest.OperationSpec = { const listCassandraTablesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CassandraTableListResult @@ -1049,8 +722,7 @@ const listCassandraTablesOperationSpec: msRest.OperationSpec = { const getCassandraTableOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1058,8 +730,12 @@ const getCassandraTableOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CassandraTableGetResults @@ -1073,8 +749,7 @@ const getCassandraTableOperationSpec: msRest.OperationSpec = { const getCassandraTableThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1082,8 +757,12 @@ const getCassandraTableThroughputOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1097,16 +776,19 @@ const getCassandraTableThroughputOperationSpec: msRest.OperationSpec = { const beginCreateUpdateCassandraKeyspaceOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateCassandraKeyspaceParameters", mapper: { @@ -1128,16 +810,19 @@ const beginCreateUpdateCassandraKeyspaceOperationSpec: msRest.OperationSpec = { const beginDeleteCassandraKeyspaceOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -1150,16 +835,19 @@ const beginDeleteCassandraKeyspaceOperationSpec: msRest.OperationSpec = { const beginUpdateCassandraKeyspaceThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1181,16 +869,19 @@ const beginUpdateCassandraKeyspaceThroughputOperationSpec: msRest.OperationSpec const beginMigrateCassandraKeyspaceToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1205,16 +896,19 @@ const beginMigrateCassandraKeyspaceToAutoscaleOperationSpec: msRest.OperationSpe const beginMigrateCassandraKeyspaceToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1229,8 +923,7 @@ const beginMigrateCassandraKeyspaceToManualThroughputOperationSpec: msRest.Opera const beginCreateUpdateCassandraTableOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1238,8 +931,12 @@ const beginCreateUpdateCassandraTableOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateCassandraTableParameters", mapper: { @@ -1261,8 +958,7 @@ const beginCreateUpdateCassandraTableOperationSpec: msRest.OperationSpec = { const beginDeleteCassandraTableOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1270,8 +966,12 @@ const beginDeleteCassandraTableOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -1284,8 +984,7 @@ const beginDeleteCassandraTableOperationSpec: msRest.OperationSpec = { const beginUpdateCassandraTableThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1293,8 +992,12 @@ const beginUpdateCassandraTableThroughputOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1316,8 +1019,7 @@ const beginUpdateCassandraTableThroughputOperationSpec: msRest.OperationSpec = { const beginMigrateCassandraTableToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1325,8 +1027,12 @@ const beginMigrateCassandraTableToAutoscaleOperationSpec: msRest.OperationSpec = Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1341,8 +1047,7 @@ const beginMigrateCassandraTableToAutoscaleOperationSpec: msRest.OperationSpec = const beginMigrateCassandraTableToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1350,8 +1055,12 @@ const beginMigrateCassandraTableToManualThroughputOperationSpec: msRest.Operatio Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts index 642c17104a8a..68c437ee319b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts @@ -33,39 +33,21 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - listGremlinDatabases( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listGremlinDatabases(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - listGremlinDatabases( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + listGremlinDatabases(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param options The optional parameters * @param callback The callback */ - listGremlinDatabases( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listGremlinDatabases( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listGremlinDatabases(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listGremlinDatabases(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,8 +55,7 @@ export class GremlinResources { options }, listGremlinDatabasesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -86,24 +67,14 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - getGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - getGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + getGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -111,20 +82,8 @@ export class GremlinResources { * @param options The optional parameters * @param callback The callback */ - getGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -133,8 +92,7 @@ export class GremlinResources { options }, getGremlinDatabaseOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -147,22 +105,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - createUpdateGremlinDatabaseParameters: Models.GremlinDatabaseCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateGremlinDatabase( - resourceGroupName, - accountName, - databaseName, - createUpdateGremlinDatabaseParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesCreateUpdateGremlinDatabaseResponse - >; + createUpdateGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, createUpdateGremlinDatabaseParameters: Models.GremlinDatabaseCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateGremlinDatabase(resourceGroupName,accountName,databaseName,createUpdateGremlinDatabaseParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -173,18 +118,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - deleteGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteGremlinDatabase( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteGremlinDatabase(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -196,24 +132,14 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - getGremlinDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getGremlinDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - getGremlinDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + getGremlinDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -221,22 +147,8 @@ export class GremlinResources { * @param options The optional parameters * @param callback The callback */ - getGremlinDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getGremlinDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getGremlinDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getGremlinDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -245,8 +157,7 @@ export class GremlinResources { options }, getGremlinDatabaseThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -259,22 +170,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - updateGremlinDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateGremlinDatabaseThroughput( - resourceGroupName, - accountName, - databaseName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesUpdateGremlinDatabaseThroughputResponse - >; + updateGremlinDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateGremlinDatabaseThroughput(resourceGroupName,accountName,databaseName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -285,20 +183,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - migrateGremlinDatabaseToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateGremlinDatabaseToAutoscale( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse - >; + migrateGremlinDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateGremlinDatabaseToAutoscale(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -309,20 +196,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - migrateGremlinDatabaseToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateGremlinDatabaseToManualThroughput( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse - >; + migrateGremlinDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateGremlinDatabaseToManualThroughput(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -333,24 +209,14 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - listGremlinGraphs( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listGremlinGraphs(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - listGremlinGraphs( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + listGremlinGraphs(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -358,20 +224,8 @@ export class GremlinResources { * @param options The optional parameters * @param callback The callback */ - listGremlinGraphs( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listGremlinGraphs( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listGremlinGraphs(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listGremlinGraphs(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -380,8 +234,7 @@ export class GremlinResources { options }, listGremlinGraphsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -393,13 +246,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - getGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -407,13 +254,7 @@ export class GremlinResources { * @param graphName Cosmos DB graph name. * @param callback The callback */ - getGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - callback: msRest.ServiceCallback - ): void; + getGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -422,22 +263,8 @@ export class GremlinResources { * @param options The optional parameters * @param callback The callback */ - getGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -447,8 +274,7 @@ export class GremlinResources { options }, getGremlinGraphOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -462,24 +288,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - createUpdateGremlinGraphParameters: Models.GremlinGraphCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateGremlinGraph( - resourceGroupName, - accountName, - databaseName, - graphName, - createUpdateGremlinGraphParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesCreateUpdateGremlinGraphResponse - >; + createUpdateGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, createUpdateGremlinGraphParameters: Models.GremlinGraphCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateGremlinGraph(resourceGroupName,accountName,databaseName,graphName,createUpdateGremlinGraphParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -491,20 +302,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - deleteGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteGremlinGraph( - resourceGroupName, - accountName, - databaseName, - graphName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteGremlinGraph(resourceGroupName,accountName,databaseName,graphName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -517,13 +317,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - getGremlinGraphThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getGremlinGraphThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -531,13 +325,7 @@ export class GremlinResources { * @param graphName Cosmos DB graph name. * @param callback The callback */ - getGremlinGraphThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - callback: msRest.ServiceCallback - ): void; + getGremlinGraphThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -546,24 +334,8 @@ export class GremlinResources { * @param options The optional parameters * @param callback The callback */ - getGremlinGraphThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getGremlinGraphThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getGremlinGraphThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getGremlinGraphThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -573,8 +345,7 @@ export class GremlinResources { options }, getGremlinGraphThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -588,24 +359,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - updateGremlinGraphThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateGremlinGraphThroughput( - resourceGroupName, - accountName, - databaseName, - graphName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesUpdateGremlinGraphThroughputResponse - >; + updateGremlinGraphThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateGremlinGraphThroughput(resourceGroupName,accountName,databaseName,graphName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -617,22 +373,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - migrateGremlinGraphToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateGremlinGraphToAutoscale( - resourceGroupName, - accountName, - databaseName, - graphName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesMigrateGremlinGraphToAutoscaleResponse - >; + migrateGremlinGraphToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateGremlinGraphToAutoscale(resourceGroupName,accountName,databaseName,graphName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -644,22 +387,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - migrateGremlinGraphToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateGremlinGraphToManualThroughput( - resourceGroupName, - accountName, - databaseName, - graphName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesMigrateGremlinGraphToManualThroughputResponse - >; + migrateGremlinGraphToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateGremlinGraphToManualThroughput(resourceGroupName,accountName,databaseName,graphName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -672,13 +402,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - createUpdateGremlinDatabaseParameters: Models.GremlinDatabaseCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, createUpdateGremlinDatabaseParameters: Models.GremlinDatabaseCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -688,8 +412,7 @@ export class GremlinResources { options }, beginCreateUpdateGremlinDatabaseOperationSpec, - options - ); + options); } /** @@ -700,12 +423,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -714,8 +432,7 @@ export class GremlinResources { options }, beginDeleteGremlinDatabaseOperationSpec, - options - ); + options); } /** @@ -728,13 +445,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateGremlinDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateGremlinDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -744,8 +455,7 @@ export class GremlinResources { options }, beginUpdateGremlinDatabaseThroughputOperationSpec, - options - ); + options); } /** @@ -756,12 +466,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateGremlinDatabaseToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateGremlinDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -770,8 +475,7 @@ export class GremlinResources { options }, beginMigrateGremlinDatabaseToAutoscaleOperationSpec, - options - ); + options); } /** @@ -782,12 +486,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateGremlinDatabaseToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateGremlinDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -796,8 +495,7 @@ export class GremlinResources { options }, beginMigrateGremlinDatabaseToManualThroughputOperationSpec, - options - ); + options); } /** @@ -811,14 +509,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - createUpdateGremlinGraphParameters: Models.GremlinGraphCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, createUpdateGremlinGraphParameters: Models.GremlinGraphCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -829,8 +520,7 @@ export class GremlinResources { options }, beginCreateUpdateGremlinGraphOperationSpec, - options - ); + options); } /** @@ -842,13 +532,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -858,8 +542,7 @@ export class GremlinResources { options }, beginDeleteGremlinGraphOperationSpec, - options - ); + options); } /** @@ -873,14 +556,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateGremlinGraphThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateGremlinGraphThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -891,8 +567,7 @@ export class GremlinResources { options }, beginUpdateGremlinGraphThroughputOperationSpec, - options - ); + options); } /** @@ -904,13 +579,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateGremlinGraphToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateGremlinGraphToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -920,8 +589,7 @@ export class GremlinResources { options }, beginMigrateGremlinGraphToAutoscaleOperationSpec, - options - ); + options); } /** @@ -933,13 +601,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateGremlinGraphToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateGremlinGraphToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -949,8 +611,7 @@ export class GremlinResources { options }, beginMigrateGremlinGraphToManualThroughputOperationSpec, - options - ); + options); } } @@ -958,11 +619,18 @@ export class GremlinResources { const serializer = new msRest.Serializer(Mappers); const listGremlinDatabasesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GremlinDatabaseListResult @@ -976,16 +644,19 @@ const listGremlinDatabasesOperationSpec: msRest.OperationSpec = { const getGremlinDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GremlinDatabaseGetResults @@ -999,16 +670,19 @@ const getGremlinDatabaseOperationSpec: msRest.OperationSpec = { const getGremlinDatabaseThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1022,16 +696,19 @@ const getGremlinDatabaseThroughputOperationSpec: msRest.OperationSpec = { const listGremlinGraphsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GremlinGraphListResult @@ -1045,8 +722,7 @@ const listGremlinGraphsOperationSpec: msRest.OperationSpec = { const getGremlinGraphOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1054,8 +730,12 @@ const getGremlinGraphOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GremlinGraphGetResults @@ -1069,8 +749,7 @@ const getGremlinGraphOperationSpec: msRest.OperationSpec = { const getGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1078,8 +757,12 @@ const getGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1093,16 +776,19 @@ const getGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { const beginCreateUpdateGremlinDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateGremlinDatabaseParameters", mapper: { @@ -1124,16 +810,19 @@ const beginCreateUpdateGremlinDatabaseOperationSpec: msRest.OperationSpec = { const beginDeleteGremlinDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -1146,16 +835,19 @@ const beginDeleteGremlinDatabaseOperationSpec: msRest.OperationSpec = { const beginUpdateGremlinDatabaseThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1177,16 +869,19 @@ const beginUpdateGremlinDatabaseThroughputOperationSpec: msRest.OperationSpec = const beginMigrateGremlinDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1201,16 +896,19 @@ const beginMigrateGremlinDatabaseToAutoscaleOperationSpec: msRest.OperationSpec const beginMigrateGremlinDatabaseToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1225,8 +923,7 @@ const beginMigrateGremlinDatabaseToManualThroughputOperationSpec: msRest.Operati const beginCreateUpdateGremlinGraphOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1234,8 +931,12 @@ const beginCreateUpdateGremlinGraphOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateGremlinGraphParameters", mapper: { @@ -1257,8 +958,7 @@ const beginCreateUpdateGremlinGraphOperationSpec: msRest.OperationSpec = { const beginDeleteGremlinGraphOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1266,8 +966,12 @@ const beginDeleteGremlinGraphOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -1280,8 +984,7 @@ const beginDeleteGremlinGraphOperationSpec: msRest.OperationSpec = { const beginUpdateGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1289,8 +992,12 @@ const beginUpdateGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1312,8 +1019,7 @@ const beginUpdateGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { const beginMigrateGremlinGraphToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1321,8 +1027,12 @@ const beginMigrateGremlinGraphToAutoscaleOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1337,8 +1047,7 @@ const beginMigrateGremlinGraphToAutoscaleOperationSpec: msRest.OperationSpec = { const beginMigrateGremlinGraphToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1346,8 +1055,12 @@ const beginMigrateGremlinGraphToManualThroughputOperationSpec: msRest.OperationS Parameters.databaseName, Parameters.graphName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts index 13447e20cb95..d5736137864a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts @@ -25,16 +25,6 @@ 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 2597d4823fa8..11847cee69eb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts @@ -33,39 +33,21 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - listMongoDBDatabases( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listMongoDBDatabases(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - listMongoDBDatabases( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + listMongoDBDatabases(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param options The optional parameters * @param callback The callback */ - listMongoDBDatabases( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listMongoDBDatabases( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listMongoDBDatabases(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMongoDBDatabases(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,8 +55,7 @@ export class MongoDBResources { options }, listMongoDBDatabasesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -86,24 +67,14 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - getMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - getMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + getMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -111,20 +82,8 @@ export class MongoDBResources { * @param options The optional parameters * @param callback The callback */ - getMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -133,8 +92,7 @@ export class MongoDBResources { options }, getMongoDBDatabaseOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -147,22 +105,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - createUpdateMongoDBDatabaseParameters: Models.MongoDBDatabaseCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateMongoDBDatabase( - resourceGroupName, - accountName, - databaseName, - createUpdateMongoDBDatabaseParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesCreateUpdateMongoDBDatabaseResponse - >; + createUpdateMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, createUpdateMongoDBDatabaseParameters: Models.MongoDBDatabaseCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateMongoDBDatabase(resourceGroupName,accountName,databaseName,createUpdateMongoDBDatabaseParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -173,18 +118,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - deleteMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMongoDBDatabase( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMongoDBDatabase(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -196,24 +132,14 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - getMongoDBDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getMongoDBDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - getMongoDBDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + getMongoDBDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -221,22 +147,8 @@ export class MongoDBResources { * @param options The optional parameters * @param callback The callback */ - getMongoDBDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getMongoDBDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getMongoDBDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMongoDBDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -245,8 +157,7 @@ export class MongoDBResources { options }, getMongoDBDatabaseThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -259,22 +170,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - updateMongoDBDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateMongoDBDatabaseThroughput( - resourceGroupName, - accountName, - databaseName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse - >; + updateMongoDBDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateMongoDBDatabaseThroughput(resourceGroupName,accountName,databaseName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -285,20 +183,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - migrateMongoDBDatabaseToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateMongoDBDatabaseToAutoscale( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse - >; + migrateMongoDBDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateMongoDBDatabaseToAutoscale(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -309,20 +196,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - migrateMongoDBDatabaseToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateMongoDBDatabaseToManualThroughput( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse - >; + migrateMongoDBDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateMongoDBDatabaseToManualThroughput(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -333,24 +209,14 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - listMongoDBCollections( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listMongoDBCollections(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - listMongoDBCollections( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + listMongoDBCollections(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -358,22 +224,8 @@ export class MongoDBResources { * @param options The optional parameters * @param callback The callback */ - listMongoDBCollections( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listMongoDBCollections( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listMongoDBCollections(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMongoDBCollections(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -382,8 +234,7 @@ export class MongoDBResources { options }, listMongoDBCollectionsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -395,13 +246,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - getMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -409,13 +254,7 @@ export class MongoDBResources { * @param collectionName Cosmos DB collection name. * @param callback The callback */ - getMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - callback: msRest.ServiceCallback - ): void; + getMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -424,24 +263,8 @@ export class MongoDBResources { * @param options The optional parameters * @param callback The callback */ - getMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -451,8 +274,7 @@ export class MongoDBResources { options }, getMongoDBCollectionOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -466,24 +288,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - createUpdateMongoDBCollectionParameters: Models.MongoDBCollectionCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateMongoDBCollection( - resourceGroupName, - accountName, - databaseName, - collectionName, - createUpdateMongoDBCollectionParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesCreateUpdateMongoDBCollectionResponse - >; + createUpdateMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, createUpdateMongoDBCollectionParameters: Models.MongoDBCollectionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateMongoDBCollection(resourceGroupName,accountName,databaseName,collectionName,createUpdateMongoDBCollectionParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -495,20 +302,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - deleteMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMongoDBCollection( - resourceGroupName, - accountName, - databaseName, - collectionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMongoDBCollection(resourceGroupName,accountName,databaseName,collectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -521,13 +317,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - getMongoDBCollectionThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getMongoDBCollectionThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -535,13 +325,7 @@ export class MongoDBResources { * @param collectionName Cosmos DB collection name. * @param callback The callback */ - getMongoDBCollectionThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - callback: msRest.ServiceCallback - ): void; + getMongoDBCollectionThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -550,24 +334,8 @@ export class MongoDBResources { * @param options The optional parameters * @param callback The callback */ - getMongoDBCollectionThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getMongoDBCollectionThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getMongoDBCollectionThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMongoDBCollectionThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -577,8 +345,7 @@ export class MongoDBResources { options }, getMongoDBCollectionThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -592,24 +359,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - updateMongoDBCollectionThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateMongoDBCollectionThroughput( - resourceGroupName, - accountName, - databaseName, - collectionName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesUpdateMongoDBCollectionThroughputResponse - >; + updateMongoDBCollectionThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateMongoDBCollectionThroughput(resourceGroupName,accountName,databaseName,collectionName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -621,22 +373,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - migrateMongoDBCollectionToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateMongoDBCollectionToAutoscale( - resourceGroupName, - accountName, - databaseName, - collectionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse - >; + migrateMongoDBCollectionToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateMongoDBCollectionToAutoscale(resourceGroupName,accountName,databaseName,collectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -648,22 +387,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - migrateMongoDBCollectionToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateMongoDBCollectionToManualThroughput( - resourceGroupName, - accountName, - databaseName, - collectionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse - >; + migrateMongoDBCollectionToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateMongoDBCollectionToManualThroughput(resourceGroupName,accountName,databaseName,collectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -676,13 +402,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - createUpdateMongoDBDatabaseParameters: Models.MongoDBDatabaseCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, createUpdateMongoDBDatabaseParameters: Models.MongoDBDatabaseCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -692,8 +412,7 @@ export class MongoDBResources { options }, beginCreateUpdateMongoDBDatabaseOperationSpec, - options - ); + options); } /** @@ -704,12 +423,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -718,8 +432,7 @@ export class MongoDBResources { options }, beginDeleteMongoDBDatabaseOperationSpec, - options - ); + options); } /** @@ -732,13 +445,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateMongoDBDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateMongoDBDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -748,8 +455,7 @@ export class MongoDBResources { options }, beginUpdateMongoDBDatabaseThroughputOperationSpec, - options - ); + options); } /** @@ -760,12 +466,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateMongoDBDatabaseToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateMongoDBDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -774,8 +475,7 @@ export class MongoDBResources { options }, beginMigrateMongoDBDatabaseToAutoscaleOperationSpec, - options - ); + options); } /** @@ -786,12 +486,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateMongoDBDatabaseToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateMongoDBDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -800,8 +495,7 @@ export class MongoDBResources { options }, beginMigrateMongoDBDatabaseToManualThroughputOperationSpec, - options - ); + options); } /** @@ -815,14 +509,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - createUpdateMongoDBCollectionParameters: Models.MongoDBCollectionCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, createUpdateMongoDBCollectionParameters: Models.MongoDBCollectionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -833,8 +520,7 @@ export class MongoDBResources { options }, beginCreateUpdateMongoDBCollectionOperationSpec, - options - ); + options); } /** @@ -846,13 +532,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -862,8 +542,7 @@ export class MongoDBResources { options }, beginDeleteMongoDBCollectionOperationSpec, - options - ); + options); } /** @@ -877,14 +556,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateMongoDBCollectionThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateMongoDBCollectionThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -895,8 +567,7 @@ export class MongoDBResources { options }, beginUpdateMongoDBCollectionThroughputOperationSpec, - options - ); + options); } /** @@ -908,13 +579,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateMongoDBCollectionToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateMongoDBCollectionToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -924,8 +589,7 @@ export class MongoDBResources { options }, beginMigrateMongoDBCollectionToAutoscaleOperationSpec, - options - ); + options); } /** @@ -937,13 +601,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateMongoDBCollectionToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateMongoDBCollectionToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -953,8 +611,7 @@ export class MongoDBResources { options }, beginMigrateMongoDBCollectionToManualThroughputOperationSpec, - options - ); + options); } } @@ -962,11 +619,18 @@ export class MongoDBResources { const serializer = new msRest.Serializer(Mappers); const listMongoDBDatabasesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.MongoDBDatabaseListResult @@ -980,16 +644,19 @@ const listMongoDBDatabasesOperationSpec: msRest.OperationSpec = { const getMongoDBDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.MongoDBDatabaseGetResults @@ -1003,16 +670,19 @@ const getMongoDBDatabaseOperationSpec: msRest.OperationSpec = { const getMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1026,16 +696,19 @@ const getMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = { const listMongoDBCollectionsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.MongoDBCollectionListResult @@ -1049,8 +722,7 @@ const listMongoDBCollectionsOperationSpec: msRest.OperationSpec = { const getMongoDBCollectionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1058,8 +730,12 @@ const getMongoDBCollectionOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.collectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.MongoDBCollectionGetResults @@ -1073,8 +749,7 @@ const getMongoDBCollectionOperationSpec: msRest.OperationSpec = { const getMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1082,8 +757,12 @@ const getMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.collectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1097,16 +776,19 @@ const getMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec = { const beginCreateUpdateMongoDBDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateMongoDBDatabaseParameters", mapper: { @@ -1128,16 +810,19 @@ const beginCreateUpdateMongoDBDatabaseOperationSpec: msRest.OperationSpec = { const beginDeleteMongoDBDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -1150,16 +835,19 @@ const beginDeleteMongoDBDatabaseOperationSpec: msRest.OperationSpec = { const beginUpdateMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1181,16 +869,19 @@ const beginUpdateMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = const beginMigrateMongoDBDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1205,16 +896,19 @@ const beginMigrateMongoDBDatabaseToAutoscaleOperationSpec: msRest.OperationSpec const beginMigrateMongoDBDatabaseToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1229,8 +923,7 @@ const beginMigrateMongoDBDatabaseToManualThroughputOperationSpec: msRest.Operati const beginCreateUpdateMongoDBCollectionOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1238,8 +931,12 @@ const beginCreateUpdateMongoDBCollectionOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.collectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateMongoDBCollectionParameters", mapper: { @@ -1261,8 +958,7 @@ const beginCreateUpdateMongoDBCollectionOperationSpec: msRest.OperationSpec = { const beginDeleteMongoDBCollectionOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1270,8 +966,12 @@ const beginDeleteMongoDBCollectionOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.collectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -1284,8 +984,7 @@ const beginDeleteMongoDBCollectionOperationSpec: msRest.OperationSpec = { const beginUpdateMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1293,8 +992,12 @@ const beginUpdateMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec Parameters.databaseName, Parameters.collectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1316,8 +1019,7 @@ const beginUpdateMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec const beginMigrateMongoDBCollectionToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1325,8 +1027,12 @@ const beginMigrateMongoDBCollectionToAutoscaleOperationSpec: msRest.OperationSpe Parameters.databaseName, Parameters.collectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1341,8 +1047,7 @@ const beginMigrateMongoDBCollectionToAutoscaleOperationSpec: msRest.OperationSpe const beginMigrateMongoDBCollectionToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1350,8 +1055,12 @@ const beginMigrateMongoDBCollectionToManualThroughputOperationSpec: msRest.Opera Parameters.databaseName, Parameters.collectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts deleted file mode 100644 index 364e09f1883b..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as 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 deleted file mode 100644 index 2395844f84d6..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as 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 deleted file mode 100644 index aa5b26b47e8e..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as 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 deleted file mode 100644 index fb3476425279..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as 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 deleted file mode 100644 index caa3a87402f2..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as 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 deleted file mode 100644 index 10f3e4e137c3..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as 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 deleted file mode 100644 index f60e04f80dd7..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as 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 deleted file mode 100644 index 10582f113afd..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/service.ts +++ /dev/null @@ -1,337 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serviceMappers"; -import * as Parameters from "../models/parameters"; -import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; - -/** Class representing a Service. */ -export class Service { - private readonly client: CosmosDBManagementClientContext; - - /** - * Create a Service. - * @param {CosmosDBManagementClientContext} client Reference to the service client. - */ - constructor(client: CosmosDBManagementClientContext) { - this.client = client; - } - - /** - * Gets the status of service. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param [options] The optional parameters - * @returns Promise - */ - list( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param callback The callback - */ - list( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param options The optional parameters - * @param callback The callback - */ - list( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - accountName, - options - }, - listOperationSpec, - callback - ) as Promise; - } - - /** - * Creates a service. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param serviceName Cosmos DB service name. - * @param createUpdateParameters The Service resource parameters. - * @param [options] The optional parameters - * @returns Promise - */ - create( - resourceGroupName: string, - accountName: string, - serviceName: string, - createUpdateParameters: Models.ServiceResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreate( - resourceGroupName, - accountName, - serviceName, - createUpdateParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Gets the status of service. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param serviceName Cosmos DB service name. - * @param [options] The optional parameters - * @returns Promise - */ - get( - resourceGroupName: string, - accountName: string, - serviceName: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param serviceName Cosmos DB service name. - * @param callback The callback - */ - get( - resourceGroupName: string, - accountName: string, - serviceName: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param serviceName Cosmos DB service name. - * @param options The optional parameters - * @param callback The callback - */ - get( - resourceGroupName: string, - accountName: string, - serviceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - accountName: string, - serviceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - accountName, - serviceName, - options - }, - getOperationSpec, - callback - ) as Promise; - } - - /** - * Deletes service with the given serviceName. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param serviceName Cosmos DB service name. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod( - resourceGroupName: string, - accountName: string, - serviceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - accountName, - serviceName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); - } - - /** - * Creates a service. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param serviceName Cosmos DB service name. - * @param createUpdateParameters The Service resource parameters. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreate( - resourceGroupName: string, - accountName: string, - serviceName: string, - createUpdateParameters: Models.ServiceResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - accountName, - serviceName, - createUpdateParameters, - options - }, - beginCreateOperationSpec, - options - ); - } - - /** - * Deletes service with the given serviceName. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param serviceName Cosmos DB service name. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod( - resourceGroupName: string, - accountName: string, - serviceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - accountName, - serviceName, - options - }, - beginDeleteMethodOperationSpec, - options - ); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ServiceResourceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.serviceName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ServiceResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.serviceName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "createUpdateParameters", - mapper: { - ...Mappers.ServiceResource, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ServiceResource - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.serviceName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts index 1c2415ee7d52..e0bff1f7fb95 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts @@ -33,39 +33,21 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - listSqlDatabases( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSqlDatabases(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - listSqlDatabases( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + listSqlDatabases(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param options The optional parameters * @param callback The callback */ - listSqlDatabases( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSqlDatabases( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSqlDatabases(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlDatabases(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,8 +55,7 @@ export class SqlResources { options }, listSqlDatabasesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -85,24 +66,14 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - getSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + getSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -110,20 +81,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -132,8 +91,7 @@ export class SqlResources { options }, getSqlDatabaseOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -145,22 +103,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - createUpdateSqlDatabaseParameters: Models.SqlDatabaseCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateSqlDatabase( - resourceGroupName, - accountName, - databaseName, - createUpdateSqlDatabaseParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesCreateUpdateSqlDatabaseResponse - >; + createUpdateSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, createUpdateSqlDatabaseParameters: Models.SqlDatabaseCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlDatabase(resourceGroupName,accountName,databaseName,createUpdateSqlDatabaseParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -171,18 +116,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - deleteSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteSqlDatabase( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlDatabase(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -194,24 +130,14 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - getSqlDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + getSqlDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -219,22 +145,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -243,8 +155,7 @@ export class SqlResources { options }, getSqlDatabaseThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -257,22 +168,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - updateSqlDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateSqlDatabaseThroughput( - resourceGroupName, - accountName, - databaseName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesUpdateSqlDatabaseThroughputResponse - >; + updateSqlDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateSqlDatabaseThroughput(resourceGroupName,accountName,databaseName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -283,20 +181,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - migrateSqlDatabaseToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateSqlDatabaseToAutoscale( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesMigrateSqlDatabaseToAutoscaleResponse - >; + migrateSqlDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateSqlDatabaseToAutoscale(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -307,20 +194,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - migrateSqlDatabaseToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateSqlDatabaseToManualThroughput( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesMigrateSqlDatabaseToManualThroughputResponse - >; + migrateSqlDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateSqlDatabaseToManualThroughput(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -331,24 +207,14 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - listSqlContainers( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSqlContainers(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - listSqlContainers( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + listSqlContainers(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -356,20 +222,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - listSqlContainers( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSqlContainers( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSqlContainers(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlContainers(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -378,8 +232,7 @@ export class SqlResources { options }, listSqlContainersOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -391,13 +244,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -405,13 +252,7 @@ export class SqlResources { * @param containerName Cosmos DB container name. * @param callback The callback */ - getSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - callback: msRest.ServiceCallback - ): void; + getSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -420,22 +261,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -445,8 +272,7 @@ export class SqlResources { options }, getSqlContainerOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -460,24 +286,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - createUpdateSqlContainerParameters: Models.SqlContainerCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateSqlContainer( - resourceGroupName, - accountName, - databaseName, - containerName, - createUpdateSqlContainerParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesCreateUpdateSqlContainerResponse - >; + createUpdateSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, createUpdateSqlContainerParameters: Models.SqlContainerCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlContainer(resourceGroupName,accountName,databaseName,containerName,createUpdateSqlContainerParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -489,20 +300,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - deleteSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteSqlContainer( - resourceGroupName, - accountName, - databaseName, - containerName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlContainer(resourceGroupName,accountName,databaseName,containerName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -514,13 +314,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlContainerThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlContainerThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -528,13 +322,7 @@ export class SqlResources { * @param containerName Cosmos DB container name. * @param callback The callback */ - getSqlContainerThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - callback: msRest.ServiceCallback - ): void; + getSqlContainerThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -543,24 +331,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlContainerThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlContainerThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlContainerThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlContainerThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -570,8 +342,7 @@ export class SqlResources { options }, getSqlContainerThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -585,24 +356,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - updateSqlContainerThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateSqlContainerThroughput( - resourceGroupName, - accountName, - databaseName, - containerName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesUpdateSqlContainerThroughputResponse - >; + updateSqlContainerThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateSqlContainerThroughput(resourceGroupName,accountName,databaseName,containerName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -614,22 +370,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - migrateSqlContainerToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateSqlContainerToAutoscale( - resourceGroupName, - accountName, - databaseName, - containerName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesMigrateSqlContainerToAutoscaleResponse - >; + migrateSqlContainerToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateSqlContainerToAutoscale(resourceGroupName,accountName,databaseName,containerName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -641,22 +384,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - migrateSqlContainerToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateSqlContainerToManualThroughput( - resourceGroupName, - accountName, - databaseName, - containerName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesMigrateSqlContainerToManualThroughputResponse - >; + migrateSqlContainerToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateSqlContainerToManualThroughput(resourceGroupName,accountName,databaseName,containerName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -668,13 +398,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - listSqlStoredProcedures( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSqlStoredProcedures(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -682,13 +406,7 @@ export class SqlResources { * @param containerName Cosmos DB container name. * @param callback The callback */ - listSqlStoredProcedures( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - callback: msRest.ServiceCallback - ): void; + listSqlStoredProcedures(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -697,24 +415,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - listSqlStoredProcedures( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSqlStoredProcedures( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSqlStoredProcedures(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlStoredProcedures(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -724,8 +426,7 @@ export class SqlResources { options }, listSqlStoredProceduresOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -738,14 +439,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -754,14 +448,7 @@ export class SqlResources { * @param storedProcedureName Cosmos DB storedProcedure name. * @param callback The callback */ - getSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - callback: msRest.ServiceCallback - ): void; + getSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -771,26 +458,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -801,8 +470,7 @@ export class SqlResources { options }, getSqlStoredProcedureOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -817,26 +485,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - createUpdateSqlStoredProcedureParameters: Models.SqlStoredProcedureCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateSqlStoredProcedure( - resourceGroupName, - accountName, - databaseName, - containerName, - storedProcedureName, - createUpdateSqlStoredProcedureParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesCreateUpdateSqlStoredProcedureResponse - >; + createUpdateSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, createUpdateSqlStoredProcedureParameters: Models.SqlStoredProcedureCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlStoredProcedure(resourceGroupName,accountName,databaseName,containerName,storedProcedureName,createUpdateSqlStoredProcedureParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -849,22 +500,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - deleteSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteSqlStoredProcedure( - resourceGroupName, - accountName, - databaseName, - containerName, - storedProcedureName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlStoredProcedure(resourceGroupName,accountName,databaseName,containerName,storedProcedureName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -876,13 +514,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - listSqlUserDefinedFunctions( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSqlUserDefinedFunctions(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -890,13 +522,7 @@ export class SqlResources { * @param containerName Cosmos DB container name. * @param callback The callback */ - listSqlUserDefinedFunctions( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - callback: msRest.ServiceCallback - ): void; + listSqlUserDefinedFunctions(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -905,24 +531,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - listSqlUserDefinedFunctions( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSqlUserDefinedFunctions( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSqlUserDefinedFunctions(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlUserDefinedFunctions(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -932,8 +542,7 @@ export class SqlResources { options }, listSqlUserDefinedFunctionsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -946,14 +555,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -962,14 +564,7 @@ export class SqlResources { * @param userDefinedFunctionName Cosmos DB userDefinedFunction name. * @param callback The callback */ - getSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - callback: msRest.ServiceCallback - ): void; + getSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -979,26 +574,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1009,8 +586,7 @@ export class SqlResources { options }, getSqlUserDefinedFunctionOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1025,26 +601,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - createUpdateSqlUserDefinedFunctionParameters: Models.SqlUserDefinedFunctionCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateSqlUserDefinedFunction( - resourceGroupName, - accountName, - databaseName, - containerName, - userDefinedFunctionName, - createUpdateSqlUserDefinedFunctionParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse - >; + createUpdateSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, createUpdateSqlUserDefinedFunctionParameters: Models.SqlUserDefinedFunctionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlUserDefinedFunction(resourceGroupName,accountName,databaseName,containerName,userDefinedFunctionName,createUpdateSqlUserDefinedFunctionParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1057,22 +616,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - deleteSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteSqlUserDefinedFunction( - resourceGroupName, - accountName, - databaseName, - containerName, - userDefinedFunctionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlUserDefinedFunction(resourceGroupName,accountName,databaseName,containerName,userDefinedFunctionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -1084,13 +630,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - listSqlTriggers( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSqlTriggers(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -1098,13 +638,7 @@ export class SqlResources { * @param containerName Cosmos DB container name. * @param callback The callback */ - listSqlTriggers( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - callback: msRest.ServiceCallback - ): void; + listSqlTriggers(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -1113,22 +647,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - listSqlTriggers( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSqlTriggers( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSqlTriggers(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlTriggers(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1138,8 +658,7 @@ export class SqlResources { options }, listSqlTriggersOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1152,14 +671,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -1168,14 +680,7 @@ export class SqlResources { * @param triggerName Cosmos DB trigger name. * @param callback The callback */ - getSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - callback: msRest.ServiceCallback - ): void; + getSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -1185,24 +690,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1213,8 +702,7 @@ export class SqlResources { options }, getSqlTriggerOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1228,26 +716,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - createUpdateSqlTriggerParameters: Models.SqlTriggerCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateSqlTrigger( - resourceGroupName, - accountName, - databaseName, - containerName, - triggerName, - createUpdateSqlTriggerParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesCreateUpdateSqlTriggerResponse - >; + createUpdateSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, createUpdateSqlTriggerParameters: Models.SqlTriggerCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlTrigger(resourceGroupName,accountName,databaseName,containerName,triggerName,createUpdateSqlTriggerParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1260,52 +731,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - deleteSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteSqlTrigger( - resourceGroupName, - accountName, - databaseName, - containerName, - triggerName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); - } - - /** - * Retrieves continuous backup information for a container resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param location The name of the continuous backup restore location. - * @param [options] The optional parameters - * @returns Promise - */ - retrieveContinuousBackupInformation( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - location: Models.ContinuousBackupRestoreLocation, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRetrieveContinuousBackupInformation( - resourceGroupName, - accountName, - databaseName, - containerName, - location, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesRetrieveContinuousBackupInformationResponse - >; + deleteSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlTrigger(resourceGroupName,accountName,databaseName,containerName,triggerName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -1316,24 +744,14 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param roleDefinitionId The GUID for the Role Definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - getSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + getSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param roleDefinitionId The GUID for the Role Definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1341,22 +759,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { roleDefinitionId, @@ -1365,8 +769,7 @@ export class SqlResources { options }, getSqlRoleDefinitionOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1379,22 +782,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - createUpdateSqlRoleDefinitionParameters: Models.SqlRoleDefinitionCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateSqlRoleDefinition( - roleDefinitionId, - resourceGroupName, - accountName, - createUpdateSqlRoleDefinitionParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesCreateUpdateSqlRoleDefinitionResponse - >; + createUpdateSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, createUpdateSqlRoleDefinitionParameters: Models.SqlRoleDefinitionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlRoleDefinition(roleDefinitionId,resourceGroupName,accountName,createUpdateSqlRoleDefinitionParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1405,18 +795,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - deleteSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteSqlRoleDefinition( - roleDefinitionId, - resourceGroupName, - accountName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlRoleDefinition(roleDefinitionId,resourceGroupName,accountName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -1426,41 +807,21 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - listSqlRoleDefinitions( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSqlRoleDefinitions(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - listSqlRoleDefinitions( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + listSqlRoleDefinitions(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param options The optional parameters * @param callback The callback */ - listSqlRoleDefinitions( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSqlRoleDefinitions( - resourceGroupName: string, - accountName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSqlRoleDefinitions(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlRoleDefinitions(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1468,8 +829,7 @@ export class SqlResources { options }, listSqlRoleDefinitionsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1480,24 +840,14 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param roleAssignmentId The GUID for the Role Assignment. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - getSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + getSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param roleAssignmentId The GUID for the Role Assignment. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1505,22 +855,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { roleAssignmentId, @@ -1529,8 +865,7 @@ export class SqlResources { options }, getSqlRoleAssignmentOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1543,22 +878,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - createUpdateSqlRoleAssignmentParameters: Models.SqlRoleAssignmentCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateSqlRoleAssignment( - roleAssignmentId, - resourceGroupName, - accountName, - createUpdateSqlRoleAssignmentParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesCreateUpdateSqlRoleAssignmentResponse - >; + createUpdateSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, createUpdateSqlRoleAssignmentParameters: Models.SqlRoleAssignmentCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlRoleAssignment(roleAssignmentId,resourceGroupName,accountName,createUpdateSqlRoleAssignmentParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1569,18 +891,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - deleteSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteSqlRoleAssignment( - roleAssignmentId, - resourceGroupName, - accountName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlRoleAssignment(roleAssignmentId,resourceGroupName,accountName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -1590,41 +903,21 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - listSqlRoleAssignments( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSqlRoleAssignments(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - listSqlRoleAssignments( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + listSqlRoleAssignments(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param options The optional parameters * @param callback The callback */ - listSqlRoleAssignments( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSqlRoleAssignments( - resourceGroupName: string, - accountName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSqlRoleAssignments(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlRoleAssignments(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1632,8 +925,7 @@ export class SqlResources { options }, listSqlRoleAssignmentsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1645,13 +937,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - createUpdateSqlDatabaseParameters: Models.SqlDatabaseCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, createUpdateSqlDatabaseParameters: Models.SqlDatabaseCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1661,8 +947,7 @@ export class SqlResources { options }, beginCreateUpdateSqlDatabaseOperationSpec, - options - ); + options); } /** @@ -1673,12 +958,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1687,8 +967,7 @@ export class SqlResources { options }, beginDeleteSqlDatabaseOperationSpec, - options - ); + options); } /** @@ -1701,13 +980,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateSqlDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateSqlDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1717,8 +990,7 @@ export class SqlResources { options }, beginUpdateSqlDatabaseThroughputOperationSpec, - options - ); + options); } /** @@ -1729,12 +1001,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateSqlDatabaseToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateSqlDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1743,8 +1010,7 @@ export class SqlResources { options }, beginMigrateSqlDatabaseToAutoscaleOperationSpec, - options - ); + options); } /** @@ -1755,12 +1021,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateSqlDatabaseToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateSqlDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1769,8 +1030,7 @@ export class SqlResources { options }, beginMigrateSqlDatabaseToManualThroughputOperationSpec, - options - ); + options); } /** @@ -1784,14 +1044,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - createUpdateSqlContainerParameters: Models.SqlContainerCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, createUpdateSqlContainerParameters: Models.SqlContainerCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1802,8 +1055,7 @@ export class SqlResources { options }, beginCreateUpdateSqlContainerOperationSpec, - options - ); + options); } /** @@ -1815,13 +1067,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1831,8 +1077,7 @@ export class SqlResources { options }, beginDeleteSqlContainerOperationSpec, - options - ); + options); } /** @@ -1846,14 +1091,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateSqlContainerThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateSqlContainerThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1864,8 +1102,7 @@ export class SqlResources { options }, beginUpdateSqlContainerThroughputOperationSpec, - options - ); + options); } /** @@ -1877,13 +1114,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateSqlContainerToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateSqlContainerToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1893,8 +1124,7 @@ export class SqlResources { options }, beginMigrateSqlContainerToAutoscaleOperationSpec, - options - ); + options); } /** @@ -1906,13 +1136,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateSqlContainerToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateSqlContainerToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1922,8 +1146,7 @@ export class SqlResources { options }, beginMigrateSqlContainerToManualThroughputOperationSpec, - options - ); + options); } /** @@ -1938,15 +1161,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - createUpdateSqlStoredProcedureParameters: Models.SqlStoredProcedureCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, createUpdateSqlStoredProcedureParameters: Models.SqlStoredProcedureCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1958,8 +1173,7 @@ export class SqlResources { options }, beginCreateUpdateSqlStoredProcedureOperationSpec, - options - ); + options); } /** @@ -1972,14 +1186,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1990,8 +1197,7 @@ export class SqlResources { options }, beginDeleteSqlStoredProcedureOperationSpec, - options - ); + options); } /** @@ -2006,15 +1212,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - createUpdateSqlUserDefinedFunctionParameters: Models.SqlUserDefinedFunctionCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, createUpdateSqlUserDefinedFunctionParameters: Models.SqlUserDefinedFunctionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -2026,8 +1224,7 @@ export class SqlResources { options }, beginCreateUpdateSqlUserDefinedFunctionOperationSpec, - options - ); + options); } /** @@ -2040,14 +1237,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -2058,8 +1248,7 @@ export class SqlResources { options }, beginDeleteSqlUserDefinedFunctionOperationSpec, - options - ); + options); } /** @@ -2073,15 +1262,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - createUpdateSqlTriggerParameters: Models.SqlTriggerCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, createUpdateSqlTriggerParameters: Models.SqlTriggerCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -2093,8 +1274,7 @@ export class SqlResources { options }, beginCreateUpdateSqlTriggerOperationSpec, - options - ); + options); } /** @@ -2107,14 +1287,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -2125,40 +1298,7 @@ export class SqlResources { options }, beginDeleteSqlTriggerOperationSpec, - options - ); - } - - /** - * Retrieves continuous backup information for a container resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param location The name of the continuous backup restore location. - * @param [options] The optional parameters - * @returns Promise - */ - beginRetrieveContinuousBackupInformation( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - location: Models.ContinuousBackupRestoreLocation, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - accountName, - databaseName, - containerName, - location, - options - }, - beginRetrieveContinuousBackupInformationOperationSpec, - options - ); + options); } /** @@ -2171,13 +1311,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - createUpdateSqlRoleDefinitionParameters: Models.SqlRoleDefinitionCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, createUpdateSqlRoleDefinitionParameters: Models.SqlRoleDefinitionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { roleDefinitionId, @@ -2187,8 +1321,7 @@ export class SqlResources { options }, beginCreateUpdateSqlRoleDefinitionOperationSpec, - options - ); + options); } /** @@ -2199,12 +1332,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { roleDefinitionId, @@ -2213,8 +1341,7 @@ export class SqlResources { options }, beginDeleteSqlRoleDefinitionOperationSpec, - options - ); + options); } /** @@ -2227,13 +1354,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - createUpdateSqlRoleAssignmentParameters: Models.SqlRoleAssignmentCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, createUpdateSqlRoleAssignmentParameters: Models.SqlRoleAssignmentCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { roleAssignmentId, @@ -2243,8 +1364,7 @@ export class SqlResources { options }, beginCreateUpdateSqlRoleAssignmentOperationSpec, - options - ); + options); } /** @@ -2255,12 +1375,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { roleAssignmentId, @@ -2269,8 +1384,7 @@ export class SqlResources { options }, beginDeleteSqlRoleAssignmentOperationSpec, - options - ); + options); } } @@ -2278,11 +1392,18 @@ export class SqlResources { const serializer = new msRest.Serializer(Mappers); const listSqlDatabasesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlDatabaseListResult @@ -2296,16 +1417,19 @@ const listSqlDatabasesOperationSpec: msRest.OperationSpec = { const getSqlDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlDatabaseGetResults @@ -2319,16 +1443,19 @@ const getSqlDatabaseOperationSpec: msRest.OperationSpec = { const getSqlDatabaseThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -2342,16 +1469,19 @@ const getSqlDatabaseThroughputOperationSpec: msRest.OperationSpec = { const listSqlContainersOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlContainerListResult @@ -2365,8 +1495,7 @@ const listSqlContainersOperationSpec: msRest.OperationSpec = { const getSqlContainerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2374,8 +1503,12 @@ const getSqlContainerOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlContainerGetResults @@ -2389,8 +1522,7 @@ const getSqlContainerOperationSpec: msRest.OperationSpec = { const getSqlContainerThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2398,8 +1530,12 @@ const getSqlContainerThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -2413,8 +1549,7 @@ const getSqlContainerThroughputOperationSpec: msRest.OperationSpec = { const listSqlStoredProceduresOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2422,8 +1557,12 @@ const listSqlStoredProceduresOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlStoredProcedureListResult @@ -2437,8 +1576,7 @@ const listSqlStoredProceduresOperationSpec: msRest.OperationSpec = { const getSqlStoredProcedureOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2447,8 +1585,12 @@ const getSqlStoredProcedureOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.storedProcedureName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlStoredProcedureGetResults @@ -2462,8 +1604,7 @@ const getSqlStoredProcedureOperationSpec: msRest.OperationSpec = { const listSqlUserDefinedFunctionsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2471,8 +1612,12 @@ const listSqlUserDefinedFunctionsOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlUserDefinedFunctionListResult @@ -2486,8 +1631,7 @@ const listSqlUserDefinedFunctionsOperationSpec: msRest.OperationSpec = { const getSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2496,8 +1640,12 @@ const getSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.userDefinedFunctionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlUserDefinedFunctionGetResults @@ -2511,8 +1659,7 @@ const getSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { const listSqlTriggersOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2520,8 +1667,12 @@ const listSqlTriggersOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlTriggerListResult @@ -2535,8 +1686,7 @@ const listSqlTriggersOperationSpec: msRest.OperationSpec = { const getSqlTriggerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2545,8 +1695,12 @@ const getSqlTriggerOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.triggerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlTriggerGetResults @@ -2560,16 +1714,19 @@ const getSqlTriggerOperationSpec: msRest.OperationSpec = { const getSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", urlParameters: [ Parameters.roleDefinitionId, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlRoleDefinitionGetResults @@ -2583,11 +1740,18 @@ const getSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { const listSqlRoleDefinitionsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlRoleDefinitionListResult @@ -2601,16 +1765,19 @@ const listSqlRoleDefinitionsOperationSpec: msRest.OperationSpec = { const getSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", urlParameters: [ Parameters.roleAssignmentId, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlRoleAssignmentGetResults @@ -2624,11 +1791,18 @@ const getSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { const listSqlRoleAssignmentsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlRoleAssignmentListResult @@ -2642,16 +1816,19 @@ const listSqlRoleAssignmentsOperationSpec: msRest.OperationSpec = { const beginCreateUpdateSqlDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateSqlDatabaseParameters", mapper: { @@ -2673,16 +1850,19 @@ const beginCreateUpdateSqlDatabaseOperationSpec: msRest.OperationSpec = { const beginDeleteSqlDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -2695,16 +1875,19 @@ const beginDeleteSqlDatabaseOperationSpec: msRest.OperationSpec = { const beginUpdateSqlDatabaseThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -2726,16 +1909,19 @@ const beginUpdateSqlDatabaseThroughputOperationSpec: msRest.OperationSpec = { const beginMigrateSqlDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -2750,16 +1936,19 @@ const beginMigrateSqlDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { const beginMigrateSqlDatabaseToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -2774,8 +1963,7 @@ const beginMigrateSqlDatabaseToManualThroughputOperationSpec: msRest.OperationSp const beginCreateUpdateSqlContainerOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2783,8 +1971,12 @@ const beginCreateUpdateSqlContainerOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateSqlContainerParameters", mapper: { @@ -2806,8 +1998,7 @@ const beginCreateUpdateSqlContainerOperationSpec: msRest.OperationSpec = { const beginDeleteSqlContainerOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2815,8 +2006,12 @@ const beginDeleteSqlContainerOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -2829,8 +2024,7 @@ const beginDeleteSqlContainerOperationSpec: msRest.OperationSpec = { const beginUpdateSqlContainerThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2838,8 +2032,12 @@ const beginUpdateSqlContainerThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -2861,8 +2059,7 @@ const beginUpdateSqlContainerThroughputOperationSpec: msRest.OperationSpec = { const beginMigrateSqlContainerToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2870,8 +2067,12 @@ const beginMigrateSqlContainerToAutoscaleOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -2886,8 +2087,7 @@ const beginMigrateSqlContainerToAutoscaleOperationSpec: msRest.OperationSpec = { const beginMigrateSqlContainerToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2895,8 +2095,12 @@ const beginMigrateSqlContainerToManualThroughputOperationSpec: msRest.OperationS Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -2911,8 +2115,7 @@ const beginMigrateSqlContainerToManualThroughputOperationSpec: msRest.OperationS const beginCreateUpdateSqlStoredProcedureOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2921,8 +2124,12 @@ const beginCreateUpdateSqlStoredProcedureOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.storedProcedureName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateSqlStoredProcedureParameters", mapper: { @@ -2944,8 +2151,7 @@ const beginCreateUpdateSqlStoredProcedureOperationSpec: msRest.OperationSpec = { const beginDeleteSqlStoredProcedureOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2954,8 +2160,12 @@ const beginDeleteSqlStoredProcedureOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.storedProcedureName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -2968,8 +2178,7 @@ const beginDeleteSqlStoredProcedureOperationSpec: msRest.OperationSpec = { const beginCreateUpdateSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2978,8 +2187,12 @@ const beginCreateUpdateSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec Parameters.containerName, Parameters.userDefinedFunctionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateSqlUserDefinedFunctionParameters", mapper: { @@ -3001,8 +2214,7 @@ const beginCreateUpdateSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec const beginDeleteSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -3011,8 +2223,12 @@ const beginDeleteSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.userDefinedFunctionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -3025,8 +2241,7 @@ const beginDeleteSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { const beginCreateUpdateSqlTriggerOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -3035,8 +2250,12 @@ const beginCreateUpdateSqlTriggerOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.triggerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateSqlTriggerParameters", mapper: { @@ -3058,8 +2277,7 @@ const beginCreateUpdateSqlTriggerOperationSpec: msRest.OperationSpec = { const beginDeleteSqlTriggerOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -3068,43 +2286,15 @@ const beginDeleteSqlTriggerOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.triggerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginRetrieveContinuousBackupInformationOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/retrieveContinuousBackupInformation", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName, - Parameters.containerName + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "location", - mapper: { - ...Mappers.ContinuousBackupRestoreLocation, - required: true - } - }, responses: { - 200: { - bodyMapper: Mappers.BackupInformation - }, 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } @@ -3114,16 +2304,19 @@ const beginRetrieveContinuousBackupInformationOperationSpec: msRest.OperationSpe const beginCreateUpdateSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", urlParameters: [ Parameters.roleDefinitionId, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateSqlRoleDefinitionParameters", mapper: { @@ -3145,16 +2338,19 @@ const beginCreateUpdateSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { const beginDeleteSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", urlParameters: [ Parameters.roleDefinitionId, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -3168,16 +2364,19 @@ const beginDeleteSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { const beginCreateUpdateSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", urlParameters: [ Parameters.roleAssignmentId, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateSqlRoleAssignmentParameters", mapper: { @@ -3199,16 +2398,19 @@ const beginCreateUpdateSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { const beginDeleteSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", urlParameters: [ Parameters.roleAssignmentId, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts index 2c51037b59b0..b0ccec17248b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts @@ -33,39 +33,21 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - listTables( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listTables(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - listTables( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + listTables(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param options The optional parameters * @param callback The callback */ - listTables( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listTables( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listTables(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listTables(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,8 +55,7 @@ export class TableResources { options }, listTablesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -85,24 +66,14 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - getTable( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getTable(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param tableName Cosmos DB table name. * @param callback The callback */ - getTable( - resourceGroupName: string, - accountName: string, - tableName: string, - callback: msRest.ServiceCallback - ): void; + getTable(resourceGroupName: string, accountName: string, tableName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -110,20 +81,8 @@ export class TableResources { * @param options The optional parameters * @param callback The callback */ - getTable( - resourceGroupName: string, - accountName: string, - tableName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getTable( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getTable(resourceGroupName: string, accountName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getTable(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -132,8 +91,7 @@ export class TableResources { options }, getTableOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -145,22 +103,9 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateTable( - resourceGroupName: string, - accountName: string, - tableName: string, - createUpdateTableParameters: Models.TableCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateTable( - resourceGroupName, - accountName, - tableName, - createUpdateTableParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.TableResourcesCreateUpdateTableResponse - >; + createUpdateTable(resourceGroupName: string, accountName: string, tableName: string, createUpdateTableParameters: Models.TableCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateTable(resourceGroupName,accountName,tableName,createUpdateTableParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -171,18 +116,9 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - deleteTable( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteTable( - resourceGroupName, - accountName, - tableName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteTable(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteTable(resourceGroupName,accountName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -194,24 +130,14 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - getTableThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getTableThroughput(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param tableName Cosmos DB table name. * @param callback The callback */ - getTableThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - callback: msRest.ServiceCallback - ): void; + getTableThroughput(resourceGroupName: string, accountName: string, tableName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -219,22 +145,8 @@ export class TableResources { * @param options The optional parameters * @param callback The callback */ - getTableThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getTableThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getTableThroughput(resourceGroupName: string, accountName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getTableThroughput(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -243,8 +155,7 @@ export class TableResources { options }, getTableThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -257,22 +168,9 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - updateTableThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateTableThroughput( - resourceGroupName, - accountName, - tableName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.TableResourcesUpdateTableThroughputResponse - >; + updateTableThroughput(resourceGroupName: string, accountName: string, tableName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTableThroughput(resourceGroupName,accountName,tableName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -283,20 +181,9 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - migrateTableToAutoscale( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateTableToAutoscale( - resourceGroupName, - accountName, - tableName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.TableResourcesMigrateTableToAutoscaleResponse - >; + migrateTableToAutoscale(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateTableToAutoscale(resourceGroupName,accountName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -307,20 +194,9 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - migrateTableToManualThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateTableToManualThroughput( - resourceGroupName, - accountName, - tableName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.TableResourcesMigrateTableToManualThroughputResponse - >; + migrateTableToManualThroughput(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateTableToManualThroughput(resourceGroupName,accountName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -332,13 +208,7 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateTable( - resourceGroupName: string, - accountName: string, - tableName: string, - createUpdateTableParameters: Models.TableCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateTable(resourceGroupName: string, accountName: string, tableName: string, createUpdateTableParameters: Models.TableCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -348,8 +218,7 @@ export class TableResources { options }, beginCreateUpdateTableOperationSpec, - options - ); + options); } /** @@ -360,12 +229,7 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteTable( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteTable(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -374,8 +238,7 @@ export class TableResources { options }, beginDeleteTableOperationSpec, - options - ); + options); } /** @@ -388,13 +251,7 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateTableThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateTableThroughput(resourceGroupName: string, accountName: string, tableName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -404,8 +261,7 @@ export class TableResources { options }, beginUpdateTableThroughputOperationSpec, - options - ); + options); } /** @@ -416,12 +272,7 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateTableToAutoscale( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateTableToAutoscale(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -430,8 +281,7 @@ export class TableResources { options }, beginMigrateTableToAutoscaleOperationSpec, - options - ); + options); } /** @@ -442,12 +292,7 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateTableToManualThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateTableToManualThroughput(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -456,8 +301,7 @@ export class TableResources { options }, beginMigrateTableToManualThroughputOperationSpec, - options - ); + options); } } @@ -465,11 +309,18 @@ export class TableResources { const serializer = new msRest.Serializer(Mappers); const listTablesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.TableListResult @@ -483,16 +334,19 @@ const listTablesOperationSpec: msRest.OperationSpec = { const getTableOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.TableGetResults @@ -506,16 +360,19 @@ const getTableOperationSpec: msRest.OperationSpec = { const getTableThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -529,16 +386,19 @@ const getTableThroughputOperationSpec: msRest.OperationSpec = { const beginCreateUpdateTableOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateTableParameters", mapper: { @@ -560,16 +420,19 @@ const beginCreateUpdateTableOperationSpec: msRest.OperationSpec = { const beginDeleteTableOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -582,16 +445,19 @@ const beginDeleteTableOperationSpec: msRest.OperationSpec = { const beginUpdateTableThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -613,16 +479,19 @@ const beginUpdateTableThroughputOperationSpec: msRest.OperationSpec = { const beginMigrateTableToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -637,16 +506,19 @@ const beginMigrateTableToAutoscaleOperationSpec: msRest.OperationSpec = { const beginMigrateTableToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults