From 7763904df4894fd7a860690dfc02dcc8b93b959e Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 18 Apr 2023 17:13:22 +0000 Subject: [PATCH] CodeGen from PR 23532 in Azure/azure-rest-api-specs Merge 9a56104231073c25f496a7cd6947d00cd6b0320f into 351c8598465737e5a64dd4b65b57738dc8cf9bf7 --- sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md | 217 +- sdk/cosmosdb/arm-cosmosdb/README.md | 2 +- sdk/cosmosdb/arm-cosmosdb/_meta.json | 8 +- sdk/cosmosdb/arm-cosmosdb/package.json | 14 +- .../arm-cosmosdb/review/arm-cosmosdb.api.md | 754 +---- .../src/cosmosDBManagementClient.ts | 12 +- sdk/cosmosdb/arm-cosmosdb/src/models/index.ts | 1330 ++------ .../arm-cosmosdb/src/models/mappers.ts | 2740 +++++------------ .../arm-cosmosdb/src/models/parameters.ts | 118 +- .../src/operations/cassandraClusters.ts | 148 - .../src/operations/cassandraResources.ts | 891 +----- .../src/operations/dataTransferJobs.ts | 427 --- .../src/operations/graphResources.ts | 424 --- .../src/operations/gremlinResources.ts | 32 +- .../arm-cosmosdb/src/operations/index.ts | 2 - .../src/operations/mongoDBResources.ts | 771 ----- .../src/operations/sqlResources.ts | 999 +----- .../operationsInterfaces/cassandraClusters.ts | 28 - .../cassandraResources.ts | 244 +- .../operationsInterfaces/dataTransferJobs.ts | 107 - .../operationsInterfaces/graphResources.ts | 110 - .../src/operationsInterfaces/index.ts | 2 - .../operationsInterfaces/mongoDBResources.ts | 222 -- .../src/operationsInterfaces/sqlResources.ts | 296 +- sdk/cosmosdb/arm-cosmosdb/test/sampleTest.ts | 43 + sdk/cosmosdb/arm-cosmosdb/tsconfig.json | 10 +- 26 files changed, 1420 insertions(+), 8531 deletions(-) delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/dataTransferJobs.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/graphResources.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/dataTransferJobs.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/graphResources.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/test/sampleTest.ts diff --git a/sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md b/sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md index 4ba61e164393..f84785e6384f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md +++ b/sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md @@ -1,212 +1,37 @@ # Release History - -## 15.4.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 15.4.0-beta.1 (2023-03-10) + +## 15.4.0 (2023-04-18) **Features** - - Added operation group DataTransferJobs - - Added operation group GraphResources - - Added operation CassandraClusters.getBackup - - Added operation CassandraClusters.listBackups - - Added operation CassandraResources.beginCreateUpdateCassandraView - - Added operation CassandraResources.beginCreateUpdateCassandraViewAndWait - - Added operation CassandraResources.beginDeleteCassandraView - - Added operation CassandraResources.beginDeleteCassandraViewAndWait - - Added operation CassandraResources.beginMigrateCassandraViewToAutoscale - - Added operation CassandraResources.beginMigrateCassandraViewToAutoscaleAndWait - - Added operation CassandraResources.beginMigrateCassandraViewToManualThroughput - - Added operation CassandraResources.beginMigrateCassandraViewToManualThroughputAndWait - - Added operation CassandraResources.beginUpdateCassandraViewThroughput - - Added operation CassandraResources.beginUpdateCassandraViewThroughputAndWait - - Added operation CassandraResources.getCassandraView - - Added operation CassandraResources.getCassandraViewThroughput - - Added operation CassandraResources.listCassandraViews - - Added operation MongoDBResources.beginListMongoDBCollectionPartitionMerge - - Added operation MongoDBResources.beginListMongoDBCollectionPartitionMergeAndWait - - Added operation MongoDBResources.beginMongoDBContainerRedistributeThroughput - - Added operation MongoDBResources.beginMongoDBContainerRedistributeThroughputAndWait - - Added operation MongoDBResources.beginMongoDBContainerRetrieveThroughputDistribution - - Added operation MongoDBResources.beginMongoDBContainerRetrieveThroughputDistributionAndWait - - Added operation MongoDBResources.beginMongoDBDatabaseRedistributeThroughput - - Added operation MongoDBResources.beginMongoDBDatabaseRedistributeThroughputAndWait - - Added operation MongoDBResources.beginMongoDBDatabaseRetrieveThroughputDistribution - - Added operation MongoDBResources.beginMongoDBDatabaseRetrieveThroughputDistributionAndWait - - Added operation SqlResources.beginListSqlContainerPartitionMerge - - Added operation SqlResources.beginListSqlContainerPartitionMergeAndWait - - Added operation SqlResources.beginSqlContainerRedistributeThroughput - - Added operation SqlResources.beginSqlContainerRedistributeThroughputAndWait - - Added operation SqlResources.beginSqlContainerRetrieveThroughputDistribution - - Added operation SqlResources.beginSqlContainerRetrieveThroughputDistributionAndWait - - Added operation SqlResources.beginSqlDatabaseRedistributeThroughput - - Added operation SqlResources.beginSqlDatabaseRedistributeThroughputAndWait - - Added operation SqlResources.beginSqlDatabaseRetrieveThroughputDistribution - - Added operation SqlResources.beginSqlDatabaseRetrieveThroughputDistributionAndWait - Added Interface AuthenticationMethodLdapProperties - - Added Interface AzureBlobDataTransferDataSourceSink - - Added Interface BackupResource - - Added Interface BackupResourceProperties - - Added Interface CassandraClustersGetBackupOptionalParams - - Added Interface CassandraClustersListBackupsOptionalParams - - Added Interface CassandraResourcesCreateUpdateCassandraViewHeaders - - Added Interface CassandraResourcesCreateUpdateCassandraViewOptionalParams - - Added Interface CassandraResourcesDeleteCassandraViewHeaders - - Added Interface CassandraResourcesDeleteCassandraViewOptionalParams - - Added Interface CassandraResourcesGetCassandraViewOptionalParams - - Added Interface CassandraResourcesGetCassandraViewThroughputOptionalParams - - Added Interface CassandraResourcesListCassandraViewsOptionalParams - - Added Interface CassandraResourcesMigrateCassandraViewToAutoscaleHeaders - - Added Interface CassandraResourcesMigrateCassandraViewToAutoscaleOptionalParams - - Added Interface CassandraResourcesMigrateCassandraViewToManualThroughputHeaders - - Added Interface CassandraResourcesMigrateCassandraViewToManualThroughputOptionalParams - - Added Interface CassandraResourcesUpdateCassandraViewThroughputHeaders - - Added Interface CassandraResourcesUpdateCassandraViewThroughputOptionalParams - - Added Interface CassandraViewCreateUpdateParameters - - Added Interface CassandraViewGetPropertiesOptions - - Added Interface CassandraViewGetPropertiesResource - - Added Interface CassandraViewGetResults - - Added Interface CassandraViewListResult - - Added Interface CassandraViewResource + - Added Interface CassandraError - Added Interface ContinuousModeProperties - - Added Interface CosmosCassandraDataTransferDataSourceSink - - Added Interface CosmosSqlDataTransferDataSourceSink - - Added Interface CreateJobRequest - - Added Interface DataTransferDataSourceSink - - Added Interface DataTransferJobFeedResults - - Added Interface DataTransferJobGetResults - - Added Interface DataTransferJobProperties - - Added Interface DataTransferJobsCancelOptionalParams - - Added Interface DataTransferJobsCreateOptionalParams - - Added Interface DataTransferJobsGetOptionalParams - - Added Interface DataTransferJobsListByDatabaseAccountNextOptionalParams - - Added Interface DataTransferJobsListByDatabaseAccountOptionalParams - - Added Interface DataTransferJobsPauseOptionalParams - - Added Interface DataTransferJobsResumeOptionalParams - - Added Interface DiagnosticLogSettings - - Added Interface GraphResource - - Added Interface GraphResourceCreateUpdateParameters - - Added Interface GraphResourceGetPropertiesOptions - - Added Interface GraphResourceGetPropertiesResource - - Added Interface GraphResourceGetResults - - Added Interface GraphResourcesCreateUpdateGraphHeaders - - Added Interface GraphResourcesCreateUpdateGraphOptionalParams - - Added Interface GraphResourcesDeleteGraphResourceHeaders - - Added Interface GraphResourcesDeleteGraphResourceOptionalParams - - Added Interface GraphResourcesGetGraphOptionalParams - - Added Interface GraphResourcesListGraphsOptionalParams - - Added Interface GraphResourcesListResult - - Added Interface ListBackups - - Added Interface MergeParameters - - Added Interface MongoDBResourcesListMongoDBCollectionPartitionMergeHeaders - - Added Interface MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams - - Added Interface MongoDBResourcesMongoDBContainerRedistributeThroughputHeaders - - Added Interface MongoDBResourcesMongoDBContainerRedistributeThroughputOptionalParams - - Added Interface MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionHeaders - - Added Interface MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionOptionalParams - - Added Interface MongoDBResourcesMongoDBDatabaseRedistributeThroughputHeaders - - Added Interface MongoDBResourcesMongoDBDatabaseRedistributeThroughputOptionalParams - - Added Interface MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionHeaders - - Added Interface MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionOptionalParams - - Added Interface PhysicalPartitionId - - Added Interface PhysicalPartitionStorageInfo - - Added Interface PhysicalPartitionStorageInfoCollection - - Added Interface PhysicalPartitionThroughputInfoProperties - - Added Interface PhysicalPartitionThroughputInfoResource - - Added Interface PhysicalPartitionThroughputInfoResult - - Added Interface PhysicalPartitionThroughputInfoResultPropertiesResource - - Added Interface RedistributeThroughputParameters - - Added Interface RedistributeThroughputPropertiesResource - - Added Interface ResourceRestoreParameters - - Added Interface RestoreParametersBase - - Added Interface RetrieveThroughputParameters - - Added Interface RetrieveThroughputPropertiesResource - - Added Interface SqlResourcesListSqlContainerPartitionMergeHeaders - - Added Interface SqlResourcesListSqlContainerPartitionMergeOptionalParams - - Added Interface SqlResourcesSqlContainerRedistributeThroughputHeaders - - Added Interface SqlResourcesSqlContainerRedistributeThroughputOptionalParams - - Added Interface SqlResourcesSqlContainerRetrieveThroughputDistributionHeaders - - Added Interface SqlResourcesSqlContainerRetrieveThroughputDistributionOptionalParams - - Added Interface SqlResourcesSqlDatabaseRedistributeThroughputHeaders - - Added Interface SqlResourcesSqlDatabaseRedistributeThroughputOptionalParams - - Added Interface SqlResourcesSqlDatabaseRetrieveThroughputDistributionHeaders - - Added Interface SqlResourcesSqlDatabaseRetrieveThroughputDistributionOptionalParams - - Added Type Alias CassandraClustersGetBackupResponse - - Added Type Alias CassandraClustersListBackupsResponse - - Added Type Alias CassandraResourcesCreateUpdateCassandraViewResponse - - Added Type Alias CassandraResourcesGetCassandraViewResponse - - Added Type Alias CassandraResourcesGetCassandraViewThroughputResponse - - Added Type Alias CassandraResourcesListCassandraViewsResponse - - Added Type Alias CassandraResourcesMigrateCassandraViewToAutoscaleResponse - - Added Type Alias CassandraResourcesMigrateCassandraViewToManualThroughputResponse - - Added Type Alias CassandraResourcesUpdateCassandraViewThroughputResponse - Added Type Alias ContinuousTier - - Added Type Alias DataTransferComponent - - Added Type Alias DataTransferDataSourceSinkUnion - - Added Type Alias DataTransferJobsCancelResponse - - Added Type Alias DataTransferJobsCreateResponse - - Added Type Alias DataTransferJobsGetResponse - - Added Type Alias DataTransferJobsListByDatabaseAccountNextResponse - - Added Type Alias DataTransferJobsListByDatabaseAccountResponse - - Added Type Alias DataTransferJobsPauseResponse - - Added Type Alias DataTransferJobsResumeResponse - - Added Type Alias EnableFullTextQuery - - Added Type Alias GraphResourcesCreateUpdateGraphResponse - - Added Type Alias GraphResourcesGetGraphResponse - - Added Type Alias GraphResourcesListGraphsResponse - - Added Type Alias MongoDBResourcesListMongoDBCollectionPartitionMergeResponse - - Added Type Alias MongoDBResourcesMongoDBContainerRedistributeThroughputResponse - - Added Type Alias MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse - - Added Type Alias MongoDBResourcesMongoDBDatabaseRedistributeThroughputResponse - - Added Type Alias MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionResponse - - Added Type Alias SqlResourcesListSqlContainerPartitionMergeResponse - - Added Type Alias SqlResourcesSqlContainerRedistributeThroughputResponse - - Added Type Alias SqlResourcesSqlContainerRetrieveThroughputDistributionResponse - - Added Type Alias SqlResourcesSqlDatabaseRedistributeThroughputResponse - - Added Type Alias SqlResourcesSqlDatabaseRetrieveThroughputDistributionResponse - - Added Type Alias ThroughputPolicyType - - Interface ARMResourceProperties has a new optional parameter identity + - Added Type Alias Kind + - Added Type Alias Status + - Added Type Alias Type + - Interface CassandraClusterPublicStatus has a new optional parameter errors + - Interface ClusterResourceProperties has a new optional parameter provisionError + - Interface ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacentersItemsPropertiesNodesItems has a new optional parameter cassandraProcessStatus - Interface ContinuousModeBackupPolicy has a new optional parameter continuousModeProperties - - Interface DatabaseAccountCreateUpdateParameters has a new optional parameter diagnosticLogSettings - - Interface DatabaseAccountCreateUpdateParameters has a new optional parameter enableBurstCapacity - - Interface DatabaseAccountCreateUpdateParameters has a new optional parameter enableMaterializedViews - - Interface DatabaseAccountGetResults has a new optional parameter diagnosticLogSettings - - Interface DatabaseAccountGetResults has a new optional parameter enableBurstCapacity - - Interface DatabaseAccountGetResults has a new optional parameter enableMaterializedViews - - Interface DatabaseAccountUpdateParameters has a new optional parameter diagnosticLogSettings - - Interface DatabaseAccountUpdateParameters has a new optional parameter enableBurstCapacity - - Interface DatabaseAccountUpdateParameters has a new optional parameter enableMaterializedViews + - Interface DatabaseAccountConnectionString has a new optional parameter keyKind + - Interface DatabaseAccountConnectionString has a new optional parameter type - Interface DataCenterResourceProperties has a new optional parameter authenticationMethodLdapProperties - - Interface GremlinDatabaseResource has a new optional parameter createMode - - Interface GremlinDatabaseResource has a new optional parameter restoreParameters - - Interface GremlinGraphResource has a new optional parameter createMode - - Interface GremlinGraphResource has a new optional parameter restoreParameters + - Interface DataCenterResourceProperties has a new optional parameter deallocated + - Interface DataCenterResourceProperties has a new optional parameter provisionError + - Interface LocationProperties has a new optional parameter isSubscriptionRegionAccessAllowedForAz + - Interface LocationProperties has a new optional parameter isSubscriptionRegionAccessAllowedForRegular - Interface LocationProperties has a new optional parameter status - - Interface MongoDBCollectionResource has a new optional parameter createMode - - Interface MongoDBCollectionResource has a new optional parameter restoreParameters - - Interface MongoDBDatabaseResource has a new optional parameter createMode - - Interface MongoDBDatabaseResource has a new optional parameter restoreParameters - Interface RestorableDatabaseAccountGetResult has a new optional parameter oldestRestorableTime - - Interface RestoreParameters has a new optional parameter sourceBackupLocation - - Interface SqlContainerResource has a new optional parameter createMode - - Interface SqlContainerResource has a new optional parameter restoreParameters - - Interface SqlDatabaseResource has a new optional parameter createMode - - Interface SqlDatabaseResource has a new optional parameter restoreParameters - - Interface TableResource has a new optional parameter createMode - - Interface TableResource has a new optional parameter restoreParameters + - Interface ThroughputSettingsResource has a new optional parameter instantMaximumThroughput + - Interface ThroughputSettingsResource has a new optional parameter softAllowedMaximumThroughput - Added Enum KnownContinuousTier - - Added Enum KnownDataTransferComponent - - Added Enum KnownThroughputPolicyType + - Added Enum KnownKind + - Added Enum KnownStatus + - Added Enum KnownType - Enum KnownAuthenticationMethod has a new value Ldap - - Enum KnownOperationType has a new value Recreate + - Enum KnownPublicNetworkAccess has a new value SecuredByPerimeter ## 15.3.0 (2023-02-10) diff --git a/sdk/cosmosdb/arm-cosmosdb/README.md b/sdk/cosmosdb/arm-cosmosdb/README.md index 0de6091bc808..028cf521dcd2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/README.md +++ b/sdk/cosmosdb/arm-cosmosdb/README.md @@ -6,7 +6,7 @@ Azure Cosmos DB Database Service Resource Provider REST API [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-cosmosdb) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-cosmosdb) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/cosmosdb/arm-cosmosdb/_meta.json b/sdk/cosmosdb/arm-cosmosdb/_meta.json index 5c0568d353c2..f2234e19b3c5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/_meta.json +++ b/sdk/cosmosdb/arm-cosmosdb/_meta.json @@ -1,8 +1,8 @@ { - "commit": "4f4044394791773e6e7e82a9bd90d3935caaca1b", + "commit": "77c159a189911938c05fcf4def6ecde05c9f68d7", "readme": "specification/cosmos-db/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\cosmos-db\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.9 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.0-rc.9" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", + "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/cosmosdb/arm-cosmosdb/package.json b/sdk/cosmosdb/arm-cosmosdb/package.json index ec788472a65d..65e2d0beed47 100644 --- a/sdk/cosmosdb/arm-cosmosdb/package.json +++ b/sdk/cosmosdb/arm-cosmosdb/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for CosmosDBManagementClient.", - "version": "15.4.0-beta.2", + "version": "15.4.0", "engines": { "node": ">=14.0.0" }, @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb" +} \ No newline at end of file diff --git a/sdk/cosmosdb/arm-cosmosdb/review/arm-cosmosdb.api.md b/sdk/cosmosdb/arm-cosmosdb/review/arm-cosmosdb.api.md index 37c81724f1f1..7adc8a5ee8b5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/review/arm-cosmosdb.api.md +++ b/sdk/cosmosdb/arm-cosmosdb/review/arm-cosmosdb.api.md @@ -41,7 +41,6 @@ export interface ARMProxyResource { // @public export interface ARMResourceProperties { readonly id?: string; - identity?: ManagedServiceIdentity; location?: string; readonly name?: string; tags?: { @@ -55,6 +54,7 @@ export type AuthenticationMethod = string; // @public export interface AuthenticationMethodLdapProperties { + connectionTimeoutInMs?: number; searchBaseDistinguishedName?: string; searchFilterTemplate?: string; // (undocumented) @@ -82,15 +82,6 @@ export interface AutoUpgradePolicyResource { throughputPolicy?: ThroughputPolicyResource; } -// @public -export interface AzureBlobDataTransferDataSourceSink extends DataTransferDataSourceSink { - component: "AzureBlobStorage"; - // (undocumented) - containerName: string; - // (undocumented) - endpointUrl?: string; -} - // @public export interface BackupInformation { readonly continuousBackupInformation?: ContinuousBackupInformation; @@ -118,17 +109,6 @@ export type BackupPolicyType = string; // @public (undocumented) export type BackupPolicyUnion = BackupPolicy | PeriodicModeBackupPolicy | ContinuousModeBackupPolicy; -// @public -export interface BackupResource extends ARMProxyResource { - // (undocumented) - properties?: BackupResourceProperties; -} - -// @public (undocumented) -export interface BackupResourceProperties { - timestamp?: Date; -} - // @public export type BackupStorageRedundancy = string; @@ -146,6 +126,7 @@ export interface Capacity { export interface CassandraClusterPublicStatus { connectionErrors?: ConnectionError[]; dataCenters?: CassandraClusterPublicStatusDataCentersItem[]; + errors?: CassandraError[]; // (undocumented) eTag?: string; // (undocumented) @@ -175,8 +156,6 @@ export interface CassandraClusters { beginUpdate(resourceGroupName: string, clusterName: string, body: ClusterResource, options?: CassandraClustersUpdateOptionalParams): Promise, CassandraClustersUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, clusterName: string, body: ClusterResource, options?: CassandraClustersUpdateOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, options?: CassandraClustersGetOptionalParams): Promise; - getBackup(resourceGroupName: string, clusterName: string, backupId: string, options?: CassandraClustersGetBackupOptionalParams): Promise; - listBackups(resourceGroupName: string, clusterName: string, options?: CassandraClustersListBackupsOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: CassandraClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: CassandraClustersListBySubscriptionOptionalParams): PagedAsyncIterableIterator; status(resourceGroupName: string, clusterName: string, options?: CassandraClustersStatusOptionalParams): Promise; @@ -203,13 +182,6 @@ export interface CassandraClustersDeleteOptionalParams extends coreClient.Operat updateIntervalInMs?: number; } -// @public -export interface CassandraClustersGetBackupOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CassandraClustersGetBackupResponse = BackupResource; - // @public export interface CassandraClustersGetOptionalParams extends coreClient.OperationOptions { } @@ -226,13 +198,6 @@ export interface CassandraClustersInvokeCommandOptionalParams extends coreClient // @public export type CassandraClustersInvokeCommandResponse = CommandOutput; -// @public -export interface CassandraClustersListBackupsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CassandraClustersListBackupsResponse = ListBackups; - // @public export interface CassandraClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions { } @@ -319,6 +284,14 @@ export interface CassandraDataCentersUpdateOptionalParams extends coreClient.Ope // @public export type CassandraDataCentersUpdateResponse = DataCenterResource; +// @public (undocumented) +export interface CassandraError { + additionalErrorInfo?: string; + code?: string; + message?: string; + target?: string; +} + // @public export interface CassandraKeyspaceCreateUpdateParameters extends ARMResourceProperties { options?: CreateUpdateOptions; @@ -362,14 +335,10 @@ export interface CassandraResources { beginCreateUpdateCassandraKeyspaceAndWait(resourceGroupName: string, accountName: string, keyspaceName: string, createUpdateCassandraKeyspaceParameters: CassandraKeyspaceCreateUpdateParameters, options?: CassandraResourcesCreateUpdateCassandraKeyspaceOptionalParams): Promise; beginCreateUpdateCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, createUpdateCassandraTableParameters: CassandraTableCreateUpdateParameters, options?: CassandraResourcesCreateUpdateCassandraTableOptionalParams): Promise, CassandraResourcesCreateUpdateCassandraTableResponse>>; beginCreateUpdateCassandraTableAndWait(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, createUpdateCassandraTableParameters: CassandraTableCreateUpdateParameters, options?: CassandraResourcesCreateUpdateCassandraTableOptionalParams): Promise; - beginCreateUpdateCassandraView(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, createUpdateCassandraViewParameters: CassandraViewCreateUpdateParameters, options?: CassandraResourcesCreateUpdateCassandraViewOptionalParams): Promise, CassandraResourcesCreateUpdateCassandraViewResponse>>; - beginCreateUpdateCassandraViewAndWait(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, createUpdateCassandraViewParameters: CassandraViewCreateUpdateParameters, options?: CassandraResourcesCreateUpdateCassandraViewOptionalParams): Promise; beginDeleteCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, options?: CassandraResourcesDeleteCassandraKeyspaceOptionalParams): Promise, CassandraResourcesDeleteCassandraKeyspaceResponse>>; beginDeleteCassandraKeyspaceAndWait(resourceGroupName: string, accountName: string, keyspaceName: string, options?: CassandraResourcesDeleteCassandraKeyspaceOptionalParams): Promise; beginDeleteCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: CassandraResourcesDeleteCassandraTableOptionalParams): Promise, CassandraResourcesDeleteCassandraTableResponse>>; beginDeleteCassandraTableAndWait(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: CassandraResourcesDeleteCassandraTableOptionalParams): Promise; - beginDeleteCassandraView(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: CassandraResourcesDeleteCassandraViewOptionalParams): Promise, void>>; - beginDeleteCassandraViewAndWait(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: CassandraResourcesDeleteCassandraViewOptionalParams): Promise; beginMigrateCassandraKeyspaceToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, options?: CassandraResourcesMigrateCassandraKeyspaceToAutoscaleOptionalParams): Promise, CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse>>; beginMigrateCassandraKeyspaceToAutoscaleAndWait(resourceGroupName: string, accountName: string, keyspaceName: string, options?: CassandraResourcesMigrateCassandraKeyspaceToAutoscaleOptionalParams): Promise; beginMigrateCassandraKeyspaceToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, options?: CassandraResourcesMigrateCassandraKeyspaceToManualThroughputOptionalParams): Promise, CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse>>; @@ -378,25 +347,16 @@ export interface CassandraResources { beginMigrateCassandraTableToAutoscaleAndWait(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: CassandraResourcesMigrateCassandraTableToAutoscaleOptionalParams): Promise; beginMigrateCassandraTableToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: CassandraResourcesMigrateCassandraTableToManualThroughputOptionalParams): Promise, CassandraResourcesMigrateCassandraTableToManualThroughputResponse>>; beginMigrateCassandraTableToManualThroughputAndWait(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: CassandraResourcesMigrateCassandraTableToManualThroughputOptionalParams): Promise; - beginMigrateCassandraViewToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: CassandraResourcesMigrateCassandraViewToAutoscaleOptionalParams): Promise, CassandraResourcesMigrateCassandraViewToAutoscaleResponse>>; - beginMigrateCassandraViewToAutoscaleAndWait(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: CassandraResourcesMigrateCassandraViewToAutoscaleOptionalParams): Promise; - beginMigrateCassandraViewToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: CassandraResourcesMigrateCassandraViewToManualThroughputOptionalParams): Promise, CassandraResourcesMigrateCassandraViewToManualThroughputResponse>>; - beginMigrateCassandraViewToManualThroughputAndWait(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: CassandraResourcesMigrateCassandraViewToManualThroughputOptionalParams): Promise; beginUpdateCassandraKeyspaceThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, updateThroughputParameters: ThroughputSettingsUpdateParameters, options?: CassandraResourcesUpdateCassandraKeyspaceThroughputOptionalParams): Promise, CassandraResourcesUpdateCassandraKeyspaceThroughputResponse>>; beginUpdateCassandraKeyspaceThroughputAndWait(resourceGroupName: string, accountName: string, keyspaceName: string, updateThroughputParameters: ThroughputSettingsUpdateParameters, options?: CassandraResourcesUpdateCassandraKeyspaceThroughputOptionalParams): Promise; beginUpdateCassandraTableThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, updateThroughputParameters: ThroughputSettingsUpdateParameters, options?: CassandraResourcesUpdateCassandraTableThroughputOptionalParams): Promise, CassandraResourcesUpdateCassandraTableThroughputResponse>>; beginUpdateCassandraTableThroughputAndWait(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, updateThroughputParameters: ThroughputSettingsUpdateParameters, options?: CassandraResourcesUpdateCassandraTableThroughputOptionalParams): Promise; - beginUpdateCassandraViewThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, updateThroughputParameters: ThroughputSettingsUpdateParameters, options?: CassandraResourcesUpdateCassandraViewThroughputOptionalParams): Promise, CassandraResourcesUpdateCassandraViewThroughputResponse>>; - beginUpdateCassandraViewThroughputAndWait(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, updateThroughputParameters: ThroughputSettingsUpdateParameters, options?: CassandraResourcesUpdateCassandraViewThroughputOptionalParams): Promise; getCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, options?: CassandraResourcesGetCassandraKeyspaceOptionalParams): Promise; getCassandraKeyspaceThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, options?: CassandraResourcesGetCassandraKeyspaceThroughputOptionalParams): Promise; getCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: CassandraResourcesGetCassandraTableOptionalParams): Promise; getCassandraTableThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: CassandraResourcesGetCassandraTableThroughputOptionalParams): Promise; - getCassandraView(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: CassandraResourcesGetCassandraViewOptionalParams): Promise; - getCassandraViewThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, viewName: string, options?: CassandraResourcesGetCassandraViewThroughputOptionalParams): Promise; listCassandraKeyspaces(resourceGroupName: string, accountName: string, options?: CassandraResourcesListCassandraKeyspacesOptionalParams): PagedAsyncIterableIterator; listCassandraTables(resourceGroupName: string, accountName: string, keyspaceName: string, options?: CassandraResourcesListCassandraTablesOptionalParams): PagedAsyncIterableIterator; - listCassandraViews(resourceGroupName: string, accountName: string, keyspaceName: string, options?: CassandraResourcesListCassandraViewsOptionalParams): PagedAsyncIterableIterator; } // @public @@ -429,21 +389,6 @@ export interface CassandraResourcesCreateUpdateCassandraTableOptionalParams exte // @public export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTableGetResults; -// @public -export interface CassandraResourcesCreateUpdateCassandraViewHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface CassandraResourcesCreateUpdateCassandraViewOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CassandraResourcesCreateUpdateCassandraViewResponse = CassandraViewGetResults; - // @public export interface CassandraResourcesDeleteCassandraKeyspaceHeaders { azureAsyncOperation?: string; @@ -474,18 +419,6 @@ export interface CassandraResourcesDeleteCassandraTableOptionalParams extends co // @public export type CassandraResourcesDeleteCassandraTableResponse = CassandraResourcesDeleteCassandraTableHeaders; -// @public -export interface CassandraResourcesDeleteCassandraViewHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface CassandraResourcesDeleteCassandraViewOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - // @public export interface CassandraResourcesGetCassandraKeyspaceOptionalParams extends coreClient.OperationOptions { } @@ -514,20 +447,6 @@ export interface CassandraResourcesGetCassandraTableThroughputOptionalParams ext // @public export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSettingsGetResults; -// @public -export interface CassandraResourcesGetCassandraViewOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CassandraResourcesGetCassandraViewResponse = CassandraViewGetResults; - -// @public -export interface CassandraResourcesGetCassandraViewThroughputOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CassandraResourcesGetCassandraViewThroughputResponse = ThroughputSettingsGetResults; - // @public export interface CassandraResourcesListCassandraKeyspacesOptionalParams extends coreClient.OperationOptions { } @@ -542,13 +461,6 @@ export interface CassandraResourcesListCassandraTablesOptionalParams extends cor // @public export type CassandraResourcesListCassandraTablesResponse = CassandraTableListResult; -// @public -export interface CassandraResourcesListCassandraViewsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CassandraResourcesListCassandraViewsResponse = CassandraViewListResult; - // @public export interface CassandraResourcesMigrateCassandraKeyspaceToAutoscaleHeaders { azureAsyncOperation?: string; @@ -609,36 +521,6 @@ export interface CassandraResourcesMigrateCassandraTableToManualThroughputOption // @public export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults; -// @public -export interface CassandraResourcesMigrateCassandraViewToAutoscaleHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface CassandraResourcesMigrateCassandraViewToAutoscaleOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CassandraResourcesMigrateCassandraViewToAutoscaleResponse = ThroughputSettingsGetResults; - -// @public -export interface CassandraResourcesMigrateCassandraViewToManualThroughputHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface CassandraResourcesMigrateCassandraViewToManualThroughputOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CassandraResourcesMigrateCassandraViewToManualThroughputResponse = ThroughputSettingsGetResults; - // @public export interface CassandraResourcesUpdateCassandraKeyspaceThroughputHeaders { azureAsyncOperation?: string; @@ -669,21 +551,6 @@ export interface CassandraResourcesUpdateCassandraTableThroughputOptionalParams // @public export type CassandraResourcesUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults; -// @public -export interface CassandraResourcesUpdateCassandraViewThroughputHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface CassandraResourcesUpdateCassandraViewThroughputOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CassandraResourcesUpdateCassandraViewThroughputResponse = ThroughputSettingsGetResults; - // @public export interface CassandraSchema { clusterKeys?: ClusterKey[]; @@ -726,39 +593,6 @@ export interface CassandraTableResource { schema?: CassandraSchema; } -// @public -export interface CassandraViewCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; - resource: CassandraViewResource; -} - -// @public (undocumented) -export interface CassandraViewGetPropertiesOptions extends OptionsResource { -} - -// @public (undocumented) -export interface CassandraViewGetPropertiesResource extends CassandraViewResource, ExtendedResourceProperties { -} - -// @public -export interface CassandraViewGetResults extends ARMResourceProperties { - // (undocumented) - options?: CassandraViewGetPropertiesOptions; - // (undocumented) - resource?: CassandraViewGetPropertiesResource; -} - -// @public -export interface CassandraViewListResult { - readonly value?: CassandraViewGetResults[]; -} - -// @public -export interface CassandraViewResource { - id: string; - viewDefinition: string; -} - // @public (undocumented) export interface Certificate { pem?: string; @@ -837,6 +671,7 @@ export interface ClusterResourceProperties { hoursBetweenBackups?: number; initialCassandraAdminPassword?: string; prometheusEndpoint?: SeedNode; + provisionError?: CassandraError; provisioningState?: ManagedCassandraProvisioningState; repairEnabled?: boolean; restoreFromBackupId?: string; @@ -948,6 +783,7 @@ export interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserass // @public (undocumented) export interface ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacentersItemsPropertiesNodesItems { address?: string; + cassandraProcessStatus?: string; cpuUsage?: number; diskFreeKB?: number; diskUsedKB?: number; @@ -1049,15 +885,6 @@ export interface CorsPolicy { maxAgeInSeconds?: number; } -// @public -export interface CosmosCassandraDataTransferDataSourceSink extends DataTransferDataSourceSink { - component: "CosmosDBCassandra"; - // (undocumented) - keyspaceName: string; - // (undocumented) - tableName: string; -} - // @public (undocumented) export class CosmosDBManagementClient extends coreClient.ServiceClient { // (undocumented) @@ -1086,10 +913,6 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { // (undocumented) databaseAccounts: DatabaseAccounts; // (undocumented) - dataTransferJobs: DataTransferJobs; - // (undocumented) - graphResources: GraphResources; - // (undocumented) gremlinResources: GremlinResources; // (undocumented) locations: Locations; @@ -1154,23 +977,9 @@ export interface CosmosDBManagementClientOptionalParams extends coreClient.Servi endpoint?: string; } -// @public -export interface CosmosSqlDataTransferDataSourceSink extends DataTransferDataSourceSink { - component: "CosmosDBSql"; - // (undocumented) - containerName: string; - // (undocumented) - databaseName: string; -} - // @public export type CreatedByType = string; -// @public -export interface CreateJobRequest extends ARMProxyResource { - properties: DataTransferJobProperties; -} - // @public export type CreateMode = string; @@ -1191,6 +1000,8 @@ export interface Database { export interface DatabaseAccountConnectionString { readonly connectionString?: string; readonly description?: string; + readonly keyKind?: Kind; + readonly type?: Type; } // @public @@ -1206,17 +1017,15 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper createMode?: CreateMode; databaseAccountOfferType: "Standard"; defaultIdentity?: string; - diagnosticLogSettings?: DiagnosticLogSettings; disableKeyBasedMetadataWriteAccess?: boolean; disableLocalAuth?: boolean; enableAnalyticalStorage?: boolean; enableAutomaticFailover?: boolean; - enableBurstCapacity?: boolean; enableCassandraConnector?: boolean; enableFreeTier?: boolean; - enableMaterializedViews?: boolean; enableMultipleWriteLocations?: boolean; enablePartitionMerge?: boolean; + identity?: ManagedServiceIdentity; ipRules?: IpAddressOrRange[]; isVirtualNetworkFilterEnabled?: boolean; readonly keysMetadata?: DatabaseAccountKeysMetadata; @@ -1244,19 +1053,17 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { createMode?: CreateMode; readonly databaseAccountOfferType?: "Standard"; defaultIdentity?: string; - diagnosticLogSettings?: DiagnosticLogSettings; disableKeyBasedMetadataWriteAccess?: boolean; disableLocalAuth?: boolean; readonly documentEndpoint?: string; enableAnalyticalStorage?: boolean; enableAutomaticFailover?: boolean; - enableBurstCapacity?: boolean; enableCassandraConnector?: boolean; enableFreeTier?: boolean; - enableMaterializedViews?: boolean; enableMultipleWriteLocations?: boolean; enablePartitionMerge?: boolean; readonly failoverPolicies?: FailoverPolicy[]; + identity?: ManagedServiceIdentity; readonly instanceId?: string; ipRules?: IpAddressOrRange[]; isVirtualNetworkFilterEnabled?: boolean; @@ -1531,15 +1338,12 @@ export interface DatabaseAccountUpdateParameters { consistencyPolicy?: ConsistencyPolicy; cors?: CorsPolicy[]; defaultIdentity?: string; - diagnosticLogSettings?: DiagnosticLogSettings; disableKeyBasedMetadataWriteAccess?: boolean; disableLocalAuth?: boolean; enableAnalyticalStorage?: boolean; enableAutomaticFailover?: boolean; - enableBurstCapacity?: boolean; enableCassandraConnector?: boolean; enableFreeTier?: boolean; - enableMaterializedViews?: boolean; enableMultipleWriteLocations?: boolean; enablePartitionMerge?: boolean; identity?: ManagedServiceIdentity; @@ -1599,118 +1403,18 @@ export interface DataCenterResourceProperties { backupStorageCustomerKeyUri?: string; base64EncodedCassandraYamlFragment?: string; dataCenterLocation?: string; + deallocated?: boolean; delegatedSubnetId?: string; diskCapacity?: number; diskSku?: string; managedDiskCustomerKeyUri?: string; nodeCount?: number; + provisionError?: CassandraError; provisioningState?: ManagedCassandraProvisioningState; readonly seedNodes?: SeedNode[]; sku?: string; } -// @public -export type DataTransferComponent = string; - -// @public -export interface DataTransferDataSourceSink { - component: "CosmosDBCassandra" | "CosmosDBSql" | "AzureBlobStorage"; -} - -// @public (undocumented) -export type DataTransferDataSourceSinkUnion = DataTransferDataSourceSink | CosmosCassandraDataTransferDataSourceSink | CosmosSqlDataTransferDataSourceSink | AzureBlobDataTransferDataSourceSink; - -// @public -export interface DataTransferJobFeedResults { - readonly nextLink?: string; - readonly value?: DataTransferJobGetResults[]; -} - -// @public -export interface DataTransferJobGetResults extends ARMProxyResource { - destination?: DataTransferDataSourceSinkUnion; - readonly error?: ErrorResponse; - readonly jobName?: string; - readonly lastUpdatedUtcTime?: Date; - readonly processedCount?: number; - source?: DataTransferDataSourceSinkUnion; - readonly status?: string; - readonly totalCount?: number; - workerCount?: number; -} - -// @public -export interface DataTransferJobProperties { - destination: DataTransferDataSourceSinkUnion; - readonly error?: ErrorResponse; - readonly jobName?: string; - readonly lastUpdatedUtcTime?: Date; - readonly processedCount?: number; - source: DataTransferDataSourceSinkUnion; - readonly status?: string; - readonly totalCount?: number; - workerCount?: number; -} - -// @public -export interface DataTransferJobs { - cancel(resourceGroupName: string, accountName: string, jobName: string, options?: DataTransferJobsCancelOptionalParams): Promise; - create(resourceGroupName: string, accountName: string, jobName: string, jobCreateParameters: CreateJobRequest, options?: DataTransferJobsCreateOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, jobName: string, options?: DataTransferJobsGetOptionalParams): Promise; - listByDatabaseAccount(resourceGroupName: string, accountName: string, options?: DataTransferJobsListByDatabaseAccountOptionalParams): PagedAsyncIterableIterator; - pause(resourceGroupName: string, accountName: string, jobName: string, options?: DataTransferJobsPauseOptionalParams): Promise; - resume(resourceGroupName: string, accountName: string, jobName: string, options?: DataTransferJobsResumeOptionalParams): Promise; -} - -// @public -export interface DataTransferJobsCancelOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataTransferJobsCancelResponse = DataTransferJobGetResults; - -// @public -export interface DataTransferJobsCreateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataTransferJobsCreateResponse = DataTransferJobGetResults; - -// @public -export interface DataTransferJobsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataTransferJobsGetResponse = DataTransferJobGetResults; - -// @public -export interface DataTransferJobsListByDatabaseAccountNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataTransferJobsListByDatabaseAccountNextResponse = DataTransferJobFeedResults; - -// @public -export interface DataTransferJobsListByDatabaseAccountOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataTransferJobsListByDatabaseAccountResponse = DataTransferJobFeedResults; - -// @public -export interface DataTransferJobsPauseOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataTransferJobsPauseResponse = DataTransferJobGetResults; - -// @public -export interface DataTransferJobsResumeOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataTransferJobsResumeResponse = DataTransferJobGetResults; - // @public export interface DataTransferRegionalServiceResource extends RegionalServiceResource { } @@ -1732,14 +1436,6 @@ export type DataType = string; // @public export type DefaultConsistencyLevel = "Eventual" | "Session" | "BoundedStaleness" | "Strong" | "ConsistentPrefix"; -// @public -export interface DiagnosticLogSettings { - enableFullTextQuery?: EnableFullTextQuery; -} - -// @public -export type EnableFullTextQuery = "None" | "True" | "False"; - // @public export interface ErrorResponse { code?: string; @@ -1790,89 +1486,6 @@ export interface GraphAPIComputeServiceResourceProperties extends ServiceResourc serviceType: "GraphAPICompute"; } -// @public -export interface GraphResource { - id: string; -} - -// @public -export interface GraphResourceCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; - resource: GraphResource; -} - -// @public (undocumented) -export interface GraphResourceGetPropertiesOptions extends OptionsResource { -} - -// @public (undocumented) -export interface GraphResourceGetPropertiesResource extends GraphResource { -} - -// @public -export interface GraphResourceGetResults extends ARMResourceProperties { - // (undocumented) - options?: GraphResourceGetPropertiesOptions; - // (undocumented) - resource?: GraphResourceGetPropertiesResource; -} - -// @public -export interface GraphResources { - beginCreateUpdateGraph(resourceGroupName: string, accountName: string, graphName: string, createUpdateGraphParameters: GraphResourceCreateUpdateParameters, options?: GraphResourcesCreateUpdateGraphOptionalParams): Promise, GraphResourcesCreateUpdateGraphResponse>>; - beginCreateUpdateGraphAndWait(resourceGroupName: string, accountName: string, graphName: string, createUpdateGraphParameters: GraphResourceCreateUpdateParameters, options?: GraphResourcesCreateUpdateGraphOptionalParams): Promise; - beginDeleteGraphResource(resourceGroupName: string, accountName: string, graphName: string, options?: GraphResourcesDeleteGraphResourceOptionalParams): Promise, void>>; - beginDeleteGraphResourceAndWait(resourceGroupName: string, accountName: string, graphName: string, options?: GraphResourcesDeleteGraphResourceOptionalParams): Promise; - getGraph(resourceGroupName: string, accountName: string, graphName: string, options?: GraphResourcesGetGraphOptionalParams): Promise; - listGraphs(resourceGroupName: string, accountName: string, options?: GraphResourcesListGraphsOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface GraphResourcesCreateUpdateGraphHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface GraphResourcesCreateUpdateGraphOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type GraphResourcesCreateUpdateGraphResponse = GraphResourceGetResults; - -// @public -export interface GraphResourcesDeleteGraphResourceHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface GraphResourcesDeleteGraphResourceOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface GraphResourcesGetGraphOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GraphResourcesGetGraphResponse = GraphResourceGetResults; - -// @public -export interface GraphResourcesListGraphsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GraphResourcesListGraphsResponse = GraphResourcesListResult; - -// @public -export interface GraphResourcesListResult { - readonly value?: GraphResourceGetResults[]; -} - // @public export interface GremlinDatabaseCreateUpdateParameters extends ARMResourceProperties { options?: CreateUpdateOptions; @@ -1902,9 +1515,7 @@ export interface GremlinDatabaseListResult { // @public export interface GremlinDatabaseResource { - createMode?: CreateMode; id: string; - restoreParameters?: ResourceRestoreParameters; } // @public @@ -1944,12 +1555,10 @@ export interface GremlinGraphListResult { export interface GremlinGraphResource { analyticalStorageTtl?: number; conflictResolutionPolicy?: ConflictResolutionPolicy; - createMode?: CreateMode; defaultTtl?: number; id: string; indexingPolicy?: IndexingPolicy; partitionKey?: ContainerPartitionKey; - restoreParameters?: ResourceRestoreParameters; uniqueKeyPolicy?: UniqueKeyPolicy; } @@ -2231,6 +1840,9 @@ export interface KeyWrapMetadata { value?: string; } +// @public +export type Kind = string; + // @public export enum KnownAnalyticalStorageSchemaType { FullFidelity = "FullFidelity", @@ -2329,13 +1941,6 @@ export enum KnownDatabaseAccountKind { Parse = "Parse" } -// @public -export enum KnownDataTransferComponent { - AzureBlobStorage = "AzureBlobStorage", - CosmosDBCassandra = "CosmosDBCassandra", - CosmosDBSql = "CosmosDBSql" -} - // @public export enum KnownDataType { LineString = "LineString", @@ -2368,6 +1973,14 @@ export enum KnownKeyKind { SecondaryReadonly = "secondaryReadonly" } +// @public +export enum KnownKind { + Primary = "Primary", + PrimaryReadonly = "PrimaryReadonly", + Secondary = "Secondary", + SecondaryReadonly = "SecondaryReadonly" +} + // @public export enum KnownManagedCassandraProvisioningState { Canceled = "Canceled", @@ -2415,7 +2028,6 @@ export enum KnownNotebookWorkspaceName { export enum KnownOperationType { Create = "Create", Delete = "Delete", - Recreate = "Recreate", Replace = "Replace", SystemOperation = "SystemOperation" } @@ -2440,7 +2052,8 @@ export enum KnownPrimaryAggregationType { // @public export enum KnownPublicNetworkAccess { Disabled = "Disabled", - Enabled = "Enabled" + Enabled = "Enabled", + SecuredByPerimeter = "SecuredByPerimeter" } // @public @@ -2490,10 +2103,12 @@ export enum KnownSpatialType { } // @public -export enum KnownThroughputPolicyType { - Custom = "custom", - Equal = "equal", - None = "none" +export enum KnownStatus { + Deleting = "Deleting", + Initializing = "Initializing", + InternallyReady = "InternallyReady", + Online = "Online", + Uninitialized = "Uninitialized" } // @public @@ -2511,6 +2126,19 @@ export enum KnownTriggerType { Pre = "Pre" } +// @public +export enum KnownType { + Cassandra = "Cassandra", + CassandraConnectorMetadata = "CassandraConnectorMetadata", + Gremlin = "Gremlin", + GremlinV2 = "GremlinV2", + MongoDB = "MongoDB", + Sql = "Sql", + SqlDedicatedGateway = "SqlDedicatedGateway", + Table = "Table", + Undefined = "Undefined" +} + // @public export enum KnownUnitType { Bytes = "Bytes", @@ -2522,11 +2150,6 @@ export enum KnownUnitType { Seconds = "Seconds" } -// @public -export interface ListBackups { - readonly value?: BackupResource[]; -} - // @public export interface ListClusters { value?: ClusterResource[]; @@ -2562,7 +2185,9 @@ export interface LocationListResult { export interface LocationProperties { readonly backupStorageRedundancies?: BackupStorageRedundancy[]; readonly isResidencyRestricted?: boolean; - readonly status?: string; + readonly isSubscriptionRegionAccessAllowedForAz?: boolean; + readonly isSubscriptionRegionAccessAllowedForRegular?: boolean; + readonly status?: Status; readonly supportsAvailabilityZone?: boolean; } @@ -2648,11 +2273,6 @@ export interface MaterializedViewsBuilderServiceResourceProperties extends Servi serviceType: "MaterializedViewsBuilder"; } -// @public -export interface MergeParameters { - isDryRun?: boolean; -} - // @public export interface Metric { readonly endTime?: Date; @@ -2737,10 +2357,8 @@ export interface MongoDBCollectionListResult { // @public export interface MongoDBCollectionResource { analyticalStorageTtl?: number; - createMode?: CreateMode; id: string; indexes?: MongoIndex[]; - restoreParameters?: ResourceRestoreParameters; shardKey?: { [propertyName: string]: string; }; @@ -2775,9 +2393,7 @@ export interface MongoDBDatabaseListResult { // @public export interface MongoDBDatabaseResource { - createMode?: CreateMode; id: string; - restoreParameters?: ResourceRestoreParameters; } // @public @@ -2798,8 +2414,6 @@ export interface MongoDBResources { beginDeleteMongoRoleDefinitionAndWait(mongoRoleDefinitionId: string, resourceGroupName: string, accountName: string, options?: MongoDBResourcesDeleteMongoRoleDefinitionOptionalParams): Promise; beginDeleteMongoUserDefinition(mongoUserDefinitionId: string, resourceGroupName: string, accountName: string, options?: MongoDBResourcesDeleteMongoUserDefinitionOptionalParams): Promise, void>>; beginDeleteMongoUserDefinitionAndWait(mongoUserDefinitionId: string, resourceGroupName: string, accountName: string, options?: MongoDBResourcesDeleteMongoUserDefinitionOptionalParams): Promise; - beginListMongoDBCollectionPartitionMerge(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, mergeParameters: MergeParameters, options?: MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams): Promise, MongoDBResourcesListMongoDBCollectionPartitionMergeResponse>>; - beginListMongoDBCollectionPartitionMergeAndWait(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, mergeParameters: MergeParameters, options?: MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams): Promise; beginMigrateMongoDBCollectionToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: MongoDBResourcesMigrateMongoDBCollectionToAutoscaleOptionalParams): Promise, MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse>>; beginMigrateMongoDBCollectionToAutoscaleAndWait(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: MongoDBResourcesMigrateMongoDBCollectionToAutoscaleOptionalParams): Promise; beginMigrateMongoDBCollectionToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: MongoDBResourcesMigrateMongoDBCollectionToManualThroughputOptionalParams): Promise, MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse>>; @@ -2808,14 +2422,6 @@ export interface MongoDBResources { beginMigrateMongoDBDatabaseToAutoscaleAndWait(resourceGroupName: string, accountName: string, databaseName: string, options?: MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleOptionalParams): Promise; beginMigrateMongoDBDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputOptionalParams): Promise, MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse>>; beginMigrateMongoDBDatabaseToManualThroughputAndWait(resourceGroupName: string, accountName: string, databaseName: string, options?: MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputOptionalParams): Promise; - beginMongoDBContainerRedistributeThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, redistributeThroughputParameters: RedistributeThroughputParameters, options?: MongoDBResourcesMongoDBContainerRedistributeThroughputOptionalParams): Promise, MongoDBResourcesMongoDBContainerRedistributeThroughputResponse>>; - beginMongoDBContainerRedistributeThroughputAndWait(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, redistributeThroughputParameters: RedistributeThroughputParameters, options?: MongoDBResourcesMongoDBContainerRedistributeThroughputOptionalParams): Promise; - beginMongoDBContainerRetrieveThroughputDistribution(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, retrieveThroughputParameters: RetrieveThroughputParameters, options?: MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionOptionalParams): Promise, MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse>>; - beginMongoDBContainerRetrieveThroughputDistributionAndWait(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, retrieveThroughputParameters: RetrieveThroughputParameters, options?: MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionOptionalParams): Promise; - beginMongoDBDatabaseRedistributeThroughput(resourceGroupName: string, accountName: string, databaseName: string, redistributeThroughputParameters: RedistributeThroughputParameters, options?: MongoDBResourcesMongoDBDatabaseRedistributeThroughputOptionalParams): Promise, MongoDBResourcesMongoDBDatabaseRedistributeThroughputResponse>>; - beginMongoDBDatabaseRedistributeThroughputAndWait(resourceGroupName: string, accountName: string, databaseName: string, redistributeThroughputParameters: RedistributeThroughputParameters, options?: MongoDBResourcesMongoDBDatabaseRedistributeThroughputOptionalParams): Promise; - beginMongoDBDatabaseRetrieveThroughputDistribution(resourceGroupName: string, accountName: string, databaseName: string, retrieveThroughputParameters: RetrieveThroughputParameters, options?: MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionOptionalParams): Promise, MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionResponse>>; - beginMongoDBDatabaseRetrieveThroughputDistributionAndWait(resourceGroupName: string, accountName: string, databaseName: string, retrieveThroughputParameters: RetrieveThroughputParameters, options?: MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionOptionalParams): Promise; beginRetrieveContinuousBackupInformation(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, location: ContinuousBackupRestoreLocation, options?: MongoDBResourcesRetrieveContinuousBackupInformationOptionalParams): Promise, MongoDBResourcesRetrieveContinuousBackupInformationResponse>>; beginRetrieveContinuousBackupInformationAndWait(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, location: ContinuousBackupRestoreLocation, options?: MongoDBResourcesRetrieveContinuousBackupInformationOptionalParams): Promise; beginUpdateMongoDBCollectionThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, updateThroughputParameters: ThroughputSettingsUpdateParameters, options?: MongoDBResourcesUpdateMongoDBCollectionThroughputOptionalParams): Promise, MongoDBResourcesUpdateMongoDBCollectionThroughputResponse>>; @@ -2966,21 +2572,6 @@ export interface MongoDBResourcesGetMongoUserDefinitionOptionalParams extends co // @public export type MongoDBResourcesGetMongoUserDefinitionResponse = MongoUserDefinitionGetResults; -// @public -export interface MongoDBResourcesListMongoDBCollectionPartitionMergeHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type MongoDBResourcesListMongoDBCollectionPartitionMergeResponse = PhysicalPartitionStorageInfoCollection; - // @public export interface MongoDBResourcesListMongoDBCollectionsOptionalParams extends coreClient.OperationOptions { } @@ -3069,66 +2660,6 @@ export interface MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputOptiona // @public export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults; -// @public -export interface MongoDBResourcesMongoDBContainerRedistributeThroughputHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface MongoDBResourcesMongoDBContainerRedistributeThroughputOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type MongoDBResourcesMongoDBContainerRedistributeThroughputResponse = PhysicalPartitionThroughputInfoResult; - -// @public -export interface MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse = PhysicalPartitionThroughputInfoResult; - -// @public -export interface MongoDBResourcesMongoDBDatabaseRedistributeThroughputHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface MongoDBResourcesMongoDBDatabaseRedistributeThroughputOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type MongoDBResourcesMongoDBDatabaseRedistributeThroughputResponse = PhysicalPartitionThroughputInfoResult; - -// @public -export interface MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionResponse = PhysicalPartitionThroughputInfoResult; - // @public export interface MongoDBResourcesRetrieveContinuousBackupInformationOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -3510,42 +3041,6 @@ export interface Permission { notDataActions?: string[]; } -// @public -export interface PhysicalPartitionId { - id: string; -} - -// @public -export interface PhysicalPartitionStorageInfo { - readonly id?: string; - readonly storageInKB?: number; -} - -// @public -export interface PhysicalPartitionStorageInfoCollection { - readonly physicalPartitionStorageInfoCollection?: PhysicalPartitionStorageInfo[]; -} - -// @public -export interface PhysicalPartitionThroughputInfoProperties { - physicalPartitionThroughputInfo?: PhysicalPartitionThroughputInfoResource[]; -} - -// @public -export interface PhysicalPartitionThroughputInfoResource { - id: string; - throughput?: number; -} - -// @public -export interface PhysicalPartitionThroughputInfoResult extends ARMResourceProperties { - resource?: PhysicalPartitionThroughputInfoResultPropertiesResource; -} - -// @public -export interface PhysicalPartitionThroughputInfoResultPropertiesResource extends PhysicalPartitionThroughputInfoProperties { -} - // @public export type PrimaryAggregationType = string; @@ -3664,18 +3159,6 @@ export interface ProxyResource extends Resource { // @public export type PublicNetworkAccess = string; -// @public -export interface RedistributeThroughputParameters extends ARMResourceProperties { - resource: RedistributeThroughputPropertiesResource; -} - -// @public -export interface RedistributeThroughputPropertiesResource { - sourcePhysicalPartitionThroughputInfo: PhysicalPartitionThroughputInfoResource[]; - targetPhysicalPartitionThroughputInfo: PhysicalPartitionThroughputInfoResource[]; - throughputPolicy: ThroughputPolicyType; -} - // @public export interface RegionalServiceResource { readonly location?: string; @@ -3698,10 +3181,6 @@ export interface Resource { // @public export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAssigned,UserAssigned" | "None"; -// @public -export interface ResourceRestoreParameters extends RestoreParametersBase { -} - // @public export interface RestorableDatabaseAccountGetResult { accountName?: string; @@ -4134,28 +3613,13 @@ export interface RestorableTablesListResult { export type RestoreMode = string; // @public -export interface RestoreParameters extends RestoreParametersBase { +export interface RestoreParameters { databasesToRestore?: DatabaseRestoreResource[]; gremlinDatabasesToRestore?: GremlinDatabaseRestoreResource[]; restoreMode?: RestoreMode; - sourceBackupLocation?: string; - tablesToRestore?: string[]; -} - -// @public -export interface RestoreParametersBase { restoreSource?: string; restoreTimestampInUtc?: Date; -} - -// @public -export interface RetrieveThroughputParameters extends ARMResourceProperties { - resource: RetrieveThroughputPropertiesResource; -} - -// @public -export interface RetrieveThroughputPropertiesResource { - physicalPartitionIds: PhysicalPartitionId[]; + tablesToRestore?: string[]; } // @public @@ -4185,6 +3649,12 @@ export interface Service { list(resourceGroupName: string, accountName: string, options?: ServiceListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface ServiceCreateHeaders { + azureAsyncOperation?: string; + location?: string; +} + // @public export interface ServiceCreateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -4300,12 +3770,10 @@ export interface SqlContainerResource { analyticalStorageTtl?: number; clientEncryptionPolicy?: ClientEncryptionPolicy; conflictResolutionPolicy?: ConflictResolutionPolicy; - createMode?: CreateMode; defaultTtl?: number; id: string; indexingPolicy?: IndexingPolicy; partitionKey?: ContainerPartitionKey; - restoreParameters?: ResourceRestoreParameters; uniqueKeyPolicy?: UniqueKeyPolicy; } @@ -4340,9 +3808,7 @@ export interface SqlDatabaseListResult { // @public export interface SqlDatabaseResource { - createMode?: CreateMode; id: string; - restoreParameters?: ResourceRestoreParameters; } // @public @@ -4394,8 +3860,6 @@ export interface SqlResources { beginDeleteSqlTriggerAndWait(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, options?: SqlResourcesDeleteSqlTriggerOptionalParams): Promise; beginDeleteSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, options?: SqlResourcesDeleteSqlUserDefinedFunctionOptionalParams): Promise, SqlResourcesDeleteSqlUserDefinedFunctionResponse>>; beginDeleteSqlUserDefinedFunctionAndWait(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, options?: SqlResourcesDeleteSqlUserDefinedFunctionOptionalParams): Promise; - beginListSqlContainerPartitionMerge(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, mergeParameters: MergeParameters, options?: SqlResourcesListSqlContainerPartitionMergeOptionalParams): Promise, SqlResourcesListSqlContainerPartitionMergeResponse>>; - beginListSqlContainerPartitionMergeAndWait(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, mergeParameters: MergeParameters, options?: SqlResourcesListSqlContainerPartitionMergeOptionalParams): Promise; beginMigrateSqlContainerToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: SqlResourcesMigrateSqlContainerToAutoscaleOptionalParams): Promise, SqlResourcesMigrateSqlContainerToAutoscaleResponse>>; beginMigrateSqlContainerToAutoscaleAndWait(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: SqlResourcesMigrateSqlContainerToAutoscaleOptionalParams): Promise; beginMigrateSqlContainerToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: SqlResourcesMigrateSqlContainerToManualThroughputOptionalParams): Promise, SqlResourcesMigrateSqlContainerToManualThroughputResponse>>; @@ -4406,14 +3870,6 @@ export interface SqlResources { beginMigrateSqlDatabaseToManualThroughputAndWait(resourceGroupName: string, accountName: string, databaseName: string, options?: SqlResourcesMigrateSqlDatabaseToManualThroughputOptionalParams): Promise; beginRetrieveContinuousBackupInformation(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, location: ContinuousBackupRestoreLocation, options?: SqlResourcesRetrieveContinuousBackupInformationOptionalParams): Promise, SqlResourcesRetrieveContinuousBackupInformationResponse>>; beginRetrieveContinuousBackupInformationAndWait(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, location: ContinuousBackupRestoreLocation, options?: SqlResourcesRetrieveContinuousBackupInformationOptionalParams): Promise; - beginSqlContainerRedistributeThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, redistributeThroughputParameters: RedistributeThroughputParameters, options?: SqlResourcesSqlContainerRedistributeThroughputOptionalParams): Promise, SqlResourcesSqlContainerRedistributeThroughputResponse>>; - beginSqlContainerRedistributeThroughputAndWait(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, redistributeThroughputParameters: RedistributeThroughputParameters, options?: SqlResourcesSqlContainerRedistributeThroughputOptionalParams): Promise; - beginSqlContainerRetrieveThroughputDistribution(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, retrieveThroughputParameters: RetrieveThroughputParameters, options?: SqlResourcesSqlContainerRetrieveThroughputDistributionOptionalParams): Promise, SqlResourcesSqlContainerRetrieveThroughputDistributionResponse>>; - beginSqlContainerRetrieveThroughputDistributionAndWait(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, retrieveThroughputParameters: RetrieveThroughputParameters, options?: SqlResourcesSqlContainerRetrieveThroughputDistributionOptionalParams): Promise; - beginSqlDatabaseRedistributeThroughput(resourceGroupName: string, accountName: string, databaseName: string, redistributeThroughputParameters: RedistributeThroughputParameters, options?: SqlResourcesSqlDatabaseRedistributeThroughputOptionalParams): Promise, SqlResourcesSqlDatabaseRedistributeThroughputResponse>>; - beginSqlDatabaseRedistributeThroughputAndWait(resourceGroupName: string, accountName: string, databaseName: string, redistributeThroughputParameters: RedistributeThroughputParameters, options?: SqlResourcesSqlDatabaseRedistributeThroughputOptionalParams): Promise; - beginSqlDatabaseRetrieveThroughputDistribution(resourceGroupName: string, accountName: string, databaseName: string, retrieveThroughputParameters: RetrieveThroughputParameters, options?: SqlResourcesSqlDatabaseRetrieveThroughputDistributionOptionalParams): Promise, SqlResourcesSqlDatabaseRetrieveThroughputDistributionResponse>>; - beginSqlDatabaseRetrieveThroughputDistributionAndWait(resourceGroupName: string, accountName: string, databaseName: string, retrieveThroughputParameters: RetrieveThroughputParameters, options?: SqlResourcesSqlDatabaseRetrieveThroughputDistributionOptionalParams): Promise; beginUpdateSqlContainerThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, updateThroughputParameters: ThroughputSettingsUpdateParameters, options?: SqlResourcesUpdateSqlContainerThroughputOptionalParams): Promise, SqlResourcesUpdateSqlContainerThroughputResponse>>; beginUpdateSqlContainerThroughputAndWait(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, updateThroughputParameters: ThroughputSettingsUpdateParameters, options?: SqlResourcesUpdateSqlContainerThroughputOptionalParams): Promise; beginUpdateSqlDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, updateThroughputParameters: ThroughputSettingsUpdateParameters, options?: SqlResourcesUpdateSqlDatabaseThroughputOptionalParams): Promise, SqlResourcesUpdateSqlDatabaseThroughputResponse>>; @@ -4710,21 +4166,6 @@ export interface SqlResourcesListClientEncryptionKeysOptionalParams extends core // @public export type SqlResourcesListClientEncryptionKeysResponse = ClientEncryptionKeysListResult; -// @public -export interface SqlResourcesListSqlContainerPartitionMergeHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface SqlResourcesListSqlContainerPartitionMergeOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type SqlResourcesListSqlContainerPartitionMergeResponse = PhysicalPartitionStorageInfoCollection; - // @public export interface SqlResourcesListSqlContainersOptionalParams extends coreClient.OperationOptions { } @@ -4843,66 +4284,6 @@ export interface SqlResourcesRetrieveContinuousBackupInformationOptionalParams e // @public export type SqlResourcesRetrieveContinuousBackupInformationResponse = BackupInformation; -// @public -export interface SqlResourcesSqlContainerRedistributeThroughputHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface SqlResourcesSqlContainerRedistributeThroughputOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type SqlResourcesSqlContainerRedistributeThroughputResponse = PhysicalPartitionThroughputInfoResult; - -// @public -export interface SqlResourcesSqlContainerRetrieveThroughputDistributionHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface SqlResourcesSqlContainerRetrieveThroughputDistributionOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type SqlResourcesSqlContainerRetrieveThroughputDistributionResponse = PhysicalPartitionThroughputInfoResult; - -// @public -export interface SqlResourcesSqlDatabaseRedistributeThroughputHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface SqlResourcesSqlDatabaseRedistributeThroughputOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type SqlResourcesSqlDatabaseRedistributeThroughputResponse = PhysicalPartitionThroughputInfoResult; - -// @public -export interface SqlResourcesSqlDatabaseRetrieveThroughputDistributionHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface SqlResourcesSqlDatabaseRetrieveThroughputDistributionOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type SqlResourcesSqlDatabaseRetrieveThroughputDistributionResponse = PhysicalPartitionThroughputInfoResult; - // @public export interface SqlResourcesUpdateSqlContainerThroughputHeaders { azureAsyncOperation?: string; @@ -5056,6 +4437,9 @@ export interface SqlUserDefinedFunctionResource { id: string; } +// @public +export type Status = string; + // @public export interface SystemData { createdAt?: Date; @@ -5095,9 +4479,7 @@ export interface TableListResult { // @public export interface TableResource { - createMode?: CreateMode; id: string; - restoreParameters?: ResourceRestoreParameters; } // @public @@ -5230,9 +4612,6 @@ export interface ThroughputPolicyResource { isEnabled?: boolean; } -// @public -export type ThroughputPolicyType = string; - // @public (undocumented) export interface ThroughputSettingsGetPropertiesResource extends ThroughputSettingsResource, ExtendedResourceProperties { } @@ -5246,8 +4625,10 @@ export interface ThroughputSettingsGetResults extends ARMResourceProperties { // @public export interface ThroughputSettingsResource { autoscaleSettings?: AutoscaleSettingsResource; + readonly instantMaximumThroughput?: string; readonly minimumThroughput?: string; readonly offerReplacePending?: string; + readonly softAllowedMaximumThroughput?: string; throughput?: number; } @@ -5262,6 +4643,9 @@ export type TriggerOperation = string; // @public export type TriggerType = string; +// @public +export type Type = string; + // @public export interface UniqueKey { paths?: string[]; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts index b57d240c4da9..05dd99db2440 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts @@ -28,14 +28,12 @@ import { CollectionPartitionImpl, PartitionKeyRangeIdImpl, PartitionKeyRangeIdRegionImpl, - GraphResourcesImpl, SqlResourcesImpl, MongoDBResourcesImpl, TableResourcesImpl, CassandraResourcesImpl, GremlinResourcesImpl, LocationsImpl, - DataTransferJobsImpl, CassandraClustersImpl, CassandraDataCentersImpl, NotebookWorkspacesImpl, @@ -69,14 +67,12 @@ import { CollectionPartition, PartitionKeyRangeId, PartitionKeyRangeIdRegion, - GraphResources, SqlResources, MongoDBResources, TableResources, CassandraResources, GremlinResources, Locations, - DataTransferJobs, CassandraClusters, CassandraDataCenters, NotebookWorkspaces, @@ -130,7 +126,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-cosmosdb/15.4.0-beta.2`; + const packageDetails = `azsdk-js-arm-cosmosdb/15.4.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -183,7 +179,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-11-15-preview"; + this.apiVersion = options.apiVersion || "2023-04-15"; this.databaseAccounts = new DatabaseAccountsImpl(this); this.operations = new OperationsImpl(this); this.database = new DatabaseImpl(this); @@ -197,14 +193,12 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { this.collectionPartition = new CollectionPartitionImpl(this); this.partitionKeyRangeId = new PartitionKeyRangeIdImpl(this); this.partitionKeyRangeIdRegion = new PartitionKeyRangeIdRegionImpl(this); - this.graphResources = new GraphResourcesImpl(this); this.sqlResources = new SqlResourcesImpl(this); this.mongoDBResources = new MongoDBResourcesImpl(this); this.tableResources = new TableResourcesImpl(this); this.cassandraResources = new CassandraResourcesImpl(this); this.gremlinResources = new GremlinResourcesImpl(this); this.locations = new LocationsImpl(this); - this.dataTransferJobs = new DataTransferJobsImpl(this); this.cassandraClusters = new CassandraClustersImpl(this); this.cassandraDataCenters = new CassandraDataCentersImpl(this); this.notebookWorkspaces = new NotebookWorkspacesImpl(this); @@ -269,14 +263,12 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { collectionPartition: CollectionPartition; partitionKeyRangeId: PartitionKeyRangeId; partitionKeyRangeIdRegion: PartitionKeyRangeIdRegion; - graphResources: GraphResources; sqlResources: SqlResources; mongoDBResources: MongoDBResources; tableResources: TableResources; cassandraResources: CassandraResources; gremlinResources: GremlinResources; locations: Locations; - dataTransferJobs: DataTransferJobs; cassandraClusters: CassandraClusters; cassandraDataCenters: CassandraDataCenters; notebookWorkspaces: NotebookWorkspaces; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts index adb33d3b03f9..90f25335beb3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts @@ -12,11 +12,6 @@ export type BackupPolicyUnion = | BackupPolicy | PeriodicModeBackupPolicy | ContinuousModeBackupPolicy; -export type DataTransferDataSourceSinkUnion = - | DataTransferDataSourceSink - | CosmosCassandraDataTransferDataSourceSink - | CosmosSqlDataTransferDataSourceSink - | AzureBlobDataTransferDataSourceSink; export type ServiceResourcePropertiesUnion = | ServiceResourceProperties | DataTransferServiceResourceProperties @@ -24,6 +19,39 @@ export type ServiceResourcePropertiesUnion = | GraphAPIComputeServiceResourceProperties | MaterializedViewsBuilderServiceResourceProperties; +/** 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. */ + 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]: Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties; + }; +} + +export interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties { + /** + * 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; +} + /** IpAddressOrRange object */ export interface IpAddressOrRange { /** A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”. */ @@ -141,6 +169,22 @@ export interface AnalyticalStorageConfiguration { schemaType?: AnalyticalStorageSchemaType; } +/** Parameters to indicate the information about the restore. */ +export interface RestoreParameters { + /** Describes the mode of the restore. */ + restoreMode?: RestoreMode; + /** The id of the restorable database account from which the restore has to be initiated. For example: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName} */ + restoreSource?: string; + /** Time to which the account has to be restored (ISO-8601 format). */ + restoreTimestampInUtc?: Date; + /** List of specific databases available for restore. */ + databasesToRestore?: DatabaseRestoreResource[]; + /** List of specific gremlin databases available for restore. */ + gremlinDatabasesToRestore?: GremlinDatabaseRestoreResource[]; + /** List of specific tables available for restore. */ + tablesToRestore?: string[]; +} + /** Specific Databases to restore. */ export interface DatabaseRestoreResource { /** The name of the database available for restore. */ @@ -157,14 +201,6 @@ export interface GremlinDatabaseRestoreResource { graphNames?: string[]; } -/** Parameters to indicate the information about the restore. */ -export interface RestoreParametersBase { - /** The id of the restorable database account from which the restore has to be initiated. For example: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName} */ - restoreSource?: string; - /** Time to which the account has to be restored (ISO-8601 format). */ - restoreTimestampInUtc?: Date; -} - /** The object representing the policy for taking backups on an account. */ export interface BackupPolicy { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -197,12 +233,6 @@ 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. */ - enableFullTextQuery?: EnableFullTextQuery; -} - /** The object that represents all properties related to capacity enforcement on an account. */ export interface Capacity { /** The total throughput limit imposed on the account. A totalThroughputLimit of 2000 imposes a strict limit of max throughput that can be provisioned on that account to be 2000. A totalThroughputLimit of -1 indicates no limits on provisioning of throughput. */ @@ -279,41 +309,6 @@ export interface ARMResourceProperties { location?: string; /** Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". */ tags?: { [propertyName: string]: string }; - /** Identity for the resource. */ - identity?: ManagedServiceIdentity; -} - -/** 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. */ - 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]: Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties; - }; -} - -export interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties { - /** - * 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; } /** Parameters for patching Azure Cosmos DB database account properties. */ @@ -368,14 +363,10 @@ export interface DatabaseAccountUpdateParameters { 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 object that represents all properties related to capacity enforcement on an account. */ capacity?: Capacity; - /** Flag to indicate whether to enable MaterializedViews on the Cosmos DB account */ - enableMaterializedViews?: boolean; /** * This property is ignored during the update operation, as the metadata is read-only. The object represents the metadata for the Account Keys of the Cosmos DB account. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -383,8 +374,6 @@ export interface DatabaseAccountUpdateParameters { readonly keysMetadata?: DatabaseAccountKeysMetadata; /** Flag to indicate enabling/disabling of Partition Merge feature on the account */ enablePartitionMerge?: boolean; - /** Flag to indicate enabling/disabling of Burst Capacity Preview feature on the account */ - enableBurstCapacity?: boolean; /** Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work with Tls 1.2. */ minimalTlsVersion?: MinimalTlsVersion; } @@ -436,6 +425,16 @@ export interface DatabaseAccountConnectionString { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly description?: string; + /** + * Kind of the connection string key + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly keyKind?: Kind; + /** + * Type of the connection string + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: Type; } /** Cosmos DB region to online or offline. */ @@ -728,42 +727,6 @@ export interface MetricAvailability { readonly retention?: string; } -/** The List operation response, that contains the Graph resource and their properties. */ -export interface GraphResourcesListResult { - /** - * List of Graph resource and their properties. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: GraphResourceGetResults[]; -} - -/** Cosmos DB Graph resource object */ -export interface GraphResource { - /** Name of the Cosmos DB Graph */ - id: string; -} - -/** Cosmos DB options resource object */ -export interface OptionsResource { - /** Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details. */ - throughput?: number; - /** Specifies the Autoscale settings. */ - autoscaleSettings?: AutoscaleSettings; -} - -export interface AutoscaleSettings { - /** Represents maximum throughput, the resource can scale up to. */ - maxThroughput?: number; -} - -/** CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are "If-Match", "If-None-Match", "Session-Token" and "Throughput" */ -export interface CreateUpdateOptions { - /** Request Units per second. For example, "throughput": 10000. */ - throughput?: number; - /** Specifies the Autoscale settings. */ - autoscaleSettings?: AutoscaleSettings; -} - /** The List operation response, that contains the SQL databases and their properties. */ export interface SqlDatabaseListResult { /** @@ -777,10 +740,6 @@ export interface SqlDatabaseListResult { export interface SqlDatabaseResource { /** Name of the Cosmos DB SQL database */ id: string; - /** Parameters to indicate the information about the restore */ - restoreParameters?: ResourceRestoreParameters; - /** Enum to indicate the mode of resource creation. */ - createMode?: CreateMode; } /** The system generated resource properties associated with SQL databases, SQL containers, Gremlin databases and Gremlin graphs. */ @@ -802,6 +761,27 @@ export interface ExtendedResourceProperties { readonly etag?: string; } +/** Cosmos DB options resource object */ +export interface OptionsResource { + /** Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details. */ + throughput?: number; + /** Specifies the Autoscale settings. */ + autoscaleSettings?: AutoscaleSettings; +} + +export interface AutoscaleSettings { + /** Represents maximum throughput, the resource can scale up to. */ + maxThroughput?: number; +} + +/** CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are "If-Match", "If-None-Match", "Session-Token" and "Throughput" */ +export interface CreateUpdateOptions { + /** Request Units per second. For example, "throughput": 10000. */ + throughput?: number; + /** Specifies the Autoscale settings. */ + autoscaleSettings?: AutoscaleSettings; +} + /** Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is required, but not both. */ export interface ThroughputSettingsResource { /** Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings is required, but not both. */ @@ -818,6 +798,16 @@ export interface ThroughputSettingsResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly offerReplacePending?: string; + /** + * The offer throughput value to instantly scale up without triggering splits + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instantMaximumThroughput?: string; + /** + * The maximum throughput value or the maximum maxThroughput value (for autoscale) that can be specified + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly softAllowedMaximumThroughput?: string; } /** Cosmos DB provisioned throughput settings object */ @@ -853,64 +843,6 @@ export interface CloudError { error?: ErrorResponse; } -/** The List operation response, that contains the client encryption keys and their properties. */ -export interface ClientEncryptionKeysListResult { - /** - * List of client encryption keys and their properties. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ClientEncryptionKeyGetResults[]; -} - -/** Cosmos DB client encryption key resource object. */ -export interface ClientEncryptionKeyResource { - /** Name of the ClientEncryptionKey */ - id?: string; - /** Encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data. */ - encryptionAlgorithm?: string; - /** Wrapped (encrypted) form of the key represented as a byte array. */ - wrappedDataEncryptionKey?: Uint8Array; - /** Metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key. */ - keyWrapMetadata?: KeyWrapMetadata; -} - -/** Represents key wrap metadata that a key wrapping provider can use to wrap/unwrap a client encryption key. */ -export interface KeyWrapMetadata { - /** The name of associated KeyEncryptionKey (aka CustomerManagedKey). */ - name?: string; - /** ProviderName of KeyStoreProvider. */ - type?: string; - /** Reference / link to the KeyEncryptionKey. */ - value?: string; - /** Algorithm used in wrapping and unwrapping of the data encryption key. */ - algorithm?: string; -} - -/** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags */ -export interface ARMProxyResource { - /** - * The unique resource identifier of the database account. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the database account. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of Azure resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; -} - -/** Parameters to create and update ClientEncryptionKey. */ -export interface ClientEncryptionKeyCreateUpdateParameters { - /** The standard JSON format of a ClientEncryptionKey */ - resource: ClientEncryptionKeyResource; -} - /** The List operation response, that contains the containers and their properties. */ export interface SqlContainerListResult { /** @@ -938,10 +870,6 @@ export interface SqlContainerResource { clientEncryptionPolicy?: ClientEncryptionPolicy; /** Analytical TTL. */ analyticalStorageTtl?: number; - /** Parameters to indicate the information about the restore */ - restoreParameters?: ResourceRestoreParameters; - /** Enum to indicate the mode of resource creation. */ - createMode?: CreateMode; } /** Cosmos DB indexing policy */ @@ -1054,69 +982,62 @@ export interface ClientEncryptionIncludedPath { encryptionAlgorithm: string; } -/** The properties of an Azure Cosmos DB merge operations */ -export interface MergeParameters { - /** Specifies whether the operation is a real merge operation or a simulation. */ - isDryRun?: boolean; -} - -/** List of physical partitions and their properties returned by a merge operation. */ -export interface PhysicalPartitionStorageInfoCollection { +/** The List operation response, that contains the client encryption keys and their properties. */ +export interface ClientEncryptionKeysListResult { /** - * List of physical partitions and their properties. + * List of client encryption keys and their properties. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly physicalPartitionStorageInfoCollection?: PhysicalPartitionStorageInfo[]; + readonly value?: ClientEncryptionKeyGetResults[]; } -/** The storage of a physical partition */ -export interface PhysicalPartitionStorageInfo { +/** Cosmos DB client encryption key resource object. */ +export interface ClientEncryptionKeyResource { + /** Name of the ClientEncryptionKey */ + id?: string; + /** Encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data. */ + encryptionAlgorithm?: string; + /** Wrapped (encrypted) form of the key represented as a byte array. */ + wrappedDataEncryptionKey?: Uint8Array; + /** Metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key. */ + keyWrapMetadata?: KeyWrapMetadata; +} + +/** Represents key wrap metadata that a key wrapping provider can use to wrap/unwrap a client encryption key. */ +export interface KeyWrapMetadata { + /** The name of associated KeyEncryptionKey (aka CustomerManagedKey). */ + name?: string; + /** ProviderName of KeyStoreProvider. */ + type?: string; + /** Reference / link to the KeyEncryptionKey. */ + value?: string; + /** Algorithm used in wrapping and unwrapping of the data encryption key. */ + algorithm?: string; +} + +/** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags */ +export interface ARMProxyResource { /** - * The unique identifier of the partition. + * The unique resource identifier of the database account. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** - * The storage in KB for the physical partition. + * The name of the database account. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageInKB?: number; -} - -/** Resource to retrieve throughput information for Cosmos DB resource */ -export interface RetrieveThroughputPropertiesResource { - /** Array of PhysicalPartitionId objects. */ - physicalPartitionIds: PhysicalPartitionId[]; -} - -/** PhysicalPartitionId object */ -export interface PhysicalPartitionId { - /** Id of a physical partition */ - id: string; -} - -/** The properties of an Azure Cosmos DB PhysicalPartitionThroughputInfoProperties object */ -export interface PhysicalPartitionThroughputInfoProperties { - /** Array of physical partition throughput info objects */ - physicalPartitionThroughputInfo?: PhysicalPartitionThroughputInfoResource[]; -} - -/** PhysicalPartitionThroughputInfo object */ -export interface PhysicalPartitionThroughputInfoResource { - /** Id of a physical partition */ - id: string; - /** Throughput of a physical partition */ - throughput?: number; + readonly name?: string; + /** + * The type of Azure resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; } -/** Resource to redistribute throughput for Azure Cosmos DB resource */ -export interface RedistributeThroughputPropertiesResource { - /** ThroughputPolicy to apply for throughput redistribution */ - throughputPolicy: ThroughputPolicyType; - /** Array of PhysicalPartitionThroughputInfoResource objects. */ - targetPhysicalPartitionThroughputInfo: PhysicalPartitionThroughputInfoResource[]; - /** Array of PhysicalPartitionThroughputInfoResource objects. */ - sourcePhysicalPartitionThroughputInfo: PhysicalPartitionThroughputInfoResource[]; +/** Parameters to create and update ClientEncryptionKey. */ +export interface ClientEncryptionKeyCreateUpdateParameters { + /** The standard JSON format of a ClientEncryptionKey */ + resource: ClientEncryptionKeyResource; } /** The List operation response, that contains the storedProcedures and their properties. */ @@ -1187,10 +1108,6 @@ export interface MongoDBDatabaseListResult { export interface MongoDBDatabaseResource { /** Name of the Cosmos DB MongoDB database */ id: string; - /** Parameters to indicate the information about the restore */ - restoreParameters?: ResourceRestoreParameters; - /** Enum to indicate the mode of resource creation. */ - createMode?: CreateMode; } /** The List operation response, that contains the MongoDB collections and their properties. */ @@ -1212,10 +1129,6 @@ export interface MongoDBCollectionResource { indexes?: MongoIndex[]; /** Analytical TTL. */ analyticalStorageTtl?: number; - /** Parameters to indicate the information about the restore */ - restoreParameters?: ResourceRestoreParameters; - /** Enum to indicate the mode of resource creation. */ - createMode?: CreateMode; } /** Cosmos DB MongoDB collection index key */ @@ -1253,10 +1166,6 @@ export interface TableListResult { export interface TableResource { /** Name of the Cosmos DB table */ id: string; - /** Parameters to indicate the information about the restore */ - restoreParameters?: ResourceRestoreParameters; - /** Enum to indicate the mode of resource creation. */ - createMode?: CreateMode; } /** The List operation response, that contains the Cassandra keyspaces and their properties. */ @@ -1340,10 +1249,6 @@ export interface GremlinDatabaseListResult { export interface GremlinDatabaseResource { /** Name of the Cosmos DB Gremlin database */ id: string; - /** Parameters to indicate the information about the restore */ - restoreParameters?: ResourceRestoreParameters; - /** Enum to indicate the mode of resource creation. */ - createMode?: CreateMode; } /** The List operation response, that contains the graphs and their properties. */ @@ -1371,10 +1276,6 @@ export interface GremlinGraphResource { conflictResolutionPolicy?: ConflictResolutionPolicy; /** Analytical TTL. */ analyticalStorageTtl?: number; - /** Parameters to indicate the information about the restore */ - restoreParameters?: ResourceRestoreParameters; - /** Enum to indicate the mode of resource creation. */ - createMode?: CreateMode; } /** The List operation response, that contains Cosmos DB locations and their properties. */ @@ -1388,11 +1289,6 @@ export interface LocationListResult { /** 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. @@ -1408,83 +1304,21 @@ export interface LocationProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly backupStorageRedundancies?: BackupStorageRedundancy[]; -} - -/** The List operation response, that contains the Cassandra views and their properties. */ -export interface CassandraViewListResult { - /** - * List of Cassandra views and their properties. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: CassandraViewGetResults[]; -} - -/** 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; -} - -/** The properties of a DataTransfer Job */ -export interface DataTransferJobProperties { - /** - * Job Name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly jobName?: string; - /** Source DataStore details */ - source: DataTransferDataSourceSinkUnion; - /** Destination DataStore details */ - destination: DataTransferDataSourceSinkUnion; - /** - * Job Status - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; - /** - * Processed Count. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly processedCount?: number; /** - * Total Count. + * Flag indicating whether the subscription have access in region for Non-Availability Zones. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly totalCount?: number; + readonly isSubscriptionRegionAccessAllowedForRegular?: boolean; /** - * Last Updated Time (ISO-8601 format). + * Flag indicating whether the subscription have access in region for Availability Zones(Az). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastUpdatedUtcTime?: Date; - /** Worker count */ - workerCount?: number; + readonly isSubscriptionRegionAccessAllowedForAz?: boolean; /** - * Error response for Faulted job + * Enum to indicate current buildout status of the region. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly error?: ErrorResponse; -} - -/** Base class for all DataTransfer source/sink */ -export interface DataTransferDataSourceSink { - /** Polymorphic discriminator, which specifies the different types this object can be */ - component: "CosmosDBCassandra" | "CosmosDBSql" | "AzureBlobStorage"; -} - -/** The List operation response, that contains the Data Transfer jobs and their properties. */ -export interface DataTransferJobFeedResults { - /** - * List of Data Transfer jobs and their properties. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: DataTransferJobGetResults[]; - /** - * URL to get the next set of Data Transfer job list results if there are any. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; + readonly status?: Status; } /** List of managed Cassandra clusters. */ @@ -1505,7 +1339,7 @@ export interface ClusterResourceProperties { cassandraVersion?: string; /** If you need to set the clusterName property in cassandra.yaml to something besides the resource name of the cluster, set the value to use on this property. */ clusterNameOverride?: string; - /** Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not be used except in emergencies. 'Cassandra' is the default password based authentication. The default is 'Cassandra'. 'Ldap' is in preview. */ + /** 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'. */ authenticationMethod?: AuthenticationMethod; /** Initial password for clients connecting as admin to the cluster. Should be changed after cluster creation. Returns null on GET. This field only applies when the authenticationMethod field is 'Cassandra'. */ initialCassandraAdminPassword?: string; @@ -1529,12 +1363,14 @@ export interface ClusterResourceProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly seedNodes?: SeedNode[]; - /** Number of hours to wait between taking a backup of the cluster. To disable backups, set this property to 0. */ + /** (Deprecated) Number of hours to wait between taking a backup of the cluster. */ hoursBetweenBackups?: number; /** Whether the cluster and associated data centers has been deallocated. */ deallocated?: boolean; /** Whether Cassandra audit logging is enabled */ cassandraAuditLoggingEnabled?: boolean; + /** Error related to resource provisioning. */ + provisionError?: CassandraError; } export interface SeedNode { @@ -1547,6 +1383,17 @@ export interface Certificate { pem?: string; } +export interface CassandraError { + /** The code of error that occurred. */ + code?: string; + /** The message of the error. */ + message?: string; + /** The target resource of the error. */ + target?: string; + /** Additional information about the error. */ + additionalErrorInfo?: string; +} + /** The core properties of ARM resources. */ export interface ManagedCassandraARMResourceProperties { /** @@ -1608,20 +1455,6 @@ export interface CommandOutput { commandOutput?: string; } -/** List of restorable backups for a Cassandra cluster. */ -export interface ListBackups { - /** - * Container for array of backups. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: BackupResource[]; -} - -export interface BackupResourceProperties { - /** The time this backup was taken, formatted like 2021-01-21T17:35:21 */ - timestamp?: Date; -} - /** List of managed Cassandra data centers and their properties. */ export interface ListDataCenters { /** @@ -1656,12 +1489,16 @@ export interface DataCenterResourceProperties { sku?: string; /** Disk SKU used for data centers. Default value is P30. */ diskSku?: string; - /** Number of disk used for data centers. Default value is 4. */ + /** Number of disks attached to each node. Default is 4. */ diskCapacity?: number; - /** If the data center has Availability Zone feature, apply it to the Virtual Machine ScaleSet that host the cassandra data center virtual machines. */ + /** If the data center has Availability Zone support, apply it to the Virtual Machine ScaleSet that host the cassandra data center virtual machines. */ availabilityZone?: boolean; /** Ldap authentication method properties. This feature is in preview. */ authenticationMethodLdapProperties?: AuthenticationMethodLdapProperties; + /** Whether the data center has been deallocated. */ + deallocated?: boolean; + /** Error related to resource provisioning. */ + provisionError?: CassandraError; } /** Ldap authentication method properties. This feature is in preview. */ @@ -1679,6 +1516,8 @@ export interface AuthenticationMethodLdapProperties { /** Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login. */ searchFilterTemplate?: string; serverCertificates?: Certificate[]; + /** Timeout for connecting to the LDAP server in miliseconds. The default is 5000 ms. */ + connectionTimeoutInMs?: number; } /** Properties of a managed Cassandra cluster public status. */ @@ -1687,6 +1526,8 @@ export interface CassandraClusterPublicStatus { reaperStatus?: ManagedCassandraReaperStatus; /** List relevant information about any connection errors to the Datacenters. */ connectionErrors?: ConnectionError[]; + /** List relevant information about any errors about cluster, data center and connection error. */ + errors?: CassandraError[]; /** List of the status of each datacenter in this cluster. */ dataCenters?: CassandraClusterPublicStatusDataCentersItem[]; } @@ -1726,6 +1567,8 @@ export interface ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDa /** The state of the node in Cassandra ring. */ state?: NodeState; status?: string; + /** Cassandra service status on this node */ + cassandraProcessStatus?: 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 cells or tombstones) is counted. */ load?: string; /** List of tokens this node covers. */ @@ -1735,7 +1578,7 @@ export interface ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDa hostID?: string; /** The rack this node is part of. */ rack?: string; - /** The timestamp at which that snapshot of these usage statistics were taken. */ + /** The timestamp when these statistics were captured. */ timestamp?: string; /** The amount of disk used, in kB, of the directory /var/lib/cassandra. */ diskUsedKB?: number; @@ -1937,10 +1780,10 @@ export interface RestorableDatabaseAccountGetResult { accountName?: string; /** The creation time of the restorable database account (ISO-8601 format). */ creationTime?: Date; - /** The least recent time at which the database account can be restored to (ISO-8601 format). */ - oldestRestorableTime?: Date; /** The time at which the restorable database account has been deleted (ISO-8601 format). */ deletionTime?: Date; + /** The least recent time at which the database account can be restored to (ISO-8601 format). */ + oldestRestorableTime?: Date; /** * The API type of the restorable database account. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2646,23 +2489,6 @@ export interface MaterializedViewsBuilderServiceResource { /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export interface ProxyResource extends Resource {} -/** Parameters to indicate the information about the restore. */ -export interface RestoreParameters extends RestoreParametersBase { - /** Describes the mode of the restore. */ - restoreMode?: RestoreMode; - /** List of specific databases available for restore. */ - databasesToRestore?: DatabaseRestoreResource[]; - /** List of specific gremlin databases available for restore. */ - gremlinDatabasesToRestore?: GremlinDatabaseRestoreResource[]; - /** List of specific tables available for restore. */ - tablesToRestore?: string[]; - /** The source backup location for restore. */ - sourceBackupLocation?: string; -} - -/** Parameters to indicate the information about the restore. */ -export interface ResourceRestoreParameters extends RestoreParametersBase {} - /** The object representing periodic mode backup policy. */ export interface PeriodicModeBackupPolicy extends BackupPolicy { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2683,6 +2509,8 @@ export interface ContinuousModeBackupPolicy extends BackupPolicy { export interface DatabaseAccountGetResults extends ARMResourceProperties { /** Indicates the type of database account. This can only be set at database account creation. */ kind?: DatabaseAccountKind; + /** Identity for the resource. */ + identity?: ManagedServiceIdentity; /** * The system meta data relating to this resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2779,14 +2607,10 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { 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 object that represents all properties related to capacity enforcement on an account. */ capacity?: Capacity; - /** Flag to indicate whether to enable MaterializedViews on the Cosmos DB account */ - enableMaterializedViews?: boolean; /** * The object that represents the metadata for the Account Keys of the Cosmos DB account. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2794,8 +2618,6 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { readonly keysMetadata?: DatabaseAccountKeysMetadata; /** Flag to indicate enabling/disabling of Partition Merge feature on the account */ enablePartitionMerge?: boolean; - /** Flag to indicate enabling/disabling of Burst Capacity Preview feature on the account */ - enableBurstCapacity?: boolean; /** Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work with Tls 1.2. */ minimalTlsVersion?: MinimalTlsVersion; } @@ -2805,6 +2627,8 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProperties { /** Indicates the type of database account. This can only be set at database account creation. */ kind?: DatabaseAccountKind; + /** Identity for the resource. */ + 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. */ @@ -2853,16 +2677,12 @@ export interface DatabaseAccountCreateUpdateParameters 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; /** The object that represents all properties related to capacity enforcement on an account. */ capacity?: Capacity; - /** Flag to indicate whether to enable MaterializedViews on the Cosmos DB account */ - enableMaterializedViews?: boolean; /** * This property is ignored during the update/create operation, as the metadata is read-only. The object represents the metadata for the Account Keys of the Cosmos DB account. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2870,25 +2690,8 @@ export interface DatabaseAccountCreateUpdateParameters readonly keysMetadata?: DatabaseAccountKeysMetadata; /** Flag to indicate enabling/disabling of Partition Merge feature on the account */ enablePartitionMerge?: boolean; - /** Flag to indicate enabling/disabling of Burst Capacity Preview feature on the account */ - enableBurstCapacity?: boolean; - /** Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work with Tls 1.2. */ - minimalTlsVersion?: MinimalTlsVersion; -} - -/** An Azure Cosmos DB Graph resource. */ -export interface GraphResourceGetResults extends ARMResourceProperties { - resource?: GraphResourceGetPropertiesResource; - options?: GraphResourceGetPropertiesOptions; -} - -/** Parameters to create and update Cosmos DB Graph resource. */ -export interface GraphResourceCreateUpdateParameters - extends ARMResourceProperties { - /** The standard JSON format of a Graph resource */ - resource: GraphResource; - /** A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. */ - options?: CreateUpdateOptions; + /** Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work with Tls 1.2. */ + minimalTlsVersion?: MinimalTlsVersion; } /** An Azure Cosmos DB SQL database. */ @@ -2933,26 +2736,6 @@ export interface SqlContainerCreateUpdateParameters options?: CreateUpdateOptions; } -/** Cosmos DB retrieve throughput parameters object */ -export interface RetrieveThroughputParameters extends ARMResourceProperties { - /** The standard JSON format of a resource throughput */ - resource: RetrieveThroughputPropertiesResource; -} - -/** An Azure Cosmos DB PhysicalPartitionThroughputInfoResult object. */ -export interface PhysicalPartitionThroughputInfoResult - extends ARMResourceProperties { - /** properties of physical partition throughput info */ - resource?: PhysicalPartitionThroughputInfoResultPropertiesResource; -} - -/** Cosmos DB redistribute throughput parameters object */ -export interface RedistributeThroughputParameters - extends ARMResourceProperties { - /** The standard JSON format of a resource throughput */ - resource: RedistributeThroughputPropertiesResource; -} - /** An Azure Cosmos DB storedProcedure. */ export interface SqlStoredProcedureGetResults extends ARMResourceProperties { resource?: SqlStoredProcedureGetPropertiesResource; @@ -3100,21 +2883,6 @@ export interface GremlinGraphCreateUpdateParameters options?: CreateUpdateOptions; } -/** An Azure Cosmos DB Cassandra view. */ -export interface CassandraViewGetResults extends ARMResourceProperties { - resource?: CassandraViewGetPropertiesResource; - options?: CassandraViewGetPropertiesOptions; -} - -/** 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 access keys for the given database account. */ export interface DatabaseAccountListKeysResult extends DatabaseAccountListReadOnlyKeysResult { @@ -3197,32 +2965,6 @@ export interface PartitionUsage extends Usage { readonly partitionKeyRangeId?: string; } -export interface GraphResourceGetPropertiesResource extends GraphResource {} - -export interface GraphResourceGetPropertiesOptions extends OptionsResource {} - -export interface SqlDatabaseGetPropertiesOptions extends OptionsResource {} - -export interface SqlContainerGetPropertiesOptions extends OptionsResource {} - -export interface MongoDBDatabaseGetPropertiesOptions extends OptionsResource {} - -export interface MongoDBCollectionGetPropertiesOptions - extends OptionsResource {} - -export interface TableGetPropertiesOptions extends OptionsResource {} - -export interface CassandraKeyspaceGetPropertiesOptions - extends OptionsResource {} - -export interface CassandraTableGetPropertiesOptions extends OptionsResource {} - -export interface GremlinDatabaseGetPropertiesOptions extends OptionsResource {} - -export interface GremlinGraphGetPropertiesOptions extends OptionsResource {} - -export interface CassandraViewGetPropertiesOptions extends OptionsResource {} - export interface SqlDatabaseGetPropertiesResource extends SqlDatabaseResource, ExtendedResourceProperties { @@ -3257,14 +2999,14 @@ export interface ThroughputSettingsGetPropertiesResource extends ThroughputSettingsResource, ExtendedResourceProperties {} -export interface ClientEncryptionKeyGetPropertiesResource - extends ClientEncryptionKeyResource, - ExtendedResourceProperties {} - export interface SqlContainerGetPropertiesResource extends SqlContainerResource, ExtendedResourceProperties {} +export interface ClientEncryptionKeyGetPropertiesResource + extends ClientEncryptionKeyResource, + ExtendedResourceProperties {} + export interface SqlStoredProcedureGetPropertiesResource extends SqlStoredProcedureResource, ExtendedResourceProperties {} @@ -3305,10 +3047,6 @@ export interface GremlinGraphGetPropertiesResource extends GremlinGraphResource, ExtendedResourceProperties {} -export interface CassandraViewGetPropertiesResource - extends CassandraViewResource, - ExtendedResourceProperties {} - /** Cosmos DB SQL container resource object */ export interface RestorableSqlContainerPropertiesResourceContainer extends SqlContainerResource, @@ -3320,6 +3058,26 @@ export interface RestorableSqlContainerPropertiesResourceContainer readonly self?: string; } +export interface SqlDatabaseGetPropertiesOptions extends OptionsResource {} + +export interface SqlContainerGetPropertiesOptions extends OptionsResource {} + +export interface MongoDBDatabaseGetPropertiesOptions extends OptionsResource {} + +export interface MongoDBCollectionGetPropertiesOptions + extends OptionsResource {} + +export interface TableGetPropertiesOptions extends OptionsResource {} + +export interface CassandraKeyspaceGetPropertiesOptions + extends OptionsResource {} + +export interface CassandraTableGetPropertiesOptions extends OptionsResource {} + +export interface GremlinDatabaseGetPropertiesOptions extends OptionsResource {} + +export interface GremlinGraphGetPropertiesOptions extends OptionsResource {} + /** Client Encryption Key. */ export interface ClientEncryptionKeyGetResults extends ARMProxyResource { resource?: ClientEncryptionKeyGetPropertiesResource; @@ -3331,57 +3089,6 @@ export interface LocationGetResult extends ARMProxyResource { properties?: LocationProperties; } -/** Parameters to create Data Transfer Job */ -export interface CreateJobRequest extends ARMProxyResource { - /** Data Transfer Create Job Properties */ - properties: DataTransferJobProperties; -} - -/** A Cosmos DB Data Transfer Job */ -export interface DataTransferJobGetResults extends ARMProxyResource { - /** - * Job Name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly jobName?: string; - /** Source DataStore details */ - source?: DataTransferDataSourceSinkUnion; - /** Destination DataStore details */ - destination?: DataTransferDataSourceSinkUnion; - /** - * Job Status - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; - /** - * Processed Count. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly processedCount?: number; - /** - * Total Count. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly totalCount?: number; - /** - * Last Updated Time (ISO-8601 format). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastUpdatedUtcTime?: Date; - /** Worker count */ - workerCount?: number; - /** - * Error response for Faulted job - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly error?: ErrorResponse; -} - -/** A restorable backup of a Cassandra cluster. */ -export interface BackupResource extends ARMProxyResource { - properties?: BackupResourceProperties; -} - /** A managed Cassandra data center. */ export interface DataCenterResource extends ARMProxyResource { /** Properties of a managed Cassandra data center. */ @@ -3483,37 +3190,6 @@ export interface ServiceResource extends ARMProxyResource { properties?: ServiceResourcePropertiesUnion; } -/** properties of physical partition throughput info */ -export interface PhysicalPartitionThroughputInfoResultPropertiesResource - extends PhysicalPartitionThroughputInfoProperties {} - -/** A CosmosDB Cassandra API data source/sink */ -export interface CosmosCassandraDataTransferDataSourceSink - extends DataTransferDataSourceSink { - /** Polymorphic discriminator, which specifies the different types this object can be */ - component: "CosmosDBCassandra"; - keyspaceName: string; - tableName: string; -} - -/** A CosmosDB Cassandra API data source/sink */ -export interface CosmosSqlDataTransferDataSourceSink - extends DataTransferDataSourceSink { - /** Polymorphic discriminator, which specifies the different types this object can be */ - component: "CosmosDBSql"; - databaseName: string; - containerName: string; -} - -/** An Azure Blob Storage data source/sink */ -export interface AzureBlobDataTransferDataSourceSink - extends DataTransferDataSourceSink { - /** Polymorphic discriminator, which specifies the different types this object can be */ - component: "AzureBlobStorage"; - containerName: string; - endpointUrl?: string; -} - /** Representation of a managed Cassandra cluster. */ export interface ClusterResource extends ManagedCassandraARMResourceProperties { /** Properties of a managed Cassandra cluster. */ @@ -3652,22 +3328,6 @@ export interface DatabaseAccountsRegenerateKeyHeaders { location?: string; } -/** Defines headers for GraphResources_createUpdateGraph operation. */ -export interface GraphResourcesCreateUpdateGraphHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - -/** Defines headers for GraphResources_deleteGraphResource operation. */ -export interface GraphResourcesDeleteGraphResourceHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - /** Defines headers for SqlResources_createUpdateSqlDatabase operation. */ export interface SqlResourcesCreateUpdateSqlDatabaseHeaders { /** URI to poll for completion status. */ @@ -3708,14 +3368,6 @@ export interface SqlResourcesMigrateSqlDatabaseToManualThroughputHeaders { location?: string; } -/** Defines headers for SqlResources_createUpdateClientEncryptionKey operation. */ -export interface SqlResourcesCreateUpdateClientEncryptionKeyHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - /** Defines headers for SqlResources_createUpdateSqlContainer operation. */ export interface SqlResourcesCreateUpdateSqlContainerHeaders { /** URI to poll for completion status. */ @@ -3732,14 +3384,6 @@ export interface SqlResourcesDeleteSqlContainerHeaders { location?: string; } -/** Defines headers for SqlResources_listSqlContainerPartitionMerge operation. */ -export interface SqlResourcesListSqlContainerPartitionMergeHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - /** Defines headers for SqlResources_updateSqlContainerThroughput operation. */ export interface SqlResourcesUpdateSqlContainerThroughputHeaders { /** URI to poll for completion status. */ @@ -3764,32 +3408,8 @@ export interface SqlResourcesMigrateSqlContainerToManualThroughputHeaders { location?: string; } -/** Defines headers for SqlResources_sqlDatabaseRetrieveThroughputDistribution operation. */ -export interface SqlResourcesSqlDatabaseRetrieveThroughputDistributionHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - -/** Defines headers for SqlResources_sqlDatabaseRedistributeThroughput operation. */ -export interface SqlResourcesSqlDatabaseRedistributeThroughputHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - -/** Defines headers for SqlResources_sqlContainerRetrieveThroughputDistribution operation. */ -export interface SqlResourcesSqlContainerRetrieveThroughputDistributionHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - -/** Defines headers for SqlResources_sqlContainerRedistributeThroughput operation. */ -export interface SqlResourcesSqlContainerRedistributeThroughputHeaders { +/** Defines headers for SqlResources_createUpdateClientEncryptionKey operation. */ +export interface SqlResourcesCreateUpdateClientEncryptionKeyHeaders { /** URI to poll for completion status. */ azureAsyncOperation?: string; /** URI to poll for completion status. */ @@ -3884,38 +3504,6 @@ export interface MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputHeaders location?: string; } -/** Defines headers for MongoDBResources_mongoDBDatabaseRetrieveThroughputDistribution operation. */ -export interface MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - -/** Defines headers for MongoDBResources_mongoDBDatabaseRedistributeThroughput operation. */ -export interface MongoDBResourcesMongoDBDatabaseRedistributeThroughputHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - -/** Defines headers for MongoDBResources_mongoDBContainerRetrieveThroughputDistribution operation. */ -export interface MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - -/** Defines headers for MongoDBResources_mongoDBContainerRedistributeThroughput operation. */ -export interface MongoDBResourcesMongoDBContainerRedistributeThroughputHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - /** Defines headers for MongoDBResources_createUpdateMongoDBCollection operation. */ export interface MongoDBResourcesCreateUpdateMongoDBCollectionHeaders { /** URI to poll for completion status. */ @@ -3932,14 +3520,6 @@ export interface MongoDBResourcesDeleteMongoDBCollectionHeaders { location?: string; } -/** Defines headers for MongoDBResources_listMongoDBCollectionPartitionMerge operation. */ -export interface MongoDBResourcesListMongoDBCollectionPartitionMergeHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - /** Defines headers for MongoDBResources_updateMongoDBCollectionThroughput operation. */ export interface MongoDBResourcesUpdateMongoDBCollectionThroughputHeaders { /** URI to poll for completion status. */ @@ -4084,46 +3664,6 @@ export interface CassandraResourcesMigrateCassandraTableToManualThroughputHeader location?: string; } -/** Defines headers for CassandraResources_createUpdateCassandraView operation. */ -export interface CassandraResourcesCreateUpdateCassandraViewHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - -/** Defines headers for CassandraResources_deleteCassandraView operation. */ -export interface CassandraResourcesDeleteCassandraViewHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - -/** Defines headers for CassandraResources_updateCassandraViewThroughput operation. */ -export interface CassandraResourcesUpdateCassandraViewThroughputHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - -/** Defines headers for CassandraResources_migrateCassandraViewToAutoscale operation. */ -export interface CassandraResourcesMigrateCassandraViewToAutoscaleHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - -/** Defines headers for CassandraResources_migrateCassandraViewToManualThroughput operation. */ -export interface CassandraResourcesMigrateCassandraViewToManualThroughputHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - /** Defines headers for GremlinResources_createUpdateGremlinDatabase operation. */ export interface GremlinResourcesCreateUpdateGremlinDatabaseHeaders { /** URI to poll for completion status. */ @@ -4204,6 +3744,14 @@ export interface GremlinResourcesMigrateGremlinGraphToManualThroughputHeaders { location?: string; } +/** Defines headers for Service_create operation. */ +export interface ServiceCreateHeaders { + /** URI to poll for completion status. */ + azureAsyncOperation?: string; + /** URI to poll for completion status. */ + location?: string; +} + /** Defines headers for Service_delete operation. */ export interface ServiceDeleteHeaders { /** URI to poll for completion status. */ @@ -4253,7 +3801,9 @@ export enum KnownPublicNetworkAccess { /** Enabled */ Enabled = "Enabled", /** Disabled */ - Disabled = "Disabled" + Disabled = "Disabled", + /** SecuredByPerimeter */ + SecuredByPerimeter = "SecuredByPerimeter" } /** @@ -4262,7 +3812,8 @@ export enum KnownPublicNetworkAccess { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Enabled** \ - * **Disabled** + * **Disabled** \ + * **SecuredByPerimeter** */ export type PublicNetworkAccess = string; @@ -4426,7 +3977,70 @@ export enum KnownCreatedByType { * **ManagedIdentity** \ * **Key** */ -export type CreatedByType = string; +export type CreatedByType = string; + +/** Known values of {@link Kind} that the service accepts. */ +export enum KnownKind { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary", + /** PrimaryReadonly */ + PrimaryReadonly = "PrimaryReadonly", + /** SecondaryReadonly */ + SecondaryReadonly = "SecondaryReadonly" +} + +/** + * Defines values for Kind. \ + * {@link KnownKind} can be used interchangeably with Kind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Primary** \ + * **Secondary** \ + * **PrimaryReadonly** \ + * **SecondaryReadonly** + */ +export type Kind = string; + +/** Known values of {@link Type} that the service accepts. */ +export enum KnownType { + /** Sql */ + Sql = "Sql", + /** Table */ + Table = "Table", + /** MongoDB */ + MongoDB = "MongoDB", + /** Cassandra */ + Cassandra = "Cassandra", + /** CassandraConnectorMetadata */ + CassandraConnectorMetadata = "CassandraConnectorMetadata", + /** Gremlin */ + Gremlin = "Gremlin", + /** SqlDedicatedGateway */ + SqlDedicatedGateway = "SqlDedicatedGateway", + /** GremlinV2 */ + GremlinV2 = "GremlinV2", + /** Undefined */ + Undefined = "Undefined" +} + +/** + * Defines values for Type. \ + * {@link KnownType} can be used interchangeably with Type, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Sql** \ + * **Table** \ + * **MongoDB** \ + * **Cassandra** \ + * **CassandraConnectorMetadata** \ + * **Gremlin** \ + * **SqlDedicatedGateway** \ + * **GremlinV2** \ + * **Undefined** + */ +export type Type = string; /** Known values of {@link KeyKind} that the service accepts. */ export enum KnownKeyKind { @@ -4668,27 +4282,6 @@ export enum KnownConflictResolutionMode { */ export type ConflictResolutionMode = string; -/** Known values of {@link ThroughputPolicyType} that the service accepts. */ -export enum KnownThroughputPolicyType { - /** None */ - None = "none", - /** Equal */ - Equal = "equal", - /** Custom */ - Custom = "custom" -} - -/** - * Defines values for ThroughputPolicyType. \ - * {@link KnownThroughputPolicyType} can be used interchangeably with ThroughputPolicyType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **none** \ - * **equal** \ - * **custom** - */ -export type ThroughputPolicyType = string; - /** Known values of {@link TriggerType} that the service accepts. */ export enum KnownTriggerType { /** Pre */ @@ -4755,26 +4348,32 @@ export enum KnownBackupStorageRedundancy { */ export type BackupStorageRedundancy = string; -/** Known values of {@link DataTransferComponent} that the service accepts. */ -export enum KnownDataTransferComponent { - /** CosmosDBCassandra */ - CosmosDBCassandra = "CosmosDBCassandra", - /** CosmosDBSql */ - CosmosDBSql = "CosmosDBSql", - /** AzureBlobStorage */ - AzureBlobStorage = "AzureBlobStorage" +/** Known values of {@link Status} that the service accepts. */ +export enum KnownStatus { + /** Uninitialized */ + Uninitialized = "Uninitialized", + /** Initializing */ + Initializing = "Initializing", + /** InternallyReady */ + InternallyReady = "InternallyReady", + /** Online */ + Online = "Online", + /** Deleting */ + Deleting = "Deleting" } /** - * Defines values for DataTransferComponent. \ - * {@link KnownDataTransferComponent} can be used interchangeably with DataTransferComponent, + * Defines values for Status. \ + * {@link KnownStatus} can be used interchangeably with Status, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **CosmosDBCassandra** \ - * **CosmosDBSql** \ - * **AzureBlobStorage** + * **Uninitialized** \ + * **Initializing** \ + * **InternallyReady** \ + * **Online** \ + * **Deleting** */ -export type DataTransferComponent = string; +export type Status = string; /** Known values of {@link ManagedCassandraProvisioningState} that the service accepts. */ export enum KnownManagedCassandraProvisioningState { @@ -4955,8 +4554,6 @@ export enum KnownOperationType { Replace = "Replace", /** Delete */ Delete = "Delete", - /** Recreate */ - Recreate = "Recreate", /** SystemOperation */ SystemOperation = "SystemOperation" } @@ -4969,7 +4566,6 @@ export enum KnownOperationType { * **Create** \ * **Replace** \ * **Delete** \ - * **Recreate** \ * **SystemOperation** */ export type OperationType = string; @@ -5084,6 +4680,12 @@ export enum KnownNodeStatus { * **Down** */ export type NodeStatus = string; +/** Defines values for ResourceIdentityType. */ +export type ResourceIdentityType = + | "SystemAssigned" + | "UserAssigned" + | "SystemAssigned,UserAssigned" + | "None"; /** Defines values for DefaultConsistencyLevel. */ export type DefaultConsistencyLevel = | "Eventual" @@ -5093,14 +4695,6 @@ export type DefaultConsistencyLevel = | "ConsistentPrefix"; /** Defines values for NetworkAclBypass. */ export type NetworkAclBypass = "None" | "AzureServices"; -/** Defines values for EnableFullTextQuery. */ -export type EnableFullTextQuery = "None" | "True" | "False"; -/** Defines values for ResourceIdentityType. */ -export type ResourceIdentityType = - | "SystemAssigned" - | "UserAssigned" - | "SystemAssigned,UserAssigned" - | "None"; /** Defines values for MongoRoleDefinitionType. */ export type MongoRoleDefinitionType = "BuiltInRole" | "CustomRole"; /** Defines values for RoleDefinitionType. */ @@ -5398,41 +4992,6 @@ export interface PartitionKeyRangeIdRegionListMetricsOptionalParams /** Contains response data for the listMetrics operation. */ export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListResult; -/** Optional parameters. */ -export interface GraphResourcesListGraphsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listGraphs operation. */ -export type GraphResourcesListGraphsResponse = GraphResourcesListResult; - -/** Optional parameters. */ -export interface GraphResourcesGetGraphOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getGraph operation. */ -export type GraphResourcesGetGraphResponse = GraphResourceGetResults; - -/** Optional parameters. */ -export interface GraphResourcesCreateUpdateGraphOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createUpdateGraph operation. */ -export type GraphResourcesCreateUpdateGraphResponse = GraphResourceGetResults; - -/** Optional parameters. */ -export interface GraphResourcesDeleteGraphResourceOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - /** Optional parameters. */ export interface SqlResourcesListSqlDatabasesOptionalParams extends coreClient.OperationOptions {} @@ -5514,32 +5073,6 @@ export interface SqlResourcesMigrateSqlDatabaseToManualThroughputOptionalParams /** Contains response data for the migrateSqlDatabaseToManualThroughput operation. */ export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults; -/** Optional parameters. */ -export interface SqlResourcesListClientEncryptionKeysOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listClientEncryptionKeys operation. */ -export type SqlResourcesListClientEncryptionKeysResponse = ClientEncryptionKeysListResult; - -/** Optional parameters. */ -export interface SqlResourcesGetClientEncryptionKeyOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getClientEncryptionKey operation. */ -export type SqlResourcesGetClientEncryptionKeyResponse = ClientEncryptionKeyGetResults; - -/** Optional parameters. */ -export interface SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createUpdateClientEncryptionKey operation. */ -export type SqlResourcesCreateUpdateClientEncryptionKeyResponse = ClientEncryptionKeyGetResults; - /** Optional parameters. */ export interface SqlResourcesListSqlContainersOptionalParams extends coreClient.OperationOptions {} @@ -5578,18 +5111,6 @@ export interface SqlResourcesDeleteSqlContainerOptionalParams /** Contains response data for the deleteSqlContainer operation. */ export type SqlResourcesDeleteSqlContainerResponse = SqlResourcesDeleteSqlContainerHeaders; -/** Optional parameters. */ -export interface SqlResourcesListSqlContainerPartitionMergeOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the listSqlContainerPartitionMerge operation. */ -export type SqlResourcesListSqlContainerPartitionMergeResponse = PhysicalPartitionStorageInfoCollection; - /** Optional parameters. */ export interface SqlResourcesGetSqlContainerThroughputOptionalParams extends coreClient.OperationOptions {} @@ -5634,43 +5155,21 @@ export interface SqlResourcesMigrateSqlContainerToManualThroughputOptionalParams export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults; /** Optional parameters. */ -export interface SqlResourcesSqlDatabaseRetrieveThroughputDistributionOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the sqlDatabaseRetrieveThroughputDistribution operation. */ -export type SqlResourcesSqlDatabaseRetrieveThroughputDistributionResponse = PhysicalPartitionThroughputInfoResult; - -/** Optional parameters. */ -export interface SqlResourcesSqlDatabaseRedistributeThroughputOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SqlResourcesListClientEncryptionKeysOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the sqlDatabaseRedistributeThroughput operation. */ -export type SqlResourcesSqlDatabaseRedistributeThroughputResponse = PhysicalPartitionThroughputInfoResult; +/** Contains response data for the listClientEncryptionKeys operation. */ +export type SqlResourcesListClientEncryptionKeysResponse = ClientEncryptionKeysListResult; /** Optional parameters. */ -export interface SqlResourcesSqlContainerRetrieveThroughputDistributionOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SqlResourcesGetClientEncryptionKeyOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the sqlContainerRetrieveThroughputDistribution operation. */ -export type SqlResourcesSqlContainerRetrieveThroughputDistributionResponse = PhysicalPartitionThroughputInfoResult; +/** Contains response data for the getClientEncryptionKey operation. */ +export type SqlResourcesGetClientEncryptionKeyResponse = ClientEncryptionKeyGetResults; /** Optional parameters. */ -export interface SqlResourcesSqlContainerRedistributeThroughputOptionalParams +export interface SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -5678,8 +5177,8 @@ export interface SqlResourcesSqlContainerRedistributeThroughputOptionalParams resumeFrom?: string; } -/** Contains response data for the sqlContainerRedistributeThroughput operation. */ -export type SqlResourcesSqlContainerRedistributeThroughputResponse = PhysicalPartitionThroughputInfoResult; +/** Contains response data for the createUpdateClientEncryptionKey operation. */ +export type SqlResourcesCreateUpdateClientEncryptionKeyResponse = ClientEncryptionKeyGetResults; /** Optional parameters. */ export interface SqlResourcesListSqlStoredProceduresOptionalParams @@ -5958,54 +5457,6 @@ export interface MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputOptiona /** Contains response data for the migrateMongoDBDatabaseToManualThroughput operation. */ export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults; -/** Optional parameters. */ -export interface MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the mongoDBDatabaseRetrieveThroughputDistribution operation. */ -export type MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionResponse = PhysicalPartitionThroughputInfoResult; - -/** Optional parameters. */ -export interface MongoDBResourcesMongoDBDatabaseRedistributeThroughputOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the mongoDBDatabaseRedistributeThroughput operation. */ -export type MongoDBResourcesMongoDBDatabaseRedistributeThroughputResponse = PhysicalPartitionThroughputInfoResult; - -/** Optional parameters. */ -export interface MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the mongoDBContainerRetrieveThroughputDistribution operation. */ -export type MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse = PhysicalPartitionThroughputInfoResult; - -/** Optional parameters. */ -export interface MongoDBResourcesMongoDBContainerRedistributeThroughputOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the mongoDBContainerRedistributeThroughput operation. */ -export type MongoDBResourcesMongoDBContainerRedistributeThroughputResponse = PhysicalPartitionThroughputInfoResult; - /** Optional parameters. */ export interface MongoDBResourcesListMongoDBCollectionsOptionalParams extends coreClient.OperationOptions {} @@ -6044,18 +5495,6 @@ export interface MongoDBResourcesDeleteMongoDBCollectionOptionalParams /** Contains response data for the deleteMongoDBCollection operation. */ export type MongoDBResourcesDeleteMongoDBCollectionResponse = MongoDBResourcesDeleteMongoDBCollectionHeaders; -/** Optional parameters. */ -export interface MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the listMongoDBCollectionPartitionMerge operation. */ -export type MongoDBResourcesListMongoDBCollectionPartitionMergeResponse = PhysicalPartitionStorageInfoCollection; - /** Optional parameters. */ export interface MongoDBResourcesGetMongoDBCollectionThroughputOptionalParams extends coreClient.OperationOptions {} @@ -6436,84 +5875,6 @@ export interface CassandraResourcesMigrateCassandraTableToManualThroughputOption /** Contains response data for the migrateCassandraTableToManualThroughput operation. */ export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults; -/** Optional parameters. */ -export interface CassandraResourcesListCassandraViewsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listCassandraViews operation. */ -export type CassandraResourcesListCassandraViewsResponse = CassandraViewListResult; - -/** Optional parameters. */ -export interface CassandraResourcesGetCassandraViewOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getCassandraView operation. */ -export type CassandraResourcesGetCassandraViewResponse = CassandraViewGetResults; - -/** Optional parameters. */ -export interface CassandraResourcesCreateUpdateCassandraViewOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createUpdateCassandraView operation. */ -export type CassandraResourcesCreateUpdateCassandraViewResponse = CassandraViewGetResults; - -/** Optional parameters. */ -export interface CassandraResourcesDeleteCassandraViewOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface CassandraResourcesGetCassandraViewThroughputOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getCassandraViewThroughput operation. */ -export type CassandraResourcesGetCassandraViewThroughputResponse = ThroughputSettingsGetResults; - -/** Optional parameters. */ -export interface CassandraResourcesUpdateCassandraViewThroughputOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the updateCassandraViewThroughput operation. */ -export type CassandraResourcesUpdateCassandraViewThroughputResponse = ThroughputSettingsGetResults; - -/** Optional parameters. */ -export interface CassandraResourcesMigrateCassandraViewToAutoscaleOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the migrateCassandraViewToAutoscale operation. */ -export type CassandraResourcesMigrateCassandraViewToAutoscaleResponse = ThroughputSettingsGetResults; - -/** Optional parameters. */ -export interface CassandraResourcesMigrateCassandraViewToManualThroughputOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the migrateCassandraViewToManualThroughput operation. */ -export type CassandraResourcesMigrateCassandraViewToManualThroughputResponse = ThroughputSettingsGetResults; - /** Optional parameters. */ export interface GremlinResourcesListGremlinDatabasesOptionalParams extends coreClient.OperationOptions {} @@ -6702,55 +6063,6 @@ export interface LocationsGetOptionalParams /** Contains response data for the get operation. */ export type LocationsGetResponse = LocationGetResult; -/** Optional parameters. */ -export interface DataTransferJobsCreateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the create operation. */ -export type DataTransferJobsCreateResponse = DataTransferJobGetResults; - -/** Optional parameters. */ -export interface DataTransferJobsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DataTransferJobsGetResponse = DataTransferJobGetResults; - -/** Optional parameters. */ -export interface DataTransferJobsPauseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the pause operation. */ -export type DataTransferJobsPauseResponse = DataTransferJobGetResults; - -/** Optional parameters. */ -export interface DataTransferJobsResumeOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the resume operation. */ -export type DataTransferJobsResumeResponse = DataTransferJobGetResults; - -/** Optional parameters. */ -export interface DataTransferJobsCancelOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the cancel operation. */ -export type DataTransferJobsCancelResponse = DataTransferJobGetResults; - -/** Optional parameters. */ -export interface DataTransferJobsListByDatabaseAccountOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseAccount operation. */ -export type DataTransferJobsListByDatabaseAccountResponse = DataTransferJobFeedResults; - -/** Optional parameters. */ -export interface DataTransferJobsListByDatabaseAccountNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByDatabaseAccountNext operation. */ -export type DataTransferJobsListByDatabaseAccountNextResponse = DataTransferJobFeedResults; - /** Optional parameters. */ export interface CassandraClustersListBySubscriptionOptionalParams extends coreClient.OperationOptions {} @@ -6817,20 +6129,6 @@ export interface CassandraClustersInvokeCommandOptionalParams /** Contains response data for the invokeCommand operation. */ export type CassandraClustersInvokeCommandResponse = CommandOutput; -/** Optional parameters. */ -export interface CassandraClustersListBackupsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBackups operation. */ -export type CassandraClustersListBackupsResponse = ListBackups; - -/** Optional parameters. */ -export interface CassandraClustersGetBackupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getBackup operation. */ -export type CassandraClustersGetBackupResponse = BackupResource; - /** Optional parameters. */ export interface CassandraClustersDeallocateOptionalParams extends coreClient.OperationOptions { diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts index e2e4759aecf7..3fc1502afeaf 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts @@ -8,6 +8,78 @@ import * as coreClient from "@azure/core-client"; +export const ManagedServiceIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServiceIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + 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: + "Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties" + } + } + } + } + } + } +}; + +export const Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: + "Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const IpAddressOrRange: coreClient.CompositeMapper = { type: { name: "Composite", @@ -287,19 +359,55 @@ export const AnalyticalStorageConfiguration: coreClient.CompositeMapper = { } }; -export const DatabaseRestoreResource: coreClient.CompositeMapper = { +export const RestoreParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabaseRestoreResource", + className: "RestoreParameters", modelProperties: { - databaseName: { - serializedName: "databaseName", + restoreMode: { + serializedName: "restoreMode", type: { name: "String" } }, - collectionNames: { - serializedName: "collectionNames", + restoreSource: { + serializedName: "restoreSource", + type: { + name: "String" + } + }, + restoreTimestampInUtc: { + serializedName: "restoreTimestampInUtc", + type: { + name: "DateTime" + } + }, + databasesToRestore: { + serializedName: "databasesToRestore", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseRestoreResource" + } + } + } + }, + gremlinDatabasesToRestore: { + serializedName: "gremlinDatabasesToRestore", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GremlinDatabaseRestoreResource" + } + } + } + }, + tablesToRestore: { + serializedName: "tablesToRestore", type: { name: "Sequence", element: { @@ -313,10 +421,10 @@ export const DatabaseRestoreResource: coreClient.CompositeMapper = { } }; -export const GremlinDatabaseRestoreResource: coreClient.CompositeMapper = { +export const DatabaseRestoreResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GremlinDatabaseRestoreResource", + className: "DatabaseRestoreResource", modelProperties: { databaseName: { serializedName: "databaseName", @@ -324,8 +432,8 @@ export const GremlinDatabaseRestoreResource: coreClient.CompositeMapper = { name: "String" } }, - graphNames: { - serializedName: "graphNames", + collectionNames: { + serializedName: "collectionNames", type: { name: "Sequence", element: { @@ -339,21 +447,26 @@ export const GremlinDatabaseRestoreResource: coreClient.CompositeMapper = { } }; -export const RestoreParametersBase: coreClient.CompositeMapper = { +export const GremlinDatabaseRestoreResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestoreParametersBase", + className: "GremlinDatabaseRestoreResource", modelProperties: { - restoreSource: { - serializedName: "restoreSource", + databaseName: { + serializedName: "databaseName", type: { name: "String" } }, - restoreTimestampInUtc: { - serializedName: "restoreTimestampInUtc", + graphNames: { + serializedName: "graphNames", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } @@ -459,22 +572,6 @@ export const CorsPolicy: coreClient.CompositeMapper = { } }; -export const DiagnosticLogSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiagnosticLogSettings", - modelProperties: { - enableFullTextQuery: { - serializedName: "enableFullTextQuery", - type: { - name: "Enum", - allowedValues: ["None", "True", "False"] - } - } - } - } -}; - export const Capacity: coreClient.CompositeMapper = { type: { name: "Composite", @@ -629,85 +726,6 @@ export const ARMResourceProperties: coreClient.CompositeMapper = { name: "Dictionary", value: { type: { name: "String" } } } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - } - } - } -}; - -export const ManagedServiceIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedServiceIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - 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: - "Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties" - } - } - } - } - } - } -}; - -export const Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: - "Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", - readOnly: true, - type: { - name: "String" - } } } } @@ -910,13 +928,6 @@ export const DatabaseAccountUpdateParameters: coreClient.CompositeMapper = { } } }, - diagnosticLogSettings: { - serializedName: "properties.diagnosticLogSettings", - type: { - name: "Composite", - className: "DiagnosticLogSettings" - } - }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", type: { @@ -930,12 +941,6 @@ export const DatabaseAccountUpdateParameters: coreClient.CompositeMapper = { className: "Capacity" } }, - enableMaterializedViews: { - serializedName: "properties.enableMaterializedViews", - type: { - name: "Boolean" - } - }, keysMetadata: { serializedName: "properties.keysMetadata", type: { @@ -949,12 +954,6 @@ export const DatabaseAccountUpdateParameters: coreClient.CompositeMapper = { name: "Boolean" } }, - enableBurstCapacity: { - serializedName: "properties.enableBurstCapacity", - type: { - name: "Boolean" - } - }, minimalTlsVersion: { serializedName: "properties.minimalTlsVersion", type: { @@ -1071,15 +1070,29 @@ export const DatabaseAccountConnectionString: coreClient.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const RegionForOnlineOffline: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegionForOnlineOffline", + }, + keyKind: { + serializedName: "keyKind", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const RegionForOnlineOffline: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegionForOnlineOffline", modelProperties: { region: { serializedName: "region", @@ -1648,10 +1661,10 @@ export const MetricAvailability: coreClient.CompositeMapper = { } }; -export const GraphResourcesListResult: coreClient.CompositeMapper = { +export const SqlDatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GraphResourcesListResult", + className: "SqlDatabaseListResult", modelProperties: { value: { serializedName: "value", @@ -1661,7 +1674,7 @@ export const GraphResourcesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GraphResourceGetResults" + className: "SqlDatabaseGetResults" } } } @@ -1670,10 +1683,10 @@ export const GraphResourcesListResult: coreClient.CompositeMapper = { } }; -export const GraphResource: coreClient.CompositeMapper = { +export const SqlDatabaseResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GraphResource", + className: "SqlDatabaseResource", modelProperties: { id: { serializedName: "id", @@ -1686,47 +1699,40 @@ export const GraphResource: coreClient.CompositeMapper = { } }; -export const OptionsResource: coreClient.CompositeMapper = { +export const ExtendedResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OptionsResource", + className: "ExtendedResourceProperties", modelProperties: { - throughput: { - serializedName: "throughput", + rid: { + serializedName: "_rid", + readOnly: true, type: { - name: "Number" + name: "String" } }, - autoscaleSettings: { - serializedName: "autoscaleSettings", + ts: { + serializedName: "_ts", + readOnly: true, type: { - name: "Composite", - className: "AutoscaleSettings" + name: "Number" } - } - } - } -}; - -export const AutoscaleSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutoscaleSettings", - modelProperties: { - maxThroughput: { - serializedName: "maxThroughput", + }, + etag: { + serializedName: "_etag", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const CreateUpdateOptions: coreClient.CompositeMapper = { +export const OptionsResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CreateUpdateOptions", + className: "OptionsResource", modelProperties: { throughput: { serializedName: "throughput", @@ -1745,82 +1751,37 @@ export const CreateUpdateOptions: coreClient.CompositeMapper = { } }; -export const SqlDatabaseListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlDatabaseListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlDatabaseGetResults" - } - } - } - } - } - } -}; - -export const SqlDatabaseResource: coreClient.CompositeMapper = { +export const AutoscaleSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlDatabaseResource", + className: "AutoscaleSettings", modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String" - } - }, - restoreParameters: { - serializedName: "restoreParameters", - type: { - name: "Composite", - className: "ResourceRestoreParameters" - } - }, - createMode: { - defaultValue: "Default", - serializedName: "createMode", + maxThroughput: { + serializedName: "maxThroughput", type: { - name: "String" + name: "Number" } } } } }; -export const ExtendedResourceProperties: coreClient.CompositeMapper = { +export const CreateUpdateOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedResourceProperties", + className: "CreateUpdateOptions", modelProperties: { - rid: { - serializedName: "_rid", - readOnly: true, - type: { - name: "String" - } - }, - ts: { - serializedName: "_ts", - readOnly: true, + throughput: { + serializedName: "throughput", type: { name: "Number" } }, - etag: { - serializedName: "_etag", - readOnly: true, + autoscaleSettings: { + serializedName: "autoscaleSettings", type: { - name: "String" + name: "Composite", + className: "AutoscaleSettings" } } } @@ -1858,6 +1819,20 @@ export const ThroughputSettingsResource: coreClient.CompositeMapper = { type: { name: "String" } + }, + instantMaximumThroughput: { + serializedName: "instantMaximumThroughput", + readOnly: true, + type: { + name: "String" + } + }, + softAllowedMaximumThroughput: { + serializedName: "softAllowedMaximumThroughput", + readOnly: true, + type: { + name: "String" + } } } } @@ -1946,10 +1921,10 @@ export const CloudError: coreClient.CompositeMapper = { } }; -export const ClientEncryptionKeysListResult: coreClient.CompositeMapper = { +export const SqlContainerListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClientEncryptionKeysListResult", + className: "SqlContainerListResult", modelProperties: { value: { serializedName: "value", @@ -1959,7 +1934,7 @@ export const ClientEncryptionKeysListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ClientEncryptionKeyGetResults" + className: "SqlContainerGetResults" } } } @@ -1968,246 +1943,97 @@ export const ClientEncryptionKeysListResult: coreClient.CompositeMapper = { } }; -export const ClientEncryptionKeyResource: coreClient.CompositeMapper = { +export const SqlContainerResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClientEncryptionKeyResource", + className: "SqlContainerResource", modelProperties: { id: { serializedName: "id", + required: true, type: { name: "String" } }, - encryptionAlgorithm: { - serializedName: "encryptionAlgorithm", + indexingPolicy: { + serializedName: "indexingPolicy", type: { - name: "String" + name: "Composite", + className: "IndexingPolicy" } }, - wrappedDataEncryptionKey: { - serializedName: "wrappedDataEncryptionKey", + partitionKey: { + serializedName: "partitionKey", type: { - name: "ByteArray" + name: "Composite", + className: "ContainerPartitionKey" } }, - keyWrapMetadata: { - serializedName: "keyWrapMetadata", + defaultTtl: { + serializedName: "defaultTtl", type: { - name: "Composite", - className: "KeyWrapMetadata" + name: "Number" } - } - } - } -}; - -export const KeyWrapMetadata: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KeyWrapMetadata", - modelProperties: { - name: { - serializedName: "name", + }, + uniqueKeyPolicy: { + serializedName: "uniqueKeyPolicy", type: { - name: "String" + name: "Composite", + className: "UniqueKeyPolicy" } }, - type: { - serializedName: "type", + conflictResolutionPolicy: { + serializedName: "conflictResolutionPolicy", type: { - name: "String" + name: "Composite", + className: "ConflictResolutionPolicy" } }, - value: { - serializedName: "value", + clientEncryptionPolicy: { + serializedName: "clientEncryptionPolicy", type: { - name: "String" + name: "Composite", + className: "ClientEncryptionPolicy" } }, - algorithm: { - serializedName: "algorithm", + analyticalStorageTtl: { + serializedName: "analyticalStorageTtl", type: { - name: "String" + name: "Number" } } } } }; -export const ARMProxyResource: coreClient.CompositeMapper = { +export const IndexingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ARMProxyResource", + className: "IndexingPolicy", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + automatic: { + serializedName: "automatic", type: { - name: "String" + name: "Boolean" } }, - name: { - serializedName: "name", - readOnly: true, + indexingMode: { + defaultValue: "consistent", + serializedName: "indexingMode", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + includedPaths: { + serializedName: "includedPaths", type: { - name: "String" - } - } - } - } -}; - -export const ClientEncryptionKeyCreateUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClientEncryptionKeyCreateUpdateParameters", - modelProperties: { - resource: { - serializedName: "properties.resource", - type: { - name: "Composite", - className: "ClientEncryptionKeyResource" - } - } - } - } -}; - -export const SqlContainerListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlContainerListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlContainerGetResults" - } - } - } - } - } - } -}; - -export const SqlContainerResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlContainerResource", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String" - } - }, - indexingPolicy: { - serializedName: "indexingPolicy", - type: { - name: "Composite", - className: "IndexingPolicy" - } - }, - partitionKey: { - serializedName: "partitionKey", - type: { - name: "Composite", - className: "ContainerPartitionKey" - } - }, - defaultTtl: { - serializedName: "defaultTtl", - type: { - name: "Number" - } - }, - uniqueKeyPolicy: { - serializedName: "uniqueKeyPolicy", - type: { - name: "Composite", - className: "UniqueKeyPolicy" - } - }, - conflictResolutionPolicy: { - serializedName: "conflictResolutionPolicy", - type: { - name: "Composite", - className: "ConflictResolutionPolicy" - } - }, - clientEncryptionPolicy: { - serializedName: "clientEncryptionPolicy", - type: { - name: "Composite", - className: "ClientEncryptionPolicy" - } - }, - analyticalStorageTtl: { - serializedName: "analyticalStorageTtl", - type: { - name: "Number" - } - }, - restoreParameters: { - serializedName: "restoreParameters", - type: { - name: "Composite", - className: "ResourceRestoreParameters" - } - }, - createMode: { - defaultValue: "Default", - serializedName: "createMode", - type: { - name: "String" - } - } - } - } -}; - -export const IndexingPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IndexingPolicy", - modelProperties: { - automatic: { - serializedName: "automatic", - type: { - name: "Boolean" - } - }, - indexingMode: { - defaultValue: "consistent", - serializedName: "indexingMode", - type: { - name: "String" - } - }, - includedPaths: { - serializedName: "includedPaths", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IncludedPath" - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IncludedPath" + } + } } }, excludedPaths: { @@ -2556,35 +2382,20 @@ export const ClientEncryptionIncludedPath: coreClient.CompositeMapper = { } }; -export const MergeParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MergeParameters", - modelProperties: { - isDryRun: { - serializedName: "isDryRun", - type: { - name: "Boolean" - } - } - } - } -}; - -export const PhysicalPartitionStorageInfoCollection: coreClient.CompositeMapper = { +export const ClientEncryptionKeysListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhysicalPartitionStorageInfoCollection", + className: "ClientEncryptionKeysListResult", modelProperties: { - physicalPartitionStorageInfoCollection: { - serializedName: "physicalPartitionStorageInfoCollection", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "PhysicalPartitionStorageInfo" + className: "ClientEncryptionKeyGetResults" } } } @@ -2593,80 +2404,133 @@ export const PhysicalPartitionStorageInfoCollection: coreClient.CompositeMapper } }; -export const PhysicalPartitionStorageInfo: coreClient.CompositeMapper = { +export const ClientEncryptionKeyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhysicalPartitionStorageInfo", + className: "ClientEncryptionKeyResource", modelProperties: { id: { serializedName: "id", - readOnly: true, type: { name: "String" } }, - storageInKB: { - serializedName: "storageInKB", - readOnly: true, + encryptionAlgorithm: { + serializedName: "encryptionAlgorithm", type: { - name: "Number" + name: "String" + } + }, + wrappedDataEncryptionKey: { + serializedName: "wrappedDataEncryptionKey", + type: { + name: "ByteArray" + } + }, + keyWrapMetadata: { + serializedName: "keyWrapMetadata", + type: { + name: "Composite", + className: "KeyWrapMetadata" } } } } }; -export const RetrieveThroughputPropertiesResource: coreClient.CompositeMapper = { +export const KeyWrapMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RetrieveThroughputPropertiesResource", + className: "KeyWrapMetadata", modelProperties: { - physicalPartitionIds: { - serializedName: "physicalPartitionIds", - required: true, + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PhysicalPartitionId" - } - } + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + }, + algorithm: { + serializedName: "algorithm", + type: { + name: "String" } } } } }; -export const PhysicalPartitionId: coreClient.CompositeMapper = { +export const ARMProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhysicalPartitionId", + className: "ARMProxyResource", modelProperties: { id: { serializedName: "id", - required: true, + readOnly: true, type: { name: "String" } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ClientEncryptionKeyCreateUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClientEncryptionKeyCreateUpdateParameters", + modelProperties: { + resource: { + serializedName: "properties.resource", + type: { + name: "Composite", + className: "ClientEncryptionKeyResource" + } } } } }; -export const PhysicalPartitionThroughputInfoProperties: coreClient.CompositeMapper = { +export const SqlStoredProcedureListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhysicalPartitionThroughputInfoProperties", + className: "SqlStoredProcedureListResult", modelProperties: { - physicalPartitionThroughputInfo: { - serializedName: "physicalPartitionThroughputInfo", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "PhysicalPartitionThroughputInfoResource" + className: "SqlStoredProcedureGetResults" } } } @@ -2675,10 +2539,10 @@ export const PhysicalPartitionThroughputInfoProperties: coreClient.CompositeMapp } }; -export const PhysicalPartitionThroughputInfoResource: coreClient.CompositeMapper = { +export const SqlStoredProcedureResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhysicalPartitionThroughputInfoResource", + className: "SqlStoredProcedureResource", modelProperties: { id: { serializedName: "id", @@ -2687,106 +2551,20 @@ export const PhysicalPartitionThroughputInfoResource: coreClient.CompositeMapper name: "String" } }, - throughput: { - serializedName: "throughput", + body: { + serializedName: "body", type: { - name: "Number" + name: "String" } } } } }; -export const RedistributeThroughputPropertiesResource: coreClient.CompositeMapper = { +export const SqlUserDefinedFunctionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RedistributeThroughputPropertiesResource", - modelProperties: { - throughputPolicy: { - serializedName: "throughputPolicy", - required: true, - type: { - name: "String" - } - }, - targetPhysicalPartitionThroughputInfo: { - serializedName: "targetPhysicalPartitionThroughputInfo", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PhysicalPartitionThroughputInfoResource" - } - } - } - }, - sourcePhysicalPartitionThroughputInfo: { - serializedName: "sourcePhysicalPartitionThroughputInfo", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PhysicalPartitionThroughputInfoResource" - } - } - } - } - } - } -}; - -export const SqlStoredProcedureListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlStoredProcedureListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlStoredProcedureGetResults" - } - } - } - } - } - } -}; - -export const SqlStoredProcedureResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlStoredProcedureResource", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String" - } - }, - body: { - serializedName: "body", - type: { - name: "String" - } - } - } - } -}; - -export const SqlUserDefinedFunctionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlUserDefinedFunctionListResult", + className: "SqlUserDefinedFunctionListResult", modelProperties: { value: { serializedName: "value", @@ -2916,20 +2694,6 @@ export const MongoDBDatabaseResource: coreClient.CompositeMapper = { type: { name: "String" } - }, - restoreParameters: { - serializedName: "restoreParameters", - type: { - name: "Composite", - className: "ResourceRestoreParameters" - } - }, - createMode: { - defaultValue: "Default", - serializedName: "createMode", - type: { - name: "String" - } } } } @@ -2993,20 +2757,6 @@ export const MongoDBCollectionResource: coreClient.CompositeMapper = { type: { name: "Number" } - }, - restoreParameters: { - serializedName: "restoreParameters", - type: { - name: "Composite", - className: "ResourceRestoreParameters" - } - }, - createMode: { - defaultValue: "Default", - serializedName: "createMode", - type: { - name: "String" - } } } } @@ -3109,20 +2859,6 @@ export const TableResource: coreClient.CompositeMapper = { type: { name: "String" } - }, - restoreParameters: { - serializedName: "restoreParameters", - type: { - name: "Composite", - className: "ResourceRestoreParameters" - } - }, - createMode: { - defaultValue: "Default", - serializedName: "createMode", - type: { - name: "String" - } } } } @@ -3358,20 +3094,6 @@ export const GremlinDatabaseResource: coreClient.CompositeMapper = { type: { name: "String" } - }, - restoreParameters: { - serializedName: "restoreParameters", - type: { - name: "Composite", - className: "ResourceRestoreParameters" - } - }, - createMode: { - defaultValue: "Default", - serializedName: "createMode", - type: { - name: "String" - } } } } @@ -3450,20 +3172,6 @@ export const GremlinGraphResource: coreClient.CompositeMapper = { type: { name: "Number" } - }, - restoreParameters: { - serializedName: "restoreParameters", - type: { - name: "Composite", - className: "ResourceRestoreParameters" - } - }, - createMode: { - defaultValue: "Default", - serializedName: "createMode", - type: { - name: "String" - } } } } @@ -3496,13 +3204,6 @@ export const LocationProperties: coreClient.CompositeMapper = { name: "Composite", className: "LocationProperties", modelProperties: { - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String" - } - }, supportsAvailabilityZone: { serializedName: "supportsAvailabilityZone", readOnly: true, @@ -3528,25 +3229,45 @@ export const LocationProperties: coreClient.CompositeMapper = { } } } + }, + isSubscriptionRegionAccessAllowedForRegular: { + serializedName: "isSubscriptionRegionAccessAllowedForRegular", + readOnly: true, + type: { + name: "Boolean" + } + }, + isSubscriptionRegionAccessAllowedForAz: { + serializedName: "isSubscriptionRegionAccessAllowedForAz", + readOnly: true, + type: { + name: "Boolean" + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } } } } }; -export const CassandraViewListResult: coreClient.CompositeMapper = { +export const ListClusters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraViewListResult", + className: "ListClusters", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "CassandraViewGetResults" + className: "ClusterResource" } } } @@ -3555,243 +3276,74 @@ export const CassandraViewListResult: coreClient.CompositeMapper = { } }; -export const CassandraViewResource: coreClient.CompositeMapper = { +export const ClusterResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraViewResource", + className: "ClusterResourceProperties", modelProperties: { - id: { - serializedName: "id", - required: true, + provisioningState: { + serializedName: "provisioningState", type: { name: "String" } }, - viewDefinition: { - serializedName: "viewDefinition", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const DataTransferJobProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataTransferJobProperties", - modelProperties: { - jobName: { - serializedName: "jobName", - readOnly: true, + restoreFromBackupId: { + serializedName: "restoreFromBackupId", type: { name: "String" } }, - source: { - serializedName: "source", + delegatedManagementSubnetId: { + serializedName: "delegatedManagementSubnetId", type: { - name: "Composite", - className: "DataTransferDataSourceSink" + name: "String" } }, - destination: { - serializedName: "destination", + cassandraVersion: { + serializedName: "cassandraVersion", type: { - name: "Composite", - className: "DataTransferDataSourceSink" + name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + clusterNameOverride: { + serializedName: "clusterNameOverride", type: { name: "String" } }, - processedCount: { - serializedName: "processedCount", - readOnly: true, + authenticationMethod: { + serializedName: "authenticationMethod", type: { - name: "Number" + name: "String" } }, - totalCount: { - serializedName: "totalCount", - readOnly: true, + initialCassandraAdminPassword: { + serializedName: "initialCassandraAdminPassword", type: { - name: "Number" + name: "String" } }, - lastUpdatedUtcTime: { - serializedName: "lastUpdatedUtcTime", - readOnly: true, + prometheusEndpoint: { + serializedName: "prometheusEndpoint", type: { - name: "DateTime" + name: "Composite", + className: "SeedNode" } }, - workerCount: { - constraints: { - InclusiveMinimum: 0 - }, - serializedName: "workerCount", + repairEnabled: { + serializedName: "repairEnabled", type: { - name: "Number" + name: "Boolean" } }, - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponse" - } - } - } - } -}; - -export const DataTransferDataSourceSink: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataTransferDataSourceSink", - uberParent: "DataTransferDataSourceSink", - polymorphicDiscriminator: { - serializedName: "component", - clientName: "component" - }, - modelProperties: { - component: { - defaultValue: "CosmosDBCassandra", - serializedName: "component", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const DataTransferJobFeedResults: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataTransferJobFeedResults", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + clientCertificates: { + serializedName: "clientCertificates", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DataTransferJobGetResults" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ListClusters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListClusters", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ClusterResource" - } - } - } - } - } - } -}; - -export const ClusterResourceProperties: coreClient.CompositeMapper = { - 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" - } - }, - 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" + className: "Certificate" } } } @@ -3863,6 +3415,13 @@ export const ClusterResourceProperties: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + provisionError: { + serializedName: "provisionError", + type: { + name: "Composite", + className: "CassandraError" + } } } } @@ -3898,6 +3457,39 @@ export const Certificate: coreClient.CompositeMapper = { } }; +export const CassandraError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CassandraError", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + additionalErrorInfo: { + serializedName: "additionalErrorInfo", + type: { + name: "String" + } + } + } + } +}; + export const ManagedCassandraARMResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4034,43 +3626,6 @@ export const CommandOutput: coreClient.CompositeMapper = { } }; -export const ListBackups: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListBackups", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BackupResource" - } - } - } - } - } - } -}; - -export const BackupResourceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupResourceProperties", - modelProperties: { - timestamp: { - serializedName: "timestamp", - type: { - name: "DateTime" - } - } - } - } -}; - export const ListDataCenters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4183,6 +3738,19 @@ export const DataCenterResourceProperties: coreClient.CompositeMapper = { name: "Composite", className: "AuthenticationMethodLdapProperties" } + }, + deallocated: { + serializedName: "deallocated", + type: { + name: "Boolean" + } + }, + provisionError: { + serializedName: "provisionError", + type: { + name: "Composite", + className: "CassandraError" + } } } } @@ -4240,6 +3808,12 @@ export const AuthenticationMethodLdapProperties: coreClient.CompositeMapper = { } } } + }, + connectionTimeoutInMs: { + serializedName: "connectionTimeoutInMs", + type: { + name: "Number" + } } } } @@ -4275,6 +3849,18 @@ export const CassandraClusterPublicStatus: coreClient.CompositeMapper = { } } }, + errors: { + serializedName: "errors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CassandraError" + } + } + } + }, dataCenters: { serializedName: "dataCenters", type: { @@ -4422,6 +4008,12 @@ export const ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatace name: "String" } }, + cassandraProcessStatus: { + serializedName: "cassandraProcessStatus", + type: { + name: "String" + } + }, load: { serializedName: "load", type: { @@ -5024,14 +4616,14 @@ export const RestorableDatabaseAccountGetResult: coreClient.CompositeMapper = { name: "DateTime" } }, - oldestRestorableTime: { - serializedName: "properties.oldestRestorableTime", + deletionTime: { + serializedName: "properties.deletionTime", type: { name: "DateTime" } }, - deletionTime: { - serializedName: "properties.deletionTime", + oldestRestorableTime: { + serializedName: "properties.oldestRestorableTime", type: { name: "DateTime" } @@ -6393,95 +5985,28 @@ export const ProxyResource: coreClient.CompositeMapper = { } }; -export const RestoreParameters: coreClient.CompositeMapper = { +export const PeriodicModeBackupPolicy: coreClient.CompositeMapper = { + serializedName: "Periodic", type: { name: "Composite", - className: "RestoreParameters", + className: "PeriodicModeBackupPolicy", + uberParent: "BackupPolicy", + polymorphicDiscriminator: BackupPolicy.type.polymorphicDiscriminator, modelProperties: { - ...RestoreParametersBase.type.modelProperties, - restoreMode: { - serializedName: "restoreMode", - type: { - name: "String" - } - }, - databasesToRestore: { - serializedName: "databasesToRestore", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseRestoreResource" - } - } - } - }, - gremlinDatabasesToRestore: { - serializedName: "gremlinDatabasesToRestore", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GremlinDatabaseRestoreResource" - } - } - } - }, - tablesToRestore: { - serializedName: "tablesToRestore", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - sourceBackupLocation: { - serializedName: "sourceBackupLocation", + ...BackupPolicy.type.modelProperties, + periodicModeProperties: { + serializedName: "periodicModeProperties", type: { - name: "String" + name: "Composite", + className: "PeriodicModeProperties" } } } } }; -export const ResourceRestoreParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceRestoreParameters", - modelProperties: { - ...RestoreParametersBase.type.modelProperties - } - } -}; - -export const PeriodicModeBackupPolicy: coreClient.CompositeMapper = { - serializedName: "Periodic", - type: { - name: "Composite", - className: "PeriodicModeBackupPolicy", - uberParent: "BackupPolicy", - polymorphicDiscriminator: BackupPolicy.type.polymorphicDiscriminator, - modelProperties: { - ...BackupPolicy.type.modelProperties, - periodicModeProperties: { - serializedName: "periodicModeProperties", - type: { - name: "Composite", - className: "PeriodicModeProperties" - } - } - } - } -}; - -export const ContinuousModeBackupPolicy: coreClient.CompositeMapper = { - serializedName: "Continuous", +export const ContinuousModeBackupPolicy: coreClient.CompositeMapper = { + serializedName: "Continuous", type: { name: "Composite", className: "ContinuousModeBackupPolicy", @@ -6512,6 +6037,13 @@ export const DatabaseAccountGetResults: coreClient.CompositeMapper = { name: "String" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, systemData: { serializedName: "systemData", type: { @@ -6787,13 +6319,6 @@ export const DatabaseAccountGetResults: coreClient.CompositeMapper = { } } }, - diagnosticLogSettings: { - serializedName: "properties.diagnosticLogSettings", - type: { - name: "Composite", - className: "DiagnosticLogSettings" - } - }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", type: { @@ -6807,12 +6332,6 @@ export const DatabaseAccountGetResults: coreClient.CompositeMapper = { className: "Capacity" } }, - enableMaterializedViews: { - serializedName: "properties.enableMaterializedViews", - type: { - name: "Boolean" - } - }, keysMetadata: { serializedName: "properties.keysMetadata", type: { @@ -6826,12 +6345,6 @@ export const DatabaseAccountGetResults: coreClient.CompositeMapper = { name: "Boolean" } }, - enableBurstCapacity: { - serializedName: "properties.enableBurstCapacity", - type: { - name: "Boolean" - } - }, minimalTlsVersion: { serializedName: "properties.minimalTlsVersion", type: { @@ -6854,6 +6367,13 @@ export const DatabaseAccountCreateUpdateParameters: coreClient.CompositeMapper = name: "String" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, consistencyPolicy: { serializedName: "properties.consistencyPolicy", type: { @@ -7042,13 +6562,6 @@ export const DatabaseAccountCreateUpdateParameters: coreClient.CompositeMapper = } } }, - diagnosticLogSettings: { - serializedName: "properties.diagnosticLogSettings", - type: { - name: "Composite", - className: "DiagnosticLogSettings" - } - }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", type: { @@ -7069,12 +6582,6 @@ export const DatabaseAccountCreateUpdateParameters: coreClient.CompositeMapper = className: "Capacity" } }, - enableMaterializedViews: { - serializedName: "properties.enableMaterializedViews", - type: { - name: "Boolean" - } - }, keysMetadata: { serializedName: "properties.keysMetadata", type: { @@ -7088,12 +6595,6 @@ export const DatabaseAccountCreateUpdateParameters: coreClient.CompositeMapper = name: "Boolean" } }, - enableBurstCapacity: { - serializedName: "properties.enableBurstCapacity", - type: { - name: "Boolean" - } - }, minimalTlsVersion: { serializedName: "properties.minimalTlsVersion", type: { @@ -7104,54 +6605,6 @@ export const DatabaseAccountCreateUpdateParameters: coreClient.CompositeMapper = } }; -export const GraphResourceGetResults: coreClient.CompositeMapper = { - 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 GraphResourceCreateUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GraphResourceCreateUpdateParameters", - modelProperties: { - ...ARMResourceProperties.type.modelProperties, - resource: { - serializedName: "properties.resource", - type: { - name: "Composite", - className: "GraphResource" - } - }, - options: { - serializedName: "properties.options", - type: { - name: "Composite", - className: "CreateUpdateOptions" - } - } - } - } -}; - export const SqlDatabaseGetResults: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7282,57 +6735,6 @@ export const SqlContainerCreateUpdateParameters: coreClient.CompositeMapper = { } }; -export const RetrieveThroughputParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RetrieveThroughputParameters", - modelProperties: { - ...ARMResourceProperties.type.modelProperties, - resource: { - serializedName: "properties.resource", - type: { - name: "Composite", - className: "RetrieveThroughputPropertiesResource" - } - } - } - } -}; - -export const PhysicalPartitionThroughputInfoResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PhysicalPartitionThroughputInfoResult", - modelProperties: { - ...ARMResourceProperties.type.modelProperties, - resource: { - serializedName: "properties.resource", - type: { - name: "Composite", - className: "PhysicalPartitionThroughputInfoResultPropertiesResource" - } - } - } - } -}; - -export const RedistributeThroughputParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RedistributeThroughputParameters", - modelProperties: { - ...ARMResourceProperties.type.modelProperties, - resource: { - serializedName: "properties.resource", - type: { - name: "Composite", - className: "RedistributeThroughputPropertiesResource" - } - } - } - } -}; - export const SqlStoredProcedureGetResults: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7792,54 +7194,6 @@ export const GremlinGraphCreateUpdateParameters: coreClient.CompositeMapper = { } }; -export const CassandraViewGetResults: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CassandraViewGetResults", - modelProperties: { - ...ARMResourceProperties.type.modelProperties, - resource: { - serializedName: "properties.resource", - type: { - name: "Composite", - className: "CassandraViewGetPropertiesResource" - } - }, - options: { - serializedName: "properties.options", - type: { - name: "Composite", - className: "CassandraViewGetPropertiesOptions" - } - } - } - } -}; - -export const CassandraViewCreateUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CassandraViewCreateUpdateParameters", - modelProperties: { - ...ARMResourceProperties.type.modelProperties, - resource: { - serializedName: "properties.resource", - type: { - name: "Composite", - className: "CassandraViewResource" - } - }, - options: { - serializedName: "properties.options", - type: { - name: "Composite", - className: "CreateUpdateOptions" - } - } - } - } -}; - export const DatabaseAccountListKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7971,349 +7325,308 @@ export const PartitionUsage: coreClient.CompositeMapper = { } }; -export const GraphResourceGetPropertiesResource: coreClient.CompositeMapper = { +export const SqlDatabaseGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GraphResourceGetPropertiesResource", + className: "SqlDatabaseGetPropertiesResource", modelProperties: { - ...GraphResource.type.modelProperties + ...SqlDatabaseResource.type.modelProperties, + ...ExtendedResourceProperties.type.modelProperties, + colls: { + serializedName: "_colls", + type: { + name: "String" + } + }, + users: { + serializedName: "_users", + type: { + name: "String" + } + } } } }; -export const GraphResourceGetPropertiesOptions: coreClient.CompositeMapper = { +export const RestorableSqlDatabasePropertiesResourceDatabase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GraphResourceGetPropertiesOptions", + className: "RestorableSqlDatabasePropertiesResourceDatabase", modelProperties: { - ...OptionsResource.type.modelProperties + ...SqlDatabaseResource.type.modelProperties, + ...ExtendedResourceProperties.type.modelProperties, + colls: { + serializedName: "_colls", + readOnly: true, + type: { + name: "String" + } + }, + users: { + serializedName: "_users", + readOnly: true, + type: { + name: "String" + } + }, + self: { + serializedName: "_self", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const SqlDatabaseGetPropertiesOptions: coreClient.CompositeMapper = { +export const ThroughputSettingsGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlDatabaseGetPropertiesOptions", + className: "ThroughputSettingsGetPropertiesResource", modelProperties: { - ...OptionsResource.type.modelProperties + ...ThroughputSettingsResource.type.modelProperties, + ...ExtendedResourceProperties.type.modelProperties } } }; -export const SqlContainerGetPropertiesOptions: coreClient.CompositeMapper = { +export const SqlContainerGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlContainerGetPropertiesOptions", + className: "SqlContainerGetPropertiesResource", modelProperties: { - ...OptionsResource.type.modelProperties + ...SqlContainerResource.type.modelProperties, + ...ExtendedResourceProperties.type.modelProperties } } }; -export const MongoDBDatabaseGetPropertiesOptions: coreClient.CompositeMapper = { +export const ClientEncryptionKeyGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBDatabaseGetPropertiesOptions", + className: "ClientEncryptionKeyGetPropertiesResource", modelProperties: { - ...OptionsResource.type.modelProperties + ...ClientEncryptionKeyResource.type.modelProperties, + ...ExtendedResourceProperties.type.modelProperties } } }; -export const MongoDBCollectionGetPropertiesOptions: coreClient.CompositeMapper = { +export const SqlStoredProcedureGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBCollectionGetPropertiesOptions", - modelProperties: { - ...OptionsResource.type.modelProperties - } - } -}; - -export const TableGetPropertiesOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TableGetPropertiesOptions", - modelProperties: { - ...OptionsResource.type.modelProperties - } - } -}; - -export const CassandraKeyspaceGetPropertiesOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CassandraKeyspaceGetPropertiesOptions", - modelProperties: { - ...OptionsResource.type.modelProperties - } - } -}; - -export const CassandraTableGetPropertiesOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CassandraTableGetPropertiesOptions", - modelProperties: { - ...OptionsResource.type.modelProperties - } - } -}; - -export const GremlinDatabaseGetPropertiesOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GremlinDatabaseGetPropertiesOptions", + className: "SqlStoredProcedureGetPropertiesResource", modelProperties: { - ...OptionsResource.type.modelProperties + ...SqlStoredProcedureResource.type.modelProperties, + ...ExtendedResourceProperties.type.modelProperties } } }; -export const GremlinGraphGetPropertiesOptions: coreClient.CompositeMapper = { +export const SqlUserDefinedFunctionGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GremlinGraphGetPropertiesOptions", + className: "SqlUserDefinedFunctionGetPropertiesResource", modelProperties: { - ...OptionsResource.type.modelProperties + ...SqlUserDefinedFunctionResource.type.modelProperties, + ...ExtendedResourceProperties.type.modelProperties } } }; -export const CassandraViewGetPropertiesOptions: coreClient.CompositeMapper = { +export const SqlTriggerGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraViewGetPropertiesOptions", + className: "SqlTriggerGetPropertiesResource", modelProperties: { - ...OptionsResource.type.modelProperties + ...SqlTriggerResource.type.modelProperties, + ...ExtendedResourceProperties.type.modelProperties } } }; -export const SqlDatabaseGetPropertiesResource: coreClient.CompositeMapper = { +export const MongoDBDatabaseGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlDatabaseGetPropertiesResource", + className: "MongoDBDatabaseGetPropertiesResource", modelProperties: { - ...SqlDatabaseResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties, - colls: { - serializedName: "_colls", - type: { - name: "String" - } - }, - users: { - serializedName: "_users", - type: { - name: "String" - } - } + ...MongoDBDatabaseResource.type.modelProperties, + ...ExtendedResourceProperties.type.modelProperties } } }; -export const RestorableSqlDatabasePropertiesResourceDatabase: coreClient.CompositeMapper = { +export const MongoDBCollectionGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableSqlDatabasePropertiesResourceDatabase", + className: "MongoDBCollectionGetPropertiesResource", modelProperties: { - ...SqlDatabaseResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties, - colls: { - serializedName: "_colls", - readOnly: true, - type: { - name: "String" - } - }, - users: { - serializedName: "_users", - readOnly: true, - type: { - name: "String" - } - }, - self: { - serializedName: "_self", - readOnly: true, - type: { - name: "String" - } - } + ...MongoDBCollectionResource.type.modelProperties, + ...ExtendedResourceProperties.type.modelProperties } } }; -export const ThroughputSettingsGetPropertiesResource: coreClient.CompositeMapper = { +export const TableGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ThroughputSettingsGetPropertiesResource", + className: "TableGetPropertiesResource", modelProperties: { - ...ThroughputSettingsResource.type.modelProperties, + ...TableResource.type.modelProperties, ...ExtendedResourceProperties.type.modelProperties } } }; -export const ClientEncryptionKeyGetPropertiesResource: coreClient.CompositeMapper = { +export const CassandraKeyspaceGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClientEncryptionKeyGetPropertiesResource", + className: "CassandraKeyspaceGetPropertiesResource", modelProperties: { - ...ClientEncryptionKeyResource.type.modelProperties, + ...CassandraKeyspaceResource.type.modelProperties, ...ExtendedResourceProperties.type.modelProperties } } }; -export const SqlContainerGetPropertiesResource: coreClient.CompositeMapper = { +export const CassandraTableGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlContainerGetPropertiesResource", + className: "CassandraTableGetPropertiesResource", modelProperties: { - ...SqlContainerResource.type.modelProperties, + ...CassandraTableResource.type.modelProperties, ...ExtendedResourceProperties.type.modelProperties } } }; -export const SqlStoredProcedureGetPropertiesResource: coreClient.CompositeMapper = { +export const GremlinDatabaseGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlStoredProcedureGetPropertiesResource", + className: "GremlinDatabaseGetPropertiesResource", modelProperties: { - ...SqlStoredProcedureResource.type.modelProperties, + ...GremlinDatabaseResource.type.modelProperties, ...ExtendedResourceProperties.type.modelProperties } } }; -export const SqlUserDefinedFunctionGetPropertiesResource: coreClient.CompositeMapper = { +export const GremlinGraphGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlUserDefinedFunctionGetPropertiesResource", + className: "GremlinGraphGetPropertiesResource", modelProperties: { - ...SqlUserDefinedFunctionResource.type.modelProperties, + ...GremlinGraphResource.type.modelProperties, ...ExtendedResourceProperties.type.modelProperties } } }; -export const SqlTriggerGetPropertiesResource: coreClient.CompositeMapper = { +export const RestorableSqlContainerPropertiesResourceContainer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlTriggerGetPropertiesResource", + className: "RestorableSqlContainerPropertiesResourceContainer", modelProperties: { - ...SqlTriggerResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties + ...SqlContainerResource.type.modelProperties, + ...ExtendedResourceProperties.type.modelProperties, + self: { + serializedName: "_self", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const MongoDBDatabaseGetPropertiesResource: coreClient.CompositeMapper = { +export const SqlDatabaseGetPropertiesOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBDatabaseGetPropertiesResource", + className: "SqlDatabaseGetPropertiesOptions", modelProperties: { - ...MongoDBDatabaseResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties + ...OptionsResource.type.modelProperties } } }; -export const MongoDBCollectionGetPropertiesResource: coreClient.CompositeMapper = { +export const SqlContainerGetPropertiesOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBCollectionGetPropertiesResource", + className: "SqlContainerGetPropertiesOptions", modelProperties: { - ...MongoDBCollectionResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties + ...OptionsResource.type.modelProperties } } }; -export const TableGetPropertiesResource: coreClient.CompositeMapper = { +export const MongoDBDatabaseGetPropertiesOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TableGetPropertiesResource", + className: "MongoDBDatabaseGetPropertiesOptions", modelProperties: { - ...TableResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties + ...OptionsResource.type.modelProperties } } }; -export const CassandraKeyspaceGetPropertiesResource: coreClient.CompositeMapper = { +export const MongoDBCollectionGetPropertiesOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraKeyspaceGetPropertiesResource", + className: "MongoDBCollectionGetPropertiesOptions", modelProperties: { - ...CassandraKeyspaceResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties + ...OptionsResource.type.modelProperties } } }; -export const CassandraTableGetPropertiesResource: coreClient.CompositeMapper = { +export const TableGetPropertiesOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraTableGetPropertiesResource", + className: "TableGetPropertiesOptions", modelProperties: { - ...CassandraTableResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties + ...OptionsResource.type.modelProperties } } }; -export const GremlinDatabaseGetPropertiesResource: coreClient.CompositeMapper = { +export const CassandraKeyspaceGetPropertiesOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GremlinDatabaseGetPropertiesResource", + className: "CassandraKeyspaceGetPropertiesOptions", modelProperties: { - ...GremlinDatabaseResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties + ...OptionsResource.type.modelProperties } } }; -export const GremlinGraphGetPropertiesResource: coreClient.CompositeMapper = { +export const CassandraTableGetPropertiesOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GremlinGraphGetPropertiesResource", + className: "CassandraTableGetPropertiesOptions", modelProperties: { - ...GremlinGraphResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties + ...OptionsResource.type.modelProperties } } }; -export const CassandraViewGetPropertiesResource: coreClient.CompositeMapper = { +export const GremlinDatabaseGetPropertiesOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraViewGetPropertiesResource", + className: "GremlinDatabaseGetPropertiesOptions", modelProperties: { - ...CassandraViewResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties + ...OptionsResource.type.modelProperties } } }; -export const RestorableSqlContainerPropertiesResourceContainer: coreClient.CompositeMapper = { +export const GremlinGraphGetPropertiesOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableSqlContainerPropertiesResourceContainer", + className: "GremlinGraphGetPropertiesOptions", modelProperties: { - ...SqlContainerResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties, - self: { - serializedName: "_self", - readOnly: true, - type: { - name: "String" - } - } + ...OptionsResource.type.modelProperties } } }; @@ -8352,171 +7665,62 @@ export const LocationGetResult: coreClient.CompositeMapper = { } }; -export const CreateJobRequest: coreClient.CompositeMapper = { +export const DataCenterResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CreateJobRequest", + className: "DataCenterResource", modelProperties: { ...ARMProxyResource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "DataTransferJobProperties" + className: "DataCenterResourceProperties" } } } } }; -export const DataTransferJobGetResults: coreClient.CompositeMapper = { +export const MongoRoleDefinitionGetResults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataTransferJobGetResults", + className: "MongoRoleDefinitionGetResults", modelProperties: { ...ARMProxyResource.type.modelProperties, - jobName: { - serializedName: "properties.jobName", - readOnly: true, + roleName: { + serializedName: "properties.roleName", type: { name: "String" } }, - source: { - serializedName: "properties.source", - type: { - name: "Composite", - className: "DataTransferDataSourceSink" - } - }, - destination: { - serializedName: "properties.destination", + typePropertiesType: { + serializedName: "properties.type", type: { - name: "Composite", - className: "DataTransferDataSourceSink" + name: "Enum", + allowedValues: ["BuiltInRole", "CustomRole"] } }, - status: { - serializedName: "properties.status", - readOnly: true, + databaseName: { + serializedName: "properties.databaseName", type: { name: "String" } }, - processedCount: { - serializedName: "properties.processedCount", - readOnly: true, + privileges: { + serializedName: "properties.privileges", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Privilege" + } + } } }, - totalCount: { - serializedName: "properties.totalCount", - readOnly: true, - type: { - name: "Number" - } - }, - lastUpdatedUtcTime: { - serializedName: "properties.lastUpdatedUtcTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - workerCount: { - constraints: { - InclusiveMinimum: 0 - }, - serializedName: "properties.workerCount", - type: { - name: "Number" - } - }, - error: { - serializedName: "properties.error", - type: { - name: "Composite", - className: "ErrorResponse" - } - } - } - } -}; - -export const BackupResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupResource", - modelProperties: { - ...ARMProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "BackupResourceProperties" - } - } - } - } -}; - -export const DataCenterResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataCenterResource", - modelProperties: { - ...ARMProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DataCenterResourceProperties" - } - } - } - } -}; - -export const MongoRoleDefinitionGetResults: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MongoRoleDefinitionGetResults", - modelProperties: { - ...ARMProxyResource.type.modelProperties, - roleName: { - serializedName: "properties.roleName", - type: { - name: "String" - } - }, - typePropertiesType: { - serializedName: "properties.type", - type: { - name: "Enum", - allowedValues: ["BuiltInRole", "CustomRole"] - } - }, - databaseName: { - serializedName: "properties.databaseName", - type: { - name: "String" - } - }, - privileges: { - serializedName: "properties.privileges", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Privilege" - } - } - } - }, - roles: { - serializedName: "properties.roles", + roles: { + serializedName: "properties.roles", type: { name: "Sequence", element: { @@ -8749,99 +7953,6 @@ export const ServiceResource: coreClient.CompositeMapper = { } }; -export const PhysicalPartitionThroughputInfoResultPropertiesResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PhysicalPartitionThroughputInfoResultPropertiesResource", - modelProperties: { - ...PhysicalPartitionThroughputInfoProperties.type.modelProperties - } - } -}; - -export const CosmosCassandraDataTransferDataSourceSink: coreClient.CompositeMapper = { - serializedName: "CosmosDBCassandra", - type: { - name: "Composite", - className: "CosmosCassandraDataTransferDataSourceSink", - uberParent: "DataTransferDataSourceSink", - polymorphicDiscriminator: - DataTransferDataSourceSink.type.polymorphicDiscriminator, - modelProperties: { - ...DataTransferDataSourceSink.type.modelProperties, - keyspaceName: { - serializedName: "keyspaceName", - required: true, - type: { - name: "String" - } - }, - tableName: { - serializedName: "tableName", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const CosmosSqlDataTransferDataSourceSink: coreClient.CompositeMapper = { - serializedName: "CosmosDBSql", - type: { - name: "Composite", - className: "CosmosSqlDataTransferDataSourceSink", - uberParent: "DataTransferDataSourceSink", - polymorphicDiscriminator: - DataTransferDataSourceSink.type.polymorphicDiscriminator, - modelProperties: { - ...DataTransferDataSourceSink.type.modelProperties, - databaseName: { - serializedName: "databaseName", - required: true, - type: { - name: "String" - } - }, - containerName: { - serializedName: "containerName", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const AzureBlobDataTransferDataSourceSink: coreClient.CompositeMapper = { - serializedName: "AzureBlobStorage", - type: { - name: "Composite", - className: "AzureBlobDataTransferDataSourceSink", - uberParent: "DataTransferDataSourceSink", - polymorphicDiscriminator: - DataTransferDataSourceSink.type.polymorphicDiscriminator, - modelProperties: { - ...DataTransferDataSourceSink.type.modelProperties, - containerName: { - serializedName: "containerName", - required: true, - type: { - name: "String" - } - }, - endpointUrl: { - serializedName: "endpointUrl", - type: { - name: "String" - } - } - } - } -}; - export const ClusterResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9030,293 +8141,41 @@ export const GraphAPIComputeRegionalServiceResource: coreClient.CompositeMapper export const MaterializedViewsBuilderRegionalServiceResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaterializedViewsBuilderRegionalServiceResource", - modelProperties: { - ...RegionalServiceResource.type.modelProperties - } - } -}; - -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpointProperty" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" - } - }, - groupId: { - serializedName: "properties.groupId", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } - } - } - } -}; - -export const DatabaseAccountsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseAccountsDeleteHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const DatabaseAccountsFailoverPriorityChangeHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseAccountsFailoverPriorityChangeHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const DatabaseAccountsOfflineRegionHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseAccountsOfflineRegionHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const DatabaseAccountsOnlineRegionHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseAccountsOnlineRegionHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const DatabaseAccountsRegenerateKeyHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseAccountsRegenerateKeyHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const GraphResourcesCreateUpdateGraphHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GraphResourcesCreateUpdateGraphHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const GraphResourcesDeleteGraphResourceHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GraphResourcesDeleteGraphResourceHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const SqlResourcesCreateUpdateSqlDatabaseHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlResourcesCreateUpdateSqlDatabaseHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const SqlResourcesDeleteSqlDatabaseHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlResourcesDeleteSqlDatabaseHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const SqlResourcesUpdateSqlDatabaseThroughputHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlResourcesUpdateSqlDatabaseThroughputHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } + className: "MaterializedViewsBuilderRegionalServiceResource", + modelProperties: { + ...RegionalServiceResource.type.modelProperties } } }; -export const SqlResourcesMigrateSqlDatabaseToAutoscaleHeaders: coreClient.CompositeMapper = { +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesMigrateSqlDatabaseToAutoscaleHeaders", + className: "PrivateEndpointConnection", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + ...ProxyResource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "String" + name: "Composite", + className: "PrivateEndpointProperty" } }, - location: { - serializedName: "location", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "String" + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" } - } - } - } -}; - -export const SqlResourcesMigrateSqlDatabaseToManualThroughputHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlResourcesMigrateSqlDatabaseToManualThroughputHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + }, + groupId: { + serializedName: "properties.groupId", type: { name: "String" } }, - location: { - serializedName: "location", + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String" } @@ -9325,10 +8184,10 @@ export const SqlResourcesMigrateSqlDatabaseToManualThroughputHeaders: coreClient } }; -export const SqlResourcesCreateUpdateClientEncryptionKeyHeaders: coreClient.CompositeMapper = { +export const DatabaseAccountsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesCreateUpdateClientEncryptionKeyHeaders", + className: "DatabaseAccountsDeleteHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9346,10 +8205,10 @@ export const SqlResourcesCreateUpdateClientEncryptionKeyHeaders: coreClient.Comp } }; -export const SqlResourcesCreateUpdateSqlContainerHeaders: coreClient.CompositeMapper = { +export const DatabaseAccountsFailoverPriorityChangeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesCreateUpdateSqlContainerHeaders", + className: "DatabaseAccountsFailoverPriorityChangeHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9367,10 +8226,10 @@ export const SqlResourcesCreateUpdateSqlContainerHeaders: coreClient.CompositeMa } }; -export const SqlResourcesDeleteSqlContainerHeaders: coreClient.CompositeMapper = { +export const DatabaseAccountsOfflineRegionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesDeleteSqlContainerHeaders", + className: "DatabaseAccountsOfflineRegionHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9388,10 +8247,10 @@ export const SqlResourcesDeleteSqlContainerHeaders: coreClient.CompositeMapper = } }; -export const SqlResourcesListSqlContainerPartitionMergeHeaders: coreClient.CompositeMapper = { +export const DatabaseAccountsOnlineRegionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesListSqlContainerPartitionMergeHeaders", + className: "DatabaseAccountsOnlineRegionHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9409,10 +8268,10 @@ export const SqlResourcesListSqlContainerPartitionMergeHeaders: coreClient.Compo } }; -export const SqlResourcesUpdateSqlContainerThroughputHeaders: coreClient.CompositeMapper = { +export const DatabaseAccountsRegenerateKeyHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesUpdateSqlContainerThroughputHeaders", + className: "DatabaseAccountsRegenerateKeyHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9430,10 +8289,10 @@ export const SqlResourcesUpdateSqlContainerThroughputHeaders: coreClient.Composi } }; -export const SqlResourcesMigrateSqlContainerToAutoscaleHeaders: coreClient.CompositeMapper = { +export const SqlResourcesCreateUpdateSqlDatabaseHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesMigrateSqlContainerToAutoscaleHeaders", + className: "SqlResourcesCreateUpdateSqlDatabaseHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9451,10 +8310,10 @@ export const SqlResourcesMigrateSqlContainerToAutoscaleHeaders: coreClient.Compo } }; -export const SqlResourcesMigrateSqlContainerToManualThroughputHeaders: coreClient.CompositeMapper = { +export const SqlResourcesDeleteSqlDatabaseHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesMigrateSqlContainerToManualThroughputHeaders", + className: "SqlResourcesDeleteSqlDatabaseHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9472,10 +8331,10 @@ export const SqlResourcesMigrateSqlContainerToManualThroughputHeaders: coreClien } }; -export const SqlResourcesSqlDatabaseRetrieveThroughputDistributionHeaders: coreClient.CompositeMapper = { +export const SqlResourcesUpdateSqlDatabaseThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesSqlDatabaseRetrieveThroughputDistributionHeaders", + className: "SqlResourcesUpdateSqlDatabaseThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9493,10 +8352,10 @@ export const SqlResourcesSqlDatabaseRetrieveThroughputDistributionHeaders: coreC } }; -export const SqlResourcesSqlDatabaseRedistributeThroughputHeaders: coreClient.CompositeMapper = { +export const SqlResourcesMigrateSqlDatabaseToAutoscaleHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesSqlDatabaseRedistributeThroughputHeaders", + className: "SqlResourcesMigrateSqlDatabaseToAutoscaleHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9514,10 +8373,10 @@ export const SqlResourcesSqlDatabaseRedistributeThroughputHeaders: coreClient.Co } }; -export const SqlResourcesSqlContainerRetrieveThroughputDistributionHeaders: coreClient.CompositeMapper = { +export const SqlResourcesMigrateSqlDatabaseToManualThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesSqlContainerRetrieveThroughputDistributionHeaders", + className: "SqlResourcesMigrateSqlDatabaseToManualThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9535,10 +8394,10 @@ export const SqlResourcesSqlContainerRetrieveThroughputDistributionHeaders: core } }; -export const SqlResourcesSqlContainerRedistributeThroughputHeaders: coreClient.CompositeMapper = { +export const SqlResourcesCreateUpdateSqlContainerHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesSqlContainerRedistributeThroughputHeaders", + className: "SqlResourcesCreateUpdateSqlContainerHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9556,10 +8415,10 @@ export const SqlResourcesSqlContainerRedistributeThroughputHeaders: coreClient.C } }; -export const SqlResourcesCreateUpdateSqlStoredProcedureHeaders: coreClient.CompositeMapper = { +export const SqlResourcesDeleteSqlContainerHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesCreateUpdateSqlStoredProcedureHeaders", + className: "SqlResourcesDeleteSqlContainerHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9577,10 +8436,10 @@ export const SqlResourcesCreateUpdateSqlStoredProcedureHeaders: coreClient.Compo } }; -export const SqlResourcesDeleteSqlStoredProcedureHeaders: coreClient.CompositeMapper = { +export const SqlResourcesUpdateSqlContainerThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesDeleteSqlStoredProcedureHeaders", + className: "SqlResourcesUpdateSqlContainerThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9598,10 +8457,10 @@ export const SqlResourcesDeleteSqlStoredProcedureHeaders: coreClient.CompositeMa } }; -export const SqlResourcesCreateUpdateSqlUserDefinedFunctionHeaders: coreClient.CompositeMapper = { +export const SqlResourcesMigrateSqlContainerToAutoscaleHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesCreateUpdateSqlUserDefinedFunctionHeaders", + className: "SqlResourcesMigrateSqlContainerToAutoscaleHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9619,10 +8478,10 @@ export const SqlResourcesCreateUpdateSqlUserDefinedFunctionHeaders: coreClient.C } }; -export const SqlResourcesDeleteSqlUserDefinedFunctionHeaders: coreClient.CompositeMapper = { +export const SqlResourcesMigrateSqlContainerToManualThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesDeleteSqlUserDefinedFunctionHeaders", + className: "SqlResourcesMigrateSqlContainerToManualThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9640,10 +8499,10 @@ export const SqlResourcesDeleteSqlUserDefinedFunctionHeaders: coreClient.Composi } }; -export const SqlResourcesCreateUpdateSqlTriggerHeaders: coreClient.CompositeMapper = { +export const SqlResourcesCreateUpdateClientEncryptionKeyHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesCreateUpdateSqlTriggerHeaders", + className: "SqlResourcesCreateUpdateClientEncryptionKeyHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9661,10 +8520,10 @@ export const SqlResourcesCreateUpdateSqlTriggerHeaders: coreClient.CompositeMapp } }; -export const SqlResourcesDeleteSqlTriggerHeaders: coreClient.CompositeMapper = { +export const SqlResourcesCreateUpdateSqlStoredProcedureHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesDeleteSqlTriggerHeaders", + className: "SqlResourcesCreateUpdateSqlStoredProcedureHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9682,10 +8541,10 @@ export const SqlResourcesDeleteSqlTriggerHeaders: coreClient.CompositeMapper = { } }; -export const MongoDBResourcesCreateUpdateMongoDBDatabaseHeaders: coreClient.CompositeMapper = { +export const SqlResourcesDeleteSqlStoredProcedureHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesCreateUpdateMongoDBDatabaseHeaders", + className: "SqlResourcesDeleteSqlStoredProcedureHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9703,10 +8562,10 @@ export const MongoDBResourcesCreateUpdateMongoDBDatabaseHeaders: coreClient.Comp } }; -export const MongoDBResourcesDeleteMongoDBDatabaseHeaders: coreClient.CompositeMapper = { +export const SqlResourcesCreateUpdateSqlUserDefinedFunctionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesDeleteMongoDBDatabaseHeaders", + className: "SqlResourcesCreateUpdateSqlUserDefinedFunctionHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9724,10 +8583,10 @@ export const MongoDBResourcesDeleteMongoDBDatabaseHeaders: coreClient.CompositeM } }; -export const MongoDBResourcesUpdateMongoDBDatabaseThroughputHeaders: coreClient.CompositeMapper = { +export const SqlResourcesDeleteSqlUserDefinedFunctionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesUpdateMongoDBDatabaseThroughputHeaders", + className: "SqlResourcesDeleteSqlUserDefinedFunctionHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9745,10 +8604,10 @@ export const MongoDBResourcesUpdateMongoDBDatabaseThroughputHeaders: coreClient. } }; -export const MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleHeaders: coreClient.CompositeMapper = { +export const SqlResourcesCreateUpdateSqlTriggerHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleHeaders", + className: "SqlResourcesCreateUpdateSqlTriggerHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9766,11 +8625,10 @@ export const MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleHeaders: coreClien } }; -export const MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputHeaders: coreClient.CompositeMapper = { +export const SqlResourcesDeleteSqlTriggerHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputHeaders", + className: "SqlResourcesDeleteSqlTriggerHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9788,11 +8646,10 @@ export const MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputHeaders: co } }; -export const MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionHeaders: coreClient.CompositeMapper = { +export const MongoDBResourcesCreateUpdateMongoDBDatabaseHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionHeaders", + className: "MongoDBResourcesCreateUpdateMongoDBDatabaseHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9810,10 +8667,10 @@ export const MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionHeader } }; -export const MongoDBResourcesMongoDBDatabaseRedistributeThroughputHeaders: coreClient.CompositeMapper = { +export const MongoDBResourcesDeleteMongoDBDatabaseHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesMongoDBDatabaseRedistributeThroughputHeaders", + className: "MongoDBResourcesDeleteMongoDBDatabaseHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9831,11 +8688,10 @@ export const MongoDBResourcesMongoDBDatabaseRedistributeThroughputHeaders: coreC } }; -export const MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionHeaders: coreClient.CompositeMapper = { +export const MongoDBResourcesUpdateMongoDBDatabaseThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionHeaders", + className: "MongoDBResourcesUpdateMongoDBDatabaseThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9853,10 +8709,10 @@ export const MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionHeade } }; -export const MongoDBResourcesMongoDBContainerRedistributeThroughputHeaders: coreClient.CompositeMapper = { +export const MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesMongoDBContainerRedistributeThroughputHeaders", + className: "MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9874,10 +8730,11 @@ export const MongoDBResourcesMongoDBContainerRedistributeThroughputHeaders: core } }; -export const MongoDBResourcesCreateUpdateMongoDBCollectionHeaders: coreClient.CompositeMapper = { +export const MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesCreateUpdateMongoDBCollectionHeaders", + className: + "MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9895,10 +8752,10 @@ export const MongoDBResourcesCreateUpdateMongoDBCollectionHeaders: coreClient.Co } }; -export const MongoDBResourcesDeleteMongoDBCollectionHeaders: coreClient.CompositeMapper = { +export const MongoDBResourcesCreateUpdateMongoDBCollectionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesDeleteMongoDBCollectionHeaders", + className: "MongoDBResourcesCreateUpdateMongoDBCollectionHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -9916,10 +8773,10 @@ export const MongoDBResourcesDeleteMongoDBCollectionHeaders: coreClient.Composit } }; -export const MongoDBResourcesListMongoDBCollectionPartitionMergeHeaders: coreClient.CompositeMapper = { +export const MongoDBResourcesDeleteMongoDBCollectionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesListMongoDBCollectionPartitionMergeHeaders", + className: "MongoDBResourcesDeleteMongoDBCollectionHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -10318,112 +9175,6 @@ export const CassandraResourcesMigrateCassandraTableToManualThroughputHeaders: c } }; -export const CassandraResourcesCreateUpdateCassandraViewHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CassandraResourcesCreateUpdateCassandraViewHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const CassandraResourcesDeleteCassandraViewHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CassandraResourcesDeleteCassandraViewHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const CassandraResourcesUpdateCassandraViewThroughputHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CassandraResourcesUpdateCassandraViewThroughputHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const CassandraResourcesMigrateCassandraViewToAutoscaleHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CassandraResourcesMigrateCassandraViewToAutoscaleHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const CassandraResourcesMigrateCassandraViewToManualThroughputHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: - "CassandraResourcesMigrateCassandraViewToManualThroughputHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - export const GremlinResourcesCreateUpdateGremlinDatabaseHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -10635,6 +9386,27 @@ export const GremlinResourcesMigrateGremlinGraphToManualThroughputHeaders: coreC } }; +export const ServiceCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + export const ServiceDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -10658,13 +9430,9 @@ export const ServiceDeleteHeaders: coreClient.CompositeMapper = { export let discriminators = { BackupPolicy: BackupPolicy, - DataTransferDataSourceSink: DataTransferDataSourceSink, ServiceResourceProperties: ServiceResourceProperties, "BackupPolicy.Periodic": PeriodicModeBackupPolicy, "BackupPolicy.Continuous": ContinuousModeBackupPolicy, - "DataTransferDataSourceSink.CosmosDBCassandra": CosmosCassandraDataTransferDataSourceSink, - "DataTransferDataSourceSink.CosmosDBSql": CosmosSqlDataTransferDataSourceSink, - "DataTransferDataSourceSink.AzureBlobStorage": AzureBlobDataTransferDataSourceSink, "ServiceResourceProperties.DataTransfer": DataTransferServiceResourceProperties, "ServiceResourceProperties.SqlDedicatedGateway": SqlDedicatedGatewayServiceResourceProperties, "ServiceResourceProperties.GraphAPICompute": GraphAPIComputeServiceResourceProperties, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts index feeca39420a5..916d383e129d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts @@ -17,14 +17,10 @@ import { FailoverPolicies as FailoverPoliciesMapper, RegionForOnlineOffline as RegionForOnlineOfflineMapper, DatabaseAccountRegenerateKeyParameters as DatabaseAccountRegenerateKeyParametersMapper, - GraphResourceCreateUpdateParameters as GraphResourceCreateUpdateParametersMapper, SqlDatabaseCreateUpdateParameters as SqlDatabaseCreateUpdateParametersMapper, ThroughputSettingsUpdateParameters as ThroughputSettingsUpdateParametersMapper, - ClientEncryptionKeyCreateUpdateParameters as ClientEncryptionKeyCreateUpdateParametersMapper, SqlContainerCreateUpdateParameters as SqlContainerCreateUpdateParametersMapper, - MergeParameters as MergeParametersMapper, - RetrieveThroughputParameters as RetrieveThroughputParametersMapper, - RedistributeThroughputParameters as RedistributeThroughputParametersMapper, + ClientEncryptionKeyCreateUpdateParameters as ClientEncryptionKeyCreateUpdateParametersMapper, SqlStoredProcedureCreateUpdateParameters as SqlStoredProcedureCreateUpdateParametersMapper, SqlUserDefinedFunctionCreateUpdateParameters as SqlUserDefinedFunctionCreateUpdateParametersMapper, SqlTriggerCreateUpdateParameters as SqlTriggerCreateUpdateParametersMapper, @@ -38,10 +34,8 @@ import { TableCreateUpdateParameters as TableCreateUpdateParametersMapper, CassandraKeyspaceCreateUpdateParameters as CassandraKeyspaceCreateUpdateParametersMapper, CassandraTableCreateUpdateParameters as CassandraTableCreateUpdateParametersMapper, - CassandraViewCreateUpdateParameters as CassandraViewCreateUpdateParametersMapper, GremlinDatabaseCreateUpdateParameters as GremlinDatabaseCreateUpdateParametersMapper, GremlinGraphCreateUpdateParameters as GremlinGraphCreateUpdateParametersMapper, - CreateJobRequest as CreateJobRequestMapper, ClusterResource as ClusterResourceMapper, CommandPostBody as CommandPostBodyMapper, DataCenterResource as DataCenterResourceMapper, @@ -122,7 +116,7 @@ export const accountName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-11-15-preview", + defaultValue: "2023-04-15", isConstant: true, serializedName: "api-version", type: { @@ -272,22 +266,6 @@ export const partitionKeyRangeId: OperationURLParameter = { } }; -export const graphName: OperationURLParameter = { - parameterPath: "graphName", - mapper: { - serializedName: "graphName", - required: true, - type: { - name: "String" - } - } -}; - -export const createUpdateGraphParameters: OperationParameter = { - parameterPath: "createUpdateGraphParameters", - mapper: GraphResourceCreateUpdateParametersMapper -}; - export const databaseName: OperationURLParameter = { parameterPath: "databaseName", mapper: { @@ -309,22 +287,6 @@ export const updateThroughputParameters: OperationParameter = { mapper: ThroughputSettingsUpdateParametersMapper }; -export const clientEncryptionKeyName: OperationURLParameter = { - parameterPath: "clientEncryptionKeyName", - mapper: { - serializedName: "clientEncryptionKeyName", - required: true, - type: { - name: "String" - } - } -}; - -export const createUpdateClientEncryptionKeyParameters: OperationParameter = { - parameterPath: "createUpdateClientEncryptionKeyParameters", - mapper: ClientEncryptionKeyCreateUpdateParametersMapper -}; - export const containerName: OperationURLParameter = { parameterPath: "containerName", mapper: { @@ -341,19 +303,20 @@ export const createUpdateSqlContainerParameters: OperationParameter = { mapper: SqlContainerCreateUpdateParametersMapper }; -export const mergeParameters: OperationParameter = { - parameterPath: "mergeParameters", - mapper: MergeParametersMapper -}; - -export const retrieveThroughputParameters: OperationParameter = { - parameterPath: "retrieveThroughputParameters", - mapper: RetrieveThroughputParametersMapper +export const clientEncryptionKeyName: OperationURLParameter = { + parameterPath: "clientEncryptionKeyName", + mapper: { + serializedName: "clientEncryptionKeyName", + required: true, + type: { + name: "String" + } + } }; -export const redistributeThroughputParameters: OperationParameter = { - parameterPath: "redistributeThroughputParameters", - mapper: RedistributeThroughputParametersMapper +export const createUpdateClientEncryptionKeyParameters: OperationParameter = { + parameterPath: "createUpdateClientEncryptionKeyParameters", + mapper: ClientEncryptionKeyCreateUpdateParametersMapper }; export const storedProcedureName: OperationURLParameter = { @@ -531,10 +494,15 @@ export const createUpdateCassandraTableParameters: OperationParameter = { mapper: CassandraTableCreateUpdateParametersMapper }; -export const viewName: OperationURLParameter = { - parameterPath: "viewName", +export const createUpdateGremlinDatabaseParameters: OperationParameter = { + parameterPath: "createUpdateGremlinDatabaseParameters", + mapper: GremlinDatabaseCreateUpdateParametersMapper +}; + +export const graphName: OperationURLParameter = { + parameterPath: "graphName", mapper: { - serializedName: "viewName", + serializedName: "graphName", required: true, type: { name: "String" @@ -542,16 +510,6 @@ export const viewName: OperationURLParameter = { } }; -export const createUpdateCassandraViewParameters: OperationParameter = { - parameterPath: "createUpdateCassandraViewParameters", - mapper: CassandraViewCreateUpdateParametersMapper -}; - -export const createUpdateGremlinDatabaseParameters: OperationParameter = { - parameterPath: "createUpdateGremlinDatabaseParameters", - mapper: GremlinDatabaseCreateUpdateParametersMapper -}; - export const createUpdateGremlinGraphParameters: OperationParameter = { parameterPath: "createUpdateGremlinGraphParameters", mapper: GremlinGraphCreateUpdateParametersMapper @@ -568,22 +526,6 @@ export const location1: OperationURLParameter = { } }; -export const jobCreateParameters: OperationParameter = { - parameterPath: "jobCreateParameters", - mapper: CreateJobRequestMapper -}; - -export const jobName: OperationURLParameter = { - parameterPath: "jobName", - mapper: { - serializedName: "jobName", - required: true, - type: { - name: "String" - } - } -}; - export const clusterName: OperationURLParameter = { parameterPath: "clusterName", mapper: { @@ -610,22 +552,6 @@ export const body1: OperationParameter = { mapper: CommandPostBodyMapper }; -export const backupId: OperationURLParameter = { - parameterPath: "backupId", - mapper: { - constraints: { - Pattern: new RegExp("^[0-9]+$"), - MaxLength: 15, - MinLength: 1 - }, - serializedName: "backupId", - required: true, - type: { - name: "String" - } - } -}; - export const dataCenterName: OperationURLParameter = { parameterPath: "dataCenterName", mapper: { diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts index fcb1d9561a58..44ddb96df0bf 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts @@ -24,9 +24,6 @@ import { CassandraClustersListBySubscriptionResponse, CassandraClustersListByResourceGroupOptionalParams, CassandraClustersListByResourceGroupResponse, - BackupResource, - CassandraClustersListBackupsOptionalParams, - CassandraClustersListBackupsResponse, CassandraClustersGetOptionalParams, CassandraClustersGetResponse, CassandraClustersDeleteOptionalParams, @@ -37,8 +34,6 @@ import { CommandPostBody, CassandraClustersInvokeCommandOptionalParams, CassandraClustersInvokeCommandResponse, - CassandraClustersGetBackupOptionalParams, - CassandraClustersGetBackupResponse, CassandraClustersDeallocateOptionalParams, CassandraClustersStartOptionalParams, CassandraClustersStatusOptionalParams, @@ -151,68 +146,6 @@ export class CassandraClustersImpl implements CassandraClusters { } } - /** - * 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 options parameters. - */ - public listBackups( - resourceGroupName: string, - clusterName: string, - options?: CassandraClustersListBackupsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listBackupsPagingAll( - resourceGroupName, - clusterName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listBackupsPagingPage( - resourceGroupName, - clusterName, - options, - settings - ); - } - }; - } - - private async *listBackupsPagingPage( - resourceGroupName: string, - clusterName: string, - options?: CassandraClustersListBackupsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: CassandraClustersListBackupsResponse; - result = await this._listBackups(resourceGroupName, clusterName, options); - yield result.value || []; - } - - private async *listBackupsPagingAll( - resourceGroupName: string, - clusterName: string, - options?: CassandraClustersListBackupsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listBackupsPagingPage( - resourceGroupName, - clusterName, - options - )) { - yield* page; - } - } - /** * List all managed Cassandra clusters in this subscription. * @param options The options parameters. @@ -627,42 +560,6 @@ export class CassandraClustersImpl implements CassandraClusters { return poller.pollUntilDone(); } - /** - * 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 options parameters. - */ - private _listBackups( - resourceGroupName: string, - clusterName: string, - options?: CassandraClustersListBackupsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, clusterName, options }, - listBackupsOperationSpec - ); - } - - /** - * 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 options parameters. - */ - getBackup( - resourceGroupName: string, - clusterName: string, - backupId: string, - options?: CassandraClustersGetBackupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, clusterName, backupId, options }, - getBackupOperationSpec - ); - } - /** * Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate * the host virtual machine of this cluster, and reserved the data disk. This won't do anything on an @@ -1037,51 +934,6 @@ const invokeCommandOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const listBackupsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ListBackups - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getBackupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups/{backupId}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - Parameters.backupId - ], - headerParameters: [Parameters.accept], - serializer -}; const deallocateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/deallocate", diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts index 8083dd468af5..0e3362049a2c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts @@ -25,9 +25,6 @@ import { CassandraTableGetResults, CassandraResourcesListCassandraTablesOptionalParams, CassandraResourcesListCassandraTablesResponse, - CassandraViewGetResults, - CassandraResourcesListCassandraViewsOptionalParams, - CassandraResourcesListCassandraViewsResponse, CassandraResourcesGetCassandraKeyspaceOptionalParams, CassandraResourcesGetCassandraKeyspaceResponse, CassandraKeyspaceCreateUpdateParameters, @@ -58,21 +55,7 @@ import { CassandraResourcesMigrateCassandraTableToAutoscaleOptionalParams, CassandraResourcesMigrateCassandraTableToAutoscaleResponse, CassandraResourcesMigrateCassandraTableToManualThroughputOptionalParams, - CassandraResourcesMigrateCassandraTableToManualThroughputResponse, - CassandraResourcesGetCassandraViewOptionalParams, - CassandraResourcesGetCassandraViewResponse, - CassandraViewCreateUpdateParameters, - CassandraResourcesCreateUpdateCassandraViewOptionalParams, - CassandraResourcesCreateUpdateCassandraViewResponse, - CassandraResourcesDeleteCassandraViewOptionalParams, - CassandraResourcesGetCassandraViewThroughputOptionalParams, - CassandraResourcesGetCassandraViewThroughputResponse, - CassandraResourcesUpdateCassandraViewThroughputOptionalParams, - CassandraResourcesUpdateCassandraViewThroughputResponse, - CassandraResourcesMigrateCassandraViewToAutoscaleOptionalParams, - CassandraResourcesMigrateCassandraViewToAutoscaleResponse, - CassandraResourcesMigrateCassandraViewToManualThroughputOptionalParams, - CassandraResourcesMigrateCassandraViewToManualThroughputResponse + CassandraResourcesMigrateCassandraTableToManualThroughputResponse } from "../models"; /// @@ -228,80 +211,6 @@ export class CassandraResourcesImpl implements CassandraResources { } } - /** - * 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 options parameters. - */ - public listCassandraViews( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: CassandraResourcesListCassandraViewsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listCassandraViewsPagingAll( - resourceGroupName, - accountName, - keyspaceName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listCassandraViewsPagingPage( - resourceGroupName, - accountName, - keyspaceName, - options, - settings - ); - } - }; - } - - private async *listCassandraViewsPagingPage( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: CassandraResourcesListCassandraViewsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: CassandraResourcesListCassandraViewsResponse; - result = await this._listCassandraViews( - resourceGroupName, - accountName, - keyspaceName, - options - ); - yield result.value || []; - } - - private async *listCassandraViewsPagingAll( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: CassandraResourcesListCassandraViewsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listCassandraViewsPagingPage( - resourceGroupName, - accountName, - keyspaceName, - options - )) { - yield* page; - } - } - /** * Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1489,593 +1398,9 @@ export class CassandraResourcesImpl implements CassandraResources { ); return poller.pollUntilDone(); } - - /** - * 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 options parameters. - */ - private _listCassandraViews( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: CassandraResourcesListCassandraViewsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, keyspaceName, options }, - listCassandraViewsOperationSpec - ); - } - - /** - * 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 options parameters. - */ - getCassandraView( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesGetCassandraViewOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, keyspaceName, viewName, options }, - getCassandraViewOperationSpec - ); - } - - /** - * 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 options parameters. - */ - async beginCreateUpdateCassandraView( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - createUpdateCassandraViewParameters: CassandraViewCreateUpdateParameters, - options?: CassandraResourcesCreateUpdateCassandraViewOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - CassandraResourcesCreateUpdateCassandraViewResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - keyspaceName, - viewName, - createUpdateCassandraViewParameters, - options - }, - spec: createUpdateCassandraViewOperationSpec - }); - const poller = await createHttpPoller< - CassandraResourcesCreateUpdateCassandraViewResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * 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 options parameters. - */ - async beginCreateUpdateCassandraViewAndWait( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - createUpdateCassandraViewParameters: CassandraViewCreateUpdateParameters, - options?: CassandraResourcesCreateUpdateCassandraViewOptionalParams - ): Promise { - const poller = await this.beginCreateUpdateCassandraView( - resourceGroupName, - accountName, - keyspaceName, - viewName, - createUpdateCassandraViewParameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * 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 options parameters. - */ - async beginDeleteCassandraView( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesDeleteCassandraViewOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, keyspaceName, viewName, options }, - spec: deleteCassandraViewOperationSpec - }); - const poller = await createHttpPoller>(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * 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 options parameters. - */ - async beginDeleteCassandraViewAndWait( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesDeleteCassandraViewOptionalParams - ): Promise { - const poller = await this.beginDeleteCassandraView( - resourceGroupName, - accountName, - keyspaceName, - viewName, - options - ); - return poller.pollUntilDone(); - } - - /** - * 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 options parameters. - */ - getCassandraViewThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesGetCassandraViewThroughputOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, keyspaceName, viewName, options }, - getCassandraViewThroughputOperationSpec - ); - } - - /** - * 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 options parameters. - */ - async beginUpdateCassandraViewThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - updateThroughputParameters: ThroughputSettingsUpdateParameters, - options?: CassandraResourcesUpdateCassandraViewThroughputOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - CassandraResourcesUpdateCassandraViewThroughputResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - keyspaceName, - viewName, - updateThroughputParameters, - options - }, - spec: updateCassandraViewThroughputOperationSpec - }); - const poller = await createHttpPoller< - CassandraResourcesUpdateCassandraViewThroughputResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * 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 options parameters. - */ - async beginUpdateCassandraViewThroughputAndWait( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - updateThroughputParameters: ThroughputSettingsUpdateParameters, - options?: CassandraResourcesUpdateCassandraViewThroughputOptionalParams - ): Promise { - const poller = await this.beginUpdateCassandraViewThroughput( - resourceGroupName, - accountName, - keyspaceName, - viewName, - updateThroughputParameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * 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 options parameters. - */ - async beginMigrateCassandraViewToAutoscale( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesMigrateCassandraViewToAutoscaleOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - CassandraResourcesMigrateCassandraViewToAutoscaleResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, keyspaceName, viewName, options }, - spec: migrateCassandraViewToAutoscaleOperationSpec - }); - const poller = await createHttpPoller< - CassandraResourcesMigrateCassandraViewToAutoscaleResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * 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 options parameters. - */ - async beginMigrateCassandraViewToAutoscaleAndWait( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesMigrateCassandraViewToAutoscaleOptionalParams - ): Promise { - const poller = await this.beginMigrateCassandraViewToAutoscale( - resourceGroupName, - accountName, - keyspaceName, - viewName, - options - ); - return poller.pollUntilDone(); - } - - /** - * 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 options parameters. - */ - async beginMigrateCassandraViewToManualThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesMigrateCassandraViewToManualThroughputOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - CassandraResourcesMigrateCassandraViewToManualThroughputResponse - >, - CassandraResourcesMigrateCassandraViewToManualThroughputResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, keyspaceName, viewName, options }, - spec: migrateCassandraViewToManualThroughputOperationSpec - }); - const poller = await createHttpPoller< - CassandraResourcesMigrateCassandraViewToManualThroughputResponse, - OperationState< - CassandraResourcesMigrateCassandraViewToManualThroughputResponse - > - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * 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 options parameters. - */ - async beginMigrateCassandraViewToManualThroughputAndWait( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesMigrateCassandraViewToManualThroughputOptionalParams - ): Promise { - const poller = await this.beginMigrateCassandraViewToManualThroughput( - resourceGroupName, - accountName, - keyspaceName, - viewName, - options - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listCassandraKeyspacesOperationSpec: coreClient.OperationSpec = { path: @@ -2511,211 +1836,3 @@ const migrateCassandraTableToManualThroughputOperationSpec: coreClient.Operation headerParameters: [Parameters.accept], serializer }; -const listCassandraViewsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CassandraViewListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.keyspaceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getCassandraViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CassandraViewGetResults - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.keyspaceName, - Parameters.viewName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createUpdateCassandraViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.CassandraViewGetResults - }, - 201: { - bodyMapper: Mappers.CassandraViewGetResults - }, - 202: { - bodyMapper: Mappers.CassandraViewGetResults - }, - 204: { - bodyMapper: Mappers.CassandraViewGetResults - } - }, - requestBody: Parameters.createUpdateCassandraViewParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.keyspaceName, - Parameters.viewName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteCassandraViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}", - httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.keyspaceName, - Parameters.viewName - ], - serializer -}; -const getCassandraViewThroughputOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}/throughputSettings/default", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ThroughputSettingsGetResults - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.keyspaceName, - Parameters.viewName - ], - headerParameters: [Parameters.accept], - serializer -}; -const updateCassandraViewThroughputOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}/throughputSettings/default", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.ThroughputSettingsGetResults - }, - 201: { - bodyMapper: Mappers.ThroughputSettingsGetResults - }, - 202: { - bodyMapper: Mappers.ThroughputSettingsGetResults - }, - 204: { - bodyMapper: Mappers.ThroughputSettingsGetResults - } - }, - requestBody: Parameters.updateThroughputParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.keyspaceName, - Parameters.viewName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const migrateCassandraViewToAutoscaleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}/throughputSettings/default/migrateToAutoscale", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ThroughputSettingsGetResults - }, - 201: { - bodyMapper: Mappers.ThroughputSettingsGetResults - }, - 202: { - bodyMapper: Mappers.ThroughputSettingsGetResults - }, - 204: { - bodyMapper: Mappers.ThroughputSettingsGetResults - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.keyspaceName, - Parameters.viewName - ], - headerParameters: [Parameters.accept], - serializer -}; -const migrateCassandraViewToManualThroughputOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}/throughputSettings/default/migrateToManualThroughput", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ThroughputSettingsGetResults - }, - 201: { - bodyMapper: Mappers.ThroughputSettingsGetResults - }, - 202: { - bodyMapper: Mappers.ThroughputSettingsGetResults - }, - 204: { - bodyMapper: Mappers.ThroughputSettingsGetResults - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.keyspaceName, - Parameters.viewName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/dataTransferJobs.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/dataTransferJobs.ts deleted file mode 100644 index fa0f29cdd55a..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/dataTransferJobs.ts +++ /dev/null @@ -1,427 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DataTransferJobs } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { CosmosDBManagementClient } from "../cosmosDBManagementClient"; -import { - DataTransferJobGetResults, - DataTransferJobsListByDatabaseAccountNextOptionalParams, - DataTransferJobsListByDatabaseAccountOptionalParams, - DataTransferJobsListByDatabaseAccountResponse, - CreateJobRequest, - DataTransferJobsCreateOptionalParams, - DataTransferJobsCreateResponse, - DataTransferJobsGetOptionalParams, - DataTransferJobsGetResponse, - DataTransferJobsPauseOptionalParams, - DataTransferJobsPauseResponse, - DataTransferJobsResumeOptionalParams, - DataTransferJobsResumeResponse, - DataTransferJobsCancelOptionalParams, - DataTransferJobsCancelResponse, - DataTransferJobsListByDatabaseAccountNextResponse -} from "../models"; - -/// -/** Class containing DataTransferJobs operations. */ -export class DataTransferJobsImpl implements DataTransferJobs { - private readonly client: CosmosDBManagementClient; - - /** - * Initialize a new instance of the class DataTransferJobs class. - * @param client Reference to the service client - */ - constructor(client: CosmosDBManagementClient) { - this.client = client; - } - - /** - * Get a list of Data Transfer jobs. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param options The options parameters. - */ - public listByDatabaseAccount( - resourceGroupName: string, - accountName: string, - options?: DataTransferJobsListByDatabaseAccountOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByDatabaseAccountPagingAll( - resourceGroupName, - accountName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByDatabaseAccountPagingPage( - resourceGroupName, - accountName, - options, - settings - ); - } - }; - } - - private async *listByDatabaseAccountPagingPage( - resourceGroupName: string, - accountName: string, - options?: DataTransferJobsListByDatabaseAccountOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: DataTransferJobsListByDatabaseAccountResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByDatabaseAccount( - resourceGroupName, - accountName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByDatabaseAccountNext( - resourceGroupName, - accountName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByDatabaseAccountPagingAll( - resourceGroupName: string, - accountName: string, - options?: DataTransferJobsListByDatabaseAccountOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByDatabaseAccountPagingPage( - resourceGroupName, - accountName, - options - )) { - yield* page; - } - } - - /** - * Creates a Data Transfer Job. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param jobName Name of the Data Transfer Job - * @param jobCreateParameters Parameters to create Data Transfer Job - * @param options The options parameters. - */ - create( - resourceGroupName: string, - accountName: string, - jobName: string, - jobCreateParameters: CreateJobRequest, - options?: DataTransferJobsCreateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, jobName, jobCreateParameters, options }, - createOperationSpec - ); - } - - /** - * Get a Data Transfer Job. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param jobName Name of the Data Transfer Job - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - jobName: string, - options?: DataTransferJobsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, jobName, options }, - getOperationSpec - ); - } - - /** - * Pause a Data Transfer Job. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param jobName Name of the Data Transfer Job - * @param options The options parameters. - */ - pause( - resourceGroupName: string, - accountName: string, - jobName: string, - options?: DataTransferJobsPauseOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, jobName, options }, - pauseOperationSpec - ); - } - - /** - * Resumes a Data Transfer Job. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param jobName Name of the Data Transfer Job - * @param options The options parameters. - */ - resume( - resourceGroupName: string, - accountName: string, - jobName: string, - options?: DataTransferJobsResumeOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, jobName, options }, - resumeOperationSpec - ); - } - - /** - * Cancels a Data Transfer Job. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param jobName Name of the Data Transfer Job - * @param options The options parameters. - */ - cancel( - resourceGroupName: string, - accountName: string, - jobName: string, - options?: DataTransferJobsCancelOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, jobName, options }, - cancelOperationSpec - ); - } - - /** - * Get a list of Data Transfer jobs. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param options The options parameters. - */ - private _listByDatabaseAccount( - resourceGroupName: string, - accountName: string, - options?: DataTransferJobsListByDatabaseAccountOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, options }, - listByDatabaseAccountOperationSpec - ); - } - - /** - * ListByDatabaseAccountNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param nextLink The nextLink from the previous successful call to the ListByDatabaseAccount method. - * @param options The options parameters. - */ - private _listByDatabaseAccountNext( - resourceGroupName: string, - accountName: string, - nextLink: string, - options?: DataTransferJobsListByDatabaseAccountNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, nextLink, options }, - listByDatabaseAccountNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs/{jobName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.DataTransferJobGetResults - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.jobCreateParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.jobName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs/{jobName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataTransferJobGetResults - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.jobName - ], - headerParameters: [Parameters.accept], - serializer -}; -const pauseOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs/{jobName}/pause", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.DataTransferJobGetResults - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.jobName - ], - headerParameters: [Parameters.accept], - serializer -}; -const resumeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs/{jobName}/resume", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.DataTransferJobGetResults - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.jobName - ], - headerParameters: [Parameters.accept], - serializer -}; -const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs/{jobName}/cancel", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.DataTransferJobGetResults - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.jobName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByDatabaseAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataTransferJobFeedResults - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByDatabaseAccountNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DataTransferJobFeedResults - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/graphResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/graphResources.ts deleted file mode 100644 index ca9d84964a8c..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/graphResources.ts +++ /dev/null @@ -1,424 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { GraphResources } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { CosmosDBManagementClient } from "../cosmosDBManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - GraphResourceGetResults, - GraphResourcesListGraphsOptionalParams, - GraphResourcesListGraphsResponse, - GraphResourcesGetGraphOptionalParams, - GraphResourcesGetGraphResponse, - GraphResourceCreateUpdateParameters, - GraphResourcesCreateUpdateGraphOptionalParams, - GraphResourcesCreateUpdateGraphResponse, - GraphResourcesDeleteGraphResourceOptionalParams -} from "../models"; - -/// -/** Class containing GraphResources operations. */ -export class GraphResourcesImpl implements GraphResources { - private readonly client: CosmosDBManagementClient; - - /** - * Initialize a new instance of the class GraphResources class. - * @param client Reference to the service client - */ - constructor(client: CosmosDBManagementClient) { - 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 options parameters. - */ - public listGraphs( - resourceGroupName: string, - accountName: string, - options?: GraphResourcesListGraphsOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listGraphsPagingAll( - resourceGroupName, - accountName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listGraphsPagingPage( - resourceGroupName, - accountName, - options, - settings - ); - } - }; - } - - private async *listGraphsPagingPage( - resourceGroupName: string, - accountName: string, - options?: GraphResourcesListGraphsOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: GraphResourcesListGraphsResponse; - result = await this._listGraphs(resourceGroupName, accountName, options); - yield result.value || []; - } - - private async *listGraphsPagingAll( - resourceGroupName: string, - accountName: string, - options?: GraphResourcesListGraphsOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listGraphsPagingPage( - resourceGroupName, - accountName, - options - )) { - yield* page; - } - } - - /** - * 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 options parameters. - */ - private _listGraphs( - resourceGroupName: string, - accountName: string, - options?: GraphResourcesListGraphsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, options }, - listGraphsOperationSpec - ); - } - - /** - * 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 options parameters. - */ - getGraph( - resourceGroupName: string, - accountName: string, - graphName: string, - options?: GraphResourcesGetGraphOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, graphName, options }, - getGraphOperationSpec - ); - } - - /** - * 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 options parameters. - */ - async beginCreateUpdateGraph( - resourceGroupName: string, - accountName: string, - graphName: string, - createUpdateGraphParameters: GraphResourceCreateUpdateParameters, - options?: GraphResourcesCreateUpdateGraphOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - GraphResourcesCreateUpdateGraphResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - graphName, - createUpdateGraphParameters, - options - }, - spec: createUpdateGraphOperationSpec - }); - const poller = await createHttpPoller< - GraphResourcesCreateUpdateGraphResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * 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 options parameters. - */ - async beginCreateUpdateGraphAndWait( - resourceGroupName: string, - accountName: string, - graphName: string, - createUpdateGraphParameters: GraphResourceCreateUpdateParameters, - options?: GraphResourcesCreateUpdateGraphOptionalParams - ): Promise { - const poller = await this.beginCreateUpdateGraph( - resourceGroupName, - accountName, - graphName, - createUpdateGraphParameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * 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 options parameters. - */ - async beginDeleteGraphResource( - resourceGroupName: string, - accountName: string, - graphName: string, - options?: GraphResourcesDeleteGraphResourceOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, graphName, options }, - spec: deleteGraphResourceOperationSpec - }); - const poller = await createHttpPoller>(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * 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 options parameters. - */ - async beginDeleteGraphResourceAndWait( - resourceGroupName: string, - accountName: string, - graphName: string, - options?: GraphResourcesDeleteGraphResourceOptionalParams - ): Promise { - const poller = await this.beginDeleteGraphResource( - resourceGroupName, - accountName, - graphName, - options - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listGraphsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/graphs", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GraphResourcesListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getGraphOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/graphs/{graphName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GraphResourceGetResults - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.graphName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createUpdateGraphOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/graphs/{graphName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.GraphResourceGetResults - }, - 201: { - bodyMapper: Mappers.GraphResourceGetResults - }, - 202: { - bodyMapper: Mappers.GraphResourceGetResults - }, - 204: { - bodyMapper: Mappers.GraphResourceGetResults - } - }, - requestBody: Parameters.createUpdateGraphParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.graphName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteGraphResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/graphs/{graphName}", - httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.graphName - ], - serializer -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts index 6170d76b9253..71d2f195fb63 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts @@ -1754,8 +1754,8 @@ const getGremlinGraphOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, - Parameters.databaseName + Parameters.databaseName, + Parameters.graphName ], headerParameters: [Parameters.accept], serializer @@ -1785,8 +1785,8 @@ const createUpdateGremlinGraphOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, - Parameters.databaseName + Parameters.databaseName, + Parameters.graphName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -1816,8 +1816,8 @@ const deleteGremlinGraphOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, - Parameters.databaseName + Parameters.databaseName, + Parameters.graphName ], serializer }; @@ -1836,8 +1836,8 @@ const getGremlinGraphThroughputOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, - Parameters.databaseName + Parameters.databaseName, + Parameters.graphName ], headerParameters: [Parameters.accept], serializer @@ -1867,8 +1867,8 @@ const updateGremlinGraphThroughputOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, - Parameters.databaseName + Parameters.databaseName, + Parameters.graphName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -1901,8 +1901,8 @@ const migrateGremlinGraphToAutoscaleOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, - Parameters.databaseName + Parameters.databaseName, + Parameters.graphName ], headerParameters: [Parameters.accept], serializer @@ -1934,8 +1934,8 @@ const migrateGremlinGraphToManualThroughputOperationSpec: coreClient.OperationSp Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, - Parameters.databaseName + Parameters.databaseName, + Parameters.graphName ], headerParameters: [Parameters.accept], serializer @@ -1968,8 +1968,8 @@ const retrieveContinuousBackupInformationOperationSpec: coreClient.OperationSpec Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, - Parameters.databaseName + Parameters.databaseName, + Parameters.graphName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts index 5cba7fc94170..96531b8c1b96 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts @@ -19,14 +19,12 @@ export * from "./collectionPartitionRegion"; export * from "./collectionPartition"; export * from "./partitionKeyRangeId"; export * from "./partitionKeyRangeIdRegion"; -export * from "./graphResources"; export * from "./sqlResources"; export * from "./mongoDBResources"; export * from "./tableResources"; export * from "./cassandraResources"; export * from "./gremlinResources"; export * from "./locations"; -export * from "./dataTransferJobs"; export * from "./cassandraClusters"; export * from "./cassandraDataCenters"; export * from "./notebookWorkspaces"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts index 419cc16700d2..ee29a8ec5d69 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts @@ -47,16 +47,6 @@ import { MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse, MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputOptionalParams, MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse, - RetrieveThroughputParameters, - MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionOptionalParams, - MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionResponse, - RedistributeThroughputParameters, - MongoDBResourcesMongoDBDatabaseRedistributeThroughputOptionalParams, - MongoDBResourcesMongoDBDatabaseRedistributeThroughputResponse, - MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionOptionalParams, - MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse, - MongoDBResourcesMongoDBContainerRedistributeThroughputOptionalParams, - MongoDBResourcesMongoDBContainerRedistributeThroughputResponse, MongoDBResourcesGetMongoDBCollectionOptionalParams, MongoDBResourcesGetMongoDBCollectionResponse, MongoDBCollectionCreateUpdateParameters, @@ -64,9 +54,6 @@ import { MongoDBResourcesCreateUpdateMongoDBCollectionResponse, MongoDBResourcesDeleteMongoDBCollectionOptionalParams, MongoDBResourcesDeleteMongoDBCollectionResponse, - MergeParameters, - MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams, - MongoDBResourcesListMongoDBCollectionPartitionMergeResponse, MongoDBResourcesGetMongoDBCollectionThroughputOptionalParams, MongoDBResourcesGetMongoDBCollectionThroughputResponse, MongoDBResourcesUpdateMongoDBCollectionThroughputOptionalParams, @@ -939,474 +926,6 @@ export class MongoDBResourcesImpl implements MongoDBResources { return poller.pollUntilDone(); } - /** - * Retrieve throughput distribution for an Azure Cosmos DB MongoDB database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current MongoDB database. - * @param options The options parameters. - */ - async beginMongoDBDatabaseRetrieveThroughputDistribution( - resourceGroupName: string, - accountName: string, - databaseName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionResponse - >, - MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - databaseName, - retrieveThroughputParameters, - options - }, - spec: mongoDBDatabaseRetrieveThroughputDistributionOperationSpec - }); - const poller = await createHttpPoller< - MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionResponse, - OperationState< - MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionResponse - > - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Retrieve throughput distribution for an Azure Cosmos DB MongoDB database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current MongoDB database. - * @param options The options parameters. - */ - async beginMongoDBDatabaseRetrieveThroughputDistributionAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionOptionalParams - ): Promise< - MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionResponse - > { - const poller = await this.beginMongoDBDatabaseRetrieveThroughputDistribution( - resourceGroupName, - accountName, - databaseName, - retrieveThroughputParameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * Redistribute throughput for an Azure Cosmos DB MongoDB database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current MongoDB database. - * @param options The options parameters. - */ - async beginMongoDBDatabaseRedistributeThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: MongoDBResourcesMongoDBDatabaseRedistributeThroughputOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - MongoDBResourcesMongoDBDatabaseRedistributeThroughputResponse - >, - MongoDBResourcesMongoDBDatabaseRedistributeThroughputResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - databaseName, - redistributeThroughputParameters, - options - }, - spec: mongoDBDatabaseRedistributeThroughputOperationSpec - }); - const poller = await createHttpPoller< - MongoDBResourcesMongoDBDatabaseRedistributeThroughputResponse, - OperationState< - MongoDBResourcesMongoDBDatabaseRedistributeThroughputResponse - > - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Redistribute throughput for an Azure Cosmos DB MongoDB database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current MongoDB database. - * @param options The options parameters. - */ - async beginMongoDBDatabaseRedistributeThroughputAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: MongoDBResourcesMongoDBDatabaseRedistributeThroughputOptionalParams - ): Promise { - const poller = await this.beginMongoDBDatabaseRedistributeThroughput( - resourceGroupName, - accountName, - databaseName, - redistributeThroughputParameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * Retrieve throughput distribution for an Azure Cosmos DB MongoDB container - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param collectionName Cosmos DB collection name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current MongoDB container. - * @param options The options parameters. - */ - async beginMongoDBContainerRetrieveThroughputDistribution( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse - >, - MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - databaseName, - collectionName, - retrieveThroughputParameters, - options - }, - spec: mongoDBContainerRetrieveThroughputDistributionOperationSpec - }); - const poller = await createHttpPoller< - MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse, - OperationState< - MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse - > - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Retrieve throughput distribution for an Azure Cosmos DB MongoDB container - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param collectionName Cosmos DB collection name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current MongoDB container. - * @param options The options parameters. - */ - async beginMongoDBContainerRetrieveThroughputDistributionAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionOptionalParams - ): Promise< - MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse - > { - const poller = await this.beginMongoDBContainerRetrieveThroughputDistribution( - resourceGroupName, - accountName, - databaseName, - collectionName, - retrieveThroughputParameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * Redistribute throughput for an Azure Cosmos DB MongoDB container - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param collectionName Cosmos DB collection name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current MongoDB container. - * @param options The options parameters. - */ - async beginMongoDBContainerRedistributeThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: MongoDBResourcesMongoDBContainerRedistributeThroughputOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - MongoDBResourcesMongoDBContainerRedistributeThroughputResponse - >, - MongoDBResourcesMongoDBContainerRedistributeThroughputResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - databaseName, - collectionName, - redistributeThroughputParameters, - options - }, - spec: mongoDBContainerRedistributeThroughputOperationSpec - }); - const poller = await createHttpPoller< - MongoDBResourcesMongoDBContainerRedistributeThroughputResponse, - OperationState< - MongoDBResourcesMongoDBContainerRedistributeThroughputResponse - > - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Redistribute throughput for an Azure Cosmos DB MongoDB container - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param collectionName Cosmos DB collection name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current MongoDB container. - * @param options The options parameters. - */ - async beginMongoDBContainerRedistributeThroughputAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: MongoDBResourcesMongoDBContainerRedistributeThroughputOptionalParams - ): Promise { - const poller = await this.beginMongoDBContainerRedistributeThroughput( - resourceGroupName, - accountName, - databaseName, - collectionName, - redistributeThroughputParameters, - options - ); - return poller.pollUntilDone(); - } - /** * Lists the MongoDB collection under an existing Azure Cosmos DB database account. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1667,123 +1186,6 @@ export class MongoDBResourcesImpl implements MongoDBResources { return poller.pollUntilDone(); } - /** - * Merges the partitions of a MongoDB Collection - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param collectionName Cosmos DB collection name. - * @param mergeParameters The parameters for the merge operation. - * @param options The options parameters. - */ - async beginListMongoDBCollectionPartitionMerge( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - mergeParameters: MergeParameters, - options?: MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - MongoDBResourcesListMongoDBCollectionPartitionMergeResponse - >, - MongoDBResourcesListMongoDBCollectionPartitionMergeResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - databaseName, - collectionName, - mergeParameters, - options - }, - spec: listMongoDBCollectionPartitionMergeOperationSpec - }); - const poller = await createHttpPoller< - MongoDBResourcesListMongoDBCollectionPartitionMergeResponse, - OperationState< - MongoDBResourcesListMongoDBCollectionPartitionMergeResponse - > - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Merges the partitions of a MongoDB Collection - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param collectionName Cosmos DB collection name. - * @param mergeParameters The parameters for the merge operation. - * @param options The options parameters. - */ - async beginListMongoDBCollectionPartitionMergeAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - mergeParameters: MergeParameters, - options?: MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams - ): Promise { - const poller = await this.beginListMongoDBCollectionPartitionMerge( - resourceGroupName, - accountName, - databaseName, - collectionName, - mergeParameters, - options - ); - return poller.pollUntilDone(); - } - /** * Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account * with the provided name. @@ -2940,144 +2342,6 @@ const migrateMongoDBDatabaseToManualThroughputOperationSpec: coreClient.Operatio headerParameters: [Parameters.accept], serializer }; -const mongoDBDatabaseRetrieveThroughputDistributionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/retrieveThroughputDistribution", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 201: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 202: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 204: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.retrieveThroughputParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const mongoDBDatabaseRedistributeThroughputOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/redistributeThroughput", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 201: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 202: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 204: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.redistributeThroughputParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const mongoDBContainerRetrieveThroughputDistributionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/retrieveThroughputDistribution", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 201: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 202: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 204: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.retrieveThroughputParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName, - Parameters.collectionName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const mongoDBContainerRedistributeThroughputOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/redistributeThroughput", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 201: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 202: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 204: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.redistributeThroughputParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName, - Parameters.collectionName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; const listMongoDBCollectionsOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections", @@ -3180,41 +2444,6 @@ const deleteMongoDBCollectionOperationSpec: coreClient.OperationSpec = { ], serializer }; -const listMongoDBCollectionPartitionMergeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/partitionMerge", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection - }, - 201: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection - }, - 202: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection - }, - 204: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.mergeParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName, - Parameters.collectionName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; const getMongoDBCollectionThroughputOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default", diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts index 0f173aeed7e8..30318a49cd39 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts @@ -22,12 +22,12 @@ import { SqlDatabaseGetResults, SqlResourcesListSqlDatabasesOptionalParams, SqlResourcesListSqlDatabasesResponse, - ClientEncryptionKeyGetResults, - SqlResourcesListClientEncryptionKeysOptionalParams, - SqlResourcesListClientEncryptionKeysResponse, SqlContainerGetResults, SqlResourcesListSqlContainersOptionalParams, SqlResourcesListSqlContainersResponse, + ClientEncryptionKeyGetResults, + SqlResourcesListClientEncryptionKeysOptionalParams, + SqlResourcesListClientEncryptionKeysResponse, SqlStoredProcedureGetResults, SqlResourcesListSqlStoredProceduresOptionalParams, SqlResourcesListSqlStoredProceduresResponse, @@ -59,11 +59,6 @@ import { SqlResourcesMigrateSqlDatabaseToAutoscaleResponse, SqlResourcesMigrateSqlDatabaseToManualThroughputOptionalParams, SqlResourcesMigrateSqlDatabaseToManualThroughputResponse, - SqlResourcesGetClientEncryptionKeyOptionalParams, - SqlResourcesGetClientEncryptionKeyResponse, - ClientEncryptionKeyCreateUpdateParameters, - SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams, - SqlResourcesCreateUpdateClientEncryptionKeyResponse, SqlResourcesGetSqlContainerOptionalParams, SqlResourcesGetSqlContainerResponse, SqlContainerCreateUpdateParameters, @@ -71,9 +66,6 @@ import { SqlResourcesCreateUpdateSqlContainerResponse, SqlResourcesDeleteSqlContainerOptionalParams, SqlResourcesDeleteSqlContainerResponse, - MergeParameters, - SqlResourcesListSqlContainerPartitionMergeOptionalParams, - SqlResourcesListSqlContainerPartitionMergeResponse, SqlResourcesGetSqlContainerThroughputOptionalParams, SqlResourcesGetSqlContainerThroughputResponse, SqlResourcesUpdateSqlContainerThroughputOptionalParams, @@ -82,16 +74,11 @@ import { SqlResourcesMigrateSqlContainerToAutoscaleResponse, SqlResourcesMigrateSqlContainerToManualThroughputOptionalParams, SqlResourcesMigrateSqlContainerToManualThroughputResponse, - RetrieveThroughputParameters, - SqlResourcesSqlDatabaseRetrieveThroughputDistributionOptionalParams, - SqlResourcesSqlDatabaseRetrieveThroughputDistributionResponse, - RedistributeThroughputParameters, - SqlResourcesSqlDatabaseRedistributeThroughputOptionalParams, - SqlResourcesSqlDatabaseRedistributeThroughputResponse, - SqlResourcesSqlContainerRetrieveThroughputDistributionOptionalParams, - SqlResourcesSqlContainerRetrieveThroughputDistributionResponse, - SqlResourcesSqlContainerRedistributeThroughputOptionalParams, - SqlResourcesSqlContainerRedistributeThroughputResponse, + SqlResourcesGetClientEncryptionKeyOptionalParams, + SqlResourcesGetClientEncryptionKeyResponse, + ClientEncryptionKeyCreateUpdateParameters, + SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams, + SqlResourcesCreateUpdateClientEncryptionKeyResponse, SqlResourcesGetSqlStoredProcedureOptionalParams, SqlResourcesGetSqlStoredProcedureResponse, SqlStoredProcedureCreateUpdateParameters, @@ -210,19 +197,19 @@ export class SqlResourcesImpl implements SqlResources { } /** - * Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. + * Lists the SQL container 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 databaseName Cosmos DB database name. * @param options The options parameters. */ - public listClientEncryptionKeys( + public listSqlContainers( resourceGroupName: string, accountName: string, databaseName: string, - options?: SqlResourcesListClientEncryptionKeysOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listClientEncryptionKeysPagingAll( + options?: SqlResourcesListSqlContainersOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listSqlContainersPagingAll( resourceGroupName, accountName, databaseName, @@ -239,7 +226,7 @@ export class SqlResourcesImpl implements SqlResources { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listClientEncryptionKeysPagingPage( + return this.listSqlContainersPagingPage( resourceGroupName, accountName, databaseName, @@ -250,15 +237,15 @@ export class SqlResourcesImpl implements SqlResources { }; } - private async *listClientEncryptionKeysPagingPage( + private async *listSqlContainersPagingPage( resourceGroupName: string, accountName: string, databaseName: string, - options?: SqlResourcesListClientEncryptionKeysOptionalParams, + options?: SqlResourcesListSqlContainersOptionalParams, _settings?: PageSettings - ): AsyncIterableIterator { - let result: SqlResourcesListClientEncryptionKeysResponse; - result = await this._listClientEncryptionKeys( + ): AsyncIterableIterator { + let result: SqlResourcesListSqlContainersResponse; + result = await this._listSqlContainers( resourceGroupName, accountName, databaseName, @@ -267,13 +254,13 @@ export class SqlResourcesImpl implements SqlResources { yield result.value || []; } - private async *listClientEncryptionKeysPagingAll( + private async *listSqlContainersPagingAll( resourceGroupName: string, accountName: string, databaseName: string, - options?: SqlResourcesListClientEncryptionKeysOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listClientEncryptionKeysPagingPage( + options?: SqlResourcesListSqlContainersOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listSqlContainersPagingPage( resourceGroupName, accountName, databaseName, @@ -284,19 +271,19 @@ export class SqlResourcesImpl implements SqlResources { } /** - * Lists the SQL container under an existing Azure Cosmos DB database account. + * Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param options The options parameters. */ - public listSqlContainers( + public listClientEncryptionKeys( resourceGroupName: string, accountName: string, databaseName: string, - options?: SqlResourcesListSqlContainersOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listSqlContainersPagingAll( + options?: SqlResourcesListClientEncryptionKeysOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listClientEncryptionKeysPagingAll( resourceGroupName, accountName, databaseName, @@ -313,7 +300,7 @@ export class SqlResourcesImpl implements SqlResources { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listSqlContainersPagingPage( + return this.listClientEncryptionKeysPagingPage( resourceGroupName, accountName, databaseName, @@ -324,15 +311,15 @@ export class SqlResourcesImpl implements SqlResources { }; } - private async *listSqlContainersPagingPage( + private async *listClientEncryptionKeysPagingPage( resourceGroupName: string, accountName: string, databaseName: string, - options?: SqlResourcesListSqlContainersOptionalParams, + options?: SqlResourcesListClientEncryptionKeysOptionalParams, _settings?: PageSettings - ): AsyncIterableIterator { - let result: SqlResourcesListSqlContainersResponse; - result = await this._listSqlContainers( + ): AsyncIterableIterator { + let result: SqlResourcesListClientEncryptionKeysResponse; + result = await this._listClientEncryptionKeys( resourceGroupName, accountName, databaseName, @@ -341,13 +328,13 @@ export class SqlResourcesImpl implements SqlResources { yield result.value || []; } - private async *listSqlContainersPagingAll( + private async *listClientEncryptionKeysPagingAll( resourceGroupName: string, accountName: string, databaseName: string, - options?: SqlResourcesListSqlContainersOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listSqlContainersPagingPage( + options?: SqlResourcesListClientEncryptionKeysOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listClientEncryptionKeysPagingPage( resourceGroupName, accountName, databaseName, @@ -1290,168 +1277,6 @@ export class SqlResourcesImpl implements SqlResources { return poller.pollUntilDone(); } - /** - * Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param options The options parameters. - */ - private _listClientEncryptionKeys( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: SqlResourcesListClientEncryptionKeysOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, databaseName, options }, - listClientEncryptionKeysOperationSpec - ); - } - - /** - * Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param clientEncryptionKeyName Cosmos DB ClientEncryptionKey name. - * @param options The options parameters. - */ - getClientEncryptionKey( - resourceGroupName: string, - accountName: string, - databaseName: string, - clientEncryptionKeyName: string, - options?: SqlResourcesGetClientEncryptionKeyOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - accountName, - databaseName, - clientEncryptionKeyName, - options - }, - getClientEncryptionKeyOperationSpec - ); - } - - /** - * Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure - * Powershell (instead of directly). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param clientEncryptionKeyName Cosmos DB ClientEncryptionKey name. - * @param createUpdateClientEncryptionKeyParameters The parameters to provide for the client encryption - * key. - * @param options The options parameters. - */ - async beginCreateUpdateClientEncryptionKey( - resourceGroupName: string, - accountName: string, - databaseName: string, - clientEncryptionKeyName: string, - createUpdateClientEncryptionKeyParameters: ClientEncryptionKeyCreateUpdateParameters, - options?: SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SqlResourcesCreateUpdateClientEncryptionKeyResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - databaseName, - clientEncryptionKeyName, - createUpdateClientEncryptionKeyParameters, - options - }, - spec: createUpdateClientEncryptionKeyOperationSpec - }); - const poller = await createHttpPoller< - SqlResourcesCreateUpdateClientEncryptionKeyResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure - * Powershell (instead of directly). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param clientEncryptionKeyName Cosmos DB ClientEncryptionKey name. - * @param createUpdateClientEncryptionKeyParameters The parameters to provide for the client encryption - * key. - * @param options The options parameters. - */ - async beginCreateUpdateClientEncryptionKeyAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - clientEncryptionKeyName: string, - createUpdateClientEncryptionKeyParameters: ClientEncryptionKeyCreateUpdateParameters, - options?: SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams - ): Promise { - const poller = await this.beginCreateUpdateClientEncryptionKey( - resourceGroupName, - accountName, - databaseName, - clientEncryptionKeyName, - createUpdateClientEncryptionKeyParameters, - options - ); - return poller.pollUntilDone(); - } - /** * Lists the SQL container under an existing Azure Cosmos DB database account. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1711,127 +1536,14 @@ export class SqlResourcesImpl implements SqlResources { } /** - * Merges the partitions of a SQL Container + * Gets the RUs per second of the SQL container 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 databaseName Cosmos DB database name. * @param containerName Cosmos DB container name. - * @param mergeParameters The parameters for the merge operation. * @param options The options parameters. */ - async beginListSqlContainerPartitionMerge( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - mergeParameters: MergeParameters, - options?: SqlResourcesListSqlContainerPartitionMergeOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SqlResourcesListSqlContainerPartitionMergeResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - databaseName, - containerName, - mergeParameters, - options - }, - spec: listSqlContainerPartitionMergeOperationSpec - }); - const poller = await createHttpPoller< - SqlResourcesListSqlContainerPartitionMergeResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Merges the partitions of a SQL Container - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param mergeParameters The parameters for the merge operation. - * @param options The options parameters. - */ - async beginListSqlContainerPartitionMergeAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - mergeParameters: MergeParameters, - options?: SqlResourcesListSqlContainerPartitionMergeOptionalParams - ): Promise { - const poller = await this.beginListSqlContainerPartitionMerge( - resourceGroupName, - accountName, - databaseName, - containerName, - mergeParameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * Gets the RUs per second of the SQL container 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 databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param options The options parameters. - */ - getSqlContainerThroughput( + getSqlContainerThroughput( resourceGroupName: string, accountName: string, databaseName: string, @@ -2171,373 +1883,79 @@ export class SqlResourcesImpl implements SqlResources { } /** - * Retrieve throughput distribution for an Azure Cosmos DB SQL database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current SQL database. - * @param options The options parameters. - */ - async beginSqlDatabaseRetrieveThroughputDistribution( - resourceGroupName: string, - accountName: string, - databaseName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: SqlResourcesSqlDatabaseRetrieveThroughputDistributionOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - SqlResourcesSqlDatabaseRetrieveThroughputDistributionResponse - >, - SqlResourcesSqlDatabaseRetrieveThroughputDistributionResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - databaseName, - retrieveThroughputParameters, - options - }, - spec: sqlDatabaseRetrieveThroughputDistributionOperationSpec - }); - const poller = await createHttpPoller< - SqlResourcesSqlDatabaseRetrieveThroughputDistributionResponse, - OperationState< - SqlResourcesSqlDatabaseRetrieveThroughputDistributionResponse - > - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Retrieve throughput distribution for an Azure Cosmos DB SQL database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current SQL database. - * @param options The options parameters. - */ - async beginSqlDatabaseRetrieveThroughputDistributionAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: SqlResourcesSqlDatabaseRetrieveThroughputDistributionOptionalParams - ): Promise { - const poller = await this.beginSqlDatabaseRetrieveThroughputDistribution( - resourceGroupName, - accountName, - databaseName, - retrieveThroughputParameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * Redistribute throughput for an Azure Cosmos DB SQL database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current SQL database. - * @param options The options parameters. - */ - async beginSqlDatabaseRedistributeThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: SqlResourcesSqlDatabaseRedistributeThroughputOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SqlResourcesSqlDatabaseRedistributeThroughputResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - databaseName, - redistributeThroughputParameters, - options - }, - spec: sqlDatabaseRedistributeThroughputOperationSpec - }); - const poller = await createHttpPoller< - SqlResourcesSqlDatabaseRedistributeThroughputResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Redistribute throughput for an Azure Cosmos DB SQL database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current SQL database. - * @param options The options parameters. - */ - async beginSqlDatabaseRedistributeThroughputAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: SqlResourcesSqlDatabaseRedistributeThroughputOptionalParams - ): Promise { - const poller = await this.beginSqlDatabaseRedistributeThroughput( - resourceGroupName, - accountName, - databaseName, - redistributeThroughputParameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * Retrieve throughput distribution for an Azure Cosmos DB SQL container - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current SQL container. - * @param options The options parameters. - */ - async beginSqlContainerRetrieveThroughputDistribution( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: SqlResourcesSqlContainerRetrieveThroughputDistributionOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - SqlResourcesSqlContainerRetrieveThroughputDistributionResponse - >, - SqlResourcesSqlContainerRetrieveThroughputDistributionResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - databaseName, - containerName, - retrieveThroughputParameters, - options - }, - spec: sqlContainerRetrieveThroughputDistributionOperationSpec - }); - const poller = await createHttpPoller< - SqlResourcesSqlContainerRetrieveThroughputDistributionResponse, - OperationState< - SqlResourcesSqlContainerRetrieveThroughputDistributionResponse - > - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; + * Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param options The options parameters. + */ + private _listClientEncryptionKeys( + resourceGroupName: string, + accountName: string, + databaseName: string, + options?: SqlResourcesListClientEncryptionKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, accountName, databaseName, options }, + listClientEncryptionKeysOperationSpec + ); } /** - * Retrieve throughput distribution for an Azure Cosmos DB SQL container + * Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current SQL container. + * @param clientEncryptionKeyName Cosmos DB ClientEncryptionKey name. * @param options The options parameters. */ - async beginSqlContainerRetrieveThroughputDistributionAndWait( + getClientEncryptionKey( resourceGroupName: string, accountName: string, databaseName: string, - containerName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: SqlResourcesSqlContainerRetrieveThroughputDistributionOptionalParams - ): Promise { - const poller = await this.beginSqlContainerRetrieveThroughputDistribution( - resourceGroupName, - accountName, - databaseName, - containerName, - retrieveThroughputParameters, - options + clientEncryptionKeyName: string, + options?: SqlResourcesGetClientEncryptionKeyOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + databaseName, + clientEncryptionKeyName, + options + }, + getClientEncryptionKeyOperationSpec ); - return poller.pollUntilDone(); } /** - * Redistribute throughput for an Azure Cosmos DB SQL container + * Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure + * Powershell (instead of directly). * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current SQL container. + * @param clientEncryptionKeyName Cosmos DB ClientEncryptionKey name. + * @param createUpdateClientEncryptionKeyParameters The parameters to provide for the client encryption + * key. * @param options The options parameters. */ - async beginSqlContainerRedistributeThroughput( + async beginCreateUpdateClientEncryptionKey( resourceGroupName: string, accountName: string, databaseName: string, - containerName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: SqlResourcesSqlContainerRedistributeThroughputOptionalParams + clientEncryptionKeyName: string, + createUpdateClientEncryptionKeyParameters: ClientEncryptionKeyCreateUpdateParameters, + options?: SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams ): Promise< SimplePollerLike< - OperationState, - SqlResourcesSqlContainerRedistributeThroughputResponse + OperationState, + SqlResourcesCreateUpdateClientEncryptionKeyResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -2579,48 +1997,48 @@ export class SqlResourcesImpl implements SqlResources { resourceGroupName, accountName, databaseName, - containerName, - redistributeThroughputParameters, + clientEncryptionKeyName, + createUpdateClientEncryptionKeyParameters, options }, - spec: sqlContainerRedistributeThroughputOperationSpec + spec: createUpdateClientEncryptionKeyOperationSpec }); const poller = await createHttpPoller< - SqlResourcesSqlContainerRedistributeThroughputResponse, - OperationState + SqlResourcesCreateUpdateClientEncryptionKeyResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; } /** - * Redistribute throughput for an Azure Cosmos DB SQL container + * Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure + * Powershell (instead of directly). * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current SQL container. + * @param clientEncryptionKeyName Cosmos DB ClientEncryptionKey name. + * @param createUpdateClientEncryptionKeyParameters The parameters to provide for the client encryption + * key. * @param options The options parameters. */ - async beginSqlContainerRedistributeThroughputAndWait( + async beginCreateUpdateClientEncryptionKeyAndWait( resourceGroupName: string, accountName: string, databaseName: string, - containerName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: SqlResourcesSqlContainerRedistributeThroughputOptionalParams - ): Promise { - const poller = await this.beginSqlContainerRedistributeThroughput( + clientEncryptionKeyName: string, + createUpdateClientEncryptionKeyParameters: ClientEncryptionKeyCreateUpdateParameters, + options?: SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams + ): Promise { + const poller = await this.beginCreateUpdateClientEncryptionKey( resourceGroupName, accountName, databaseName, - containerName, - redistributeThroughputParameters, + clientEncryptionKeyName, + createUpdateClientEncryptionKeyParameters, options ); return poller.pollUntilDone(); @@ -4264,79 +3682,6 @@ const migrateSqlDatabaseToManualThroughputOperationSpec: coreClient.OperationSpe headerParameters: [Parameters.accept], serializer }; -const listClientEncryptionKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ClientEncryptionKeysListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getClientEncryptionKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys/{clientEncryptionKeyName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ClientEncryptionKeyGetResults - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName, - Parameters.clientEncryptionKeyName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createUpdateClientEncryptionKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys/{clientEncryptionKeyName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.ClientEncryptionKeyGetResults - }, - 201: { - bodyMapper: Mappers.ClientEncryptionKeyGetResults - }, - 202: { - bodyMapper: Mappers.ClientEncryptionKeyGetResults - }, - 204: { - bodyMapper: Mappers.ClientEncryptionKeyGetResults - } - }, - requestBody: Parameters.createUpdateClientEncryptionKeyParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName, - Parameters.clientEncryptionKeyName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; const listSqlContainersOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers", @@ -4439,41 +3784,6 @@ const deleteSqlContainerOperationSpec: coreClient.OperationSpec = { ], serializer }; -const listSqlContainerPartitionMergeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/partitionMerge", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection - }, - 201: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection - }, - 202: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection - }, - 204: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.mergeParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName, - Parameters.containerName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; const getSqlContainerThroughputOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default", @@ -4593,62 +3903,15 @@ const migrateSqlContainerToManualThroughputOperationSpec: coreClient.OperationSp headerParameters: [Parameters.accept], serializer }; -const sqlDatabaseRetrieveThroughputDistributionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/retrieveThroughputDistribution", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 201: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 202: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 204: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.retrieveThroughputParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const sqlDatabaseRedistributeThroughputOperationSpec: coreClient.OperationSpec = { +const listClientEncryptionKeysOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/redistributeThroughput", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 201: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 202: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 204: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ClientEncryptionKeysListResult } }, - requestBody: Parameters.redistributeThroughputParameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -4657,32 +3920,18 @@ const sqlDatabaseRedistributeThroughputOperationSpec: coreClient.OperationSpec = Parameters.accountName, Parameters.databaseName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const sqlContainerRetrieveThroughputDistributionOperationSpec: coreClient.OperationSpec = { +const getClientEncryptionKeyOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/retrieveThroughputDistribution", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys/{clientEncryptionKeyName}", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 201: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 202: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - 204: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ClientEncryptionKeyGetResults } }, - requestBody: Parameters.retrieveThroughputParameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -4690,34 +3939,30 @@ const sqlContainerRetrieveThroughputDistributionOperationSpec: coreClient.Operat Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName, - Parameters.containerName + Parameters.clientEncryptionKeyName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const sqlContainerRedistributeThroughputOperationSpec: coreClient.OperationSpec = { +const createUpdateClientEncryptionKeyOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/redistributeThroughput", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys/{clientEncryptionKeyName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult + bodyMapper: Mappers.ClientEncryptionKeyGetResults }, 201: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult + bodyMapper: Mappers.ClientEncryptionKeyGetResults }, 202: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult + bodyMapper: Mappers.ClientEncryptionKeyGetResults }, 204: { - bodyMapper: Mappers.PhysicalPartitionThroughputInfoResult - }, - default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ClientEncryptionKeyGetResults } }, - requestBody: Parameters.redistributeThroughputParameters, + requestBody: Parameters.createUpdateClientEncryptionKeyParameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -4725,7 +3970,7 @@ const sqlContainerRedistributeThroughputOperationSpec: coreClient.OperationSpec Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName, - Parameters.containerName + Parameters.clientEncryptionKeyName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/cassandraClusters.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/cassandraClusters.ts index 50b10290ff84..a986f122c8dd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/cassandraClusters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/cassandraClusters.ts @@ -12,8 +12,6 @@ import { ClusterResource, CassandraClustersListBySubscriptionOptionalParams, CassandraClustersListByResourceGroupOptionalParams, - BackupResource, - CassandraClustersListBackupsOptionalParams, CassandraClustersGetOptionalParams, CassandraClustersGetResponse, CassandraClustersDeleteOptionalParams, @@ -24,8 +22,6 @@ import { CommandPostBody, CassandraClustersInvokeCommandOptionalParams, CassandraClustersInvokeCommandResponse, - CassandraClustersGetBackupOptionalParams, - CassandraClustersGetBackupResponse, CassandraClustersDeallocateOptionalParams, CassandraClustersStartOptionalParams, CassandraClustersStatusOptionalParams, @@ -51,17 +47,6 @@ export interface CassandraClusters { resourceGroupName: string, options?: CassandraClustersListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; - /** - * 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 options parameters. - */ - listBackups( - resourceGroupName: string, - clusterName: string, - options?: CassandraClustersListBackupsOptionalParams - ): PagedAsyncIterableIterator; /** * Get the properties of a managed Cassandra cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -190,19 +175,6 @@ export interface CassandraClusters { body: CommandPostBody, options?: CassandraClustersInvokeCommandOptionalParams ): 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 options parameters. - */ - getBackup( - resourceGroupName: string, - clusterName: string, - backupId: string, - options?: CassandraClustersGetBackupOptionalParams - ): Promise; /** * Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate * the host virtual machine of this cluster, and reserved the data disk. This won't do anything on an diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/cassandraResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/cassandraResources.ts index 90e49ef1dd33..887d47ff925f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/cassandraResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/cassandraResources.ts @@ -13,8 +13,6 @@ import { CassandraResourcesListCassandraKeyspacesOptionalParams, CassandraTableGetResults, CassandraResourcesListCassandraTablesOptionalParams, - CassandraViewGetResults, - CassandraResourcesListCassandraViewsOptionalParams, CassandraResourcesGetCassandraKeyspaceOptionalParams, CassandraResourcesGetCassandraKeyspaceResponse, CassandraKeyspaceCreateUpdateParameters, @@ -45,21 +43,7 @@ import { CassandraResourcesMigrateCassandraTableToAutoscaleOptionalParams, CassandraResourcesMigrateCassandraTableToAutoscaleResponse, CassandraResourcesMigrateCassandraTableToManualThroughputOptionalParams, - CassandraResourcesMigrateCassandraTableToManualThroughputResponse, - CassandraResourcesGetCassandraViewOptionalParams, - CassandraResourcesGetCassandraViewResponse, - CassandraViewCreateUpdateParameters, - CassandraResourcesCreateUpdateCassandraViewOptionalParams, - CassandraResourcesCreateUpdateCassandraViewResponse, - CassandraResourcesDeleteCassandraViewOptionalParams, - CassandraResourcesGetCassandraViewThroughputOptionalParams, - CassandraResourcesGetCassandraViewThroughputResponse, - CassandraResourcesUpdateCassandraViewThroughputOptionalParams, - CassandraResourcesUpdateCassandraViewThroughputResponse, - CassandraResourcesMigrateCassandraViewToAutoscaleOptionalParams, - CassandraResourcesMigrateCassandraViewToAutoscaleResponse, - CassandraResourcesMigrateCassandraViewToManualThroughputOptionalParams, - CassandraResourcesMigrateCassandraViewToManualThroughputResponse + CassandraResourcesMigrateCassandraTableToManualThroughputResponse } from "../models"; /// @@ -89,19 +73,6 @@ export interface CassandraResources { keyspaceName: string, options?: CassandraResourcesListCassandraTablesOptionalParams ): PagedAsyncIterableIterator; - /** - * 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 options parameters. - */ - listCassandraViews( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: CassandraResourcesListCassandraViewsOptionalParams - ): PagedAsyncIterableIterator; /** * Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided * name. @@ -527,217 +498,4 @@ export interface CassandraResources { tableName: string, options?: CassandraResourcesMigrateCassandraTableToManualThroughputOptionalParams ): 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 options parameters. - */ - getCassandraView( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesGetCassandraViewOptionalParams - ): 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 options parameters. - */ - beginCreateUpdateCassandraView( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - createUpdateCassandraViewParameters: CassandraViewCreateUpdateParameters, - options?: CassandraResourcesCreateUpdateCassandraViewOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - CassandraResourcesCreateUpdateCassandraViewResponse - > - >; - /** - * 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 options parameters. - */ - beginCreateUpdateCassandraViewAndWait( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - createUpdateCassandraViewParameters: CassandraViewCreateUpdateParameters, - options?: CassandraResourcesCreateUpdateCassandraViewOptionalParams - ): 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 options parameters. - */ - beginDeleteCassandraView( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesDeleteCassandraViewOptionalParams - ): Promise, void>>; - /** - * 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 options parameters. - */ - beginDeleteCassandraViewAndWait( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesDeleteCassandraViewOptionalParams - ): Promise; - /** - * 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 options parameters. - */ - getCassandraViewThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesGetCassandraViewThroughputOptionalParams - ): 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 options parameters. - */ - beginUpdateCassandraViewThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - updateThroughputParameters: ThroughputSettingsUpdateParameters, - options?: CassandraResourcesUpdateCassandraViewThroughputOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - CassandraResourcesUpdateCassandraViewThroughputResponse - > - >; - /** - * 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 options parameters. - */ - beginUpdateCassandraViewThroughputAndWait( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - updateThroughputParameters: ThroughputSettingsUpdateParameters, - options?: CassandraResourcesUpdateCassandraViewThroughputOptionalParams - ): 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 options parameters. - */ - beginMigrateCassandraViewToAutoscale( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesMigrateCassandraViewToAutoscaleOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - CassandraResourcesMigrateCassandraViewToAutoscaleResponse - > - >; - /** - * 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 options parameters. - */ - beginMigrateCassandraViewToAutoscaleAndWait( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesMigrateCassandraViewToAutoscaleOptionalParams - ): 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 options parameters. - */ - beginMigrateCassandraViewToManualThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesMigrateCassandraViewToManualThroughputOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - CassandraResourcesMigrateCassandraViewToManualThroughputResponse - >, - CassandraResourcesMigrateCassandraViewToManualThroughputResponse - > - >; - /** - * 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 options parameters. - */ - beginMigrateCassandraViewToManualThroughputAndWait( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - viewName: string, - options?: CassandraResourcesMigrateCassandraViewToManualThroughputOptionalParams - ): Promise; } diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/dataTransferJobs.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/dataTransferJobs.ts deleted file mode 100644 index ba391a27b49f..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/dataTransferJobs.ts +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - DataTransferJobGetResults, - DataTransferJobsListByDatabaseAccountOptionalParams, - CreateJobRequest, - DataTransferJobsCreateOptionalParams, - DataTransferJobsCreateResponse, - DataTransferJobsGetOptionalParams, - DataTransferJobsGetResponse, - DataTransferJobsPauseOptionalParams, - DataTransferJobsPauseResponse, - DataTransferJobsResumeOptionalParams, - DataTransferJobsResumeResponse, - DataTransferJobsCancelOptionalParams, - DataTransferJobsCancelResponse -} from "../models"; - -/// -/** Interface representing a DataTransferJobs. */ -export interface DataTransferJobs { - /** - * Get a list of Data Transfer jobs. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param options The options parameters. - */ - listByDatabaseAccount( - resourceGroupName: string, - accountName: string, - options?: DataTransferJobsListByDatabaseAccountOptionalParams - ): PagedAsyncIterableIterator; - /** - * Creates a Data Transfer Job. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param jobName Name of the Data Transfer Job - * @param jobCreateParameters Parameters to create Data Transfer Job - * @param options The options parameters. - */ - create( - resourceGroupName: string, - accountName: string, - jobName: string, - jobCreateParameters: CreateJobRequest, - options?: DataTransferJobsCreateOptionalParams - ): Promise; - /** - * Get a Data Transfer Job. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param jobName Name of the Data Transfer Job - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - jobName: string, - options?: DataTransferJobsGetOptionalParams - ): Promise; - /** - * Pause a Data Transfer Job. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param jobName Name of the Data Transfer Job - * @param options The options parameters. - */ - pause( - resourceGroupName: string, - accountName: string, - jobName: string, - options?: DataTransferJobsPauseOptionalParams - ): Promise; - /** - * Resumes a Data Transfer Job. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param jobName Name of the Data Transfer Job - * @param options The options parameters. - */ - resume( - resourceGroupName: string, - accountName: string, - jobName: string, - options?: DataTransferJobsResumeOptionalParams - ): Promise; - /** - * Cancels a Data Transfer Job. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param jobName Name of the Data Transfer Job - * @param options The options parameters. - */ - cancel( - resourceGroupName: string, - accountName: string, - jobName: string, - options?: DataTransferJobsCancelOptionalParams - ): Promise; -} diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/graphResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/graphResources.ts deleted file mode 100644 index b32ac0f5f5de..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/graphResources.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - GraphResourceGetResults, - GraphResourcesListGraphsOptionalParams, - GraphResourcesGetGraphOptionalParams, - GraphResourcesGetGraphResponse, - GraphResourceCreateUpdateParameters, - GraphResourcesCreateUpdateGraphOptionalParams, - GraphResourcesCreateUpdateGraphResponse, - GraphResourcesDeleteGraphResourceOptionalParams -} from "../models"; - -/// -/** Interface representing a GraphResources. */ -export interface GraphResources { - /** - * 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 options parameters. - */ - listGraphs( - resourceGroupName: string, - accountName: string, - options?: GraphResourcesListGraphsOptionalParams - ): PagedAsyncIterableIterator; - /** - * 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 options parameters. - */ - getGraph( - resourceGroupName: string, - accountName: string, - graphName: string, - options?: GraphResourcesGetGraphOptionalParams - ): 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 options parameters. - */ - beginCreateUpdateGraph( - resourceGroupName: string, - accountName: string, - graphName: string, - createUpdateGraphParameters: GraphResourceCreateUpdateParameters, - options?: GraphResourcesCreateUpdateGraphOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - GraphResourcesCreateUpdateGraphResponse - > - >; - /** - * 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 options parameters. - */ - beginCreateUpdateGraphAndWait( - resourceGroupName: string, - accountName: string, - graphName: string, - createUpdateGraphParameters: GraphResourceCreateUpdateParameters, - options?: GraphResourcesCreateUpdateGraphOptionalParams - ): 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 options parameters. - */ - beginDeleteGraphResource( - resourceGroupName: string, - accountName: string, - graphName: string, - options?: GraphResourcesDeleteGraphResourceOptionalParams - ): Promise, void>>; - /** - * 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 options parameters. - */ - beginDeleteGraphResourceAndWait( - resourceGroupName: string, - accountName: string, - graphName: string, - options?: GraphResourcesDeleteGraphResourceOptionalParams - ): Promise; -} diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/index.ts index 5cba7fc94170..96531b8c1b96 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/index.ts @@ -19,14 +19,12 @@ export * from "./collectionPartitionRegion"; export * from "./collectionPartition"; export * from "./partitionKeyRangeId"; export * from "./partitionKeyRangeIdRegion"; -export * from "./graphResources"; export * from "./sqlResources"; export * from "./mongoDBResources"; export * from "./tableResources"; export * from "./cassandraResources"; export * from "./gremlinResources"; export * from "./locations"; -export * from "./dataTransferJobs"; export * from "./cassandraClusters"; export * from "./cassandraDataCenters"; export * from "./notebookWorkspaces"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/mongoDBResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/mongoDBResources.ts index c66caed17daf..c21d235c6613 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/mongoDBResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/mongoDBResources.ts @@ -33,16 +33,6 @@ import { MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse, MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputOptionalParams, MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse, - RetrieveThroughputParameters, - MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionOptionalParams, - MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionResponse, - RedistributeThroughputParameters, - MongoDBResourcesMongoDBDatabaseRedistributeThroughputOptionalParams, - MongoDBResourcesMongoDBDatabaseRedistributeThroughputResponse, - MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionOptionalParams, - MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse, - MongoDBResourcesMongoDBContainerRedistributeThroughputOptionalParams, - MongoDBResourcesMongoDBContainerRedistributeThroughputResponse, MongoDBResourcesGetMongoDBCollectionOptionalParams, MongoDBResourcesGetMongoDBCollectionResponse, MongoDBCollectionCreateUpdateParameters, @@ -50,9 +40,6 @@ import { MongoDBResourcesCreateUpdateMongoDBCollectionResponse, MongoDBResourcesDeleteMongoDBCollectionOptionalParams, MongoDBResourcesDeleteMongoDBCollectionResponse, - MergeParameters, - MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams, - MongoDBResourcesListMongoDBCollectionPartitionMergeResponse, MongoDBResourcesGetMongoDBCollectionThroughputOptionalParams, MongoDBResourcesGetMongoDBCollectionThroughputResponse, MongoDBResourcesUpdateMongoDBCollectionThroughputOptionalParams, @@ -324,174 +311,6 @@ export interface MongoDBResources { databaseName: string, options?: MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputOptionalParams ): Promise; - /** - * Retrieve throughput distribution for an Azure Cosmos DB MongoDB database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current MongoDB database. - * @param options The options parameters. - */ - beginMongoDBDatabaseRetrieveThroughputDistribution( - resourceGroupName: string, - accountName: string, - databaseName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionResponse - >, - MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionResponse - > - >; - /** - * Retrieve throughput distribution for an Azure Cosmos DB MongoDB database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current MongoDB database. - * @param options The options parameters. - */ - beginMongoDBDatabaseRetrieveThroughputDistributionAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionOptionalParams - ): Promise< - MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionResponse - >; - /** - * Redistribute throughput for an Azure Cosmos DB MongoDB database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current MongoDB database. - * @param options The options parameters. - */ - beginMongoDBDatabaseRedistributeThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: MongoDBResourcesMongoDBDatabaseRedistributeThroughputOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - MongoDBResourcesMongoDBDatabaseRedistributeThroughputResponse - >, - MongoDBResourcesMongoDBDatabaseRedistributeThroughputResponse - > - >; - /** - * Redistribute throughput for an Azure Cosmos DB MongoDB database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current MongoDB database. - * @param options The options parameters. - */ - beginMongoDBDatabaseRedistributeThroughputAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: MongoDBResourcesMongoDBDatabaseRedistributeThroughputOptionalParams - ): Promise; - /** - * Retrieve throughput distribution for an Azure Cosmos DB MongoDB container - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param collectionName Cosmos DB collection name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current MongoDB container. - * @param options The options parameters. - */ - beginMongoDBContainerRetrieveThroughputDistribution( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse - >, - MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse - > - >; - /** - * Retrieve throughput distribution for an Azure Cosmos DB MongoDB container - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param collectionName Cosmos DB collection name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current MongoDB container. - * @param options The options parameters. - */ - beginMongoDBContainerRetrieveThroughputDistributionAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionOptionalParams - ): Promise< - MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse - >; - /** - * Redistribute throughput for an Azure Cosmos DB MongoDB container - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param collectionName Cosmos DB collection name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current MongoDB container. - * @param options The options parameters. - */ - beginMongoDBContainerRedistributeThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: MongoDBResourcesMongoDBContainerRedistributeThroughputOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - MongoDBResourcesMongoDBContainerRedistributeThroughputResponse - >, - MongoDBResourcesMongoDBContainerRedistributeThroughputResponse - > - >; - /** - * Redistribute throughput for an Azure Cosmos DB MongoDB container - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param collectionName Cosmos DB collection name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current MongoDB container. - * @param options The options parameters. - */ - beginMongoDBContainerRedistributeThroughputAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: MongoDBResourcesMongoDBContainerRedistributeThroughputOptionalParams - ): Promise; /** * Gets the MongoDB collection under an existing Azure Cosmos DB database account. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -583,47 +402,6 @@ export interface MongoDBResources { collectionName: string, options?: MongoDBResourcesDeleteMongoDBCollectionOptionalParams ): Promise; - /** - * Merges the partitions of a MongoDB Collection - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param collectionName Cosmos DB collection name. - * @param mergeParameters The parameters for the merge operation. - * @param options The options parameters. - */ - beginListMongoDBCollectionPartitionMerge( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - mergeParameters: MergeParameters, - options?: MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - MongoDBResourcesListMongoDBCollectionPartitionMergeResponse - >, - MongoDBResourcesListMongoDBCollectionPartitionMergeResponse - > - >; - /** - * Merges the partitions of a MongoDB Collection - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param collectionName Cosmos DB collection name. - * @param mergeParameters The parameters for the merge operation. - * @param options The options parameters. - */ - beginListMongoDBCollectionPartitionMergeAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - mergeParameters: MergeParameters, - options?: MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams - ): Promise; /** * Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account * with the provided name. diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/sqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/sqlResources.ts index 8fe2fe6c9c58..df2919fe6ed6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/sqlResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/sqlResources.ts @@ -11,10 +11,10 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SqlDatabaseGetResults, SqlResourcesListSqlDatabasesOptionalParams, - ClientEncryptionKeyGetResults, - SqlResourcesListClientEncryptionKeysOptionalParams, SqlContainerGetResults, SqlResourcesListSqlContainersOptionalParams, + ClientEncryptionKeyGetResults, + SqlResourcesListClientEncryptionKeysOptionalParams, SqlStoredProcedureGetResults, SqlResourcesListSqlStoredProceduresOptionalParams, SqlUserDefinedFunctionGetResults, @@ -41,11 +41,6 @@ import { SqlResourcesMigrateSqlDatabaseToAutoscaleResponse, SqlResourcesMigrateSqlDatabaseToManualThroughputOptionalParams, SqlResourcesMigrateSqlDatabaseToManualThroughputResponse, - SqlResourcesGetClientEncryptionKeyOptionalParams, - SqlResourcesGetClientEncryptionKeyResponse, - ClientEncryptionKeyCreateUpdateParameters, - SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams, - SqlResourcesCreateUpdateClientEncryptionKeyResponse, SqlResourcesGetSqlContainerOptionalParams, SqlResourcesGetSqlContainerResponse, SqlContainerCreateUpdateParameters, @@ -53,9 +48,6 @@ import { SqlResourcesCreateUpdateSqlContainerResponse, SqlResourcesDeleteSqlContainerOptionalParams, SqlResourcesDeleteSqlContainerResponse, - MergeParameters, - SqlResourcesListSqlContainerPartitionMergeOptionalParams, - SqlResourcesListSqlContainerPartitionMergeResponse, SqlResourcesGetSqlContainerThroughputOptionalParams, SqlResourcesGetSqlContainerThroughputResponse, SqlResourcesUpdateSqlContainerThroughputOptionalParams, @@ -64,16 +56,11 @@ import { SqlResourcesMigrateSqlContainerToAutoscaleResponse, SqlResourcesMigrateSqlContainerToManualThroughputOptionalParams, SqlResourcesMigrateSqlContainerToManualThroughputResponse, - RetrieveThroughputParameters, - SqlResourcesSqlDatabaseRetrieveThroughputDistributionOptionalParams, - SqlResourcesSqlDatabaseRetrieveThroughputDistributionResponse, - RedistributeThroughputParameters, - SqlResourcesSqlDatabaseRedistributeThroughputOptionalParams, - SqlResourcesSqlDatabaseRedistributeThroughputResponse, - SqlResourcesSqlContainerRetrieveThroughputDistributionOptionalParams, - SqlResourcesSqlContainerRetrieveThroughputDistributionResponse, - SqlResourcesSqlContainerRedistributeThroughputOptionalParams, - SqlResourcesSqlContainerRedistributeThroughputResponse, + SqlResourcesGetClientEncryptionKeyOptionalParams, + SqlResourcesGetClientEncryptionKeyResponse, + ClientEncryptionKeyCreateUpdateParameters, + SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams, + SqlResourcesCreateUpdateClientEncryptionKeyResponse, SqlResourcesGetSqlStoredProcedureOptionalParams, SqlResourcesGetSqlStoredProcedureResponse, SqlStoredProcedureCreateUpdateParameters, @@ -127,31 +114,31 @@ export interface SqlResources { options?: SqlResourcesListSqlDatabasesOptionalParams ): PagedAsyncIterableIterator; /** - * Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. + * Lists the SQL container 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 databaseName Cosmos DB database name. * @param options The options parameters. */ - listClientEncryptionKeys( + listSqlContainers( resourceGroupName: string, accountName: string, databaseName: string, - options?: SqlResourcesListClientEncryptionKeysOptionalParams - ): PagedAsyncIterableIterator; + options?: SqlResourcesListSqlContainersOptionalParams + ): PagedAsyncIterableIterator; /** - * Lists the SQL container under an existing Azure Cosmos DB database account. + * Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param options The options parameters. */ - listSqlContainers( + listClientEncryptionKeys( resourceGroupName: string, accountName: string, databaseName: string, - options?: SqlResourcesListSqlContainersOptionalParams - ): PagedAsyncIterableIterator; + options?: SqlResourcesListClientEncryptionKeysOptionalParams + ): PagedAsyncIterableIterator; /** * Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -411,64 +398,6 @@ export interface SqlResources { databaseName: string, options?: SqlResourcesMigrateSqlDatabaseToManualThroughputOptionalParams ): Promise; - /** - * Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param clientEncryptionKeyName Cosmos DB ClientEncryptionKey name. - * @param options The options parameters. - */ - getClientEncryptionKey( - resourceGroupName: string, - accountName: string, - databaseName: string, - clientEncryptionKeyName: string, - options?: SqlResourcesGetClientEncryptionKeyOptionalParams - ): Promise; - /** - * Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure - * Powershell (instead of directly). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param clientEncryptionKeyName Cosmos DB ClientEncryptionKey name. - * @param createUpdateClientEncryptionKeyParameters The parameters to provide for the client encryption - * key. - * @param options The options parameters. - */ - beginCreateUpdateClientEncryptionKey( - resourceGroupName: string, - accountName: string, - databaseName: string, - clientEncryptionKeyName: string, - createUpdateClientEncryptionKeyParameters: ClientEncryptionKeyCreateUpdateParameters, - options?: SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SqlResourcesCreateUpdateClientEncryptionKeyResponse - > - >; - /** - * Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure - * Powershell (instead of directly). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param clientEncryptionKeyName Cosmos DB ClientEncryptionKey name. - * @param createUpdateClientEncryptionKeyParameters The parameters to provide for the client encryption - * key. - * @param options The options parameters. - */ - beginCreateUpdateClientEncryptionKeyAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - clientEncryptionKeyName: string, - createUpdateClientEncryptionKeyParameters: ClientEncryptionKeyCreateUpdateParameters, - options?: SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams - ): Promise; /** * Gets the SQL container under an existing Azure Cosmos DB database account. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -558,45 +487,6 @@ export interface SqlResources { containerName: string, options?: SqlResourcesDeleteSqlContainerOptionalParams ): Promise; - /** - * Merges the partitions of a SQL Container - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param mergeParameters The parameters for the merge operation. - * @param options The options parameters. - */ - beginListSqlContainerPartitionMerge( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - mergeParameters: MergeParameters, - options?: SqlResourcesListSqlContainerPartitionMergeOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SqlResourcesListSqlContainerPartitionMergeResponse - > - >; - /** - * Merges the partitions of a SQL Container - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param mergeParameters The parameters for the merge operation. - * @param options The options parameters. - */ - beginListSqlContainerPartitionMergeAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - mergeParameters: MergeParameters, - options?: SqlResourcesListSqlContainerPartitionMergeOptionalParams - ): Promise; /** * Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -724,165 +614,63 @@ export interface SqlResources { options?: SqlResourcesMigrateSqlContainerToManualThroughputOptionalParams ): Promise; /** - * Retrieve throughput distribution for an Azure Cosmos DB SQL database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current SQL database. - * @param options The options parameters. - */ - beginSqlDatabaseRetrieveThroughputDistribution( - resourceGroupName: string, - accountName: string, - databaseName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: SqlResourcesSqlDatabaseRetrieveThroughputDistributionOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - SqlResourcesSqlDatabaseRetrieveThroughputDistributionResponse - >, - SqlResourcesSqlDatabaseRetrieveThroughputDistributionResponse - > - >; - /** - * Retrieve throughput distribution for an Azure Cosmos DB SQL database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current SQL database. - * @param options The options parameters. - */ - beginSqlDatabaseRetrieveThroughputDistributionAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: SqlResourcesSqlDatabaseRetrieveThroughputDistributionOptionalParams - ): Promise; - /** - * Redistribute throughput for an Azure Cosmos DB SQL database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current SQL database. - * @param options The options parameters. - */ - beginSqlDatabaseRedistributeThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: SqlResourcesSqlDatabaseRedistributeThroughputOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SqlResourcesSqlDatabaseRedistributeThroughputResponse - > - >; - /** - * Redistribute throughput for an Azure Cosmos DB SQL database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current SQL database. - * @param options The options parameters. - */ - beginSqlDatabaseRedistributeThroughputAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: SqlResourcesSqlDatabaseRedistributeThroughputOptionalParams - ): Promise; - /** - * Retrieve throughput distribution for an Azure Cosmos DB SQL container - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current SQL container. - * @param options The options parameters. - */ - beginSqlContainerRetrieveThroughputDistribution( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: SqlResourcesSqlContainerRetrieveThroughputDistributionOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - SqlResourcesSqlContainerRetrieveThroughputDistributionResponse - >, - SqlResourcesSqlContainerRetrieveThroughputDistributionResponse - > - >; - /** - * Retrieve throughput distribution for an Azure Cosmos DB SQL container + * Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current SQL container. + * @param clientEncryptionKeyName Cosmos DB ClientEncryptionKey name. * @param options The options parameters. */ - beginSqlContainerRetrieveThroughputDistributionAndWait( + getClientEncryptionKey( resourceGroupName: string, accountName: string, databaseName: string, - containerName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: SqlResourcesSqlContainerRetrieveThroughputDistributionOptionalParams - ): Promise; + clientEncryptionKeyName: string, + options?: SqlResourcesGetClientEncryptionKeyOptionalParams + ): Promise; /** - * Redistribute throughput for an Azure Cosmos DB SQL container + * Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure + * Powershell (instead of directly). * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current SQL container. + * @param clientEncryptionKeyName Cosmos DB ClientEncryptionKey name. + * @param createUpdateClientEncryptionKeyParameters The parameters to provide for the client encryption + * key. * @param options The options parameters. */ - beginSqlContainerRedistributeThroughput( + beginCreateUpdateClientEncryptionKey( resourceGroupName: string, accountName: string, databaseName: string, - containerName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: SqlResourcesSqlContainerRedistributeThroughputOptionalParams + clientEncryptionKeyName: string, + createUpdateClientEncryptionKeyParameters: ClientEncryptionKeyCreateUpdateParameters, + options?: SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams ): Promise< SimplePollerLike< - OperationState, - SqlResourcesSqlContainerRedistributeThroughputResponse + OperationState, + SqlResourcesCreateUpdateClientEncryptionKeyResponse > >; /** - * Redistribute throughput for an Azure Cosmos DB SQL container + * Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure + * Powershell (instead of directly). * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param redistributeThroughputParameters The parameters to provide for redistributing throughput for - * the current SQL container. + * @param clientEncryptionKeyName Cosmos DB ClientEncryptionKey name. + * @param createUpdateClientEncryptionKeyParameters The parameters to provide for the client encryption + * key. * @param options The options parameters. */ - beginSqlContainerRedistributeThroughputAndWait( + beginCreateUpdateClientEncryptionKeyAndWait( resourceGroupName: string, accountName: string, databaseName: string, - containerName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: SqlResourcesSqlContainerRedistributeThroughputOptionalParams - ): Promise; + clientEncryptionKeyName: string, + createUpdateClientEncryptionKeyParameters: ClientEncryptionKeyCreateUpdateParameters, + options?: SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams + ): Promise; /** * Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/cosmosdb/arm-cosmosdb/test/sampleTest.ts b/sdk/cosmosdb/arm-cosmosdb/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * 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 { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/cosmosdb/arm-cosmosdb/tsconfig.json b/sdk/cosmosdb/arm-cosmosdb/tsconfig.json index bbcdce662fee..3e6ae96443f3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/tsconfig.json +++ b/sdk/cosmosdb/arm-cosmosdb/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-cosmosdb": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"