diff --git a/sdk/cosmosdb/arm-cosmosdb/package.json b/sdk/cosmosdb/arm-cosmosdb/package.json index ce8cbe76557e..6a02929c644c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/package.json +++ b/sdk/cosmosdb/arm-cosmosdb/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/cosmosdb/arm-cosmosdb", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/cosmosdb/arm-cosmosdb", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts index bb1862208b62..07c47cc932ac 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts @@ -11,6 +11,7 @@ import * as msRest from "@azure/ms-rest-js"; import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters"; import * as operations from "./operations"; import { CosmosDBManagementClientContext } from "./cosmosDBManagementClientContext"; @@ -30,6 +31,7 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { collectionPartition: operations.CollectionPartition; partitionKeyRangeId: operations.PartitionKeyRangeId; partitionKeyRangeIdRegion: operations.PartitionKeyRangeIdRegion; + graphResources: operations.GraphResources; sqlResources: operations.SqlResources; mongoDBResources: operations.MongoDBResources; tableResources: operations.TableResources; @@ -45,6 +47,9 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { restorableMongodbDatabases: operations.RestorableMongodbDatabases; restorableMongodbCollections: operations.RestorableMongodbCollections; restorableMongodbResources: operations.RestorableMongodbResources; + cassandraClusters: operations.CassandraClusters; + cassandraDataCenters: operations.CassandraDataCenters; + service: operations.Service; /** * Initializes a new instance of the CosmosDBManagementClient class. @@ -72,6 +77,7 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { this.collectionPartition = new operations.CollectionPartition(this); this.partitionKeyRangeId = new operations.PartitionKeyRangeId(this); this.partitionKeyRangeIdRegion = new operations.PartitionKeyRangeIdRegion(this); + this.graphResources = new operations.GraphResources(this); this.sqlResources = new operations.SqlResources(this); this.mongoDBResources = new operations.MongoDBResources(this); this.tableResources = new operations.TableResources(this); @@ -87,10 +93,112 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { 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.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 fe8294ec51b3..e5b28e00b66d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts @@ -49,7 +49,7 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli super(credentials, options); - this.apiVersion = '2021-06-15'; + this.apiVersion = '2021-07-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts new file mode 100644 index 000000000000..f26ba06095a2 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts @@ -0,0 +1,169 @@ +/* + * 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, + AnalyticalStorageConfiguration, + ApiProperties, + ARMProxyResource, + ARMResourceProperties, + AutoscaleSettings, + AutoscaleSettingsResource, + AutoUpgradePolicyResource, + AzureEntityResource, + BackupPolicy, + BackupPolicyMigrationState, + BackupResource, + BackupResourceProperties, + BaseResource, + Capability, + CassandraKeyspaceCreateUpdateParameters, + CassandraKeyspaceGetPropertiesOptions, + CassandraKeyspaceGetPropertiesResource, + CassandraKeyspaceGetResults, + CassandraKeyspaceResource, + CassandraPartitionKey, + CassandraSchema, + CassandraTableCreateUpdateParameters, + CassandraTableGetPropertiesOptions, + CassandraTableGetPropertiesResource, + CassandraTableGetResults, + CassandraTableResource, + CassandraViewCreateUpdateParameters, + CassandraViewGetPropertiesOptions, + CassandraViewGetPropertiesResource, + CassandraViewGetResults, + CassandraViewResource, + Certificate, + CloudError, + ClusterKey, + ClusterNodeStatus, + ClusterNodeStatusNodesItem, + ClusterResource, + ClusterResourceProperties, + Column, + CompositePath, + ConflictResolutionPolicy, + ConsistencyPolicy, + ContainerPartitionKey, + ContinuousModeBackupPolicy, + CorsPolicy, + CreateUpdateOptions, + DatabaseAccountCreateUpdateParameters, + DatabaseAccountGetResults, + DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DiagnosticLogSettings, + ErrorResponse, + ExcludedPath, + FailoverPolicy, + GraphAPIComputeRegionalServiceResource, + GraphAPIComputeServiceResourceProperties, + GraphResource, + GraphResourceCreateUpdateParameters, + GraphResourceGetPropertiesOptions, + GraphResourceGetPropertiesResource, + GraphResourceGetResults, + 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, + SeedNode, + ServiceResource, + ServiceResourceProperties, + SpatialSpec, + SqlContainerCreateUpdateParameters, + SqlContainerGetPropertiesOptions, + SqlContainerGetPropertiesResource, + SqlContainerGetResults, + SqlContainerResource, + SqlDatabaseCreateUpdateParameters, + SqlDatabaseGetPropertiesOptions, + SqlDatabaseGetPropertiesResource, + SqlDatabaseGetResults, + SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, + SqlStoredProcedureCreateUpdateParameters, + SqlStoredProcedureGetPropertiesResource, + SqlStoredProcedureGetResults, + SqlStoredProcedureResource, + SqlTriggerCreateUpdateParameters, + SqlTriggerGetPropertiesResource, + SqlTriggerGetResults, + SqlTriggerResource, + SqlUserDefinedFunctionCreateUpdateParameters, + SqlUserDefinedFunctionGetPropertiesResource, + SqlUserDefinedFunctionGetResults, + SqlUserDefinedFunctionResource, + SystemData, + TableCreateUpdateParameters, + TableGetPropertiesOptions, + TableGetPropertiesResource, + TableGetResults, + TableResource, + ThroughputPolicyResource, + ThroughputSettingsGetPropertiesResource, + ThroughputSettingsGetResults, + ThroughputSettingsResource, + ThroughputSettingsUpdateParameters, + TrackedResource, + UniqueKey, + UniqueKeyPolicy, + VirtualNetworkRule +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts new file mode 100644 index 000000000000..ea2e6eae809b --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts @@ -0,0 +1,165 @@ +/* + * 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, + AnalyticalStorageConfiguration, + ApiProperties, + ARMProxyResource, + ARMResourceProperties, + AutoscaleSettings, + AutoscaleSettingsResource, + AutoUpgradePolicyResource, + AzureEntityResource, + BackupPolicy, + BackupPolicyMigrationState, + BackupResource, + BackupResourceProperties, + BaseResource, + Capability, + CassandraKeyspaceCreateUpdateParameters, + CassandraKeyspaceGetPropertiesOptions, + CassandraKeyspaceGetPropertiesResource, + CassandraKeyspaceGetResults, + CassandraKeyspaceResource, + CassandraPartitionKey, + CassandraSchema, + CassandraTableCreateUpdateParameters, + CassandraTableGetPropertiesOptions, + CassandraTableGetPropertiesResource, + CassandraTableGetResults, + CassandraTableResource, + CassandraViewCreateUpdateParameters, + CassandraViewGetPropertiesOptions, + CassandraViewGetPropertiesResource, + CassandraViewGetResults, + CassandraViewResource, + Certificate, + CloudError, + ClusterKey, + ClusterResource, + ClusterResourceProperties, + Column, + CompositePath, + ConflictResolutionPolicy, + ConsistencyPolicy, + ContainerPartitionKey, + ContinuousModeBackupPolicy, + CorsPolicy, + CreateUpdateOptions, + DatabaseAccountCreateUpdateParameters, + DatabaseAccountGetResults, + DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DiagnosticLogSettings, + ErrorResponse, + ExcludedPath, + FailoverPolicy, + GraphAPIComputeRegionalServiceResource, + GraphAPIComputeServiceResourceProperties, + GraphResource, + GraphResourceCreateUpdateParameters, + GraphResourceGetPropertiesOptions, + GraphResourceGetPropertiesResource, + GraphResourceGetResults, + 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, + 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 74398ce35f03..e40432fae8c1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts @@ -18,6 +18,8 @@ export { AzureEntityResource, BackupPolicy, BackupPolicyMigrationState, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -34,8 +36,17 @@ export { CassandraTableGetResults, CassandraTableListResult, CassandraTableResource, + CassandraViewCreateUpdateParameters, + CassandraViewGetPropertiesOptions, + CassandraViewGetPropertiesResource, + CassandraViewGetResults, + CassandraViewListResult, + CassandraViewResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -47,8 +58,20 @@ export { DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DiagnosticLogSettings, ExcludedPath, FailoverPolicy, + GraphAPIComputeRegionalServiceResource, + GraphAPIComputeServiceResourceProperties, + GraphResource, + GraphResourceCreateUpdateParameters, + GraphResourceGetPropertiesOptions, + GraphResourceGetPropertiesResource, + GraphResourceGetResults, GremlinDatabaseCreateUpdateParameters, GremlinDatabaseGetPropertiesOptions, GremlinDatabaseGetPropertiesResource, @@ -64,6 +87,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -90,8 +115,12 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, RestoreParameters, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -103,6 +132,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts index daf8a890c4d4..4889a4c3e2d3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts @@ -18,6 +18,8 @@ export { AzureEntityResource, BackupPolicy, BackupPolicyMigrationState, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,8 +34,16 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + CassandraViewCreateUpdateParameters, + CassandraViewGetPropertiesOptions, + CassandraViewGetPropertiesResource, + CassandraViewGetResults, + CassandraViewResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -52,10 +62,22 @@ export { DatabaseAccountsListResult, DatabaseAccountUpdateParameters, DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DiagnosticLogSettings, ErrorResponse, ExcludedPath, FailoverPolicies, FailoverPolicy, + GraphAPIComputeRegionalServiceResource, + GraphAPIComputeServiceResourceProperties, + GraphResource, + GraphResourceCreateUpdateParameters, + GraphResourceGetPropertiesOptions, + GraphResourceGetPropertiesResource, + GraphResourceGetResults, GremlinDatabaseCreateUpdateParameters, GremlinDatabaseGetPropertiesOptions, GremlinDatabaseGetPropertiesResource, @@ -71,6 +93,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, Metric, @@ -107,9 +131,13 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, RegionForOnlineOffline, Resource, RestoreParameters, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -121,6 +149,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/graphResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/graphResourcesMappers.ts new file mode 100644 index 000000000000..dd0e000fabee --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/graphResourcesMappers.ts @@ -0,0 +1,164 @@ +/* + * 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, + AnalyticalStorageConfiguration, + ApiProperties, + ARMProxyResource, + ARMResourceProperties, + AutoscaleSettings, + AutoscaleSettingsResource, + AutoUpgradePolicyResource, + AzureEntityResource, + BackupPolicy, + BackupPolicyMigrationState, + BackupResource, + BackupResourceProperties, + BaseResource, + Capability, + CassandraKeyspaceCreateUpdateParameters, + CassandraKeyspaceGetPropertiesOptions, + CassandraKeyspaceGetPropertiesResource, + CassandraKeyspaceGetResults, + CassandraKeyspaceResource, + CassandraPartitionKey, + CassandraSchema, + CassandraTableCreateUpdateParameters, + CassandraTableGetPropertiesOptions, + CassandraTableGetPropertiesResource, + CassandraTableGetResults, + CassandraTableResource, + CassandraViewCreateUpdateParameters, + CassandraViewGetPropertiesOptions, + CassandraViewGetPropertiesResource, + CassandraViewGetResults, + CassandraViewResource, + Certificate, + CloudError, + ClusterKey, + ClusterResource, + ClusterResourceProperties, + Column, + CompositePath, + ConflictResolutionPolicy, + ConsistencyPolicy, + ContainerPartitionKey, + ContinuousModeBackupPolicy, + CorsPolicy, + CreateUpdateOptions, + DatabaseAccountCreateUpdateParameters, + DatabaseAccountGetResults, + DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DiagnosticLogSettings, + ExcludedPath, + FailoverPolicy, + GraphAPIComputeRegionalServiceResource, + GraphAPIComputeServiceResourceProperties, + GraphResource, + GraphResourceCreateUpdateParameters, + GraphResourceGetPropertiesOptions, + GraphResourceGetPropertiesResource, + GraphResourceGetResults, + GraphResourcesListResult, + 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, + 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/gremlinResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts index c950ad92168e..66b446bf3646 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts @@ -18,6 +18,8 @@ export { AzureEntityResource, BackupPolicy, BackupPolicyMigrationState, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,8 +34,16 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + CassandraViewCreateUpdateParameters, + CassandraViewGetPropertiesOptions, + CassandraViewGetPropertiesResource, + CassandraViewGetResults, + CassandraViewResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -45,8 +55,20 @@ export { DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DiagnosticLogSettings, ExcludedPath, FailoverPolicy, + GraphAPIComputeRegionalServiceResource, + GraphAPIComputeServiceResourceProperties, + GraphResource, + GraphResourceCreateUpdateParameters, + GraphResourceGetPropertiesOptions, + GraphResourceGetPropertiesResource, + GraphResourceGetResults, GremlinDatabaseCreateUpdateParameters, GremlinDatabaseGetPropertiesOptions, GremlinDatabaseGetPropertiesResource, @@ -64,6 +86,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -90,8 +114,12 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, RestoreParameters, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -103,6 +131,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts index 957f3666b2df..afb2873fc3f9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts @@ -11,53 +11,6 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; -/** - * An interface representing ManagedServiceIdentityUserAssignedIdentitiesValue. - */ -export interface ManagedServiceIdentityUserAssignedIdentitiesValue { - /** - * The principal id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly principalId?: string; - /** - * The client id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly clientId?: string; -} - -/** - * Identity for the resource. - */ -export interface ManagedServiceIdentity { - /** - * The principal id of the system assigned identity. This property will only be provided for a - * system assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly principalId?: string; - /** - * The tenant id of the system assigned identity. This property will only be provided for a - * system assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly tenantId?: string; - /** - * The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes - * both an implicitly created identity and a set of user assigned identities. The type 'None' - * will remove any identities from the service. Possible values include: 'SystemAssigned', - * 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' - */ - type?: ResourceIdentityType; - /** - * The list of user identities associated with resource. The user identity dictionary key - * references will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - */ - userAssignedIdentities?: { [propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue }; -} - /** * IpAddressOrRange object */ @@ -383,6 +336,17 @@ export interface CorsPolicy { maxAgeInSeconds?: number; } +/** + * Indicates what diagnostic log settings are to be enabled. + */ +export interface DiagnosticLogSettings { + /** + * Describe the level of detail with which queries are to be logged. Possible values include: + * 'None', 'True', 'False' + */ + enableFullTextQuery?: EnableFullTextQuery; +} + /** * Metadata pertaining to creation and last modification of the resource. */ @@ -439,6 +403,7 @@ export interface ARMResourceProperties extends BaseResource { */ location?: string; tags?: { [propertyName: string]: string }; + identity?: ManagedServiceIdentity; } /** @@ -451,7 +416,6 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * 'GlobalDocumentDB'. */ kind?: DatabaseAccountKind; - identity?: ManagedServiceIdentity; provisioningState?: string; /** * The connection endpoint for the Cosmos DB database account. @@ -595,6 +559,10 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. */ networkAclBypassResourceIds?: string[]; + /** + * The Object representing the different Diagnostic log settings for the Cosmos DB Account. + */ + diagnosticLogSettings?: DiagnosticLogSettings; /** * Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for * authentication. @@ -608,11 +576,11 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { } /** - * An interface representing SqlDatabaseGetPropertiesResource. + * An interface representing GraphResourceGetPropertiesResource. */ -export interface SqlDatabaseGetPropertiesResource { +export interface GraphResourceGetPropertiesResource { /** - * Name of the Cosmos DB SQL database + * Name of the Cosmos DB Graph */ id: string; /** @@ -631,14 +599,6 @@ export interface SqlDatabaseGetPropertiesResource { * **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. - */ - _colls?: string; - /** - * A system generated property that specifies the addressable path of the users resource. - */ - _users?: string; } /** @@ -656,6 +616,54 @@ export interface OptionsResource { autoscaleSettings?: AutoscaleSettings; } +/** + * An interface representing GraphResourceGetPropertiesOptions. + */ +export interface GraphResourceGetPropertiesOptions extends OptionsResource { +} + +/** + * An Azure Cosmos DB Graph resource. + */ +export interface GraphResourceGetResults extends ARMResourceProperties { + resource?: GraphResourceGetPropertiesResource; + options?: GraphResourceGetPropertiesOptions; +} + +/** + * An interface representing SqlDatabaseGetPropertiesResource. + */ +export interface SqlDatabaseGetPropertiesResource { + /** + * 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. + */ + _colls?: string; + /** + * A system generated property that specifies the addressable path of the users resource. + */ + _users?: string; +} + /** * An interface representing SqlDatabaseGetPropertiesOptions. */ @@ -1452,6 +1460,50 @@ export interface GremlinGraphGetResults extends ARMResourceProperties { options?: GremlinGraphGetPropertiesOptions; } +/** + * An interface representing CassandraViewGetPropertiesResource. + */ +export interface CassandraViewGetPropertiesResource { + /** + * Name of the Cosmos DB Cassandra view + */ + id: string; + /** + * View Definition of the Cosmos DB Cassandra view + */ + viewDefinition?: 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; +} + +/** + * An interface representing CassandraViewGetPropertiesOptions. + */ +export interface CassandraViewGetPropertiesOptions extends OptionsResource { +} + +/** + * An Azure Cosmos DB Cassandra view. + */ +export interface CassandraViewGetResults extends ARMResourceProperties { + resource?: CassandraViewGetPropertiesResource; + options?: CassandraViewGetPropertiesOptions; +} + /** * Error Response. */ @@ -1486,6 +1538,53 @@ export interface RegionForOnlineOffline { region: string; } +/** + * An interface representing ManagedServiceIdentityUserAssignedIdentitiesValue. + */ +export interface ManagedServiceIdentityUserAssignedIdentitiesValue { + /** + * The principal id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The client id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clientId?: string; +} + +/** + * Identity for the resource. + */ +export interface ManagedServiceIdentity { + /** + * The principal id of the system assigned identity. This property will only be provided for a + * system assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The tenant id of the system assigned identity. This property will only be provided for a + * system assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes + * both an implicitly created identity and a set of user assigned identities. The type 'None' + * will remove any identities from the service. Possible values include: 'SystemAssigned', + * 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' + */ + type?: ResourceIdentityType; + /** + * The list of user identities associated with resource. The user identity dictionary key + * references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + */ + userAssignedIdentities?: { [propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue }; +} + /** * The resource model definition for a ARM proxy resource. It will have everything other than * required location and tags @@ -1626,16 +1725,18 @@ export interface ThroughputSettingsGetResults extends ARMResourceProperties { } /** - * Parameters to create and update Cosmos DB database accounts. + * Contains the possible cases for DatabaseAccountCreateUpdateProperties. */ -export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProperties { +export type DatabaseAccountCreateUpdatePropertiesUnion = DatabaseAccountCreateUpdateProperties | DefaultRequestDatabaseAccountCreateUpdateProperties; + +/** + * Properties to create and update Azure Cosmos DB database accounts. + */ +export interface DatabaseAccountCreateUpdateProperties { /** - * Indicates the type of database account. This can only be set at database account creation. - * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. Default value: - * 'GlobalDocumentDB'. + * Polymorphic Discriminator */ - kind?: DatabaseAccountKind; - identity?: ManagedServiceIdentity; + createMode: "DatabaseAccountCreateUpdateProperties"; /** * The consistency policy for the Cosmos DB account. */ @@ -1715,11 +1816,6 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper * Analytical storage specific properties. */ analyticalStorageConfiguration?: AnalyticalStorageConfiguration; - /** - * Enum to indicate the mode of account creation. Possible values include: 'Default', 'Restore'. - * Default value: 'Default'. - */ - createMode?: CreateMode; /** * The object representing the policy for taking backups on an account. */ @@ -1737,6 +1833,10 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. */ networkAclBypassResourceIds?: string[]; + /** + * The Object representing the different Diagnostic log settings for the Cosmos DB Account. + */ + diagnosticLogSettings?: DiagnosticLogSettings; /** * Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for * authentication. @@ -1749,15 +1849,13 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper } /** - * Parameters for patching Azure Cosmos DB database account properties. + * Properties for non-restore Azure Cosmos DB database account requests. */ -export interface DatabaseAccountUpdateParameters { - tags?: { [propertyName: string]: string }; +export interface DefaultRequestDatabaseAccountCreateUpdateProperties { /** - * The location of the resource group to which the resource belongs. + * Polymorphic Discriminator */ - location?: string; - identity?: ManagedServiceIdentity; + createMode: "Default"; /** * The consistency policy for the Cosmos DB account. */ @@ -1765,7 +1863,7 @@ export interface DatabaseAccountUpdateParameters { /** * An array that contains the georeplication locations enabled for the Cosmos DB account. */ - locations?: Location[]; + locations: Location[]; /** * List of IpRules. */ @@ -1854,45 +1952,295 @@ export interface DatabaseAccountUpdateParameters { * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. */ networkAclBypassResourceIds?: string[]; + /** + * The Object representing the different Diagnostic log settings for the Cosmos DB Account. + */ + diagnosticLogSettings?: DiagnosticLogSettings; /** * Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for * authentication. */ disableLocalAuth?: boolean; + /** + * Parameters to indicate the information about the restore. + */ + restoreParameters?: RestoreParameters; } /** - * The read-only access keys for the given database account. + * Parameters to create and update Cosmos DB database accounts. */ -export interface DatabaseAccountListReadOnlyKeysResult { +export interface DatabaseAccountCreateUpdateParameters 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.** + * Indicates the type of database account. This can only be set at database account creation. + * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. Default value: + * 'GlobalDocumentDB'. */ - readonly primaryReadonlyMasterKey?: string; + kind?: DatabaseAccountKind; /** - * Base 64 encoded value of the secondary read-only key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The consistency policy for the Cosmos DB account. */ - readonly secondaryReadonlyMasterKey?: string; -} - -/** - * The access keys for the given database account. - */ -export interface DatabaseAccountListKeysResult extends DatabaseAccountListReadOnlyKeysResult { + consistencyPolicy?: ConsistencyPolicy; /** - * Base 64 encoded value of the primary read-write key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * An array that contains the georeplication locations enabled for the Cosmos DB account. */ - readonly primaryMasterKey?: string; + locations: Location[]; /** - * Base 64 encoded value of the secondary read-write key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of IpRules. */ - readonly secondaryMasterKey?: string; -} - + ipRules?: IpAddressOrRange[]; + /** + * Flag to indicate whether to enable/disable Virtual Network ACL rules. + */ + isVirtualNetworkFilterEnabled?: boolean; + /** + * Enables automatic failover of the write region in the rare event that the region is + * unavailable due to an outage. Automatic failover will result in a new write region for the + * account and is chosen based on the failover priorities configured for the account. + */ + enableAutomaticFailover?: boolean; + /** + * List of Cosmos DB capabilities for the account + */ + capabilities?: Capability[]; + /** + * List of Virtual Network ACL rules configured for the Cosmos DB account. + */ + virtualNetworkRules?: VirtualNetworkRule[]; + /** + * Enables the account to write in multiple locations + */ + enableMultipleWriteLocations?: boolean; + /** + * Enables the cassandra connector on the Cosmos DB C* account + */ + enableCassandraConnector?: boolean; + /** + * The cassandra connector offer type for the Cosmos DB database C* account. Possible values + * include: 'Small' + */ + connectorOffer?: ConnectorOffer; + /** + * Disable write operations on metadata resources (databases, containers, throughput) via account + * keys + */ + disableKeyBasedMetadataWriteAccess?: boolean; + /** + * The URI of the key vault + */ + keyVaultKeyUri?: string; + /** + * The default identity for accessing key vault used in features like customer managed keys. The + * default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", + * "SystemAssignedIdentity" and more. + */ + defaultIdentity?: string; + /** + * Whether requests from Public Network are allowed. Possible values include: 'Enabled', + * 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * Flag to indicate whether Free Tier is enabled. + */ + enableFreeTier?: boolean; + /** + * API specific properties. Currently, supported only for MongoDB API. + */ + apiProperties?: ApiProperties; + /** + * Flag to indicate whether to enable storage analytics. + */ + enableAnalyticalStorage?: boolean; + /** + * Analytical storage specific properties. + */ + analyticalStorageConfiguration?: AnalyticalStorageConfiguration; + /** + * The object representing the policy for taking backups on an account. + */ + backupPolicy?: BackupPolicyUnion; + /** + * The CORS policy for the Cosmos DB database account. + */ + cors?: CorsPolicy[]; + /** + * Indicates what services are allowed to bypass firewall checks. Possible values include: + * 'None', 'AzureServices' + */ + networkAclBypass?: NetworkAclBypass; + /** + * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. + */ + networkAclBypassResourceIds?: string[]; + /** + * The Object representing the different Diagnostic log settings for the Cosmos DB Account. + */ + diagnosticLogSettings?: DiagnosticLogSettings; + /** + * Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for + * authentication. + */ + disableLocalAuth?: boolean; + /** + * Parameters to indicate the information about the restore. + */ + restoreParameters?: RestoreParameters; + /** + * Polymorphic Discriminator + */ + createMode: string; +} + +/** + * Parameters for patching Azure Cosmos DB database account properties. + */ +export interface DatabaseAccountUpdateParameters { + tags?: { [propertyName: string]: string }; + /** + * The location of the resource group to which the resource belongs. + */ + location?: string; + identity?: ManagedServiceIdentity; + /** + * The consistency policy for the Cosmos DB account. + */ + consistencyPolicy?: ConsistencyPolicy; + /** + * An array that contains the georeplication locations enabled for the Cosmos DB account. + */ + locations?: Location[]; + /** + * List of IpRules. + */ + ipRules?: IpAddressOrRange[]; + /** + * Flag to indicate whether to enable/disable Virtual Network ACL rules. + */ + isVirtualNetworkFilterEnabled?: boolean; + /** + * Enables automatic failover of the write region in the rare event that the region is + * unavailable due to an outage. Automatic failover will result in a new write region for the + * account and is chosen based on the failover priorities configured for the account. + */ + enableAutomaticFailover?: boolean; + /** + * List of Cosmos DB capabilities for the account + */ + capabilities?: Capability[]; + /** + * List of Virtual Network ACL rules configured for the Cosmos DB account. + */ + virtualNetworkRules?: VirtualNetworkRule[]; + /** + * Enables the account to write in multiple locations + */ + enableMultipleWriteLocations?: boolean; + /** + * Enables the cassandra connector on the Cosmos DB C* account + */ + enableCassandraConnector?: boolean; + /** + * The cassandra connector offer type for the Cosmos DB database C* account. Possible values + * include: 'Small' + */ + connectorOffer?: ConnectorOffer; + /** + * Disable write operations on metadata resources (databases, containers, throughput) via account + * keys + */ + disableKeyBasedMetadataWriteAccess?: boolean; + /** + * The URI of the key vault + */ + keyVaultKeyUri?: string; + /** + * The default identity for accessing key vault used in features like customer managed keys. The + * default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", + * "SystemAssignedIdentity" and more. + */ + defaultIdentity?: string; + /** + * Whether requests from Public Network are allowed. Possible values include: 'Enabled', + * 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * Flag to indicate whether Free Tier is enabled. + */ + enableFreeTier?: boolean; + /** + * API specific properties. Currently, supported only for MongoDB API. + */ + apiProperties?: ApiProperties; + /** + * Flag to indicate whether to enable storage analytics. + */ + enableAnalyticalStorage?: boolean; + /** + * Analytical storage specific properties. + */ + analyticalStorageConfiguration?: AnalyticalStorageConfiguration; + /** + * The object representing the policy for taking backups on an account. + */ + backupPolicy?: BackupPolicyUnion; + /** + * The CORS policy for the Cosmos DB database account. + */ + cors?: CorsPolicy[]; + /** + * Indicates what services are allowed to bypass firewall checks. Possible values include: + * 'None', 'AzureServices' + */ + networkAclBypass?: NetworkAclBypass; + /** + * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. + */ + networkAclBypassResourceIds?: string[]; + /** + * The Object representing the different Diagnostic log settings for the Cosmos DB Account. + */ + diagnosticLogSettings?: DiagnosticLogSettings; + /** + * Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for + * authentication. + */ + disableLocalAuth?: boolean; +} + +/** + * The read-only access keys for the given database account. + */ +export interface DatabaseAccountListReadOnlyKeysResult { + /** + * Base 64 encoded value of the primary read-only key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly primaryReadonlyMasterKey?: string; + /** + * Base 64 encoded value of the secondary read-only key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly secondaryReadonlyMasterKey?: string; +} + +/** + * The access keys for the given database account. + */ +export interface DatabaseAccountListKeysResult extends DatabaseAccountListReadOnlyKeysResult { + /** + * Base 64 encoded value of the primary read-write key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly primaryMasterKey?: string; + /** + * Base 64 encoded value of the secondary read-write key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly secondaryMasterKey?: string; +} + /** * Connection string for the Cosmos DB account */ @@ -1968,11 +2316,11 @@ export interface ThroughputSettingsUpdateParameters extends ARMResourcePropertie } /** - * Cosmos DB SQL database resource object + * Cosmos DB Graph resource object */ -export interface SqlDatabaseResource { +export interface GraphResource { /** - * Name of the Cosmos DB SQL database + * Name of the Cosmos DB Graph */ id: string; } @@ -2003,13 +2351,13 @@ export interface CreateUpdateOptions { } /** - * Parameters to create and update Cosmos DB SQL database. + * Parameters to create and update Cosmos DB Graph resource. */ -export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties { +export interface GraphResourceCreateUpdateParameters extends ARMResourceProperties { /** - * The standard JSON format of a SQL database + * The standard JSON format of a Graph resource */ - resource: SqlDatabaseResource; + resource: GraphResource; /** * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. @@ -2018,7 +2366,32 @@ export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties } /** - * Cosmos DB SQL container resource object + * Cosmos DB SQL database resource object + */ +export interface SqlDatabaseResource { + /** + * Name of the Cosmos DB SQL database + */ + id: string; +} + +/** + * Parameters to create and update Cosmos DB SQL database. + */ +export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties { + /** + * The standard JSON format of a SQL database + */ + 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; +} + +/** + * Cosmos DB SQL container resource object */ export interface SqlContainerResource { /** @@ -2387,6 +2760,35 @@ export interface GremlinGraphCreateUpdateParameters extends ARMResourcePropertie options?: CreateUpdateOptions; } +/** + * Cosmos DB Cassandra view resource object + */ +export interface CassandraViewResource { + /** + * Name of the Cosmos DB Cassandra view + */ + id: string; + /** + * View Definition of the Cosmos DB Cassandra view + */ + viewDefinition?: string; +} + +/** + * Parameters to create and update Cosmos DB Cassandra view. + */ +export interface CassandraViewCreateUpdateParameters extends ARMResourceProperties { + /** + * The standard JSON format of a Cassandra view + */ + resource: CassandraViewResource; + /** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. + */ + options?: CreateUpdateOptions; +} + /** * The object that represents the operation. */ @@ -2711,6 +3113,10 @@ export interface PeriodicModeProperties { * An integer representing the time (in hours) that each backup is retained */ backupRetentionIntervalInHours?: number; + /** + * Enum to indicate type of backup residency. Possible values include: 'Geo', 'Local', 'Zone' + */ + backupStorageRedundancy?: BackupStorageRedundancy; } /** @@ -2745,6 +3151,42 @@ export interface ContinuousModeBackupPolicy { migrationState?: BackupPolicyMigrationState; } +/** + * Cosmos DB location metadata + */ +export interface LocationProperties { + /** + * The current status of location in Azure. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: string; + /** + * Flag indicating whether the location supports availability zones or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly supportsAvailabilityZone?: boolean; + /** + * Flag indicating whether the location is residency sensitive. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isResidencyRestricted?: boolean; + /** + * The properties of available backup storage redundancies. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly backupStorageRedundancies?: BackupStorageRedundancy[]; +} + +/** + * Cosmos DB location get result + */ +export interface LocationGetResult extends ARMProxyResource { + /** + * Cosmos DB location metadata + */ + properties?: LocationProperties; +} + /** * The resource model definition for an Azure Resource Manager tracked top level resource which has * 'tags' and a 'location' @@ -3381,394 +3823,926 @@ export interface BackupInformation { } /** - * Optional Parameters. + * An interface representing SeedNode. */ -export interface DatabaseAccountsListUsagesOptionalParams extends msRest.RequestOptionsBase { +export interface SeedNode { /** - * 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). + * IP address of this seed node. */ - filter?: string; + ipAddress?: string; } /** - * Optional Parameters. + * An interface representing Certificate. */ -export interface DatabaseListUsagesOptionalParams extends msRest.RequestOptionsBase { +export interface Certificate { /** - * 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). + * PEM formatted public key. */ - filter?: string; + pem?: string; } /** - * Optional Parameters. + * Properties of a managed Cassandra cluster. */ -export interface CollectionListUsagesOptionalParams extends msRest.RequestOptionsBase { +export interface ClusterResourceProperties { /** - * 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). + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface CollectionPartitionListUsagesOptionalParams extends msRest.RequestOptionsBase { + provisioningState?: ManagedCassandraProvisioningState; /** - * 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). + * 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. */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface RestorableSqlContainersListOptionalParams extends msRest.RequestOptionsBase { + restoreFromBackupId?: string; /** - * The resource ID of the SQL database. + * 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/' */ - restorableSqlDatabaseRid?: string; + delegatedManagementSubnetId?: string; /** - * The snapshot create timestamp after which snapshots need to be listed. + * 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. */ - startTime?: string; + cassandraVersion?: string; /** - * The snapshot create timestamp before which snapshots need to be listed. + * 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. */ - endTime?: string; -} - -/** - * Optional Parameters. - */ -export interface RestorableSqlResourcesListOptionalParams extends msRest.RequestOptionsBase { + clusterNameOverride?: string; /** - * The location where the restorable resources are located. + * 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' */ - restoreLocation?: string; + authenticationMethod?: AuthenticationMethod; /** - * The timestamp when the restorable resources existed. + * 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'. */ - restoreTimestampInUtc?: string; + 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[]; } /** - * Optional Parameters. + * Representation of a managed Cassandra cluster. */ -export interface RestorableMongodbCollectionsListOptionalParams extends msRest.RequestOptionsBase { +export interface ClusterResource extends ARMResourceProperties { /** - * The resource ID of the MongoDB database. + * Properties of a managed Cassandra cluster. */ - restorableMongodbDatabaseRid?: string; + properties?: ClusterResourceProperties; } /** - * Optional Parameters. + * Specification of the keyspaces and tables to run repair on. */ -export interface RestorableMongodbResourcesListOptionalParams extends msRest.RequestOptionsBase { +export interface RepairPostBody { /** - * The location where the restorable resources are located. + * The name of the keyspace that repair should be run on. */ - restoreLocation?: string; + keyspace: string; /** - * The timestamp when the restorable resources existed. + * List of tables in the keyspace to repair. If omitted, repair all tables in the keyspace. */ - restoreTimestampInUtc?: string; + tables?: string[]; } /** - * An interface representing CosmosDBManagementClientOptions. + * An interface representing ClusterNodeStatusNodesItem. */ -export interface CosmosDBManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; +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; } /** - * @interface - * The List operation response, that contains the database accounts and their properties. - * @extends Array + * The status of all nodes in the cluster (as returned by 'nodetool status'). */ -export interface DatabaseAccountsListResult extends Array { +export interface ClusterNodeStatus { + /** + * Information about nodes in the cluster (corresponds to what is returned from nodetool info). + */ + nodes?: ClusterNodeStatusNodesItem[]; } /** - * @interface - * The response to a list metrics request. - * @extends Array + * An interface representing BackupResourceProperties. */ -export interface MetricListResult extends Array { +export interface BackupResourceProperties { + /** + * The time this backup was taken, formatted like 2021-01-21T17:35:21 + */ + timestamp?: Date; } /** - * @interface - * The response to a list usage request. - * @extends Array + * A restorable backup of a Cassandra cluster. */ -export interface UsagesResult extends Array { +export interface BackupResource extends ARMProxyResource { + properties?: BackupResourceProperties; } /** - * @interface - * The response to a list metric definitions request. - * @extends Array + * Properties of a managed Cassandra data center. */ -export interface MetricDefinitionsListResult extends Array { +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; } /** - * @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 + * A managed Cassandra data center. */ -export interface OperationListResult extends Array { +export interface DataCenterResource extends ARMProxyResource { /** - * URL to get the next set of operation list results if there are any. + * Properties of a managed Cassandra data center. */ - nextLink?: string; + properties?: DataCenterResourceProperties; } /** - * @interface - * The response to a list percentile metrics request. - * @extends Array + * Contains the possible cases for ServiceResourceProperties. */ -export interface PercentileMetricListResult extends Array { -} +export type ServiceResourcePropertiesUnion = ServiceResourceProperties | DataTransferServiceResourceProperties | SqlDedicatedGatewayServiceResourceProperties | GraphAPIComputeServiceResourceProperties; /** - * @interface - * The response to a list partition metrics request. - * @extends Array + * Services response resource. */ -export interface PartitionMetricListResult extends Array { +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; } /** - * @interface - * The response to a list partition level usage request. - * @extends Array + * Properties for the database account. */ -export interface PartitionUsagesResult extends Array { +export interface ServiceResource extends ARMProxyResource { + properties?: ServiceResourcePropertiesUnion; } /** - * @interface - * The List operation response, that contains the SQL databases and their properties. - * @extends Array + * Resource for a regional service location. */ -export interface SqlDatabaseListResult extends Array { +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; } /** - * @interface - * The List operation response, that contains the containers and their properties. - * @extends Array + * Resource for a regional service location. */ -export interface SqlContainerListResult extends Array { +export interface DataTransferRegionalServiceResource extends RegionalServiceResource { } /** - * @interface - * The List operation response, that contains the storedProcedures and their properties. - * @extends Array + * Properties for DataTransferServiceResource. */ -export interface SqlStoredProcedureListResult extends Array { +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[]; } /** - * @interface - * The List operation response, that contains the userDefinedFunctions and their properties. - * @extends Array + * Describes the service response property. */ -export interface SqlUserDefinedFunctionListResult extends Array { +export interface DataTransferServiceResource { + properties?: DataTransferServiceResourceProperties; } /** - * @interface - * The List operation response, that contains the triggers and their properties. - * @extends Array + * Resource for a regional service location. */ -export interface SqlTriggerListResult extends Array { +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; } /** - * @interface - * The relevant Role Definitions. - * @extends Array + * Properties for SqlDedicatedGatewayServiceResource. */ -export interface SqlRoleDefinitionListResult extends Array { +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[]; } /** - * @interface - * The relevant Role Assignments. - * @extends Array + * Describes the service response property for SqlDedicatedGateway. */ -export interface SqlRoleAssignmentListResult extends Array { +export interface SqlDedicatedGatewayServiceResource { + properties?: SqlDedicatedGatewayServiceResourceProperties; } /** - * @interface - * The List operation response, that contains the MongoDB databases and their properties. - * @extends Array + * Resource for a regional service location. */ -export interface MongoDBDatabaseListResult extends Array { +export interface GraphAPIComputeRegionalServiceResource extends RegionalServiceResource { + /** + * The regional endpoint for GraphAPICompute. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly graphApiComputeEndpoint?: string; } /** - * @interface - * The List operation response, that contains the MongoDB collections and their properties. - * @extends Array + * Properties for GraphAPIComputeServiceResource. */ -export interface MongoDBCollectionListResult extends Array { +export interface GraphAPIComputeServiceResourceProperties { + /** + * Polymorphic Discriminator + */ + serviceType: "GraphAPIComputeServiceResourceProperties"; + /** + * 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; + /** + * GraphAPICompute endpoint for the service. + */ + graphApiComputeEndpoint?: 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?: GraphAPIComputeRegionalServiceResource[]; } /** - * @interface - * The List operation response, that contains the Table and their properties. - * @extends Array + * Describes the service response property for GraphAPICompute. */ -export interface TableListResult extends Array { +export interface GraphAPIComputeServiceResource { + properties?: GraphAPIComputeServiceResourceProperties; } /** - * @interface - * The List operation response, that contains the Cassandra keyspaces and their properties. - * @extends Array + * Optional Parameters. */ -export interface CassandraKeyspaceListResult extends Array { +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; } /** - * @interface - * The List operation response, that contains the Cassandra tables and their properties. - * @extends Array + * Optional Parameters. */ -export interface CassandraTableListResult extends Array { +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; } /** - * @interface - * The List operation response, that contains the Gremlin databases and their properties. - * @extends Array + * Optional Parameters. */ -export interface GremlinDatabaseListResult extends Array { +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; } /** - * @interface - * The List operation response, that contains the graphs and their properties. - * @extends Array + * Optional Parameters. */ -export interface GremlinGraphListResult extends Array { +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; } /** - * @interface - * A list of notebook workspace resources - * @extends Array + * Optional Parameters. */ -export interface NotebookWorkspaceListResult extends Array { +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; } /** - * @interface - * A list of private endpoint connections - * @extends Array + * Optional Parameters. */ -export interface PrivateEndpointConnectionListResult extends Array { +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; } /** - * @interface - * A list of private link resources - * @extends Array + * Optional Parameters. */ -export interface PrivateLinkResourceListResult extends Array { +export interface RestorableMongodbCollectionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The resource ID of the MongoDB database. + */ + restorableMongodbDatabaseRid?: string; } /** - * @interface - * The List operation response, that contains the restorable database accounts and their - * properties. - * @extends Array + * Optional Parameters. */ -export interface RestorableDatabaseAccountsListResult extends Array { +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; } /** - * @interface - * The List operation response, that contains the SQL database events and their properties. - * @extends Array + * An interface representing CosmosDBManagementClientOptions. */ -export interface RestorableSqlDatabasesListResult extends Array { +export interface CosmosDBManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; } /** * @interface - * The List operation response, that contains the SQL container events and their properties. - * @extends Array + * The List operation response, that contains the database accounts and their properties. + * @extends Array */ -export interface RestorableSqlContainersListResult extends Array { +export interface DatabaseAccountsListResult extends Array { } /** * @interface - * The List operation response, that contains the restorable SQL resources. - * @extends Array + * The response to a list metrics request. + * @extends Array */ -export interface RestorableSqlResourcesListResult extends Array { +export interface MetricListResult extends Array { } /** * @interface - * The List operation response, that contains the MongoDB database events and their properties. - * @extends Array + * The response to a list usage request. + * @extends Array */ -export interface RestorableMongodbDatabasesListResult extends Array { +export interface UsagesResult extends Array { } /** * @interface - * The List operation response, that contains the MongoDB collection events and their properties. - * @extends Array + * The response to a list metric definitions request. + * @extends Array */ -export interface RestorableMongodbCollectionsListResult extends Array { +export interface MetricDefinitionsListResult extends Array { } /** * @interface - * The List operation response, that contains the restorable MongoDB resources. - * @extends Array + * 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 RestorableMongodbResourcesListResult extends Array { +export interface OperationListResult extends Array { + /** + * URL to get the next set of operation list results if there are any. + */ + nextLink?: string; } /** - * Defines values for DatabaseAccountKind. - * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' - * @readonly - * @enum {string} + * @interface + * The response to a list percentile metrics request. + * @extends Array */ -export type DatabaseAccountKind = 'GlobalDocumentDB' | 'MongoDB' | 'Parse'; +export interface PercentileMetricListResult extends Array { +} /** - * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' - * @readonly - * @enum {string} + * @interface + * The response to a list partition metrics request. + * @extends Array */ -export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; +export interface PartitionMetricListResult extends Array { +} /** - * Defines values for DatabaseAccountOfferType. - * Possible values include: 'Standard' - * @readonly + * @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 Graph resource and their properties. + * @extends Array + */ +export interface GraphResourcesListResult 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 Cassandra views and their properties. + * @extends Array + */ +export interface CassandraViewListResult 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 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 + * A list of private endpoint connections + * @extends Array + */ +export interface PrivateEndpointConnectionListResult extends Array { +} + +/** + * @interface + * A list of private link resources + * @extends Array + */ +export interface PrivateLinkResourceListResult 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 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 + * 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'; @@ -3853,6 +4827,14 @@ export type BackupPolicyType = 'Periodic' | 'Continuous'; */ export type NetworkAclBypass = 'None' | 'AzureServices'; +/** + * Defines values for EnableFullTextQuery. + * Possible values include: 'None', 'True', 'False' + * @readonly + * @enum {string} + */ +export type EnableFullTextQuery = 'None' | 'True' | 'False'; + /** * Defines values for CreatedByType. * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' @@ -3926,66 +4908,883 @@ export type ConflictResolutionMode = 'LastWriterWins' | 'Custom'; export type TriggerType = 'Pre' | 'Post'; /** - * Defines values for TriggerOperation. - * Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace' - * @readonly - * @enum {string} + * 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 BackupStorageRedundancy. + * Possible values include: 'Geo', 'Local', 'Zone' + * @readonly + * @enum {string} + */ +export type BackupStorageRedundancy = 'Geo' | 'Local' | 'Zone'; + +/** + * Defines values for RoleDefinitionType. + * Possible values include: 'BuiltInRole', 'CustomRole' + * @readonly + * @enum {string} + */ +export type RoleDefinitionType = 'BuiltInRole' | 'CustomRole'; + +/** + * 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 OperationType. + * Possible values include: 'Create', 'Replace', 'Delete', 'SystemOperation' + * @readonly + * @enum {string} + */ +export type OperationType = 'Create' | 'Replace' | 'Delete' | 'SystemOperation'; + +/** + * Defines values for ManagedCassandraProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * @readonly + * @enum {string} + */ +export type ManagedCassandraProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; + +/** + * Defines values for AuthenticationMethod. + * Possible values include: 'None', 'Cassandra' + * @readonly + * @enum {string} + */ +export type AuthenticationMethod = 'None' | 'Cassandra'; + +/** + * Defines values for NodeStatus. + * Possible values include: 'Up', 'Down' + * @readonly + * @enum {string} + */ +export type NodeStatus = 'Up' | 'Down'; + +/** + * Defines values for NodeState. + * Possible values include: 'Normal', 'Leaving', 'Joining', 'Moving', 'Stopped' + * @readonly + * @enum {string} + */ +export type NodeState = 'Normal' | 'Leaving' | 'Joining' | 'Moving' | 'Stopped'; + +/** + * Defines values for ServiceSize. + * Possible values include: 'Cosmos.D4s', 'Cosmos.D8s', 'Cosmos.D16s' + * @readonly + * @enum {string} + */ +export type ServiceSize = 'Cosmos.D4s' | 'Cosmos.D8s' | 'Cosmos.D16s'; + +/** + * Defines values for ServiceStatus. + * Possible values include: 'Creating', 'Running', 'Updating', 'Deleting', 'Error', 'Stopped' + * @readonly + * @enum {string} + */ +export type ServiceStatus = 'Creating' | 'Running' | 'Updating' | 'Deleting' | 'Error' | 'Stopped'; + +/** + * Defines values for ServiceType. + * Possible values include: 'SqlDedicatedGateway', 'DataTransfer', 'GraphAPICompute' + * @readonly + * @enum {string} + */ +export type ServiceType = 'SqlDedicatedGateway' | 'DataTransfer' | 'GraphAPICompute'; + +/** + * Contains response data for the get operation. + */ +export type DatabaseAccountsGetResponse = DatabaseAccountGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DatabaseAccountsUpdateResponse = DatabaseAccountGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DatabaseAccountsCreateOrUpdateResponse = DatabaseAccountGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DatabaseAccountsListResponse = DatabaseAccountsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountsListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type DatabaseAccountsListByResourceGroupResponse = DatabaseAccountsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountsListResult; + }; +}; + +/** + * Contains response data for the listKeys operation. + */ +export type DatabaseAccountsListKeysResponse = DatabaseAccountListKeysResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountListKeysResult; + }; +}; + +/** + * Contains response data for the listConnectionStrings operation. + */ +export type DatabaseAccountsListConnectionStringsResponse = DatabaseAccountListConnectionStringsResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountListConnectionStringsResult; + }; +}; + +/** + * Contains response data for the getReadOnlyKeys operation. + */ +export type DatabaseAccountsGetReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountListReadOnlyKeysResult; + }; +}; + +/** + * Contains response data for the listReadOnlyKeys operation. + */ +export type DatabaseAccountsListReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountListReadOnlyKeysResult; + }; +}; + +/** + * Contains response data for the checkNameExists operation. + */ +export type DatabaseAccountsCheckNameExistsResponse = { + /** + * The parsed response body. + */ + body: boolean; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: boolean; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type DatabaseAccountsListMetricsResponse = MetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +export type DatabaseAccountsListUsagesResponse = UsagesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsagesResult; + }; +}; + +/** + * Contains response data for the listMetricDefinitions operation. + */ +export type DatabaseAccountsListMetricDefinitionsResponse = MetricDefinitionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricDefinitionsListResult; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type DatabaseAccountsBeginUpdateResponse = DatabaseAccountGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type DatabaseAccountsBeginCreateOrUpdateResponse = DatabaseAccountGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type DatabaseListMetricsResponse = MetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +export type DatabaseListUsagesResponse = UsagesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsagesResult; + }; +}; + +/** + * Contains response data for the listMetricDefinitions operation. + */ +export type DatabaseListMetricDefinitionsResponse = MetricDefinitionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricDefinitionsListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type CollectionListMetricsResponse = MetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +export type CollectionListUsagesResponse = UsagesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsagesResult; + }; +}; + +/** + * Contains response data for the listMetricDefinitions operation. + */ +export type CollectionListMetricDefinitionsResponse = MetricDefinitionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricDefinitionsListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type CollectionRegionListMetricsResponse = MetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type DatabaseAccountRegionListMetricsResponse = MetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type PercentileSourceTargetListMetricsResponse = PercentileMetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PercentileMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type PercentileTargetListMetricsResponse = PercentileMetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PercentileMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type PercentileListMetricsResponse = PercentileMetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PercentileMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type CollectionPartitionRegionListMetricsResponse = PartitionMetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type CollectionPartitionListMetricsResponse = PartitionMetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionMetricListResult; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +export type CollectionPartitionListUsagesResponse = PartitionUsagesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionUsagesResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type PartitionKeyRangeIdListMetricsResponse = PartitionMetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. */ -export type TriggerOperation = 'All' | 'Create' | 'Update' | 'Delete' | 'Replace'; +export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for KeyKind. - * Possible values include: 'primary', 'secondary', 'primaryReadonly', 'secondaryReadonly' - * @readonly - * @enum {string} - */ -export type KeyKind = 'primary' | 'secondary' | 'primaryReadonly' | 'secondaryReadonly'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionMetricListResult; + }; +}; /** - * Defines values for UnitType. - * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', - * 'BytesPerSecond', 'Milliseconds' - * @readonly - * @enum {string} + * Contains response data for the listGraphs operation. */ -export type UnitType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSecond' | 'BytesPerSecond' | 'Milliseconds'; +export type GraphResourcesListGraphsResponse = GraphResourcesListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for PrimaryAggregationType. - * Possible values include: 'None', 'Average', 'Total', 'Minimum', 'Maximum', 'Last' - * @readonly - * @enum {string} - */ -export type PrimaryAggregationType = 'None' | 'Average' | 'Total' | 'Minimum' | 'Maximum' | 'Last'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GraphResourcesListResult; + }; +}; /** - * Defines values for RoleDefinitionType. - * Possible values include: 'BuiltInRole', 'CustomRole' - * @readonly - * @enum {string} + * Contains response data for the getGraph operation. */ -export type RoleDefinitionType = 'BuiltInRole' | 'CustomRole'; +export type GraphResourcesGetGraphResponse = GraphResourceGetResults & { + /** + * 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: GraphResourceGetResults; + }; +}; /** - * Defines values for ApiType. - * Possible values include: 'MongoDB', 'Gremlin', 'Cassandra', 'Table', 'Sql', 'GremlinV2' - * @readonly - * @enum {string} + * Contains response data for the createUpdateGraph operation. */ -export type ApiType = 'MongoDB' | 'Gremlin' | 'Cassandra' | 'Table' | 'Sql' | 'GremlinV2'; +export type GraphResourcesCreateUpdateGraphResponse = GraphResourceGetResults & { + /** + * 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: GraphResourceGetResults; + }; +}; /** - * Defines values for OperationType. - * Possible values include: 'Create', 'Replace', 'Delete', 'SystemOperation' - * @readonly - * @enum {string} + * Contains response data for the beginCreateUpdateGraph operation. */ -export type OperationType = 'Create' | 'Replace' | 'Delete' | 'SystemOperation'; +export type GraphResourcesBeginCreateUpdateGraphResponse = GraphResourceGetResults & { + /** + * 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: GraphResourceGetResults; + }; +}; /** - * Contains response data for the get operation. + * Contains response data for the listSqlDatabases operation. */ -export type DatabaseAccountsGetResponse = DatabaseAccountGetResults & { +export type SqlResourcesListSqlDatabasesResponse = SqlDatabaseListResult & { /** * The underlying HTTP response. */ @@ -3998,14 +5797,14 @@ export type DatabaseAccountsGetResponse = DatabaseAccountGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: SqlDatabaseListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the getSqlDatabase operation. */ -export type DatabaseAccountsUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesGetSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -4018,14 +5817,14 @@ export type DatabaseAccountsUpdateResponse = DatabaseAccountGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: SqlDatabaseGetResults; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the createUpdateSqlDatabase operation. */ -export type DatabaseAccountsCreateOrUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -4038,14 +5837,14 @@ export type DatabaseAccountsCreateOrUpdateResponse = DatabaseAccountGetResults & /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: SqlDatabaseGetResults; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getSqlDatabaseThroughput operation. */ -export type DatabaseAccountsListResponse = DatabaseAccountsListResult & { +export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4058,14 +5857,14 @@ export type DatabaseAccountsListResponse = DatabaseAccountsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountsListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the updateSqlDatabaseThroughput operation. */ -export type DatabaseAccountsListByResourceGroupResponse = DatabaseAccountsListResult & { +export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4078,14 +5877,14 @@ export type DatabaseAccountsListByResourceGroupResponse = DatabaseAccountsListRe /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountsListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listKeys operation. + * Contains response data for the migrateSqlDatabaseToAutoscale operation. */ -export type DatabaseAccountsListKeysResponse = DatabaseAccountListKeysResult & { +export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4098,14 +5897,14 @@ export type DatabaseAccountsListKeysResponse = DatabaseAccountListKeysResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountListKeysResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listConnectionStrings operation. + * Contains response data for the migrateSqlDatabaseToManualThroughput operation. */ -export type DatabaseAccountsListConnectionStringsResponse = DatabaseAccountListConnectionStringsResult & { +export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4118,14 +5917,14 @@ export type DatabaseAccountsListConnectionStringsResponse = DatabaseAccountListC /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountListConnectionStringsResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getReadOnlyKeys operation. + * Contains response data for the listSqlContainers operation. */ -export type DatabaseAccountsGetReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { +export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { /** * The underlying HTTP response. */ @@ -4138,14 +5937,14 @@ export type DatabaseAccountsGetReadOnlyKeysResponse = DatabaseAccountListReadOnl /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountListReadOnlyKeysResult; + parsedBody: SqlContainerListResult; }; }; /** - * Contains response data for the listReadOnlyKeys operation. + * Contains response data for the getSqlContainer operation. */ -export type DatabaseAccountsListReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { +export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults & { /** * The underlying HTTP response. */ @@ -4158,19 +5957,34 @@ export type DatabaseAccountsListReadOnlyKeysResponse = DatabaseAccountListReadOn /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountListReadOnlyKeysResult; + parsedBody: SqlContainerGetResults; }; }; /** - * Contains response data for the checkNameExists operation. + * Contains response data for the createUpdateSqlContainer operation. */ -export type DatabaseAccountsCheckNameExistsResponse = { +export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResults & { /** - * The parsed response body. + * The underlying HTTP response. */ - body: boolean; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlContainerGetResults; + }; +}; +/** + * Contains response data for the getSqlContainerThroughput operation. + */ +export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4183,14 +5997,14 @@ export type DatabaseAccountsCheckNameExistsResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: boolean; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the updateSqlContainerThroughput operation. */ -export type DatabaseAccountsListMetricsResponse = MetricListResult & { +export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4203,14 +6017,14 @@ export type DatabaseAccountsListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listUsages operation. + * Contains response data for the migrateSqlContainerToAutoscale operation. */ -export type DatabaseAccountsListUsagesResponse = UsagesResult & { +export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4223,14 +6037,14 @@ export type DatabaseAccountsListUsagesResponse = UsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsagesResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetricDefinitions operation. + * Contains response data for the migrateSqlContainerToManualThroughput operation. */ -export type DatabaseAccountsListMetricDefinitionsResponse = MetricDefinitionsListResult & { +export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4243,14 +6057,14 @@ export type DatabaseAccountsListMetricDefinitionsResponse = MetricDefinitionsLis /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionsListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listSqlStoredProcedures operation. */ -export type DatabaseAccountsBeginUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureListResult & { /** * The underlying HTTP response. */ @@ -4263,14 +6077,14 @@ export type DatabaseAccountsBeginUpdateResponse = DatabaseAccountGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: SqlStoredProcedureListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the getSqlStoredProcedure operation. */ -export type DatabaseAccountsBeginCreateOrUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ @@ -4283,14 +6097,14 @@ export type DatabaseAccountsBeginCreateOrUpdateResponse = DatabaseAccountGetResu /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: SqlStoredProcedureGetResults; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createUpdateSqlStoredProcedure operation. */ -export type OperationsListResponse = OperationListResult & { +export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ @@ -4303,14 +6117,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: SqlStoredProcedureGetResults; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listSqlUserDefinedFunctions operation. */ -export type OperationsListNextResponse = OperationListResult & { +export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunctionListResult & { /** * The underlying HTTP response. */ @@ -4323,14 +6137,14 @@ export type OperationsListNextResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: SqlUserDefinedFunctionListResult; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the getSqlUserDefinedFunction operation. */ -export type DatabaseListMetricsResponse = MetricListResult & { +export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ @@ -4343,14 +6157,14 @@ export type DatabaseListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlUserDefinedFunctionGetResults; }; }; /** - * Contains response data for the listUsages operation. + * Contains response data for the createUpdateSqlUserDefinedFunction operation. */ -export type DatabaseListUsagesResponse = UsagesResult & { +export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ @@ -4363,14 +6177,14 @@ export type DatabaseListUsagesResponse = UsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsagesResult; + parsedBody: SqlUserDefinedFunctionGetResults; }; }; /** - * Contains response data for the listMetricDefinitions operation. + * Contains response data for the listSqlTriggers operation. */ -export type DatabaseListMetricDefinitionsResponse = MetricDefinitionsListResult & { +export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { /** * The underlying HTTP response. */ @@ -4383,14 +6197,14 @@ export type DatabaseListMetricDefinitionsResponse = MetricDefinitionsListResult /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionsListResult; + parsedBody: SqlTriggerListResult; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the getSqlTrigger operation. */ -export type CollectionListMetricsResponse = MetricListResult & { +export type SqlResourcesGetSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ @@ -4403,14 +6217,14 @@ export type CollectionListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlTriggerGetResults; }; }; /** - * Contains response data for the listUsages operation. + * Contains response data for the createUpdateSqlTrigger operation. */ -export type CollectionListUsagesResponse = UsagesResult & { +export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ @@ -4423,14 +6237,14 @@ export type CollectionListUsagesResponse = UsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsagesResult; + parsedBody: SqlTriggerGetResults; }; }; /** - * Contains response data for the listMetricDefinitions operation. + * Contains response data for the getSqlRoleDefinition operation. */ -export type CollectionListMetricDefinitionsResponse = MetricDefinitionsListResult & { +export type SqlResourcesGetSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ @@ -4443,14 +6257,14 @@ export type CollectionListMetricDefinitionsResponse = MetricDefinitionsListResul /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionsListResult; + parsedBody: SqlRoleDefinitionGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the createUpdateSqlRoleDefinition operation. */ -export type CollectionRegionListMetricsResponse = MetricListResult & { +export type SqlResourcesCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ @@ -4463,14 +6277,14 @@ export type CollectionRegionListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlRoleDefinitionGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the listSqlRoleDefinitions operation. */ -export type DatabaseAccountRegionListMetricsResponse = MetricListResult & { +export type SqlResourcesListSqlRoleDefinitionsResponse = SqlRoleDefinitionListResult & { /** * The underlying HTTP response. */ @@ -4483,14 +6297,14 @@ export type DatabaseAccountRegionListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlRoleDefinitionListResult; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the getSqlRoleAssignment operation. */ -export type PercentileSourceTargetListMetricsResponse = PercentileMetricListResult & { +export type SqlResourcesGetSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ @@ -4503,14 +6317,14 @@ export type PercentileSourceTargetListMetricsResponse = PercentileMetricListResu /** * The response body as parsed JSON or XML */ - parsedBody: PercentileMetricListResult; + parsedBody: SqlRoleAssignmentGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the createUpdateSqlRoleAssignment operation. */ -export type PercentileTargetListMetricsResponse = PercentileMetricListResult & { +export type SqlResourcesCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ @@ -4523,14 +6337,14 @@ export type PercentileTargetListMetricsResponse = PercentileMetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PercentileMetricListResult; + parsedBody: SqlRoleAssignmentGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the listSqlRoleAssignments operation. */ -export type PercentileListMetricsResponse = PercentileMetricListResult & { +export type SqlResourcesListSqlRoleAssignmentsResponse = SqlRoleAssignmentListResult & { /** * The underlying HTTP response. */ @@ -4543,14 +6357,14 @@ export type PercentileListMetricsResponse = PercentileMetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PercentileMetricListResult; + parsedBody: SqlRoleAssignmentListResult; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the retrieveContinuousBackupInformation operation. */ -export type CollectionPartitionRegionListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesRetrieveContinuousBackupInformationResponse = BackupInformation & { /** * The underlying HTTP response. */ @@ -4563,14 +6377,14 @@ export type CollectionPartitionRegionListMetricsResponse = PartitionMetricListRe /** * The response body as parsed JSON or XML */ - parsedBody: PartitionMetricListResult; + parsedBody: BackupInformation; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginCreateUpdateSqlDatabase operation. */ -export type CollectionPartitionListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -4583,14 +6397,14 @@ export type CollectionPartitionListMetricsResponse = PartitionMetricListResult & /** * The response body as parsed JSON or XML */ - parsedBody: PartitionMetricListResult; + parsedBody: SqlDatabaseGetResults; }; }; /** - * Contains response data for the listUsages operation. + * Contains response data for the beginUpdateSqlDatabaseThroughput operation. */ -export type CollectionPartitionListUsagesResponse = PartitionUsagesResult & { +export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4603,14 +6417,14 @@ export type CollectionPartitionListUsagesResponse = PartitionUsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PartitionUsagesResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginMigrateSqlDatabaseToAutoscale operation. */ -export type PartitionKeyRangeIdListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4623,14 +6437,14 @@ export type PartitionKeyRangeIdListMetricsResponse = PartitionMetricListResult & /** * The response body as parsed JSON or XML */ - parsedBody: PartitionMetricListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginMigrateSqlDatabaseToManualThroughput operation. */ -export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4643,14 +6457,14 @@ export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListRe /** * The response body as parsed JSON or XML */ - parsedBody: PartitionMetricListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listSqlDatabases operation. + * Contains response data for the beginCreateUpdateSqlContainer operation. */ -export type SqlResourcesListSqlDatabasesResponse = SqlDatabaseListResult & { +export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetResults & { /** * The underlying HTTP response. */ @@ -4663,14 +6477,14 @@ export type SqlResourcesListSqlDatabasesResponse = SqlDatabaseListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseListResult; + parsedBody: SqlContainerGetResults; }; }; /** - * Contains response data for the getSqlDatabase operation. + * Contains response data for the beginUpdateSqlContainerThroughput operation. */ -export type SqlResourcesGetSqlDatabaseResponse = SqlDatabaseGetResults & { +export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4683,14 +6497,14 @@ export type SqlResourcesGetSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateSqlDatabase operation. + * Contains response data for the beginMigrateSqlContainerToAutoscale operation. */ -export type SqlResourcesCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { +export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4703,14 +6517,14 @@ export type SqlResourcesCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlDatabaseThroughput operation. + * Contains response data for the beginMigrateSqlContainerToManualThroughput operation. */ -export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4728,9 +6542,9 @@ export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGet }; /** - * Contains response data for the updateSqlDatabaseThroughput operation. + * Contains response data for the beginCreateUpdateSqlStoredProcedure operation. */ -export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ @@ -4743,14 +6557,14 @@ export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettings /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: SqlStoredProcedureGetResults; }; }; /** - * Contains response data for the migrateSqlDatabaseToAutoscale operation. + * Contains response data for the beginCreateUpdateSqlUserDefinedFunction operation. */ -export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ @@ -4763,14 +6577,14 @@ export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettin /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: SqlUserDefinedFunctionGetResults; }; }; /** - * Contains response data for the migrateSqlDatabaseToManualThroughput operation. + * Contains response data for the beginCreateUpdateSqlTrigger operation. */ -export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ @@ -4783,14 +6597,14 @@ export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = Throughpu /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: SqlTriggerGetResults; }; }; /** - * Contains response data for the listSqlContainers operation. + * Contains response data for the beginCreateUpdateSqlRoleDefinition operation. */ -export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { +export type SqlResourcesBeginCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ @@ -4803,14 +6617,14 @@ export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerListResult; + parsedBody: SqlRoleDefinitionGetResults; }; }; /** - * Contains response data for the getSqlContainer operation. + * Contains response data for the beginCreateUpdateSqlRoleAssignment operation. */ -export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults & { +export type SqlResourcesBeginCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ @@ -4823,14 +6637,14 @@ export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerGetResults; + parsedBody: SqlRoleAssignmentGetResults; }; }; /** - * Contains response data for the createUpdateSqlContainer operation. + * Contains response data for the beginRetrieveContinuousBackupInformation operation. */ -export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResults & { +export type SqlResourcesBeginRetrieveContinuousBackupInformationResponse = BackupInformation & { /** * The underlying HTTP response. */ @@ -4843,14 +6657,14 @@ export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResult /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerGetResults; + parsedBody: BackupInformation; }; }; /** - * Contains response data for the getSqlContainerThroughput operation. + * Contains response data for the listMongoDBDatabases operation. */ -export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListResult & { /** * The underlying HTTP response. */ @@ -4863,14 +6677,14 @@ export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGe /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: MongoDBDatabaseListResult; }; }; /** - * Contains response data for the updateSqlContainerThroughput operation. + * Contains response data for the getMongoDBDatabase operation. */ -export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -4883,14 +6697,14 @@ export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSetting /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: MongoDBDatabaseGetResults; }; }; /** - * Contains response data for the migrateSqlContainerToAutoscale operation. + * Contains response data for the createUpdateMongoDBDatabase operation. */ -export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -4903,14 +6717,14 @@ export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSetti /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: MongoDBDatabaseGetResults; }; }; /** - * Contains response data for the migrateSqlContainerToManualThroughput operation. + * Contains response data for the getMongoDBDatabaseThroughput operation. */ -export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4928,9 +6742,9 @@ export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = Throughp }; /** - * Contains response data for the listSqlStoredProcedures operation. + * Contains response data for the updateMongoDBDatabaseThroughput operation. */ -export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureListResult & { +export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4943,14 +6757,14 @@ export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureList /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlStoredProcedure operation. + * Contains response data for the migrateMongoDBDatabaseToAutoscale operation. */ -export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4963,14 +6777,14 @@ export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetRes /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateSqlStoredProcedure operation. + * Contains response data for the migrateMongoDBDatabaseToManualThroughput operation. */ -export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4983,14 +6797,14 @@ export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProced /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listSqlUserDefinedFunctions operation. + * Contains response data for the listMongoDBCollections operation. */ -export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunctionListResult & { +export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionListResult & { /** * The underlying HTTP response. */ @@ -5003,14 +6817,14 @@ export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunc /** * The response body as parsed JSON or XML */ - parsedBody: SqlUserDefinedFunctionListResult; + parsedBody: MongoDBCollectionListResult; }; }; /** - * Contains response data for the getSqlUserDefinedFunction operation. + * Contains response data for the getMongoDBCollection operation. */ -export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ @@ -5023,14 +6837,14 @@ export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFuncti /** * The response body as parsed JSON or XML */ - parsedBody: SqlUserDefinedFunctionGetResults; + parsedBody: MongoDBCollectionGetResults; }; }; /** - * Contains response data for the createUpdateSqlUserDefinedFunction operation. + * Contains response data for the createUpdateMongoDBCollection operation. */ -export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ @@ -5043,14 +6857,14 @@ export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefi /** * The response body as parsed JSON or XML */ - parsedBody: SqlUserDefinedFunctionGetResults; + parsedBody: MongoDBCollectionGetResults; }; }; /** - * Contains response data for the listSqlTriggers operation. + * Contains response data for the getMongoDBCollectionThroughput operation. */ -export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { +export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5063,14 +6877,14 @@ export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlTrigger operation. + * Contains response data for the updateMongoDBCollectionThroughput operation. */ -export type SqlResourcesGetSqlTriggerResponse = SqlTriggerGetResults & { +export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5083,14 +6897,14 @@ export type SqlResourcesGetSqlTriggerResponse = SqlTriggerGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateSqlTrigger operation. + * Contains response data for the migrateMongoDBCollectionToAutoscale operation. */ -export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { +export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5103,14 +6917,14 @@ export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlRoleDefinition operation. + * Contains response data for the migrateMongoDBCollectionToManualThroughput operation. */ -export type SqlResourcesGetSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { +export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5123,14 +6937,14 @@ export type SqlResourcesGetSqlRoleDefinitionResponse = SqlRoleDefinitionGetResul /** * The response body as parsed JSON or XML */ - parsedBody: SqlRoleDefinitionGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateSqlRoleDefinition operation. + * Contains response data for the beginCreateUpdateMongoDBDatabase operation. */ -export type SqlResourcesCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { +export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -5143,14 +6957,14 @@ export type SqlResourcesCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitio /** * The response body as parsed JSON or XML */ - parsedBody: SqlRoleDefinitionGetResults; + parsedBody: MongoDBDatabaseGetResults; }; }; /** - * Contains response data for the listSqlRoleDefinitions operation. + * Contains response data for the beginUpdateMongoDBDatabaseThroughput operation. */ -export type SqlResourcesListSqlRoleDefinitionsResponse = SqlRoleDefinitionListResult & { +export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5163,14 +6977,14 @@ export type SqlResourcesListSqlRoleDefinitionsResponse = SqlRoleDefinitionListRe /** * The response body as parsed JSON or XML */ - parsedBody: SqlRoleDefinitionListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlRoleAssignment operation. + * Contains response data for the beginMigrateMongoDBDatabaseToAutoscale operation. */ -export type SqlResourcesGetSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5183,14 +6997,14 @@ export type SqlResourcesGetSqlRoleAssignmentResponse = SqlRoleAssignmentGetResul /** * The response body as parsed JSON or XML */ - parsedBody: SqlRoleAssignmentGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateSqlRoleAssignment operation. + * Contains response data for the beginMigrateMongoDBDatabaseToManualThroughput operation. */ -export type SqlResourcesCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5203,14 +7017,14 @@ export type SqlResourcesCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmen /** * The response body as parsed JSON or XML */ - parsedBody: SqlRoleAssignmentGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listSqlRoleAssignments operation. + * Contains response data for the beginCreateUpdateMongoDBCollection operation. */ -export type SqlResourcesListSqlRoleAssignmentsResponse = SqlRoleAssignmentListResult & { +export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ @@ -5223,14 +7037,14 @@ export type SqlResourcesListSqlRoleAssignmentsResponse = SqlRoleAssignmentListRe /** * The response body as parsed JSON or XML */ - parsedBody: SqlRoleAssignmentListResult; + parsedBody: MongoDBCollectionGetResults; }; }; /** - * Contains response data for the retrieveContinuousBackupInformation operation. + * Contains response data for the beginUpdateMongoDBCollectionThroughput operation. */ -export type SqlResourcesRetrieveContinuousBackupInformationResponse = BackupInformation & { +export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5243,14 +7057,14 @@ export type SqlResourcesRetrieveContinuousBackupInformationResponse = BackupInfo /** * The response body as parsed JSON or XML */ - parsedBody: BackupInformation; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlDatabase operation. + * Contains response data for the beginMigrateMongoDBCollectionToAutoscale operation. */ -export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5263,14 +7077,14 @@ export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetRes /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateSqlDatabaseThroughput operation. + * Contains response data for the beginMigrateMongoDBCollectionToManualThroughput operation. */ -export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5288,9 +7102,9 @@ export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSet }; /** - * Contains response data for the beginMigrateSqlDatabaseToAutoscale operation. + * Contains response data for the listTables operation. */ -export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type TableResourcesListTablesResponse = TableListResult & { /** * The underlying HTTP response. */ @@ -5303,14 +7117,14 @@ export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputS /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: TableListResult; }; }; /** - * Contains response data for the beginMigrateSqlDatabaseToManualThroughput operation. + * Contains response data for the getTable operation. */ -export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesGetTableResponse = TableGetResults & { /** * The underlying HTTP response. */ @@ -5323,14 +7137,14 @@ export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = Thro /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: TableGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlContainer operation. + * Contains response data for the createUpdateTable operation. */ -export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetResults & { +export type TableResourcesCreateUpdateTableResponse = TableGetResults & { /** * The underlying HTTP response. */ @@ -5343,14 +7157,14 @@ export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetR /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerGetResults; + parsedBody: TableGetResults; }; }; /** - * Contains response data for the beginUpdateSqlContainerThroughput operation. + * Contains response data for the getTableThroughput operation. */ -export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5368,9 +7182,9 @@ export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSe }; /** - * Contains response data for the beginMigrateSqlContainerToAutoscale operation. + * Contains response data for the updateTableThroughput operation. */ -export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { +export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5388,9 +7202,9 @@ export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = Throughput }; /** - * Contains response data for the beginMigrateSqlContainerToManualThroughput operation. + * Contains response data for the migrateTableToAutoscale operation. */ -export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5408,9 +7222,9 @@ export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = Thr }; /** - * Contains response data for the beginCreateUpdateSqlStoredProcedure operation. + * Contains response data for the migrateTableToManualThroughput operation. */ -export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5423,14 +7237,14 @@ export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredP /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlUserDefinedFunction operation. + * Contains response data for the beginCreateUpdateTable operation. */ -export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { /** * The underlying HTTP response. */ @@ -5443,14 +7257,14 @@ export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUse /** * The response body as parsed JSON or XML */ - parsedBody: SqlUserDefinedFunctionGetResults; + parsedBody: TableGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlTrigger operation. + * Contains response data for the beginUpdateTableThroughput operation. */ -export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { +export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5463,14 +7277,14 @@ export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResul /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlRoleDefinition operation. + * Contains response data for the beginMigrateTableToAutoscale operation. */ -export type SqlResourcesBeginCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { +export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5483,14 +7297,14 @@ export type SqlResourcesBeginCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefi /** * The response body as parsed JSON or XML */ - parsedBody: SqlRoleDefinitionGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlRoleAssignment operation. + * Contains response data for the beginMigrateTableToManualThroughput operation. */ -export type SqlResourcesBeginCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { +export type TableResourcesBeginMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5503,14 +7317,14 @@ export type SqlResourcesBeginCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssi /** * The response body as parsed JSON or XML */ - parsedBody: SqlRoleAssignmentGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginRetrieveContinuousBackupInformation operation. + * Contains response data for the listCassandraKeyspaces operation. */ -export type SqlResourcesBeginRetrieveContinuousBackupInformationResponse = BackupInformation & { +export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspaceListResult & { /** * The underlying HTTP response. */ @@ -5523,14 +7337,14 @@ export type SqlResourcesBeginRetrieveContinuousBackupInformationResponse = Backu /** * The response body as parsed JSON or XML */ - parsedBody: BackupInformation; + parsedBody: CassandraKeyspaceListResult; }; }; /** - * Contains response data for the listMongoDBDatabases operation. + * Contains response data for the getCassandraKeyspace operation. */ -export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListResult & { +export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ @@ -5543,14 +7357,14 @@ export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListRe /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBDatabaseListResult; + parsedBody: CassandraKeyspaceGetResults; }; }; /** - * Contains response data for the getMongoDBDatabase operation. + * Contains response data for the createUpdateCassandraKeyspace operation. */ -export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ @@ -5563,14 +7377,14 @@ export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResul /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBDatabaseGetResults; + parsedBody: CassandraKeyspaceGetResults; }; }; /** - * Contains response data for the createUpdateMongoDBDatabase operation. + * Contains response data for the getCassandraKeyspaceThroughput operation. */ -export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5583,14 +7397,14 @@ export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabas /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBDatabaseGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getMongoDBDatabaseThroughput operation. + * Contains response data for the updateCassandraKeyspaceThroughput operation. */ -export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5608,9 +7422,9 @@ export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSet }; /** - * Contains response data for the updateMongoDBDatabaseThroughput operation. + * Contains response data for the migrateCassandraKeyspaceToAutoscale operation. */ -export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5628,9 +7442,9 @@ export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = Throughput }; /** - * Contains response data for the migrateMongoDBDatabaseToAutoscale operation. + * Contains response data for the migrateCassandraKeyspaceToManualThroughput operation. */ -export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5648,9 +7462,9 @@ export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = Throughp }; /** - * Contains response data for the migrateMongoDBDatabaseToManualThroughput operation. + * Contains response data for the listCassandraTables operation. */ -export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesListCassandraTablesResponse = CassandraTableListResult & { /** * The underlying HTTP response. */ @@ -5663,14 +7477,14 @@ export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = T /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraTableListResult; }; }; /** - * Contains response data for the listMongoDBCollections operation. + * Contains response data for the getCassandraTable operation. */ -export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionListResult & { +export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ @@ -5683,14 +7497,14 @@ export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionLi /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionListResult; + parsedBody: CassandraTableGetResults; }; }; /** - * Contains response data for the getMongoDBCollection operation. + * Contains response data for the createUpdateCassandraTable operation. */ -export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ @@ -5703,14 +7517,14 @@ export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetR /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionGetResults; + parsedBody: CassandraTableGetResults; }; }; /** - * Contains response data for the createUpdateMongoDBCollection operation. + * Contains response data for the getCassandraTableThroughput operation. */ -export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5723,14 +7537,14 @@ export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBColle /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getMongoDBCollectionThroughput operation. + * Contains response data for the updateCassandraTableThroughput operation. */ -export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5748,9 +7562,9 @@ export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputS }; /** - * Contains response data for the updateMongoDBCollectionThroughput operation. + * Contains response data for the migrateCassandraTableToAutoscale operation. */ -export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5768,9 +7582,9 @@ export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = Throughp }; /** - * Contains response data for the migrateMongoDBCollectionToAutoscale operation. + * Contains response data for the migrateCassandraTableToManualThroughput operation. */ -export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5788,9 +7602,9 @@ export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = Throug }; /** - * Contains response data for the migrateMongoDBCollectionToManualThroughput operation. + * Contains response data for the listCassandraViews operation. */ -export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesListCassandraViewsResponse = CassandraViewListResult & { /** * The underlying HTTP response. */ @@ -5803,14 +7617,14 @@ export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraViewListResult; }; }; /** - * Contains response data for the beginCreateUpdateMongoDBDatabase operation. + * Contains response data for the getCassandraView operation. */ -export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type CassandraResourcesGetCassandraViewResponse = CassandraViewGetResults & { /** * The underlying HTTP response. */ @@ -5823,14 +7637,14 @@ export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDa /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBDatabaseGetResults; + parsedBody: CassandraViewGetResults; }; }; /** - * Contains response data for the beginUpdateMongoDBDatabaseThroughput operation. + * Contains response data for the createUpdateCassandraView operation. */ -export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesCreateUpdateCassandraViewResponse = CassandraViewGetResults & { /** * The underlying HTTP response. */ @@ -5843,14 +7657,14 @@ export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = Throu /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraViewGetResults; }; }; /** - * Contains response data for the beginMigrateMongoDBDatabaseToAutoscale operation. + * Contains response data for the getCassandraViewThroughput operation. */ -export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesGetCassandraViewThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5868,9 +7682,9 @@ export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = Thr }; /** - * Contains response data for the beginMigrateMongoDBDatabaseToManualThroughput operation. + * Contains response data for the updateCassandraViewThroughput operation. */ -export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesUpdateCassandraViewThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5888,9 +7702,9 @@ export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputRespons }; /** - * Contains response data for the beginCreateUpdateMongoDBCollection operation. + * Contains response data for the migrateCassandraViewToAutoscale operation. */ -export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type CassandraResourcesMigrateCassandraViewToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5903,14 +7717,14 @@ export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDB /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateMongoDBCollectionThroughput operation. + * Contains response data for the migrateCassandraViewToManualThroughput operation. */ -export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraViewToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5928,9 +7742,9 @@ export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = Thr }; /** - * Contains response data for the beginMigrateMongoDBCollectionToAutoscale operation. + * Contains response data for the beginCreateUpdateCassandraKeyspace operation. */ -export type MongoDBResourcesBeginMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ @@ -5943,14 +7757,14 @@ export type MongoDBResourcesBeginMigrateMongoDBCollectionToAutoscaleResponse = T /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraKeyspaceGetResults; }; }; /** - * Contains response data for the beginMigrateMongoDBCollectionToManualThroughput operation. + * Contains response data for the beginUpdateCassandraKeyspaceThroughput operation. */ -export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5968,9 +7782,9 @@ export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputRespo }; /** - * Contains response data for the listTables operation. + * Contains response data for the beginMigrateCassandraKeyspaceToAutoscale operation. */ -export type TableResourcesListTablesResponse = TableListResult & { +export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5983,14 +7797,14 @@ export type TableResourcesListTablesResponse = TableListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: TableListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getTable operation. + * Contains response data for the beginMigrateCassandraKeyspaceToManualThroughput operation. */ -export type TableResourcesGetTableResponse = TableGetResults & { +export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6003,14 +7817,14 @@ export type TableResourcesGetTableResponse = TableGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: TableGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateTable operation. + * Contains response data for the beginCreateUpdateCassandraTable operation. */ -export type TableResourcesCreateUpdateTableResponse = TableGetResults & { +export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ @@ -6023,14 +7837,14 @@ export type TableResourcesCreateUpdateTableResponse = TableGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: TableGetResults; + parsedBody: CassandraTableGetResults; }; }; /** - * Contains response data for the getTableThroughput operation. + * Contains response data for the beginUpdateCassandraTableThroughput operation. */ -export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6048,9 +7862,9 @@ export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResu }; /** - * Contains response data for the updateTableThroughput operation. + * Contains response data for the beginMigrateCassandraTableToAutoscale operation. */ -export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6068,9 +7882,9 @@ export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetR }; /** - * Contains response data for the migrateTableToAutoscale operation. + * Contains response data for the beginMigrateCassandraTableToManualThroughput operation. */ -export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6088,9 +7902,9 @@ export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGe }; /** - * Contains response data for the migrateTableToManualThroughput operation. + * Contains response data for the beginCreateUpdateCassandraView operation. */ -export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginCreateUpdateCassandraViewResponse = CassandraViewGetResults & { /** * The underlying HTTP response. */ @@ -6103,14 +7917,14 @@ export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraViewGetResults; }; }; /** - * Contains response data for the beginCreateUpdateTable operation. + * Contains response data for the beginUpdateCassandraViewThroughput operation. */ -export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { +export type CassandraResourcesBeginUpdateCassandraViewThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6123,14 +7937,14 @@ export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: TableGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateTableThroughput operation. + * Contains response data for the beginMigrateCassandraViewToAutoscale operation. */ -export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginMigrateCassandraViewToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6148,9 +7962,9 @@ export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSetting }; /** - * Contains response data for the beginMigrateTableToAutoscale operation. + * Contains response data for the beginMigrateCassandraViewToManualThroughput operation. */ -export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginMigrateCassandraViewToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6168,9 +7982,9 @@ export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSetti }; /** - * Contains response data for the beginMigrateTableToManualThroughput operation. + * Contains response data for the listGremlinDatabases operation. */ -export type TableResourcesBeginMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListResult & { /** * The underlying HTTP response. */ @@ -6183,14 +7997,14 @@ export type TableResourcesBeginMigrateTableToManualThroughputResponse = Throughp /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinDatabaseListResult; }; }; /** - * Contains response data for the listCassandraKeyspaces operation. + * Contains response data for the getGremlinDatabase operation. */ -export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspaceListResult & { +export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -6203,14 +8017,14 @@ export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspace /** * The response body as parsed JSON or XML */ - parsedBody: CassandraKeyspaceListResult; + parsedBody: GremlinDatabaseGetResults; }; }; /** - * Contains response data for the getCassandraKeyspace operation. + * Contains response data for the createUpdateGremlinDatabase operation. */ -export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -6223,14 +8037,14 @@ export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGe /** * The response body as parsed JSON or XML */ - parsedBody: CassandraKeyspaceGetResults; + parsedBody: GremlinDatabaseGetResults; }; }; /** - * Contains response data for the createUpdateCassandraKeyspace operation. + * Contains response data for the getGremlinDatabaseThroughput operation. */ -export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6243,14 +8057,14 @@ export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraK /** * The response body as parsed JSON or XML */ - parsedBody: CassandraKeyspaceGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getCassandraKeyspaceThroughput operation. + * Contains response data for the updateGremlinDatabaseThroughput operation. */ -export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6268,9 +8082,9 @@ export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = Throughpu }; /** - * Contains response data for the updateCassandraKeyspaceThroughput operation. + * Contains response data for the migrateGremlinDatabaseToAutoscale operation. */ -export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6288,9 +8102,9 @@ export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = Throug }; /** - * Contains response data for the migrateCassandraKeyspaceToAutoscale operation. + * Contains response data for the migrateGremlinDatabaseToManualThroughput operation. */ -export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6308,9 +8122,9 @@ export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = Thro }; /** - * Contains response data for the migrateCassandraKeyspaceToManualThroughput operation. + * Contains response data for the listGremlinGraphs operation. */ -export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & { /** * The underlying HTTP response. */ @@ -6323,14 +8137,14 @@ export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinGraphListResult; }; }; /** - * Contains response data for the listCassandraTables operation. + * Contains response data for the getGremlinGraph operation. */ -export type CassandraResourcesListCassandraTablesResponse = CassandraTableListResult & { +export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ @@ -6343,14 +8157,14 @@ export type CassandraResourcesListCassandraTablesResponse = CassandraTableListRe /** * The response body as parsed JSON or XML */ - parsedBody: CassandraTableListResult; + parsedBody: GremlinGraphGetResults; }; }; /** - * Contains response data for the getCassandraTable operation. + * Contains response data for the createUpdateGremlinGraph operation. */ -export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResults & { +export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ @@ -6363,14 +8177,14 @@ export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResul /** * The response body as parsed JSON or XML */ - parsedBody: CassandraTableGetResults; + parsedBody: GremlinGraphGetResults; }; }; /** - * Contains response data for the createUpdateCassandraTable operation. + * Contains response data for the getGremlinGraphThroughput operation. */ -export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTableGetResults & { +export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6383,14 +8197,14 @@ export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTabl /** * The response body as parsed JSON or XML */ - parsedBody: CassandraTableGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getCassandraTableThroughput operation. + * Contains response data for the updateGremlinGraphThroughput operation. */ -export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6408,9 +8222,9 @@ export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSe }; /** - * Contains response data for the updateCassandraTableThroughput operation. + * Contains response data for the migrateGremlinGraphToAutoscale operation. */ -export type CassandraResourcesUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6428,9 +8242,9 @@ export type CassandraResourcesUpdateCassandraTableThroughputResponse = Throughpu }; /** - * Contains response data for the migrateCassandraTableToAutoscale operation. + * Contains response data for the migrateGremlinGraphToManualThroughput operation. */ -export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6448,9 +8262,9 @@ export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = Through }; /** - * Contains response data for the migrateCassandraTableToManualThroughput operation. + * Contains response data for the beginCreateUpdateGremlinDatabase operation. */ -export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -6463,14 +8277,14 @@ export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinDatabaseGetResults; }; }; /** - * Contains response data for the beginCreateUpdateCassandraKeyspace operation. + * Contains response data for the beginUpdateGremlinDatabaseThroughput operation. */ -export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6483,14 +8297,14 @@ export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = Cassa /** * The response body as parsed JSON or XML */ - parsedBody: CassandraKeyspaceGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateCassandraKeyspaceThroughput operation. + * Contains response data for the beginMigrateGremlinDatabaseToAutoscale operation. */ -export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6508,9 +8322,9 @@ export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = T }; /** - * Contains response data for the beginMigrateCassandraKeyspaceToAutoscale operation. + * Contains response data for the beginMigrateGremlinDatabaseToManualThroughput operation. */ -export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6528,9 +8342,9 @@ export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = }; /** - * Contains response data for the beginMigrateCassandraKeyspaceToManualThroughput operation. + * Contains response data for the beginCreateUpdateGremlinGraph operation. */ -export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ @@ -6543,14 +8357,14 @@ export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputRes /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinGraphGetResults; }; }; /** - * Contains response data for the beginCreateUpdateCassandraTable operation. + * Contains response data for the beginUpdateGremlinGraphThroughput operation. */ -export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = CassandraTableGetResults & { +export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6563,14 +8377,14 @@ export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = Cassandr /** * The response body as parsed JSON or XML */ - parsedBody: CassandraTableGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateCassandraTableThroughput operation. + * Contains response data for the beginMigrateGremlinGraphToAutoscale operation. */ -export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6588,9 +8402,9 @@ export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = Thro }; /** - * Contains response data for the beginMigrateCassandraTableToAutoscale operation. + * Contains response data for the beginMigrateGremlinGraphToManualThroughput operation. */ -export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -6608,9 +8422,9 @@ export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = Th }; /** - * Contains response data for the beginMigrateCassandraTableToManualThroughput operation. + * Contains response data for the locationList operation. */ -export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type LocationListResponse = LocationListResult & { /** * The underlying HTTP response. */ @@ -6623,14 +8437,14 @@ export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputRespon /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: LocationListResult; }; }; /** - * Contains response data for the listGremlinDatabases operation. + * Contains response data for the locationGet operation. */ -export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListResult & { +export type LocationGetResponse = LocationGetResult & { /** * The underlying HTTP response. */ @@ -6643,14 +8457,14 @@ export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListRe /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseListResult; + parsedBody: LocationGetResult; }; }; /** - * Contains response data for the getGremlinDatabase operation. + * Contains response data for the listByDatabaseAccount operation. */ -export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type NotebookWorkspacesListByDatabaseAccountResponse = NotebookWorkspaceListResult & { /** * The underlying HTTP response. */ @@ -6663,14 +8477,14 @@ export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResul /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseGetResults; + parsedBody: NotebookWorkspaceListResult; }; }; /** - * Contains response data for the createUpdateGremlinDatabase operation. + * Contains response data for the get operation. */ -export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type NotebookWorkspacesGetResponse = NotebookWorkspace & { /** * The underlying HTTP response. */ @@ -6683,14 +8497,14 @@ export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabas /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseGetResults; + parsedBody: NotebookWorkspace; }; }; /** - * Contains response data for the getGremlinDatabaseThroughput operation. + * Contains response data for the createOrUpdate operation. */ -export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type NotebookWorkspacesCreateOrUpdateResponse = NotebookWorkspace & { /** * The underlying HTTP response. */ @@ -6703,14 +8517,14 @@ export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: NotebookWorkspace; }; }; /** - * Contains response data for the updateGremlinDatabaseThroughput operation. + * Contains response data for the listConnectionInfo operation. */ -export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type NotebookWorkspacesListConnectionInfoResponse = NotebookWorkspaceConnectionInfoResult & { /** * The underlying HTTP response. */ @@ -6723,14 +8537,14 @@ export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = Throughput /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: NotebookWorkspaceConnectionInfoResult; }; }; /** - * Contains response data for the migrateGremlinDatabaseToAutoscale operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type NotebookWorkspacesBeginCreateOrUpdateResponse = NotebookWorkspace & { /** * The underlying HTTP response. */ @@ -6743,14 +8557,14 @@ export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = Throughp /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: NotebookWorkspace; }; }; /** - * Contains response data for the migrateGremlinDatabaseToManualThroughput operation. + * Contains response data for the listByDatabaseAccount operation. */ -export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type PrivateEndpointConnectionsListByDatabaseAccountResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -6763,14 +8577,14 @@ export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = T /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the listGremlinGraphs operation. + * Contains response data for the get operation. */ -export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & { +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -6783,14 +8597,14 @@ export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the getGremlinGraph operation. + * Contains response data for the createOrUpdate operation. */ -export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -6803,14 +8617,14 @@ export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphGetResults; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the createUpdateGremlinGraph operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { +export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -6823,14 +8637,14 @@ export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetRe /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphGetResults; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the getGremlinGraphThroughput operation. + * Contains response data for the listByDatabaseAccount operation. */ -export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type PrivateLinkResourcesListByDatabaseAccountResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ @@ -6843,14 +8657,14 @@ export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettin /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: PrivateLinkResourceListResult; }; }; /** - * Contains response data for the updateGremlinGraphThroughput operation. + * Contains response data for the get operation. */ -export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { /** * The underlying HTTP response. */ @@ -6863,14 +8677,14 @@ export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: PrivateLinkResource; }; }; /** - * Contains response data for the migrateGremlinGraphToAutoscale operation. + * Contains response data for the listByLocation operation. */ -export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { +export type RestorableDatabaseAccountsListByLocationResponse = RestorableDatabaseAccountsListResult & { /** * The underlying HTTP response. */ @@ -6883,14 +8697,14 @@ export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputS /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableDatabaseAccountsListResult; }; }; /** - * Contains response data for the migrateGremlinGraphToManualThroughput operation. + * Contains response data for the list operation. */ -export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { +export type RestorableDatabaseAccountsListResponse = RestorableDatabaseAccountsListResult & { /** * The underlying HTTP response. */ @@ -6903,14 +8717,14 @@ export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = Thro /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableDatabaseAccountsListResult; }; }; /** - * Contains response data for the beginCreateUpdateGremlinDatabase operation. + * Contains response data for the getByLocation operation. */ -export type GremlinResourcesBeginCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type RestorableDatabaseAccountsGetByLocationResponse = RestorableDatabaseAccountGetResult & { /** * The underlying HTTP response. */ @@ -6923,14 +8737,14 @@ export type GremlinResourcesBeginCreateUpdateGremlinDatabaseResponse = GremlinDa /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseGetResults; + parsedBody: RestorableDatabaseAccountGetResult; }; }; /** - * Contains response data for the beginUpdateGremlinDatabaseThroughput operation. + * Contains response data for the list operation. */ -export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type RestorableSqlDatabasesListResponse = RestorableSqlDatabasesListResult & { /** * The underlying HTTP response. */ @@ -6943,14 +8757,14 @@ export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = Throu /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableSqlDatabasesListResult; }; }; /** - * Contains response data for the beginMigrateGremlinDatabaseToAutoscale operation. + * Contains response data for the list operation. */ -export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type RestorableSqlContainersListResponse = RestorableSqlContainersListResult & { /** * The underlying HTTP response. */ @@ -6963,14 +8777,14 @@ export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = Thr /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableSqlContainersListResult; }; }; /** - * Contains response data for the beginMigrateGremlinDatabaseToManualThroughput operation. + * Contains response data for the list operation. */ -export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type RestorableSqlResourcesListResponse = RestorableSqlResourcesListResult & { /** * The underlying HTTP response. */ @@ -6983,14 +8797,14 @@ export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputRespons /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableSqlResourcesListResult; }; }; /** - * Contains response data for the beginCreateUpdateGremlinGraph operation. + * Contains response data for the list operation. */ -export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { +export type RestorableMongodbDatabasesListResponse = RestorableMongodbDatabasesListResult & { /** * The underlying HTTP response. */ @@ -7003,14 +8817,14 @@ export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraph /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphGetResults; + parsedBody: RestorableMongodbDatabasesListResult; }; }; /** - * Contains response data for the beginUpdateGremlinGraphThroughput operation. + * Contains response data for the list operation. */ -export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type RestorableMongodbCollectionsListResponse = RestorableMongodbCollectionsListResult & { /** * The underlying HTTP response. */ @@ -7023,14 +8837,14 @@ export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = Throughp /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableMongodbCollectionsListResult; }; }; /** - * Contains response data for the beginMigrateGremlinGraphToAutoscale operation. + * Contains response data for the list operation. */ -export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { +export type RestorableMongodbResourcesListResponse = RestorableMongodbResourcesListResult & { /** * The underlying HTTP response. */ @@ -7043,14 +8857,14 @@ export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = Throug /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableMongodbResourcesListResult; }; }; /** - * Contains response data for the beginMigrateGremlinGraphToManualThroughput operation. + * Contains response data for the listBySubscription operation. */ -export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraClustersListBySubscriptionResponse = ListClusters & { /** * The underlying HTTP response. */ @@ -7063,14 +8877,14 @@ export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ListClusters; }; }; /** - * Contains response data for the listByDatabaseAccount operation. + * Contains response data for the listByResourceGroup operation. */ -export type NotebookWorkspacesListByDatabaseAccountResponse = NotebookWorkspaceListResult & { +export type CassandraClustersListByResourceGroupResponse = ListClusters & { /** * The underlying HTTP response. */ @@ -7083,14 +8897,14 @@ export type NotebookWorkspacesListByDatabaseAccountResponse = NotebookWorkspaceL /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspaceListResult; + parsedBody: ListClusters; }; }; /** * Contains response data for the get operation. */ -export type NotebookWorkspacesGetResponse = NotebookWorkspace & { +export type CassandraClustersGetResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -7103,14 +8917,14 @@ export type NotebookWorkspacesGetResponse = NotebookWorkspace & { /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspace; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the createUpdate operation. */ -export type NotebookWorkspacesCreateOrUpdateResponse = NotebookWorkspace & { +export type CassandraClustersCreateUpdateResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -7123,14 +8937,14 @@ export type NotebookWorkspacesCreateOrUpdateResponse = NotebookWorkspace & { /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspace; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the listConnectionInfo operation. + * Contains response data for the update operation. */ -export type NotebookWorkspacesListConnectionInfoResponse = NotebookWorkspaceConnectionInfoResult & { +export type CassandraClustersUpdateResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -7143,14 +8957,14 @@ export type NotebookWorkspacesListConnectionInfoResponse = NotebookWorkspaceConn /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspaceConnectionInfoResult; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the fetchNodeStatus operation. */ -export type NotebookWorkspacesBeginCreateOrUpdateResponse = NotebookWorkspace & { +export type CassandraClustersFetchNodeStatusResponse = ClusterNodeStatus & { /** * The underlying HTTP response. */ @@ -7163,14 +8977,14 @@ export type NotebookWorkspacesBeginCreateOrUpdateResponse = NotebookWorkspace & /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspace; + parsedBody: ClusterNodeStatus; }; }; /** - * Contains response data for the listByDatabaseAccount operation. + * Contains response data for the listBackupsMethod operation. */ -export type PrivateEndpointConnectionsListByDatabaseAccountResponse = PrivateEndpointConnectionListResult & { +export type CassandraClustersListBackupsMethodResponse = ListBackups & { /** * The underlying HTTP response. */ @@ -7183,14 +8997,14 @@ export type PrivateEndpointConnectionsListByDatabaseAccountResponse = PrivateEnd /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnectionListResult; + parsedBody: ListBackups; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getBackup operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { +export type CassandraClustersGetBackupResponse = BackupResource & { /** * The underlying HTTP response. */ @@ -7203,14 +9017,14 @@ export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: BackupResource; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateUpdate operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { +export type CassandraClustersBeginCreateUpdateResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -7223,14 +9037,14 @@ export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointCo /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginUpdate operation. */ -export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { +export type CassandraClustersBeginUpdateResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -7243,14 +9057,14 @@ export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpo /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the listByDatabaseAccount operation. + * Contains response data for the beginFetchNodeStatus operation. */ -export type PrivateLinkResourcesListByDatabaseAccountResponse = PrivateLinkResourceListResult & { +export type CassandraClustersBeginFetchNodeStatusResponse = ClusterNodeStatus & { /** * The underlying HTTP response. */ @@ -7263,14 +9077,14 @@ export type PrivateLinkResourcesListByDatabaseAccountResponse = PrivateLinkResou /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResourceListResult; + parsedBody: ClusterNodeStatus; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { +export type CassandraDataCentersListResponse = ListDataCenters & { /** * The underlying HTTP response. */ @@ -7283,14 +9097,14 @@ export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResource; + parsedBody: ListDataCenters; }; }; /** - * Contains response data for the listByLocation operation. + * Contains response data for the get operation. */ -export type RestorableDatabaseAccountsListByLocationResponse = RestorableDatabaseAccountsListResult & { +export type CassandraDataCentersGetResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -7303,14 +9117,14 @@ export type RestorableDatabaseAccountsListByLocationResponse = RestorableDatabas /** * The response body as parsed JSON or XML */ - parsedBody: RestorableDatabaseAccountsListResult; + parsedBody: DataCenterResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createUpdate operation. */ -export type RestorableDatabaseAccountsListResponse = RestorableDatabaseAccountsListResult & { +export type CassandraDataCentersCreateUpdateResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -7323,14 +9137,14 @@ export type RestorableDatabaseAccountsListResponse = RestorableDatabaseAccountsL /** * The response body as parsed JSON or XML */ - parsedBody: RestorableDatabaseAccountsListResult; + parsedBody: DataCenterResource; }; }; /** - * Contains response data for the getByLocation operation. + * Contains response data for the update operation. */ -export type RestorableDatabaseAccountsGetByLocationResponse = RestorableDatabaseAccountGetResult & { +export type CassandraDataCentersUpdateResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -7343,14 +9157,14 @@ export type RestorableDatabaseAccountsGetByLocationResponse = RestorableDatabase /** * The response body as parsed JSON or XML */ - parsedBody: RestorableDatabaseAccountGetResult; + parsedBody: DataCenterResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginCreateUpdate operation. */ -export type RestorableSqlDatabasesListResponse = RestorableSqlDatabasesListResult & { +export type CassandraDataCentersBeginCreateUpdateResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -7363,14 +9177,14 @@ export type RestorableSqlDatabasesListResponse = RestorableSqlDatabasesListResul /** * The response body as parsed JSON or XML */ - parsedBody: RestorableSqlDatabasesListResult; + parsedBody: DataCenterResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginUpdate operation. */ -export type RestorableSqlContainersListResponse = RestorableSqlContainersListResult & { +export type CassandraDataCentersBeginUpdateResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -7383,14 +9197,14 @@ export type RestorableSqlContainersListResponse = RestorableSqlContainersListRes /** * The response body as parsed JSON or XML */ - parsedBody: RestorableSqlContainersListResult; + parsedBody: DataCenterResource; }; }; /** * Contains response data for the list operation. */ -export type RestorableSqlResourcesListResponse = RestorableSqlResourcesListResult & { +export type ServiceListResponse = ServiceResourceListResult & { /** * The underlying HTTP response. */ @@ -7403,14 +9217,14 @@ export type RestorableSqlResourcesListResponse = RestorableSqlResourcesListResul /** * The response body as parsed JSON or XML */ - parsedBody: RestorableSqlResourcesListResult; + parsedBody: ServiceResourceListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the create operation. */ -export type RestorableMongodbDatabasesListResponse = RestorableMongodbDatabasesListResult & { +export type ServiceCreateResponse = ServiceResource & { /** * The underlying HTTP response. */ @@ -7423,14 +9237,14 @@ export type RestorableMongodbDatabasesListResponse = RestorableMongodbDatabasesL /** * The response body as parsed JSON or XML */ - parsedBody: RestorableMongodbDatabasesListResult; + parsedBody: ServiceResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type RestorableMongodbCollectionsListResponse = RestorableMongodbCollectionsListResult & { +export type ServiceGetResponse = ServiceResource & { /** * The underlying HTTP response. */ @@ -7443,14 +9257,14 @@ export type RestorableMongodbCollectionsListResponse = RestorableMongodbCollecti /** * The response body as parsed JSON or XML */ - parsedBody: RestorableMongodbCollectionsListResult; + parsedBody: ServiceResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginCreate operation. */ -export type RestorableMongodbResourcesListResponse = RestorableMongodbResourcesListResult & { +export type ServiceBeginCreateResponse = ServiceResource & { /** * The underlying HTTP response. */ @@ -7463,6 +9277,6 @@ export type RestorableMongodbResourcesListResponse = RestorableMongodbResourcesL /** * The response body as parsed JSON or XML */ - parsedBody: RestorableMongodbResourcesListResult; + parsedBody: ServiceResource; }; }; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts index 4d862a5d91bb..c11fcb2d2a86 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts @@ -12,78 +12,6 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const ManagedServiceIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { - serializedName: "ManagedServiceIdentity_userAssignedIdentitiesValue", - type: { - name: "Composite", - className: "ManagedServiceIdentityUserAssignedIdentitiesValue", - modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", - type: { - name: "String" - } - }, - clientId: { - readOnly: true, - serializedName: "clientId", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedServiceIdentity: msRest.CompositeMapper = { - serializedName: "ManagedServiceIdentity", - type: { - name: "Composite", - className: "ManagedServiceIdentity", - modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", - type: { - name: "String" - } - }, - tenantId: { - readOnly: true, - serializedName: "tenantId", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned,UserAssigned", - "None" - ] - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "ManagedServiceIdentityUserAssignedIdentitiesValue" - } - } - } - } - } - } -}; - export const IpAddressOrRange: msRest.CompositeMapper = { serializedName: "IpAddressOrRange", type: { @@ -590,6 +518,27 @@ export const CorsPolicy: msRest.CompositeMapper = { } }; +export const DiagnosticLogSettings: msRest.CompositeMapper = { + serializedName: "DiagnosticLogSettings", + type: { + name: "Composite", + className: "DiagnosticLogSettings", + modelProperties: { + enableFullTextQuery: { + serializedName: "enableFullTextQuery", + type: { + name: "Enum", + allowedValues: [ + "None", + "True", + "False" + ] + } + } + } + } +}; + export const SystemData: msRest.CompositeMapper = { serializedName: "systemData", type: { @@ -679,6 +628,13 @@ export const ARMResourceProperties: msRest.CompositeMapper = { } } } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } } } } @@ -698,13 +654,6 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { name: "String" } }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, provisioningState: { serializedName: "properties.provisioningState", type: { @@ -977,6 +926,13 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { } } }, + diagnosticLogSettings: { + serializedName: "properties.diagnosticLogSettings", + type: { + name: "Composite", + className: "DiagnosticLogSettings" + } + }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", type: { @@ -995,11 +951,11 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { } }; -export const SqlDatabaseGetPropertiesResource: msRest.CompositeMapper = { - serializedName: "SqlDatabaseGetProperties_resource", +export const GraphResourceGetPropertiesResource: msRest.CompositeMapper = { + serializedName: "GraphResourceGetProperties_resource", type: { name: "Composite", - className: "SqlDatabaseGetPropertiesResource", + className: "GraphResourceGetPropertiesResource", modelProperties: { id: { required: true, @@ -1028,18 +984,6 @@ export const SqlDatabaseGetPropertiesResource: msRest.CompositeMapper = { type: { name: "String" } - }, - _colls: { - serializedName: "_colls", - type: { - name: "String" - } - }, - _users: { - serializedName: "_users", - type: { - name: "String" - } } } } @@ -1068,6 +1012,92 @@ export const OptionsResource: msRest.CompositeMapper = { } }; +export const GraphResourceGetPropertiesOptions: msRest.CompositeMapper = { + serializedName: "GraphResourceGetProperties_options", + type: { + name: "Composite", + className: "GraphResourceGetPropertiesOptions", + modelProperties: { + ...OptionsResource.type.modelProperties + } + } +}; + +export const GraphResourceGetResults: msRest.CompositeMapper = { + serializedName: "GraphResourceGetResults", + type: { + name: "Composite", + className: "GraphResourceGetResults", + modelProperties: { + ...ARMResourceProperties.type.modelProperties, + resource: { + serializedName: "properties.resource", + type: { + name: "Composite", + className: "GraphResourceGetPropertiesResource" + } + }, + options: { + serializedName: "properties.options", + type: { + name: "Composite", + className: "GraphResourceGetPropertiesOptions" + } + } + } + } +}; + +export const SqlDatabaseGetPropertiesResource: msRest.CompositeMapper = { + serializedName: "SqlDatabaseGetProperties_resource", + type: { + name: "Composite", + className: "SqlDatabaseGetPropertiesResource", + 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: { + serializedName: "_colls", + type: { + name: "String" + } + }, + _users: { + serializedName: "_users", + type: { + name: "String" + } + } + } + } +}; + export const SqlDatabaseGetPropertiesOptions: msRest.CompositeMapper = { serializedName: "SqlDatabaseGetProperties_options", type: { @@ -2505,20 +2535,42 @@ export const GremlinGraphGetResults: msRest.CompositeMapper = { } }; -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", +export const CassandraViewGetPropertiesResource: msRest.CompositeMapper = { + serializedName: "CassandraViewGetProperties_resource", type: { name: "Composite", - className: "ErrorResponse", + className: "CassandraViewGetPropertiesResource", modelProperties: { - code: { - serializedName: "code", + id: { + required: true, + serializedName: "id", type: { name: "String" } }, - message: { - serializedName: "message", + viewDefinition: { + serializedName: "viewDefinition", + 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" } @@ -2527,40 +2579,170 @@ export const ErrorResponse: msRest.CompositeMapper = { } }; -export const FailoverPolicies: msRest.CompositeMapper = { - serializedName: "FailoverPolicies", +export const CassandraViewGetPropertiesOptions: msRest.CompositeMapper = { + serializedName: "CassandraViewGetProperties_options", type: { name: "Composite", - className: "FailoverPolicies", + className: "CassandraViewGetPropertiesOptions", modelProperties: { - failoverPolicies: { - required: true, - serializedName: "failoverPolicies", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FailoverPolicy" - } - } - } - } + ...OptionsResource.type.modelProperties } } }; -export const RegionForOnlineOffline: msRest.CompositeMapper = { - serializedName: "RegionForOnlineOffline", +export const CassandraViewGetResults: msRest.CompositeMapper = { + serializedName: "CassandraViewGetResults", type: { name: "Composite", - className: "RegionForOnlineOffline", + className: "CassandraViewGetResults", modelProperties: { - region: { - required: true, - serializedName: "region", + ...ARMResourceProperties.type.modelProperties, + resource: { + serializedName: "properties.resource", type: { - name: "String" + name: "Composite", + className: "CassandraViewGetPropertiesResource" + } + }, + options: { + serializedName: "properties.options", + type: { + name: "Composite", + className: "CassandraViewGetPropertiesOptions" + } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const FailoverPolicies: msRest.CompositeMapper = { + serializedName: "FailoverPolicies", + type: { + name: "Composite", + className: "FailoverPolicies", + modelProperties: { + failoverPolicies: { + required: true, + serializedName: "failoverPolicies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FailoverPolicy" + } + } + } + } + } + } +}; + +export const RegionForOnlineOffline: msRest.CompositeMapper = { + serializedName: "RegionForOnlineOffline", + type: { + name: "Composite", + className: "RegionForOnlineOffline", + modelProperties: { + region: { + required: true, + serializedName: "region", + type: { + name: "String" + } + } + } + } +}; + +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" + } + } } } } @@ -2775,29 +2957,19 @@ export const ThroughputSettingsGetResults: msRest.CompositeMapper = { } }; -export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { - serializedName: "DatabaseAccountCreateUpdateParameters", +export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { + serializedName: "DatabaseAccountCreateUpdateProperties", type: { name: "Composite", - className: "DatabaseAccountCreateUpdateParameters", + polymorphicDiscriminator: { + serializedName: "createMode", + clientName: "createMode" + }, + uberParent: "DatabaseAccountCreateUpdateProperties", + className: "DatabaseAccountCreateUpdateProperties", modelProperties: { - ...ARMResourceProperties.type.modelProperties, - kind: { - serializedName: "kind", - defaultValue: 'GlobalDocumentDB', - type: { - name: "String" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, consistencyPolicy: { - serializedName: "properties.consistencyPolicy", + serializedName: "consistencyPolicy", type: { name: "Composite", className: "ConsistencyPolicy" @@ -2805,7 +2977,7 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { }, locations: { required: true, - serializedName: "properties.locations", + serializedName: "locations", type: { name: "Sequence", element: { @@ -2819,14 +2991,14 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { databaseAccountOfferType: { required: true, isConstant: true, - serializedName: "properties.databaseAccountOfferType", + serializedName: "databaseAccountOfferType", defaultValue: 'Standard', type: { name: "String" } }, ipRules: { - serializedName: "properties.ipRules", + serializedName: "ipRules", type: { name: "Sequence", element: { @@ -2838,19 +3010,19 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, isVirtualNetworkFilterEnabled: { - serializedName: "properties.isVirtualNetworkFilterEnabled", + serializedName: "isVirtualNetworkFilterEnabled", type: { name: "Boolean" } }, enableAutomaticFailover: { - serializedName: "properties.enableAutomaticFailover", + serializedName: "enableAutomaticFailover", type: { name: "Boolean" } }, capabilities: { - serializedName: "properties.capabilities", + serializedName: "capabilities", type: { name: "Sequence", element: { @@ -2862,7 +3034,7 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, virtualNetworkRules: { - serializedName: "properties.virtualNetworkRules", + serializedName: "virtualNetworkRules", type: { name: "Sequence", element: { @@ -2874,89 +3046,82 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, enableMultipleWriteLocations: { - serializedName: "properties.enableMultipleWriteLocations", + serializedName: "enableMultipleWriteLocations", type: { name: "Boolean" } }, enableCassandraConnector: { - serializedName: "properties.enableCassandraConnector", + serializedName: "enableCassandraConnector", type: { name: "Boolean" } }, connectorOffer: { - serializedName: "properties.connectorOffer", + serializedName: "connectorOffer", type: { name: "String" } }, disableKeyBasedMetadataWriteAccess: { - serializedName: "properties.disableKeyBasedMetadataWriteAccess", + serializedName: "disableKeyBasedMetadataWriteAccess", type: { name: "Boolean" } }, keyVaultKeyUri: { - serializedName: "properties.keyVaultKeyUri", + serializedName: "keyVaultKeyUri", type: { name: "String" } }, defaultIdentity: { - serializedName: "properties.defaultIdentity", + serializedName: "defaultIdentity", type: { name: "String" } }, publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + serializedName: "publicNetworkAccess", type: { name: "String" } }, enableFreeTier: { - serializedName: "properties.enableFreeTier", + serializedName: "enableFreeTier", type: { name: "Boolean" } }, apiProperties: { - serializedName: "properties.apiProperties", + serializedName: "apiProperties", type: { name: "Composite", className: "ApiProperties" } }, enableAnalyticalStorage: { - serializedName: "properties.enableAnalyticalStorage", + serializedName: "enableAnalyticalStorage", type: { name: "Boolean" } }, analyticalStorageConfiguration: { - serializedName: "properties.analyticalStorageConfiguration", + serializedName: "analyticalStorageConfiguration", type: { name: "Composite", className: "AnalyticalStorageConfiguration" } }, - createMode: { - serializedName: "properties.createMode", - defaultValue: 'Default', - type: { - name: "String" - } - }, backupPolicy: { - serializedName: "properties.backupPolicy", + serializedName: "backupPolicy", type: { name: "Composite", className: "BackupPolicy" } }, cors: { - serializedName: "properties.cors", + serializedName: "cors", type: { name: "Sequence", element: { @@ -2968,7 +3133,7 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, networkAclBypass: { - serializedName: "properties.networkAclBypass", + serializedName: "networkAclBypass", type: { name: "Enum", allowedValues: [ @@ -2978,7 +3143,7 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, networkAclBypassResourceIds: { - serializedName: "properties.networkAclBypassResourceIds", + serializedName: "networkAclBypassResourceIds", type: { name: "Sequence", element: { @@ -2988,53 +3153,64 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } } }, + diagnosticLogSettings: { + serializedName: "diagnosticLogSettings", + type: { + name: "Composite", + className: "DiagnosticLogSettings" + } + }, disableLocalAuth: { - serializedName: "properties.disableLocalAuth", + serializedName: "disableLocalAuth", type: { name: "Boolean" } }, restoreParameters: { - serializedName: "properties.restoreParameters", + serializedName: "restoreParameters", type: { name: "Composite", className: "RestoreParameters" } + }, + createMode: { + required: true, + serializedName: "createMode", + type: { + name: "String" + } } } } }; -export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { - serializedName: "DatabaseAccountUpdateParameters", +export const DefaultRequestDatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { + serializedName: "Default", type: { name: "Composite", - className: "DatabaseAccountUpdateParameters", + polymorphicDiscriminator: DatabaseAccountCreateUpdateProperties.type.polymorphicDiscriminator, + uberParent: "DatabaseAccountCreateUpdateProperties", + className: "DefaultRequestDatabaseAccountCreateUpdateProperties", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - location: { - serializedName: "location", + ...DatabaseAccountCreateUpdateProperties.type.modelProperties + } + } +}; + +export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { + serializedName: "DatabaseAccountCreateUpdateParameters", + type: { + name: "Composite", + className: "DatabaseAccountCreateUpdateParameters", + modelProperties: { + ...ARMResourceProperties.type.modelProperties, + kind: { + serializedName: "kind", + defaultValue: 'GlobalDocumentDB', type: { name: "String" } }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, consistencyPolicy: { serializedName: "properties.consistencyPolicy", type: { @@ -3043,6 +3219,7 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { } }, locations: { + required: true, serializedName: "properties.locations", type: { name: "Sequence", @@ -3054,6 +3231,15 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { } } }, + databaseAccountOfferType: { + required: true, + isConstant: true, + serializedName: "properties.databaseAccountOfferType", + defaultValue: 'Standard', + type: { + name: "String" + } + }, ipRules: { serializedName: "properties.ipRules", type: { @@ -3210,14 +3396,257 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { } } }, + diagnosticLogSettings: { + serializedName: "properties.diagnosticLogSettings", + type: { + name: "Composite", + className: "DiagnosticLogSettings" + } + }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", type: { name: "Boolean" } - } - } - } + }, + restoreParameters: { + serializedName: "properties.restoreParameters", + type: { + name: "Composite", + className: "RestoreParameters" + } + }, + createMode: { + required: true, + serializedName: "properties.createMode", + type: { + name: "String" + } + } + } + } +}; + +export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { + serializedName: "DatabaseAccountUpdateParameters", + type: { + name: "Composite", + className: "DatabaseAccountUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + consistencyPolicy: { + serializedName: "properties.consistencyPolicy", + type: { + name: "Composite", + className: "ConsistencyPolicy" + } + }, + locations: { + serializedName: "properties.locations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Location" + } + } + } + }, + ipRules: { + serializedName: "properties.ipRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpAddressOrRange" + } + } + } + }, + isVirtualNetworkFilterEnabled: { + serializedName: "properties.isVirtualNetworkFilterEnabled", + type: { + name: "Boolean" + } + }, + enableAutomaticFailover: { + serializedName: "properties.enableAutomaticFailover", + type: { + name: "Boolean" + } + }, + capabilities: { + serializedName: "properties.capabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Capability" + } + } + } + }, + virtualNetworkRules: { + serializedName: "properties.virtualNetworkRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkRule" + } + } + } + }, + enableMultipleWriteLocations: { + serializedName: "properties.enableMultipleWriteLocations", + type: { + name: "Boolean" + } + }, + enableCassandraConnector: { + serializedName: "properties.enableCassandraConnector", + type: { + name: "Boolean" + } + }, + connectorOffer: { + serializedName: "properties.connectorOffer", + type: { + name: "String" + } + }, + disableKeyBasedMetadataWriteAccess: { + serializedName: "properties.disableKeyBasedMetadataWriteAccess", + type: { + name: "Boolean" + } + }, + keyVaultKeyUri: { + serializedName: "properties.keyVaultKeyUri", + type: { + name: "String" + } + }, + defaultIdentity: { + serializedName: "properties.defaultIdentity", + type: { + name: "String" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + enableFreeTier: { + serializedName: "properties.enableFreeTier", + type: { + name: "Boolean" + } + }, + apiProperties: { + serializedName: "properties.apiProperties", + type: { + name: "Composite", + className: "ApiProperties" + } + }, + enableAnalyticalStorage: { + serializedName: "properties.enableAnalyticalStorage", + type: { + name: "Boolean" + } + }, + analyticalStorageConfiguration: { + serializedName: "properties.analyticalStorageConfiguration", + type: { + name: "Composite", + className: "AnalyticalStorageConfiguration" + } + }, + backupPolicy: { + serializedName: "properties.backupPolicy", + type: { + name: "Composite", + className: "BackupPolicy" + } + }, + cors: { + serializedName: "properties.cors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CorsPolicy" + } + } + } + }, + networkAclBypass: { + serializedName: "properties.networkAclBypass", + type: { + name: "Enum", + allowedValues: [ + "None", + "AzureServices" + ] + } + }, + networkAclBypassResourceIds: { + serializedName: "properties.networkAclBypassResourceIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + diagnosticLogSettings: { + serializedName: "properties.diagnosticLogSettings", + type: { + name: "Composite", + className: "DiagnosticLogSettings" + } + }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + type: { + name: "Boolean" + } + } + } + } }; export const DatabaseAccountListReadOnlyKeysResult: msRest.CompositeMapper = { @@ -3388,11 +3817,11 @@ export const ThroughputSettingsUpdateParameters: msRest.CompositeMapper = { } }; -export const SqlDatabaseResource: msRest.CompositeMapper = { - serializedName: "SqlDatabaseResource", +export const GraphResource: msRest.CompositeMapper = { + serializedName: "GraphResource", type: { name: "Composite", - className: "SqlDatabaseResource", + className: "GraphResource", modelProperties: { id: { required: true, @@ -3444,11 +3873,11 @@ export const CreateUpdateOptions: msRest.CompositeMapper = { } }; -export const SqlDatabaseCreateUpdateParameters: msRest.CompositeMapper = { - serializedName: "SqlDatabaseCreateUpdateParameters", +export const GraphResourceCreateUpdateParameters: msRest.CompositeMapper = { + serializedName: "GraphResourceCreateUpdateParameters", type: { name: "Composite", - className: "SqlDatabaseCreateUpdateParameters", + className: "GraphResourceCreateUpdateParameters", modelProperties: { ...ARMResourceProperties.type.modelProperties, resource: { @@ -3456,7 +3885,7 @@ export const SqlDatabaseCreateUpdateParameters: msRest.CompositeMapper = { serializedName: "properties.resource", type: { name: "Composite", - className: "SqlDatabaseResource" + className: "GraphResource" } }, options: { @@ -3470,11 +3899,11 @@ export const SqlDatabaseCreateUpdateParameters: msRest.CompositeMapper = { } }; -export const SqlContainerResource: msRest.CompositeMapper = { - serializedName: "SqlContainerResource", +export const SqlDatabaseResource: msRest.CompositeMapper = { + serializedName: "SqlDatabaseResource", type: { name: "Composite", - className: "SqlContainerResource", + className: "SqlDatabaseResource", modelProperties: { id: { required: true, @@ -3482,13 +3911,56 @@ export const SqlContainerResource: msRest.CompositeMapper = { type: { name: "String" } - }, - indexingPolicy: { - serializedName: "indexingPolicy", - type: { - name: "Composite", - className: "IndexingPolicy" - } + } + } + } +}; + +export const SqlDatabaseCreateUpdateParameters: msRest.CompositeMapper = { + serializedName: "SqlDatabaseCreateUpdateParameters", + type: { + name: "Composite", + className: "SqlDatabaseCreateUpdateParameters", + modelProperties: { + ...ARMResourceProperties.type.modelProperties, + resource: { + required: true, + serializedName: "properties.resource", + type: { + name: "Composite", + className: "SqlDatabaseResource" + } + }, + options: { + serializedName: "properties.options", + type: { + name: "Composite", + className: "CreateUpdateOptions" + } + } + } + } +}; + +export const SqlContainerResource: msRest.CompositeMapper = { + serializedName: "SqlContainerResource", + type: { + name: "Composite", + className: "SqlContainerResource", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + }, + indexingPolicy: { + serializedName: "indexingPolicy", + type: { + name: "Composite", + className: "IndexingPolicy" + } }, partitionKey: { serializedName: "partitionKey", @@ -4095,6 +4567,55 @@ export const GremlinGraphCreateUpdateParameters: msRest.CompositeMapper = { } }; +export const CassandraViewResource: msRest.CompositeMapper = { + serializedName: "CassandraViewResource", + type: { + name: "Composite", + className: "CassandraViewResource", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + }, + viewDefinition: { + serializedName: "viewDefinition", + type: { + name: "String" + } + } + } + } +}; + +export const CassandraViewCreateUpdateParameters: msRest.CompositeMapper = { + serializedName: "CassandraViewCreateUpdateParameters", + type: { + name: "Composite", + className: "CassandraViewCreateUpdateParameters", + modelProperties: { + ...ARMResourceProperties.type.modelProperties, + resource: { + required: true, + serializedName: "properties.resource", + type: { + name: "Composite", + className: "CassandraViewResource" + } + }, + options: { + serializedName: "properties.options", + type: { + name: "Composite", + className: "CreateUpdateOptions" + } + } + } + } +}; + export const OperationDisplay: msRest.CompositeMapper = { serializedName: "Operation_display", type: { @@ -4597,6 +5118,12 @@ export const PeriodicModeProperties: msRest.CompositeMapper = { type: { name: "Number" } + }, + backupStorageRedundancy: { + serializedName: "backupStorageRedundancy", + type: { + name: "String" + } } } } @@ -4635,6 +5162,67 @@ export const ContinuousModeBackupPolicy: msRest.CompositeMapper = { } }; +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 TrackedResource: msRest.CompositeMapper = { serializedName: "TrackedResource", type: { @@ -5447,43 +6035,766 @@ export const RestorableMongodbDatabasePropertiesResource: msRest.CompositeMapper readOnly: true, serializedName: "ownerResourceId", type: { - name: "String" + 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 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 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 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 RestorableMongodbDatabaseGetResult: msRest.CompositeMapper = { - serializedName: "RestorableMongodbDatabaseGetResult", +export const SqlDedicatedGatewayRegionalServiceResource: msRest.CompositeMapper = { + serializedName: "SqlDedicatedGatewayRegionalServiceResource", type: { name: "Composite", - className: "RestorableMongodbDatabaseGetResult", + className: "SqlDedicatedGatewayRegionalServiceResource", 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: { + ...RegionalServiceResource.type.modelProperties, + sqlDedicatedGatewayEndpoint: { readOnly: true, - serializedName: "type", + serializedName: "sqlDedicatedGatewayEndpoint", type: { name: "String" } @@ -5492,97 +6803,67 @@ export const RestorableMongodbDatabaseGetResult: msRest.CompositeMapper = { } }; -export const RestorableMongodbCollectionPropertiesResource: msRest.CompositeMapper = { - serializedName: "RestorableMongodbCollectionProperties_resource", +export const SqlDedicatedGatewayServiceResourceProperties: msRest.CompositeMapper = { + serializedName: "SqlDedicatedGatewayServiceResourceProperties", type: { name: "Composite", - className: "RestorableMongodbCollectionPropertiesResource", + polymorphicDiscriminator: ServiceResourceProperties.type.polymorphicDiscriminator, + uberParent: "ServiceResourceProperties", + className: "SqlDedicatedGatewayServiceResourceProperties", modelProperties: { - _rid: { - readOnly: true, - serializedName: "_rid", - type: { - name: "String" - } - }, - operationType: { - readOnly: true, - serializedName: "operationType", - type: { - name: "String" - } - }, - eventTimestamp: { - readOnly: true, - serializedName: "eventTimestamp", + ...ServiceResourceProperties.type.modelProperties, + sqlDedicatedGatewayEndpoint: { + serializedName: "sqlDedicatedGatewayEndpoint", type: { name: "String" } }, - ownerId: { - readOnly: true, - serializedName: "ownerId", - type: { - name: "String" - } - }, - ownerResourceId: { + locations: { readOnly: true, - serializedName: "ownerResourceId", + serializedName: "locations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlDedicatedGatewayRegionalServiceResource" + } + } } } - } + }, + additionalProperties: ServiceResourceProperties.type.additionalProperties } }; -export const RestorableMongodbCollectionGetResult: msRest.CompositeMapper = { - serializedName: "RestorableMongodbCollectionGetResult", +export const SqlDedicatedGatewayServiceResource: msRest.CompositeMapper = { + serializedName: "SqlDedicatedGatewayServiceResource", type: { name: "Composite", - className: "RestorableMongodbCollectionGetResult", + className: "SqlDedicatedGatewayServiceResource", modelProperties: { - resource: { - serializedName: "properties.resource", + properties: { + serializedName: "properties", 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" + className: "SqlDedicatedGatewayServiceResourceProperties", + additionalProperties: ServiceResourceProperties.type.additionalProperties } } } } }; -export const ContinuousBackupRestoreLocation: msRest.CompositeMapper = { - serializedName: "ContinuousBackupRestoreLocation", +export const GraphAPIComputeRegionalServiceResource: msRest.CompositeMapper = { + serializedName: "GraphAPIComputeRegionalServiceResource", type: { name: "Composite", - className: "ContinuousBackupRestoreLocation", + className: "GraphAPIComputeRegionalServiceResource", modelProperties: { - location: { - serializedName: "location", + ...RegionalServiceResource.type.modelProperties, + graphApiComputeEndpoint: { + readOnly: true, + serializedName: "graphApiComputeEndpoint", type: { name: "String" } @@ -5591,33 +6872,51 @@ export const ContinuousBackupRestoreLocation: msRest.CompositeMapper = { } }; -export const ContinuousBackupInformation: msRest.CompositeMapper = { - serializedName: "ContinuousBackupInformation", +export const GraphAPIComputeServiceResourceProperties: msRest.CompositeMapper = { + serializedName: "GraphAPIComputeServiceResourceProperties", type: { name: "Composite", - className: "ContinuousBackupInformation", + polymorphicDiscriminator: ServiceResourceProperties.type.polymorphicDiscriminator, + uberParent: "ServiceResourceProperties", + className: "GraphAPIComputeServiceResourceProperties", modelProperties: { - latestRestorableTimestamp: { - serializedName: "latestRestorableTimestamp", + ...ServiceResourceProperties.type.modelProperties, + graphApiComputeEndpoint: { + serializedName: "graphApiComputeEndpoint", type: { name: "String" } + }, + locations: { + readOnly: true, + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GraphAPIComputeRegionalServiceResource" + } + } + } } - } + }, + additionalProperties: ServiceResourceProperties.type.additionalProperties } }; -export const BackupInformation: msRest.CompositeMapper = { - serializedName: "BackupInformation", +export const GraphAPIComputeServiceResource: msRest.CompositeMapper = { + serializedName: "GraphAPIComputeServiceResource", type: { name: "Composite", - className: "BackupInformation", + className: "GraphAPIComputeServiceResource", modelProperties: { - continuousBackupInformation: { - serializedName: "continuousBackupInformation", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ContinuousBackupInformation" + className: "GraphAPIComputeServiceResourceProperties", + additionalProperties: ServiceResourceProperties.type.additionalProperties } } } @@ -5813,6 +7112,29 @@ export const PartitionUsagesResult: msRest.CompositeMapper = { } }; +export const GraphResourcesListResult: msRest.CompositeMapper = { + serializedName: "GraphResourcesListResult", + type: { + name: "Composite", + className: "GraphResourcesListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GraphResourceGetResults" + } + } + } + } + } + } +}; + export const SqlDatabaseListResult: msRest.CompositeMapper = { serializedName: "SqlDatabaseListResult", type: { @@ -6089,6 +7411,29 @@ export const CassandraTableListResult: msRest.CompositeMapper = { } }; +export const CassandraViewListResult: msRest.CompositeMapper = { + serializedName: "CassandraViewListResult", + type: { + name: "Composite", + className: "CassandraViewListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CassandraViewGetResults" + } + } + } + } + } + } +}; + export const GremlinDatabaseListResult: msRest.CompositeMapper = { serializedName: "GremlinDatabaseListResult", type: { @@ -6135,6 +7480,29 @@ export const GremlinGraphListResult: msRest.CompositeMapper = { } }; +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: { @@ -6362,9 +7730,106 @@ export const RestorableMongodbResourcesListResult: msRest.CompositeMapper = { } }; +export const ListClusters: msRest.CompositeMapper = { + serializedName: "ListClusters", + type: { + name: "Composite", + className: "ListClusters", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ClusterResource" + } + } + } + } + } + } +}; + +export const ListBackups: msRest.CompositeMapper = { + serializedName: "ListBackups", + 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 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, 'BackupPolicy.Periodic' : PeriodicModeBackupPolicy, - 'BackupPolicy.Continuous' : ContinuousModeBackupPolicy + 'BackupPolicy.Continuous' : ContinuousModeBackupPolicy, + 'ServiceResourceProperties' : ServiceResourceProperties, + 'ServiceResourceProperties.DataTransferServiceResourceProperties' : DataTransferServiceResourceProperties, + 'ServiceResourceProperties.SqlDedicatedGatewayServiceResourceProperties' : SqlDedicatedGatewayServiceResourceProperties, + 'ServiceResourceProperties.GraphAPIComputeServiceResourceProperties' : GraphAPIComputeServiceResourceProperties }; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts index c73facb9d248..b647b3360557 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts @@ -18,6 +18,8 @@ export { AzureEntityResource, BackupPolicy, BackupPolicyMigrationState, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,8 +34,16 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + CassandraViewCreateUpdateParameters, + CassandraViewGetPropertiesOptions, + CassandraViewGetPropertiesResource, + CassandraViewGetResults, + CassandraViewResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -45,8 +55,20 @@ export { DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DiagnosticLogSettings, ExcludedPath, FailoverPolicy, + GraphAPIComputeRegionalServiceResource, + GraphAPIComputeServiceResourceProperties, + GraphResource, + GraphResourceCreateUpdateParameters, + GraphResourceGetPropertiesOptions, + GraphResourceGetPropertiesResource, + GraphResourceGetResults, GremlinDatabaseCreateUpdateParameters, GremlinDatabaseGetPropertiesOptions, GremlinDatabaseGetPropertiesResource, @@ -62,6 +84,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -90,8 +114,12 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, RestoreParameters, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -103,6 +131,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts index 45263a69395d..6bec159bdba5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts @@ -18,6 +18,8 @@ export { AzureEntityResource, BackupPolicy, BackupPolicyMigrationState, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,7 +34,15 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + CassandraViewCreateUpdateParameters, + CassandraViewGetPropertiesOptions, + CassandraViewGetPropertiesResource, + CassandraViewGetResults, + CassandraViewResource, + Certificate, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -44,9 +54,21 @@ export { DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DiagnosticLogSettings, ErrorResponse, ExcludedPath, FailoverPolicy, + GraphAPIComputeRegionalServiceResource, + GraphAPIComputeServiceResourceProperties, + GraphResource, + GraphResourceCreateUpdateParameters, + GraphResourceGetPropertiesOptions, + GraphResourceGetPropertiesResource, + GraphResourceGetResults, GremlinDatabaseCreateUpdateParameters, GremlinDatabaseGetPropertiesOptions, GremlinDatabaseGetPropertiesResource, @@ -62,6 +84,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -90,8 +114,12 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, RestoreParameters, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -103,6 +131,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts index 4f855d9c9c7d..7375847720fd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts @@ -47,6 +47,36 @@ export const apiVersion: msRest.OperationQueryParameter = { } } }; +export const backupId: msRest.OperationURLParameter = { + parameterPath: "backupId", + mapper: { + required: true, + serializedName: "backupId", + constraints: { + MaxLength: 15, + MinLength: 1, + Pattern: /^[0-9]+$/ + }, + type: { + name: "String" + } + } +}; +export const clusterName: msRest.OperationURLParameter = { + parameterPath: "clusterName", + mapper: { + required: true, + serializedName: "clusterName", + constraints: { + MaxLength: 100, + MinLength: 1, + Pattern: /^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$/ + }, + type: { + name: "String" + } + } +}; export const collectionName: msRest.OperationURLParameter = { parameterPath: "collectionName", mapper: { @@ -97,6 +127,21 @@ 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", @@ -316,6 +361,20 @@ 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: { @@ -401,3 +460,13 @@ export const userDefinedFunctionName: msRest.OperationURLParameter = { } } }; +export const viewName: msRest.OperationURLParameter = { + parameterPath: "viewName", + mapper: { + required: true, + serializedName: "viewName", + type: { + name: "String" + } + } +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts index 500f1515fa90..6579b786a5ee 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts @@ -18,6 +18,8 @@ export { AzureEntityResource, BackupPolicy, BackupPolicyMigrationState, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,8 +34,16 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + CassandraViewCreateUpdateParameters, + CassandraViewGetPropertiesOptions, + CassandraViewGetPropertiesResource, + CassandraViewGetResults, + CassandraViewResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -45,9 +55,21 @@ export { DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DiagnosticLogSettings, ErrorResponse, ExcludedPath, FailoverPolicy, + GraphAPIComputeRegionalServiceResource, + GraphAPIComputeServiceResourceProperties, + GraphResource, + GraphResourceCreateUpdateParameters, + GraphResourceGetPropertiesOptions, + GraphResourceGetPropertiesResource, + GraphResourceGetResults, GremlinDatabaseCreateUpdateParameters, GremlinDatabaseGetPropertiesOptions, GremlinDatabaseGetPropertiesResource, @@ -63,6 +85,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -90,8 +114,12 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, RestoreParameters, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -103,6 +131,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts index c8112dbedc58..d3ce308e32f1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts @@ -18,6 +18,8 @@ export { AzureEntityResource, BackupPolicy, BackupPolicyMigrationState, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,8 +34,16 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + CassandraViewCreateUpdateParameters, + CassandraViewGetPropertiesOptions, + CassandraViewGetPropertiesResource, + CassandraViewGetResults, + CassandraViewResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -45,8 +55,20 @@ export { DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DiagnosticLogSettings, ExcludedPath, FailoverPolicy, + GraphAPIComputeRegionalServiceResource, + GraphAPIComputeServiceResourceProperties, + GraphResource, + GraphResourceCreateUpdateParameters, + GraphResourceGetPropertiesOptions, + GraphResourceGetPropertiesResource, + GraphResourceGetResults, GremlinDatabaseCreateUpdateParameters, GremlinDatabaseGetPropertiesOptions, GremlinDatabaseGetPropertiesResource, @@ -62,6 +84,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -89,8 +113,12 @@ export { PrivateLinkResourceListResult, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, RestoreParameters, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -102,6 +130,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/serviceMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/serviceMappers.ts new file mode 100644 index 000000000000..845c076e87fa --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/serviceMappers.ts @@ -0,0 +1,165 @@ +/* + * 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, + AnalyticalStorageConfiguration, + ApiProperties, + ARMProxyResource, + ARMResourceProperties, + AutoscaleSettings, + AutoscaleSettingsResource, + AutoUpgradePolicyResource, + AzureEntityResource, + BackupPolicy, + BackupPolicyMigrationState, + BackupResource, + BackupResourceProperties, + BaseResource, + Capability, + CassandraKeyspaceCreateUpdateParameters, + CassandraKeyspaceGetPropertiesOptions, + CassandraKeyspaceGetPropertiesResource, + CassandraKeyspaceGetResults, + CassandraKeyspaceResource, + CassandraPartitionKey, + CassandraSchema, + CassandraTableCreateUpdateParameters, + CassandraTableGetPropertiesOptions, + CassandraTableGetPropertiesResource, + CassandraTableGetResults, + CassandraTableResource, + CassandraViewCreateUpdateParameters, + CassandraViewGetPropertiesOptions, + CassandraViewGetPropertiesResource, + CassandraViewGetResults, + CassandraViewResource, + Certificate, + CloudError, + ClusterKey, + ClusterResource, + ClusterResourceProperties, + Column, + CompositePath, + ConflictResolutionPolicy, + ConsistencyPolicy, + ContainerPartitionKey, + ContinuousModeBackupPolicy, + CorsPolicy, + CreateUpdateOptions, + DatabaseAccountCreateUpdateParameters, + DatabaseAccountGetResults, + DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DiagnosticLogSettings, + ErrorResponse, + ExcludedPath, + FailoverPolicy, + GraphAPIComputeRegionalServiceResource, + GraphAPIComputeServiceResourceProperties, + GraphResource, + GraphResourceCreateUpdateParameters, + GraphResourceGetPropertiesOptions, + GraphResourceGetPropertiesResource, + GraphResourceGetResults, + 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, + 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 3f3a227e7c40..ffb81dd2fd29 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts @@ -19,6 +19,8 @@ export { BackupInformation, BackupPolicy, BackupPolicyMigrationState, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -33,8 +35,16 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + CassandraViewCreateUpdateParameters, + CassandraViewGetPropertiesOptions, + CassandraViewGetPropertiesResource, + CassandraViewGetResults, + CassandraViewResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -48,8 +58,20 @@ export { DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DiagnosticLogSettings, ExcludedPath, FailoverPolicy, + GraphAPIComputeRegionalServiceResource, + GraphAPIComputeServiceResourceProperties, + GraphResource, + GraphResourceCreateUpdateParameters, + GraphResourceGetPropertiesOptions, + GraphResourceGetPropertiesResource, + GraphResourceGetResults, GremlinDatabaseCreateUpdateParameters, GremlinDatabaseGetPropertiesOptions, GremlinDatabaseGetPropertiesResource, @@ -65,6 +87,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -91,8 +115,12 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, RestoreParameters, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -106,6 +134,8 @@ export { SqlDatabaseGetResults, SqlDatabaseListResult, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentCreateUpdateParameters, SqlRoleAssignmentGetResults, SqlRoleAssignmentListResult, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts index 5637ba10e4b3..a281487bfb78 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts @@ -18,6 +18,8 @@ export { AzureEntityResource, BackupPolicy, BackupPolicyMigrationState, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,8 +34,16 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + CassandraViewCreateUpdateParameters, + CassandraViewGetPropertiesOptions, + CassandraViewGetPropertiesResource, + CassandraViewGetResults, + CassandraViewResource, + Certificate, CloudError, ClusterKey, + ClusterResource, + ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -45,8 +55,20 @@ export { DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, DatabaseRestoreResource, + DataCenterResource, + DataCenterResourceProperties, + DataTransferRegionalServiceResource, + DataTransferServiceResourceProperties, + DiagnosticLogSettings, ExcludedPath, FailoverPolicy, + GraphAPIComputeRegionalServiceResource, + GraphAPIComputeServiceResourceProperties, + GraphResource, + GraphResourceCreateUpdateParameters, + GraphResourceGetPropertiesOptions, + GraphResourceGetPropertiesResource, + GraphResourceGetResults, GremlinDatabaseCreateUpdateParameters, GremlinDatabaseGetPropertiesOptions, GremlinDatabaseGetPropertiesResource, @@ -62,6 +84,8 @@ export { IndexingPolicy, IpAddressOrRange, Location, + LocationGetResult, + LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -88,8 +112,12 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, + RegionalServiceResource, Resource, RestoreParameters, + SeedNode, + ServiceResource, + ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -101,6 +129,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlDedicatedGatewayRegionalServiceResource, + SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts new file mode 100644 index 000000000000..40be501ddd67 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts @@ -0,0 +1,616 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/cassandraClustersMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a CassandraClusters. */ +export class CassandraClusters { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a CassandraClusters. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * List all managed Cassandra clusters in this subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * List all managed Cassandra clusters in this resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Get the properties of a managed Cassandra cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes a managed Cassandra cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,clusterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Create or update a managed Cassandra cluster. When updating, you must specify all writable + * properties. To update only some properties, use PATCH. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param body The properties specifying the desired state of the managed Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + createUpdate(resourceGroupName: string, clusterName: string, body: Models.ClusterResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdate(resourceGroupName,clusterName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates some of the properties of a managed Cassandra cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param body Parameters to provide for specifying the managed Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, clusterName: string, body: Models.ClusterResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,clusterName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Request that repair begin on this cluster as soon as possible. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param body Specification of what keyspaces and tables to run repair on. + * @param [options] The optional parameters + * @returns Promise + */ + requestRepair(resourceGroupName: string, clusterName: string, body: Models.RepairPostBody, options?: msRest.RequestOptionsBase): Promise { + return this.beginRequestRepair(resourceGroupName,clusterName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Request the status of all nodes in the cluster (as returned by 'nodetool status'). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param [options] The optional parameters + * @returns Promise + */ + fetchNodeStatus(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginFetchNodeStatus(resourceGroupName,clusterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * List the backups of this cluster that are available to restore. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param [options] The optional parameters + * @returns Promise + */ + listBackupsMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param callback The callback + */ + listBackupsMethod(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param options The optional parameters + * @param callback The callback + */ + listBackupsMethod(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBackupsMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + options + }, + listBackupsMethodOperationSpec, + callback) as Promise; + } + + /** + * Get the properties of an individual backup of this cluster that is available to restore. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param backupId Id of a restorable backup of a Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + getBackup(resourceGroupName: string, clusterName: string, backupId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param backupId Id of a restorable backup of a Cassandra cluster. + * @param callback The callback + */ + getBackup(resourceGroupName: string, clusterName: string, backupId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param backupId Id of a restorable backup of a Cassandra cluster. + * @param options The optional parameters + * @param callback The callback + */ + getBackup(resourceGroupName: string, clusterName: string, backupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getBackup(resourceGroupName: string, clusterName: string, backupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + backupId, + options + }, + getBackupOperationSpec, + callback) as Promise; + } + + /** + * Deletes a managed Cassandra cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Create or update a managed Cassandra cluster. When updating, you must specify all writable + * properties. To update only some properties, use PATCH. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param body The properties specifying the desired state of the managed Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateUpdate(resourceGroupName: string, clusterName: string, body: Models.ClusterResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + body, + options + }, + beginCreateUpdateOperationSpec, + options); + } + + /** + * Updates some of the properties of a managed Cassandra cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param body Parameters to provide for specifying the managed Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, clusterName: string, body: Models.ClusterResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + body, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Request that repair begin on this cluster as soon as possible. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param body Specification of what keyspaces and tables to run repair on. + * @param [options] The optional parameters + * @returns Promise + */ + beginRequestRepair(resourceGroupName: string, clusterName: string, body: Models.RepairPostBody, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + body, + options + }, + beginRequestRepairOperationSpec, + options); + } + + /** + * Request the status of all nodes in the cluster (as returned by 'nodetool status'). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param [options] The optional parameters + * @returns Promise + */ + beginFetchNodeStatus(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + options + }, + beginFetchNodeStatusOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/cassandraClusters", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListClusters + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListClusters + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClusterResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBackupsMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListBackups + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getBackupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups/{backupId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.backupId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackupResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ClusterResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ClusterResource + }, + 201: { + bodyMapper: Mappers.ClusterResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ClusterResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ClusterResource + }, + 202: { + bodyMapper: Mappers.ClusterResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRequestRepairOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/repair", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.RepairPostBody, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginFetchNodeStatusOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/fetchNodeStatus", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClusterNodeStatus + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts new file mode 100644 index 000000000000..3356998a5e46 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts @@ -0,0 +1,353 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/cassandraDataCentersMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a CassandraDataCenters. */ +export class CassandraDataCenters { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a CassandraDataCenters. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * List all data centers in a particular managed Cassandra cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param callback The callback + */ + list(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get the properties of a managed Cassandra data center. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, clusterName: string, dataCenterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, dataCenterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, dataCenterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterName: string, dataCenterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + dataCenterName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Delete a managed Cassandra data center. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, clusterName: string, dataCenterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,clusterName,dataCenterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Create or update a managed Cassandra data center. When updating, overwrite all properties. To + * update only some properties, use PATCH. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param body Parameters specifying the managed Cassandra data center. + * @param [options] The optional parameters + * @returns Promise + */ + createUpdate(resourceGroupName: string, clusterName: string, dataCenterName: string, body: Models.DataCenterResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdate(resourceGroupName,clusterName,dataCenterName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Update some of the properties of a managed Cassandra data center. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param body Parameters to provide for specifying the managed Cassandra data center. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, clusterName: string, dataCenterName: string, body: Models.DataCenterResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,clusterName,dataCenterName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete a managed Cassandra data center. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, clusterName: string, dataCenterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + dataCenterName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Create or update a managed Cassandra data center. When updating, overwrite all properties. To + * update only some properties, use PATCH. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param body Parameters specifying the managed Cassandra data center. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateUpdate(resourceGroupName: string, clusterName: string, dataCenterName: string, body: Models.DataCenterResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + dataCenterName, + body, + options + }, + beginCreateUpdateOperationSpec, + options); + } + + /** + * Update some of the properties of a managed Cassandra data center. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param body Parameters to provide for specifying the managed Cassandra data center. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, clusterName: string, dataCenterName: string, body: Models.DataCenterResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + dataCenterName, + body, + options + }, + beginUpdateOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListDataCenters + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.dataCenterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCenterResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.dataCenterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.dataCenterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.DataCenterResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataCenterResource + }, + 201: { + bodyMapper: Mappers.DataCenterResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.dataCenterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.DataCenterResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataCenterResource + }, + 202: { + bodyMapper: Mappers.DataCenterResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts index cc3d315664f3..62b604c64cd4 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts @@ -392,6 +392,197 @@ export class CassandraResources { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Lists the Cassandra materialized views under an existing Azure Cosmos DB database account. + * @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 [options] The optional parameters + * @returns Promise + */ + listCassandraViews(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 + */ + listCassandraViews(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. + * @param keyspaceName Cosmos DB keyspace name. + * @param options The optional parameters + * @param callback The callback + */ + listCassandraViews(resourceGroupName: string, accountName: string, keyspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCassandraViews(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + keyspaceName, + options + }, + listCassandraViewsOperationSpec, + callback) as Promise; + } + + /** + * Gets the Cassandra view under an existing Azure Cosmos DB database account. + * @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 viewName Cosmos DB view name. + * @param [options] The optional parameters + * @returns Promise + */ + getCassandraView(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: 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 viewName Cosmos DB view name. + * @param callback The callback + */ + getCassandraView(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: 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 keyspaceName Cosmos DB keyspace name. + * @param viewName Cosmos DB view name. + * @param options The optional parameters + * @param callback The callback + */ + getCassandraView(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCassandraView(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + keyspaceName, + viewName, + options + }, + getCassandraViewOperationSpec, + callback) as Promise; + } + + /** + * Create or update an Azure Cosmos DB Cassandra View + * @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 viewName Cosmos DB view name. + * @param createUpdateCassandraViewParameters The parameters to provide for the current Cassandra + * View. + * @param [options] The optional parameters + * @returns Promise + */ + createUpdateCassandraView(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, createUpdateCassandraViewParameters: Models.CassandraViewCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateCassandraView(resourceGroupName,accountName,keyspaceName,viewName,createUpdateCassandraViewParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes an existing Azure Cosmos DB Cassandra view. + * @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 viewName Cosmos DB view name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteCassandraView(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteCassandraView(resourceGroupName,accountName,keyspaceName,viewName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets the RUs per second of the Cassandra view under an existing Azure Cosmos DB database account + * with the provided name. + * @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 viewName Cosmos DB view name. + * @param [options] The optional parameters + * @returns Promise + */ + getCassandraViewThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: 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 viewName Cosmos DB view name. + * @param callback The callback + */ + getCassandraViewThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: 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 keyspaceName Cosmos DB keyspace name. + * @param viewName Cosmos DB view name. + * @param options The optional parameters + * @param callback The callback + */ + getCassandraViewThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCassandraViewThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + keyspaceName, + viewName, + options + }, + getCassandraViewThroughputOperationSpec, + callback) as Promise; + } + + /** + * Update RUs per second of an Azure Cosmos DB Cassandra view + * @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 viewName Cosmos DB view name. + * @param updateThroughputParameters The RUs per second of the parameters to provide for the + * current Cassandra view. + * @param [options] The optional parameters + * @returns Promise + */ + updateCassandraViewThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateCassandraViewThroughput(resourceGroupName,accountName,keyspaceName,viewName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Migrate an Azure Cosmos DB Cassandra view from manual throughput to autoscale + * @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 viewName Cosmos DB view name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateCassandraViewToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateCassandraViewToAutoscale(resourceGroupName,accountName,keyspaceName,viewName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Migrate an Azure Cosmos DB Cassandra view from autoscale to manual throughput + * @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 viewName Cosmos DB view name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateCassandraViewToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateCassandraViewToManualThroughput(resourceGroupName,accountName,keyspaceName,viewName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Create or update an Azure Cosmos DB Cassandra keyspace * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -613,6 +804,122 @@ export class CassandraResources { beginMigrateCassandraTableToManualThroughputOperationSpec, options); } + + /** + * Create or update an Azure Cosmos DB Cassandra View + * @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 viewName Cosmos DB view name. + * @param createUpdateCassandraViewParameters The parameters to provide for the current Cassandra + * View. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateUpdateCassandraView(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, createUpdateCassandraViewParameters: Models.CassandraViewCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + keyspaceName, + viewName, + createUpdateCassandraViewParameters, + options + }, + beginCreateUpdateCassandraViewOperationSpec, + options); + } + + /** + * Deletes an existing Azure Cosmos DB Cassandra view. + * @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 viewName Cosmos DB view name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteCassandraView(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + keyspaceName, + viewName, + options + }, + beginDeleteCassandraViewOperationSpec, + options); + } + + /** + * Update RUs per second of an Azure Cosmos DB Cassandra view + * @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 viewName Cosmos DB view name. + * @param updateThroughputParameters The RUs per second of the parameters to provide for the + * current Cassandra view. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateCassandraViewThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + keyspaceName, + viewName, + updateThroughputParameters, + options + }, + beginUpdateCassandraViewThroughputOperationSpec, + options); + } + + /** + * Migrate an Azure Cosmos DB Cassandra view from manual throughput to autoscale + * @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 viewName Cosmos DB view name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateCassandraViewToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + keyspaceName, + viewName, + options + }, + beginMigrateCassandraViewToAutoscaleOperationSpec, + options); + } + + /** + * Migrate an Azure Cosmos DB Cassandra view from autoscale to manual throughput + * @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 viewName Cosmos DB view name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateCassandraViewToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + keyspaceName, + viewName, + options + }, + beginMigrateCassandraViewToManualThroughputOperationSpec, + options); + } } // Operation Specifications @@ -774,6 +1081,86 @@ const getCassandraTableThroughputOperationSpec: msRest.OperationSpec = { serializer }; +const listCassandraViewsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.keyspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CassandraViewListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getCassandraViewOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.keyspaceName, + Parameters.viewName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CassandraViewGetResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getCassandraViewThroughputOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}/throughputSettings/default", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.keyspaceName, + Parameters.viewName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateUpdateCassandraKeyspaceOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}", @@ -1072,3 +1459,156 @@ const beginMigrateCassandraTableToManualThroughputOperationSpec: msRest.Operatio }, serializer }; + +const beginCreateUpdateCassandraViewOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.keyspaceName, + Parameters.viewName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "createUpdateCassandraViewParameters", + mapper: { + ...Mappers.CassandraViewCreateUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CassandraViewGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteCassandraViewOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.keyspaceName, + Parameters.viewName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateCassandraViewThroughputOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}/throughputSettings/default", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.keyspaceName, + Parameters.viewName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "updateThroughputParameters", + mapper: { + ...Mappers.ThroughputSettingsUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginMigrateCassandraViewToAutoscaleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}/throughputSettings/default/migrateToAutoscale", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.keyspaceName, + Parameters.viewName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginMigrateCassandraViewToManualThroughputOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}/throughputSettings/default/migrateToManualThroughput", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.keyspaceName, + Parameters.viewName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/graphResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/graphResources.ts new file mode 100644 index 000000000000..e55bbf49c47f --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/graphResources.ts @@ -0,0 +1,279 @@ +/* + * 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/graphResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a GraphResources. */ +export class GraphResources { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a GraphResources. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Lists the graphs under an existing Azure Cosmos DB database account. + * @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 + */ + listGraphs(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 + */ + listGraphs(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 + */ + listGraphs(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listGraphs(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listGraphsOperationSpec, + callback) as Promise; + } + + /** + * Gets the Graph resource under an existing Azure Cosmos DB database account with the provided + * name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param graphName Cosmos DB graph resource name. + * @param [options] The optional parameters + * @returns Promise + */ + getGraph(resourceGroupName: string, accountName: 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. + * @param graphName Cosmos DB graph resource name. + * @param callback The callback + */ + getGraph(resourceGroupName: string, accountName: 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. + * @param graphName Cosmos DB graph resource name. + * @param options The optional parameters + * @param callback The callback + */ + getGraph(resourceGroupName: string, accountName: string, graphName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getGraph(resourceGroupName: string, accountName: string, graphName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + graphName, + options + }, + getGraphOperationSpec, + callback) as Promise; + } + + /** + * Create or update an Azure Cosmos DB Graph. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param graphName Cosmos DB graph resource name. + * @param createUpdateGraphParameters The parameters to provide for the current graph. + * @param [options] The optional parameters + * @returns Promise + */ + createUpdateGraph(resourceGroupName: string, accountName: string, graphName: string, createUpdateGraphParameters: Models.GraphResourceCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateGraph(resourceGroupName,accountName,graphName,createUpdateGraphParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes an existing Azure Cosmos DB Graph Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param graphName Cosmos DB graph resource name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteGraphResource(resourceGroupName: string, accountName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteGraphResource(resourceGroupName,accountName,graphName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Create or update an Azure Cosmos DB Graph. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param graphName Cosmos DB graph resource name. + * @param createUpdateGraphParameters The parameters to provide for the current graph. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateUpdateGraph(resourceGroupName: string, accountName: string, graphName: string, createUpdateGraphParameters: Models.GraphResourceCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + graphName, + createUpdateGraphParameters, + options + }, + beginCreateUpdateGraphOperationSpec, + options); + } + + /** + * Deletes an existing Azure Cosmos DB Graph Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param graphName Cosmos DB graph resource name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteGraphResource(resourceGroupName: string, accountName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + graphName, + options + }, + beginDeleteGraphResourceOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listGraphsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/graphs", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GraphResourcesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getGraphOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/graphs/{graphName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.graphName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GraphResourceGetResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateUpdateGraphOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/graphs/{graphName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.graphName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "createUpdateGraphParameters", + mapper: { + ...Mappers.GraphResourceCreateUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.GraphResourceGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteGraphResourceOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/graphs/{graphName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.graphName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts index 3641d33ef32a..4061dfe8a027 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts @@ -20,6 +20,7 @@ export * from "./collectionPartitionRegion"; export * from "./collectionPartition"; export * from "./partitionKeyRangeId"; export * from "./partitionKeyRangeIdRegion"; +export * from "./graphResources"; export * from "./sqlResources"; export * from "./mongoDBResources"; export * from "./tableResources"; @@ -35,3 +36,6 @@ export * from "./restorableSqlResources"; export * from "./restorableMongodbDatabases"; export * from "./restorableMongodbCollections"; export * from "./restorableMongodbResources"; +export * from "./cassandraClusters"; +export * from "./cassandraDataCenters"; +export * from "./service"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/service.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/service.ts new file mode 100644 index 000000000000..b6dcd1a688d2 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/service.ts @@ -0,0 +1,278 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/serviceMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a Service. */ +export class Service { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a Service. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Gets the status of service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param callback The callback + */ + list(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Creates a service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param serviceName Cosmos DB service name. + * @param createUpdateParameters The Service resource parameters. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, serviceName: string, createUpdateParameters: Models.ServiceResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,accountName,serviceName,createUpdateParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets the status of service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param serviceName Cosmos DB service name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param serviceName Cosmos DB service name. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param serviceName Cosmos DB service name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + serviceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes service with the given serviceName. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param serviceName Cosmos DB service name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,serviceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Creates a service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param serviceName Cosmos DB service name. + * @param createUpdateParameters The Service resource parameters. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, accountName: string, serviceName: string, createUpdateParameters: Models.ServiceResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + serviceName, + createUpdateParameters, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * Deletes service with the given serviceName. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param serviceName Cosmos DB service name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, accountName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + serviceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServiceResourceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServiceResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "createUpdateParameters", + mapper: { + ...Mappers.ServiceResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ServiceResource + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +};