From 6d5b261bb3e151b61b21130dbb80bba35423fc7a Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:00:41 +0800 Subject: [PATCH] [mgmt] cosmosdb stable release (#32136) https://github.com/Azure/sdk-release-request/issues/5719 --- sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md | 28 +- sdk/cosmosdb/arm-cosmosdb/README.md | 3 +- sdk/cosmosdb/arm-cosmosdb/_meta.json | 8 +- sdk/cosmosdb/arm-cosmosdb/assets.json | 2 +- sdk/cosmosdb/arm-cosmosdb/package.json | 7 +- .../arm-cosmosdb/review/arm-cosmosdb.api.md | 1458 +---- sdk/cosmosdb/arm-cosmosdb/sample.env | 2 +- .../cassandraClustersCreateUpdateSample.ts | 4 +- .../cassandraClustersDeallocateSample.ts | 4 +- .../cassandraClustersDeleteSample.ts | 2 +- .../cassandraClustersGetBackupSample.ts | 45 - .../cassandraClustersGetCommandAsyncSample.ts | 45 - .../samples-dev/cassandraClustersGetSample.ts | 2 +- ...ssandraClustersInvokeCommandAsyncSample.ts | 49 - .../cassandraClustersInvokeCommandSample.ts | 7 +- .../cassandraClustersListBackupsSample.ts | 46 - ...sandraClustersListByResourceGroupSample.ts | 2 +- ...ssandraClustersListBySubscriptionSample.ts | 2 +- .../cassandraClustersListCommandSample.ts | 46 - .../cassandraClustersStartSample.ts | 4 +- .../cassandraClustersStatusSample.ts | 4 +- .../cassandraClustersUpdateSample.ts | 2 +- .../cassandraDataCentersCreateUpdateSample.ts | 2 +- .../cassandraDataCentersDeleteSample.ts | 2 +- .../cassandraDataCentersGetSample.ts | 2 +- .../cassandraDataCentersListSample.ts | 2 +- .../cassandraDataCentersUpdateSample.ts | 2 +- ...rcesCreateUpdateCassandraKeyspaceSample.ts | 2 +- ...sourcesCreateUpdateCassandraTableSample.ts | 3 +- ...esourcesCreateUpdateCassandraViewSample.ts | 59 - ...aResourcesDeleteCassandraKeyspaceSample.ts | 2 +- ...ndraResourcesDeleteCassandraTableSample.ts | 2 +- ...andraResourcesDeleteCassandraViewSample.ts | 45 - ...ndraResourcesGetCassandraKeyspaceSample.ts | 2 +- ...cesGetCassandraKeyspaceThroughputSample.ts | 2 +- ...ssandraResourcesGetCassandraTableSample.ts | 2 +- ...ourcesGetCassandraTableThroughputSample.ts | 2 +- ...assandraResourcesGetCassandraViewSample.ts | 44 - ...sourcesGetCassandraViewThroughputSample.ts | 44 - ...raResourcesListCassandraKeyspacesSample.ts | 2 +- ...andraResourcesListCassandraTablesSample.ts | 2 +- ...sandraResourcesListCassandraViewsSample.ts | 45 - ...grateCassandraKeyspaceToAutoscaleSample.ts | 2 +- ...ssandraKeyspaceToManualThroughputSample.ts | 2 +- ...sMigrateCassandraTableToAutoscaleSample.ts | 2 +- ...eCassandraTableToManualThroughputSample.ts | 2 +- ...esMigrateCassandraViewToAutoscaleSample.ts | 45 - ...teCassandraViewToManualThroughputSample.ts | 45 - ...UpdateCassandraKeyspaceThroughputSample.ts | 2 +- ...cesUpdateCassandraTableThroughputSample.ts | 2 +- ...rcesUpdateCassandraViewThroughputSample.ts | 53 - .../chaosFaultEnableDisableSample.ts | 55 - .../samples-dev/chaosFaultGetSample.ts | 44 - .../samples-dev/chaosFaultListSample.ts | 45 - .../collectionListMetricDefinitionsSample.ts | 2 +- .../collectionListMetricsSample.ts | 2 +- .../samples-dev/collectionListUsagesSample.ts | 2 +- .../collectionPartitionListMetricsSample.ts | 2 +- .../collectionPartitionListUsagesSample.ts | 2 +- ...lectionPartitionRegionListMetricsSample.ts | 2 +- .../collectionRegionListMetricsSample.ts | 2 +- .../dataTransferJobsCancelSample.ts | 42 - .../dataTransferJobsCompleteSample.ts | 44 - .../dataTransferJobsCreateSample.ts | 60 - .../samples-dev/dataTransferJobsGetSample.ts | 42 - ...TransferJobsListByDatabaseAccountSample.ts | 43 - .../dataTransferJobsPauseSample.ts | 42 - .../dataTransferJobsResumeSample.ts | 42 - .../databaseAccountRegionListMetricsSample.ts | 2 +- .../databaseAccountsCheckNameExistsSample.ts | 2 +- .../databaseAccountsCreateOrUpdateSample.ts | 12 +- .../databaseAccountsDeleteSample.ts | 2 +- ...aseAccountsFailoverPriorityChangeSample.ts | 2 +- .../databaseAccountsGetReadOnlyKeysSample.ts | 2 +- .../samples-dev/databaseAccountsGetSample.ts | 2 +- ...tabaseAccountsListByResourceGroupSample.ts | 2 +- ...baseAccountsListConnectionStringsSample.ts | 4 +- .../databaseAccountsListKeysSample.ts | 2 +- ...baseAccountsListMetricDefinitionsSample.ts | 2 +- .../databaseAccountsListMetricsSample.ts | 2 +- .../databaseAccountsListReadOnlyKeysSample.ts | 2 +- .../samples-dev/databaseAccountsListSample.ts | 2 +- .../databaseAccountsListUsagesSample.ts | 2 +- .../databaseAccountsOfflineRegionSample.ts | 2 +- .../databaseAccountsOnlineRegionSample.ts | 2 +- .../databaseAccountsRegenerateKeySample.ts | 2 +- .../databaseAccountsUpdateSample.ts | 8 +- .../databaseListMetricDefinitionsSample.ts | 2 +- .../samples-dev/databaseListMetricsSample.ts | 2 +- .../samples-dev/databaseListUsagesSample.ts | 2 +- ...graphResourcesDeleteGraphResourceSample.ts | 42 - .../graphResourcesGetGraphSample.ts | 42 - .../graphResourcesListGraphsSample.ts | 43 - ...ourcesCreateUpdateGremlinDatabaseSample.ts | 2 +- ...ResourcesCreateUpdateGremlinGraphSample.ts | 2 +- ...linResourcesDeleteGremlinDatabaseSample.ts | 2 +- ...remlinResourcesDeleteGremlinGraphSample.ts | 2 +- ...remlinResourcesGetGremlinDatabaseSample.ts | 2 +- ...urcesGetGremlinDatabaseThroughputSample.ts | 2 +- .../gremlinResourcesGetGremlinGraphSample.ts | 2 +- ...esourcesGetGremlinGraphThroughputSample.ts | 2 +- ...mlinResourcesListGremlinDatabasesSample.ts | 2 +- ...gremlinResourcesListGremlinGraphsSample.ts | 2 +- ...MigrateGremlinDatabaseToAutoscaleSample.ts | 2 +- ...GremlinDatabaseToManualThroughputSample.ts | 2 +- ...cesMigrateGremlinGraphToAutoscaleSample.ts | 2 +- ...ateGremlinGraphToManualThroughputSample.ts | 2 +- ...trieveContinuousBackupInformationSample.ts | 2 +- ...esUpdateGremlinDatabaseThroughputSample.ts | 2 +- ...urcesUpdateGremlinGraphThroughputSample.ts | 2 +- .../samples-dev/locationsGetSample.ts | 2 +- .../samples-dev/locationsListSample.ts | 2 +- ...rcesCreateUpdateMongoDbcollectionSample.ts | 45 +- ...ourcesCreateUpdateMongoDbdatabaseSample.ts | 42 +- ...esCreateUpdateMongoRoleDefinitionSample.ts | 2 +- ...esCreateUpdateMongoUserDefinitionSample.ts | 2 +- ...bResourcesDeleteMongoDbcollectionSample.ts | 2 +- ...oDbResourcesDeleteMongoDbdatabaseSample.ts | 2 +- ...esourcesDeleteMongoRoleDefinitionSample.ts | 2 +- ...esourcesDeleteMongoUserDefinitionSample.ts | 2 +- ...goDbResourcesGetMongoDbcollectionSample.ts | 2 +- ...cesGetMongoDbcollectionThroughputSample.ts | 2 +- ...ongoDbResourcesGetMongoDbdatabaseSample.ts | 2 +- ...urcesGetMongoDbdatabaseThroughputSample.ts | 2 +- ...DbResourcesGetMongoRoleDefinitionSample.ts | 2 +- ...DbResourcesGetMongoUserDefinitionSample.ts | 2 +- ...stMongoDbcollectionPartitionMergeSample.ts | 47 - ...DbResourcesListMongoDbcollectionsSample.ts | 2 +- ...goDbResourcesListMongoDbdatabasesSample.ts | 2 +- ...ResourcesListMongoRoleDefinitionsSample.ts | 2 +- ...ResourcesListMongoUserDefinitionsSample.ts | 2 +- ...grateMongoDbcollectionToAutoscaleSample.ts | 2 +- ...ngoDbcollectionToManualThroughputSample.ts | 2 +- ...MigrateMongoDbdatabaseToAutoscaleSample.ts | 2 +- ...MongoDbdatabaseToManualThroughputSample.ts | 2 +- ...DbcontainerRedistributeThroughputSample.ts | 62 - ...nerRetrieveThroughputDistributionSample.ts | 52 - ...rcesMongoDbdatabasePartitionMergeSample.ts | 45 - ...oDbdatabaseRedistributeThroughputSample.ts | 60 - ...aseRetrieveThroughputDistributionSample.ts | 50 - ...trieveContinuousBackupInformationSample.ts | 2 +- ...UpdateMongoDbcollectionThroughputSample.ts | 2 +- ...esUpdateMongoDbdatabaseThroughputSample.ts | 2 +- ...ecurityPerimeterConfigurationsGetSample.ts | 45 - ...curityPerimeterConfigurationsListSample.ts | 45 - ...yPerimeterConfigurationsReconcileSample.ts | 46 - .../notebookWorkspacesCreateOrUpdateSample.ts | 2 +- .../notebookWorkspacesDeleteSample.ts | 2 +- .../notebookWorkspacesGetSample.ts | 2 +- ...okWorkspacesListByDatabaseAccountSample.ts | 2 +- ...ebookWorkspacesListConnectionInfoSample.ts | 2 +- ...bookWorkspacesRegenerateAuthTokenSample.ts | 2 +- .../notebookWorkspacesStartSample.ts | 2 +- .../samples-dev/operationsListSample.ts | 2 +- .../partitionKeyRangeIdListMetricsSample.ts | 2 +- ...titionKeyRangeIdRegionListMetricsSample.ts | 2 +- .../percentileListMetricsSample.ts | 2 +- ...percentileSourceTargetListMetricsSample.ts | 2 +- .../percentileTargetListMetricsSample.ts | 2 +- ...EndpointConnectionsCreateOrUpdateSample.ts | 2 +- .../privateEndpointConnectionsDeleteSample.ts | 2 +- .../privateEndpointConnectionsGetSample.ts | 2 +- ...tConnectionsListByDatabaseAccountSample.ts | 2 +- .../privateLinkResourcesGetSample.ts | 2 +- ...inkResourcesListByDatabaseAccountSample.ts | 2 +- ...ableDatabaseAccountsGetByLocationSample.ts | 2 +- ...bleDatabaseAccountsListByLocationSample.ts | 2 +- .../restorableDatabaseAccountsListSample.ts | 2 +- .../restorableGremlinDatabasesListSample.ts | 2 +- .../restorableGremlinGraphsListSample.ts | 2 +- .../restorableGremlinResourcesListSample.ts | 2 +- .../restorableMongodbCollectionsListSample.ts | 2 +- .../restorableMongodbDatabasesListSample.ts | 2 +- .../restorableMongodbResourcesListSample.ts | 2 +- .../restorableSqlContainersListSample.ts | 2 +- .../restorableSqlDatabasesListSample.ts | 2 +- .../restorableSqlResourcesListSample.ts | 2 +- .../restorableTableResourcesListSample.ts | 2 +- .../samples-dev/restorableTablesListSample.ts | 2 +- .../samples-dev/serviceCreateSample.ts | 8 +- .../samples-dev/serviceDeleteSample.ts | 8 +- .../samples-dev/serviceGetSample.ts | 8 +- .../samples-dev/serviceListSample.ts | 2 +- ...esCreateUpdateClientEncryptionKeySample.ts | 6 +- ...ResourcesCreateUpdateSqlContainerSample.ts | 115 +- ...lResourcesCreateUpdateSqlDatabaseSample.ts | 40 +- ...rcesCreateUpdateSqlRoleAssignmentSample.ts | 2 +- ...rcesCreateUpdateSqlRoleDefinitionSample.ts | 2 +- ...cesCreateUpdateSqlStoredProcedureSample.ts | 2 +- ...qlResourcesCreateUpdateSqlTriggerSample.ts | 2 +- ...reateUpdateSqlUserDefinedFunctionSample.ts | 2 +- .../sqlResourcesDeleteSqlContainerSample.ts | 2 +- .../sqlResourcesDeleteSqlDatabaseSample.ts | 2 +- ...lResourcesDeleteSqlRoleAssignmentSample.ts | 2 +- ...lResourcesDeleteSqlRoleDefinitionSample.ts | 2 +- ...ResourcesDeleteSqlStoredProcedureSample.ts | 2 +- .../sqlResourcesDeleteSqlTriggerSample.ts | 2 +- ...urcesDeleteSqlUserDefinedFunctionSample.ts | 2 +- ...qlResourcesGetClientEncryptionKeySample.ts | 2 +- .../sqlResourcesGetSqlContainerSample.ts | 2 +- ...esourcesGetSqlContainerThroughputSample.ts | 2 +- .../sqlResourcesGetSqlDatabaseSample.ts | 2 +- ...ResourcesGetSqlDatabaseThroughputSample.ts | 2 +- .../sqlResourcesGetSqlRoleAssignmentSample.ts | 2 +- .../sqlResourcesGetSqlRoleDefinitionSample.ts | 2 +- ...sqlResourcesGetSqlStoredProcedureSample.ts | 2 +- .../sqlResourcesGetSqlTriggerSample.ts | 2 +- ...esourcesGetSqlUserDefinedFunctionSample.ts | 2 +- ...ResourcesListClientEncryptionKeysSample.ts | 2 +- ...cesListSqlContainerPartitionMergeSample.ts | 47 - .../sqlResourcesListSqlContainersSample.ts | 2 +- .../sqlResourcesListSqlDatabasesSample.ts | 2 +- ...qlResourcesListSqlRoleAssignmentsSample.ts | 2 +- ...qlResourcesListSqlRoleDefinitionsSample.ts | 2 +- ...lResourcesListSqlStoredProceduresSample.ts | 2 +- .../sqlResourcesListSqlTriggersSample.ts | 2 +- ...ourcesListSqlUserDefinedFunctionsSample.ts | 2 +- ...cesMigrateSqlContainerToAutoscaleSample.ts | 2 +- ...ateSqlContainerToManualThroughputSample.ts | 2 +- ...rcesMigrateSqlDatabaseToAutoscaleSample.ts | 2 +- ...rateSqlDatabaseToManualThroughputSample.ts | 2 +- ...trieveContinuousBackupInformationSample.ts | 2 +- ...qlContainerRedistributeThroughputSample.ts | 62 - ...nerRetrieveThroughputDistributionSample.ts | 52 - ...esourcesSqlDatabasePartitionMergeSample.ts | 45 - ...SqlDatabaseRedistributeThroughputSample.ts | 60 - ...urcesUpdateSqlContainerThroughputSample.ts | 2 +- ...ourcesUpdateSqlDatabaseThroughputSample.ts | 2 +- .../tableResourcesCreateUpdateTableSample.ts | 2 +- .../tableResourcesDeleteTableSample.ts | 2 +- .../tableResourcesGetTableSample.ts | 2 +- .../tableResourcesGetTableThroughputSample.ts | 2 +- .../tableResourcesListTablesSample.ts | 2 +- ...eResourcesMigrateTableToAutoscaleSample.ts | 2 +- ...cesMigrateTableToManualThroughputSample.ts | 2 +- ...trieveContinuousBackupInformationSample.ts | 2 +- ...bleResourcesUpdateTableThroughputSample.ts | 2 +- .../throughputPoolAccountCreateSample.ts | 53 - .../throughputPoolAccountDeleteSample.ts | 44 - .../throughputPoolAccountGetSample.ts | 44 - .../throughputPoolAccountsListSample.ts | 45 - .../throughputPoolCreateOrUpdateSample.ts | 51 - .../samples-dev/throughputPoolDeleteSample.ts | 42 - .../samples-dev/throughputPoolGetSample.ts | 42 - .../samples-dev/throughputPoolUpdateSample.ts | 49 - ...hroughputPoolsListByResourceGroupSample.ts | 43 - .../samples-dev/throughputPoolsListSample.ts | 40 - .../samples/v16/javascript/README.md | 428 ++ .../cassandraClustersCreateUpdateSample.js | 4 +- .../cassandraClustersDeallocateSample.js | 4 +- .../cassandraClustersDeleteSample.js | 2 +- .../javascript/cassandraClustersGetSample.js | 2 +- .../cassandraClustersInvokeCommandSample.js | 7 +- ...sandraClustersListByResourceGroupSample.js | 2 +- ...ssandraClustersListBySubscriptionSample.js | 2 +- .../cassandraClustersStartSample.js | 4 +- .../cassandraClustersStatusSample.js | 4 +- .../cassandraClustersUpdateSample.js | 2 +- .../cassandraDataCentersCreateUpdateSample.js | 2 +- .../cassandraDataCentersDeleteSample.js | 2 +- .../cassandraDataCentersGetSample.js | 2 +- .../cassandraDataCentersListSample.js | 2 +- .../cassandraDataCentersUpdateSample.js | 2 +- ...rcesCreateUpdateCassandraKeyspaceSample.js | 2 +- ...sourcesCreateUpdateCassandraTableSample.js | 3 +- ...aResourcesDeleteCassandraKeyspaceSample.js | 2 +- ...ndraResourcesDeleteCassandraTableSample.js | 2 +- ...ndraResourcesGetCassandraKeyspaceSample.js | 2 +- ...cesGetCassandraKeyspaceThroughputSample.js | 2 +- ...ssandraResourcesGetCassandraTableSample.js | 2 +- ...ourcesGetCassandraTableThroughputSample.js | 2 +- ...raResourcesListCassandraKeyspacesSample.js | 2 +- ...andraResourcesListCassandraTablesSample.js | 2 +- ...grateCassandraKeyspaceToAutoscaleSample.js | 2 +- ...ssandraKeyspaceToManualThroughputSample.js | 2 +- ...sMigrateCassandraTableToAutoscaleSample.js | 2 +- ...eCassandraTableToManualThroughputSample.js | 2 +- ...UpdateCassandraKeyspaceThroughputSample.js | 2 +- ...cesUpdateCassandraTableThroughputSample.js | 2 +- .../collectionListMetricDefinitionsSample.js | 2 +- .../javascript/collectionListMetricsSample.js | 2 +- .../javascript/collectionListUsagesSample.js | 2 +- .../collectionPartitionListMetricsSample.js | 2 +- .../collectionPartitionListUsagesSample.js | 2 +- ...lectionPartitionRegionListMetricsSample.js | 2 +- .../collectionRegionListMetricsSample.js | 2 +- .../databaseAccountRegionListMetricsSample.js | 2 +- .../databaseAccountsCheckNameExistsSample.js | 2 +- .../databaseAccountsCreateOrUpdateSample.js | 12 +- .../databaseAccountsDeleteSample.js | 2 +- ...aseAccountsFailoverPriorityChangeSample.js | 2 +- .../databaseAccountsGetReadOnlyKeysSample.js | 2 +- .../javascript/databaseAccountsGetSample.js | 2 +- ...tabaseAccountsListByResourceGroupSample.js | 2 +- ...baseAccountsListConnectionStringsSample.js | 4 +- .../databaseAccountsListKeysSample.js | 2 +- ...baseAccountsListMetricDefinitionsSample.js | 2 +- .../databaseAccountsListMetricsSample.js | 2 +- .../databaseAccountsListReadOnlyKeysSample.js | 2 +- .../javascript/databaseAccountsListSample.js | 2 +- .../databaseAccountsListUsagesSample.js | 2 +- .../databaseAccountsOfflineRegionSample.js | 2 +- .../databaseAccountsOnlineRegionSample.js | 2 +- .../databaseAccountsRegenerateKeySample.js | 2 +- .../databaseAccountsUpdateSample.js | 8 +- .../databaseListMetricDefinitionsSample.js | 2 +- .../javascript/databaseListMetricsSample.js | 2 +- .../javascript/databaseListUsagesSample.js | 2 +- ...ourcesCreateUpdateGremlinDatabaseSample.js | 2 +- ...ResourcesCreateUpdateGremlinGraphSample.js | 2 +- ...linResourcesDeleteGremlinDatabaseSample.js | 2 +- ...remlinResourcesDeleteGremlinGraphSample.js | 2 +- ...remlinResourcesGetGremlinDatabaseSample.js | 2 +- ...urcesGetGremlinDatabaseThroughputSample.js | 2 +- .../gremlinResourcesGetGremlinGraphSample.js | 2 +- ...esourcesGetGremlinGraphThroughputSample.js | 2 +- ...mlinResourcesListGremlinDatabasesSample.js | 2 +- ...gremlinResourcesListGremlinGraphsSample.js | 2 +- ...MigrateGremlinDatabaseToAutoscaleSample.js | 2 +- ...GremlinDatabaseToManualThroughputSample.js | 2 +- ...cesMigrateGremlinGraphToAutoscaleSample.js | 2 +- ...ateGremlinGraphToManualThroughputSample.js | 2 +- ...trieveContinuousBackupInformationSample.js | 2 +- ...esUpdateGremlinDatabaseThroughputSample.js | 2 +- ...urcesUpdateGremlinGraphThroughputSample.js | 2 +- .../javascript/locationsGetSample.js | 2 +- .../javascript/locationsListSample.js | 2 +- ...cesCreateUpdateMongoDbcollectionSample.js} | 32 +- ...urcesCreateUpdateMongoDbdatabaseSample.js} | 25 +- ...esCreateUpdateMongoRoleDefinitionSample.js | 2 +- ...esCreateUpdateMongoUserDefinitionSample.js | 2 +- ...bResourcesDeleteMongoDbcollectionSample.js | 2 +- ...oDbResourcesDeleteMongoDbdatabaseSample.js | 2 +- ...esourcesDeleteMongoRoleDefinitionSample.js | 2 +- ...esourcesDeleteMongoUserDefinitionSample.js | 2 +- ...goDbResourcesGetMongoDbcollectionSample.js | 2 +- ...cesGetMongoDbcollectionThroughputSample.js | 2 +- ...ongoDbResourcesGetMongoDbdatabaseSample.js | 2 +- ...urcesGetMongoDbdatabaseThroughputSample.js | 2 +- ...DbResourcesGetMongoRoleDefinitionSample.js | 2 +- ...DbResourcesGetMongoUserDefinitionSample.js | 2 +- ...DbResourcesListMongoDbcollectionsSample.js | 2 +- ...goDbResourcesListMongoDbdatabasesSample.js | 2 +- ...ResourcesListMongoRoleDefinitionsSample.js | 2 +- ...ResourcesListMongoUserDefinitionsSample.js | 2 +- ...grateMongoDbcollectionToAutoscaleSample.js | 2 +- ...ngoDbcollectionToManualThroughputSample.js | 2 +- ...MigrateMongoDbdatabaseToAutoscaleSample.js | 2 +- ...MongoDbdatabaseToManualThroughputSample.js | 2 +- ...trieveContinuousBackupInformationSample.js | 2 +- ...UpdateMongoDbcollectionThroughputSample.js | 2 +- ...esUpdateMongoDbdatabaseThroughputSample.js | 2 +- .../notebookWorkspacesCreateOrUpdateSample.js | 2 +- .../notebookWorkspacesDeleteSample.js | 2 +- .../javascript/notebookWorkspacesGetSample.js | 2 +- ...okWorkspacesListByDatabaseAccountSample.js | 2 +- ...ebookWorkspacesListConnectionInfoSample.js | 2 +- ...bookWorkspacesRegenerateAuthTokenSample.js | 2 +- .../notebookWorkspacesStartSample.js | 2 +- .../javascript/operationsListSample.js | 2 +- .../{v17-beta => v16}/javascript/package.json | 6 +- .../partitionKeyRangeIdListMetricsSample.js | 2 +- ...titionKeyRangeIdRegionListMetricsSample.js | 2 +- .../javascript/percentileListMetricsSample.js | 2 +- ...percentileSourceTargetListMetricsSample.js | 2 +- .../percentileTargetListMetricsSample.js | 2 +- ...EndpointConnectionsCreateOrUpdateSample.js | 2 +- .../privateEndpointConnectionsDeleteSample.js | 2 +- .../privateEndpointConnectionsGetSample.js | 2 +- ...tConnectionsListByDatabaseAccountSample.js | 2 +- .../privateLinkResourcesGetSample.js | 2 +- ...inkResourcesListByDatabaseAccountSample.js | 2 +- ...ableDatabaseAccountsGetByLocationSample.js | 2 +- ...bleDatabaseAccountsListByLocationSample.js | 2 +- .../restorableDatabaseAccountsListSample.js | 2 +- .../restorableGremlinDatabasesListSample.js | 2 +- .../restorableGremlinGraphsListSample.js | 2 +- .../restorableGremlinResourcesListSample.js | 2 +- .../restorableMongodbCollectionsListSample.js | 2 +- .../restorableMongodbDatabasesListSample.js | 2 +- .../restorableMongodbResourcesListSample.js | 2 +- .../restorableSqlContainersListSample.js | 2 +- .../restorableSqlDatabasesListSample.js | 2 +- .../restorableSqlResourcesListSample.js | 2 +- .../restorableTableResourcesListSample.js | 2 +- .../javascript/restorableTablesListSample.js | 2 +- .../samples/v16/javascript/sample.env | 1 + .../javascript/serviceCreateSample.js | 8 +- .../javascript/serviceDeleteSample.js | 8 +- .../javascript/serviceGetSample.js | 8 +- .../javascript/serviceListSample.js | 2 +- ...esCreateUpdateClientEncryptionKeySample.js | 6 +- ...ResourcesCreateUpdateSqlContainerSample.js | 111 + ...ResourcesCreateUpdateSqlDatabaseSample.js} | 22 +- ...rcesCreateUpdateSqlRoleAssignmentSample.js | 2 +- ...rcesCreateUpdateSqlRoleDefinitionSample.js | 2 +- ...cesCreateUpdateSqlStoredProcedureSample.js | 2 +- ...qlResourcesCreateUpdateSqlTriggerSample.js | 2 +- ...reateUpdateSqlUserDefinedFunctionSample.js | 2 +- .../sqlResourcesDeleteSqlContainerSample.js | 2 +- .../sqlResourcesDeleteSqlDatabaseSample.js | 2 +- ...lResourcesDeleteSqlRoleAssignmentSample.js | 2 +- ...lResourcesDeleteSqlRoleDefinitionSample.js | 2 +- ...ResourcesDeleteSqlStoredProcedureSample.js | 2 +- .../sqlResourcesDeleteSqlTriggerSample.js | 2 +- ...urcesDeleteSqlUserDefinedFunctionSample.js | 2 +- ...qlResourcesGetClientEncryptionKeySample.js | 2 +- .../sqlResourcesGetSqlContainerSample.js | 2 +- ...esourcesGetSqlContainerThroughputSample.js | 2 +- .../sqlResourcesGetSqlDatabaseSample.js | 2 +- ...ResourcesGetSqlDatabaseThroughputSample.js | 2 +- .../sqlResourcesGetSqlRoleAssignmentSample.js | 2 +- .../sqlResourcesGetSqlRoleDefinitionSample.js | 2 +- ...sqlResourcesGetSqlStoredProcedureSample.js | 2 +- .../sqlResourcesGetSqlTriggerSample.js | 2 +- ...esourcesGetSqlUserDefinedFunctionSample.js | 2 +- ...ResourcesListClientEncryptionKeysSample.js | 2 +- .../sqlResourcesListSqlContainersSample.js | 2 +- .../sqlResourcesListSqlDatabasesSample.js | 2 +- ...qlResourcesListSqlRoleAssignmentsSample.js | 2 +- ...qlResourcesListSqlRoleDefinitionsSample.js | 2 +- ...lResourcesListSqlStoredProceduresSample.js | 2 +- .../sqlResourcesListSqlTriggersSample.js | 2 +- ...ourcesListSqlUserDefinedFunctionsSample.js | 2 +- ...cesMigrateSqlContainerToAutoscaleSample.js | 2 +- ...ateSqlContainerToManualThroughputSample.js | 2 +- ...rcesMigrateSqlDatabaseToAutoscaleSample.js | 2 +- ...rateSqlDatabaseToManualThroughputSample.js | 2 +- ...trieveContinuousBackupInformationSample.js | 2 +- ...urcesUpdateSqlContainerThroughputSample.js | 2 +- ...ourcesUpdateSqlDatabaseThroughputSample.js | 2 +- .../tableResourcesCreateUpdateTableSample.js | 2 +- .../tableResourcesDeleteTableSample.js | 2 +- .../tableResourcesGetTableSample.js | 2 +- .../tableResourcesGetTableThroughputSample.js | 2 +- .../tableResourcesListTablesSample.js | 2 +- ...eResourcesMigrateTableToAutoscaleSample.js | 2 +- ...cesMigrateTableToManualThroughputSample.js | 2 +- ...trieveContinuousBackupInformationSample.js | 2 +- ...bleResourcesUpdateTableThroughputSample.js | 2 +- .../samples/v16/typescript/README.md | 441 ++ .../{v17-beta => v16}/typescript/package.json | 6 +- .../samples/v16/typescript/sample.env | 1 + .../cassandraClustersCreateUpdateSample.ts | 4 +- .../src/cassandraClustersDeallocateSample.ts | 4 +- .../src/cassandraClustersDeleteSample.ts | 2 +- .../src/cassandraClustersGetSample.ts | 2 +- .../cassandraClustersInvokeCommandSample.ts | 7 +- ...sandraClustersListByResourceGroupSample.ts | 2 +- ...ssandraClustersListBySubscriptionSample.ts | 2 +- .../src/cassandraClustersStartSample.ts | 4 +- .../src/cassandraClustersStatusSample.ts | 4 +- .../src/cassandraClustersUpdateSample.ts | 2 +- .../cassandraDataCentersCreateUpdateSample.ts | 2 +- .../src/cassandraDataCentersDeleteSample.ts | 2 +- .../src/cassandraDataCentersGetSample.ts | 2 +- .../src/cassandraDataCentersListSample.ts | 2 +- .../src/cassandraDataCentersUpdateSample.ts | 2 +- ...rcesCreateUpdateCassandraKeyspaceSample.ts | 2 +- ...sourcesCreateUpdateCassandraTableSample.ts | 3 +- ...aResourcesDeleteCassandraKeyspaceSample.ts | 2 +- ...ndraResourcesDeleteCassandraTableSample.ts | 2 +- ...ndraResourcesGetCassandraKeyspaceSample.ts | 2 +- ...cesGetCassandraKeyspaceThroughputSample.ts | 2 +- ...ssandraResourcesGetCassandraTableSample.ts | 2 +- ...ourcesGetCassandraTableThroughputSample.ts | 2 +- ...raResourcesListCassandraKeyspacesSample.ts | 2 +- ...andraResourcesListCassandraTablesSample.ts | 2 +- ...grateCassandraKeyspaceToAutoscaleSample.ts | 2 +- ...ssandraKeyspaceToManualThroughputSample.ts | 2 +- ...sMigrateCassandraTableToAutoscaleSample.ts | 2 +- ...eCassandraTableToManualThroughputSample.ts | 2 +- ...UpdateCassandraKeyspaceThroughputSample.ts | 2 +- ...cesUpdateCassandraTableThroughputSample.ts | 2 +- .../collectionListMetricDefinitionsSample.ts | 2 +- .../src/collectionListMetricsSample.ts | 2 +- .../src/collectionListUsagesSample.ts | 2 +- .../collectionPartitionListMetricsSample.ts | 2 +- .../collectionPartitionListUsagesSample.ts | 2 +- ...lectionPartitionRegionListMetricsSample.ts | 2 +- .../src/collectionRegionListMetricsSample.ts | 2 +- .../databaseAccountRegionListMetricsSample.ts | 2 +- .../databaseAccountsCheckNameExistsSample.ts | 2 +- .../databaseAccountsCreateOrUpdateSample.ts | 12 +- .../src/databaseAccountsDeleteSample.ts | 2 +- ...aseAccountsFailoverPriorityChangeSample.ts | 2 +- .../databaseAccountsGetReadOnlyKeysSample.ts | 2 +- .../src/databaseAccountsGetSample.ts | 2 +- ...tabaseAccountsListByResourceGroupSample.ts | 2 +- ...baseAccountsListConnectionStringsSample.ts | 4 +- .../src/databaseAccountsListKeysSample.ts | 2 +- ...baseAccountsListMetricDefinitionsSample.ts | 2 +- .../src/databaseAccountsListMetricsSample.ts | 2 +- .../databaseAccountsListReadOnlyKeysSample.ts | 2 +- .../src/databaseAccountsListSample.ts | 2 +- .../src/databaseAccountsListUsagesSample.ts | 2 +- .../databaseAccountsOfflineRegionSample.ts | 2 +- .../src/databaseAccountsOnlineRegionSample.ts | 2 +- .../databaseAccountsRegenerateKeySample.ts | 2 +- .../src/databaseAccountsUpdateSample.ts | 8 +- .../databaseListMetricDefinitionsSample.ts | 2 +- .../src/databaseListMetricsSample.ts | 2 +- .../src/databaseListUsagesSample.ts | 2 +- ...ourcesCreateUpdateGremlinDatabaseSample.ts | 2 +- ...ResourcesCreateUpdateGremlinGraphSample.ts | 2 +- ...linResourcesDeleteGremlinDatabaseSample.ts | 2 +- ...remlinResourcesDeleteGremlinGraphSample.ts | 2 +- ...remlinResourcesGetGremlinDatabaseSample.ts | 2 +- ...urcesGetGremlinDatabaseThroughputSample.ts | 2 +- .../gremlinResourcesGetGremlinGraphSample.ts | 2 +- ...esourcesGetGremlinGraphThroughputSample.ts | 2 +- ...mlinResourcesListGremlinDatabasesSample.ts | 2 +- ...gremlinResourcesListGremlinGraphsSample.ts | 2 +- ...MigrateGremlinDatabaseToAutoscaleSample.ts | 2 +- ...GremlinDatabaseToManualThroughputSample.ts | 2 +- ...cesMigrateGremlinGraphToAutoscaleSample.ts | 2 +- ...ateGremlinGraphToManualThroughputSample.ts | 2 +- ...trieveContinuousBackupInformationSample.ts | 2 +- ...esUpdateGremlinDatabaseThroughputSample.ts | 2 +- ...urcesUpdateGremlinGraphThroughputSample.ts | 2 +- .../typescript/src/locationsGetSample.ts | 2 +- .../typescript/src/locationsListSample.ts | 2 +- ...cesCreateUpdateMongoDbcollectionSample.ts} | 39 +- ...urcesCreateUpdateMongoDbdatabaseSample.ts} | 26 +- ...esCreateUpdateMongoRoleDefinitionSample.ts | 2 +- ...esCreateUpdateMongoUserDefinitionSample.ts | 2 +- ...bResourcesDeleteMongoDbcollectionSample.ts | 2 +- ...oDbResourcesDeleteMongoDbdatabaseSample.ts | 2 +- ...esourcesDeleteMongoRoleDefinitionSample.ts | 2 +- ...esourcesDeleteMongoUserDefinitionSample.ts | 2 +- ...goDbResourcesGetMongoDbcollectionSample.ts | 2 +- ...cesGetMongoDbcollectionThroughputSample.ts | 2 +- ...ongoDbResourcesGetMongoDbdatabaseSample.ts | 2 +- ...urcesGetMongoDbdatabaseThroughputSample.ts | 2 +- ...DbResourcesGetMongoRoleDefinitionSample.ts | 2 +- ...DbResourcesGetMongoUserDefinitionSample.ts | 2 +- ...DbResourcesListMongoDbcollectionsSample.ts | 2 +- ...goDbResourcesListMongoDbdatabasesSample.ts | 2 +- ...ResourcesListMongoRoleDefinitionsSample.ts | 2 +- ...ResourcesListMongoUserDefinitionsSample.ts | 2 +- ...grateMongoDbcollectionToAutoscaleSample.ts | 2 +- ...ngoDbcollectionToManualThroughputSample.ts | 2 +- ...MigrateMongoDbdatabaseToAutoscaleSample.ts | 2 +- ...MongoDbdatabaseToManualThroughputSample.ts | 2 +- ...trieveContinuousBackupInformationSample.ts | 2 +- ...UpdateMongoDbcollectionThroughputSample.ts | 2 +- ...esUpdateMongoDbdatabaseThroughputSample.ts | 2 +- .../notebookWorkspacesCreateOrUpdateSample.ts | 2 +- .../src/notebookWorkspacesDeleteSample.ts | 2 +- .../src/notebookWorkspacesGetSample.ts | 2 +- ...okWorkspacesListByDatabaseAccountSample.ts | 2 +- ...ebookWorkspacesListConnectionInfoSample.ts | 2 +- ...bookWorkspacesRegenerateAuthTokenSample.ts | 2 +- .../src/notebookWorkspacesStartSample.ts | 2 +- .../typescript/src/operationsListSample.ts | 2 +- .../partitionKeyRangeIdListMetricsSample.ts | 2 +- ...titionKeyRangeIdRegionListMetricsSample.ts | 2 +- .../src/percentileListMetricsSample.ts | 2 +- ...percentileSourceTargetListMetricsSample.ts | 2 +- .../src/percentileTargetListMetricsSample.ts | 2 +- ...EndpointConnectionsCreateOrUpdateSample.ts | 2 +- .../privateEndpointConnectionsDeleteSample.ts | 2 +- .../privateEndpointConnectionsGetSample.ts | 2 +- ...tConnectionsListByDatabaseAccountSample.ts | 2 +- .../src/privateLinkResourcesGetSample.ts | 2 +- ...inkResourcesListByDatabaseAccountSample.ts | 2 +- ...ableDatabaseAccountsGetByLocationSample.ts | 2 +- ...bleDatabaseAccountsListByLocationSample.ts | 2 +- .../restorableDatabaseAccountsListSample.ts | 2 +- .../restorableGremlinDatabasesListSample.ts | 2 +- .../src/restorableGremlinGraphsListSample.ts | 2 +- .../restorableGremlinResourcesListSample.ts | 2 +- .../restorableMongodbCollectionsListSample.ts | 2 +- .../restorableMongodbDatabasesListSample.ts | 2 +- .../restorableMongodbResourcesListSample.ts | 2 +- .../src/restorableSqlContainersListSample.ts | 2 +- .../src/restorableSqlDatabasesListSample.ts | 2 +- .../src/restorableSqlResourcesListSample.ts | 2 +- .../src/restorableTableResourcesListSample.ts | 2 +- .../src/restorableTablesListSample.ts | 2 +- .../typescript/src/serviceCreateSample.ts | 8 +- .../typescript/src/serviceDeleteSample.ts | 8 +- .../typescript/src/serviceGetSample.ts | 8 +- .../typescript/src/serviceListSample.ts | 2 +- ...esCreateUpdateClientEncryptionKeySample.ts | 6 +- ...ResourcesCreateUpdateSqlContainerSample.ts | 119 + ...ResourcesCreateUpdateSqlDatabaseSample.ts} | 24 +- ...rcesCreateUpdateSqlRoleAssignmentSample.ts | 2 +- ...rcesCreateUpdateSqlRoleDefinitionSample.ts | 2 +- ...cesCreateUpdateSqlStoredProcedureSample.ts | 2 +- ...qlResourcesCreateUpdateSqlTriggerSample.ts | 2 +- ...reateUpdateSqlUserDefinedFunctionSample.ts | 2 +- .../sqlResourcesDeleteSqlContainerSample.ts | 2 +- .../sqlResourcesDeleteSqlDatabaseSample.ts | 2 +- ...lResourcesDeleteSqlRoleAssignmentSample.ts | 2 +- ...lResourcesDeleteSqlRoleDefinitionSample.ts | 2 +- ...ResourcesDeleteSqlStoredProcedureSample.ts | 2 +- .../src/sqlResourcesDeleteSqlTriggerSample.ts | 2 +- ...urcesDeleteSqlUserDefinedFunctionSample.ts | 2 +- ...qlResourcesGetClientEncryptionKeySample.ts | 2 +- .../src/sqlResourcesGetSqlContainerSample.ts | 2 +- ...esourcesGetSqlContainerThroughputSample.ts | 2 +- .../src/sqlResourcesGetSqlDatabaseSample.ts | 2 +- ...ResourcesGetSqlDatabaseThroughputSample.ts | 2 +- .../sqlResourcesGetSqlRoleAssignmentSample.ts | 2 +- .../sqlResourcesGetSqlRoleDefinitionSample.ts | 2 +- ...sqlResourcesGetSqlStoredProcedureSample.ts | 2 +- .../src/sqlResourcesGetSqlTriggerSample.ts | 2 +- ...esourcesGetSqlUserDefinedFunctionSample.ts | 2 +- ...ResourcesListClientEncryptionKeysSample.ts | 2 +- .../sqlResourcesListSqlContainersSample.ts | 2 +- .../src/sqlResourcesListSqlDatabasesSample.ts | 2 +- ...qlResourcesListSqlRoleAssignmentsSample.ts | 2 +- ...qlResourcesListSqlRoleDefinitionsSample.ts | 2 +- ...lResourcesListSqlStoredProceduresSample.ts | 2 +- .../src/sqlResourcesListSqlTriggersSample.ts | 2 +- ...ourcesListSqlUserDefinedFunctionsSample.ts | 2 +- ...cesMigrateSqlContainerToAutoscaleSample.ts | 2 +- ...ateSqlContainerToManualThroughputSample.ts | 2 +- ...rcesMigrateSqlDatabaseToAutoscaleSample.ts | 2 +- ...rateSqlDatabaseToManualThroughputSample.ts | 2 +- ...trieveContinuousBackupInformationSample.ts | 2 +- ...urcesUpdateSqlContainerThroughputSample.ts | 2 +- ...ourcesUpdateSqlDatabaseThroughputSample.ts | 2 +- .../tableResourcesCreateUpdateTableSample.ts | 2 +- .../src/tableResourcesDeleteTableSample.ts | 2 +- .../src/tableResourcesGetTableSample.ts | 2 +- .../tableResourcesGetTableThroughputSample.ts | 2 +- .../src/tableResourcesListTablesSample.ts | 2 +- ...eResourcesMigrateTableToAutoscaleSample.ts | 2 +- ...cesMigrateTableToManualThroughputSample.ts | 2 +- ...trieveContinuousBackupInformationSample.ts | 2 +- ...bleResourcesUpdateTableThroughputSample.ts | 2 +- .../typescript/tsconfig.json | 0 .../samples/v17-beta/javascript/README.md | 532 -- .../cassandraClustersGetBackupSample.js | 37 - .../cassandraClustersGetCommandAsyncSample.js | 41 - ...ssandraClustersInvokeCommandAsyncSample.js | 45 - .../cassandraClustersListBackupsSample.js | 39 - .../cassandraClustersListCommandSample.js | 39 - ...esourcesCreateUpdateCassandraViewSample.js | 52 - ...andraResourcesDeleteCassandraViewSample.js | 42 - ...assandraResourcesGetCassandraViewSample.js | 42 - ...sourcesGetCassandraViewThroughputSample.js | 42 - ...sandraResourcesListCassandraViewsSample.js | 43 - ...esMigrateCassandraViewToAutoscaleSample.js | 42 - ...teCassandraViewToManualThroughputSample.js | 42 - ...rcesUpdateCassandraViewThroughputSample.js | 47 - .../chaosFaultEnableDisableSample.js | 48 - .../javascript/chaosFaultGetSample.js | 37 - .../javascript/chaosFaultListSample.js | 39 - .../dataTransferJobsCancelSample.js | 36 - .../dataTransferJobsCompleteSample.js | 37 - .../dataTransferJobsCreateSample.js | 55 - .../javascript/dataTransferJobsGetSample.js | 36 - ...TransferJobsListByDatabaseAccountSample.js | 41 - .../javascript/dataTransferJobsPauseSample.js | 36 - .../dataTransferJobsResumeSample.js | 36 - ...graphResourcesDeleteGraphResourceSample.js | 40 - .../graphResourcesGetGraphSample.js | 36 - .../graphResourcesListGraphsSample.js | 38 - ...rcesCreateUpdateMongoDbcollectionSample.js | 100 - ...ourcesCreateUpdateMongoDbdatabaseSample.js | 85 - ...stMongoDbcollectionPartitionMergeSample.js | 44 - ...nerRetrieveThroughputDistributionSample.js | 47 - ...rcesMongoDbdatabasePartitionMergeSample.js | 42 - ...oDbdatabaseRedistributeThroughputSample.js | 51 - ...aseRetrieveThroughputDistributionSample.js | 45 - ...ecurityPerimeterConfigurationsGetSample.js | 42 - ...curityPerimeterConfigurationsListSample.js | 42 - ...yPerimeterConfigurationsReconcileSample.js | 42 - .../samples/v17-beta/javascript/sample.env | 1 - ...ResourcesCreateUpdateSqlContainerSample.js | 176 - ...lResourcesCreateUpdateSqlDatabaseSample.js | 85 - ...qlContainerRedistributeThroughputSample.js | 53 - ...nerRetrieveThroughputDistributionSample.js | 46 - ...esourcesSqlDatabasePartitionMergeSample.js | 42 - ...SqlDatabaseRedistributeThroughputSample.js | 51 - ...aseRetrieveThroughputDistributionSample.js | 44 - .../throughputPoolAccountCreateSample.js | 47 - .../throughputPoolAccountDeleteSample.js | 41 - .../throughputPoolAccountGetSample.js | 41 - .../throughputPoolAccountsListSample.js | 42 - .../throughputPoolCreateOrUpdateSample.js | 45 - .../javascript/throughputPoolDeleteSample.js | 39 - .../javascript/throughputPoolGetSample.js | 36 - .../javascript/throughputPoolUpdateSample.js | 42 - ...hroughputPoolsListByResourceGroupSample.js | 38 - .../javascript/throughputPoolsListSample.js | 37 - .../samples/v17-beta/typescript/README.md | 545 -- .../samples/v17-beta/typescript/sample.env | 1 - .../src/cassandraClustersGetBackupSample.ts | 45 - .../cassandraClustersGetCommandAsyncSample.ts | 45 - ...ssandraClustersInvokeCommandAsyncSample.ts | 49 - .../src/cassandraClustersListBackupsSample.ts | 46 - .../src/cassandraClustersListCommandSample.ts | 46 - ...andraResourcesDeleteCassandraViewSample.ts | 45 - ...assandraResourcesGetCassandraViewSample.ts | 44 - ...sourcesGetCassandraViewThroughputSample.ts | 44 - ...sandraResourcesListCassandraViewsSample.ts | 45 - ...esMigrateCassandraViewToAutoscaleSample.ts | 45 - ...teCassandraViewToManualThroughputSample.ts | 45 - ...rcesUpdateCassandraViewThroughputSample.ts | 53 - .../src/chaosFaultEnableDisableSample.ts | 55 - .../typescript/src/chaosFaultGetSample.ts | 44 - .../typescript/src/chaosFaultListSample.ts | 45 - .../src/dataTransferJobsCancelSample.ts | 42 - .../src/dataTransferJobsCompleteSample.ts | 44 - .../src/dataTransferJobsCreateSample.ts | 60 - .../src/dataTransferJobsGetSample.ts | 42 - ...TransferJobsListByDatabaseAccountSample.ts | 43 - .../src/dataTransferJobsPauseSample.ts | 42 - .../src/dataTransferJobsResumeSample.ts | 42 - .../graphResourcesCreateUpdateGraphSample.ts | 52 - ...graphResourcesDeleteGraphResourceSample.ts | 42 - .../src/graphResourcesGetGraphSample.ts | 42 - .../src/graphResourcesListGraphsSample.ts | 43 - ...rcesCreateUpdateMongoDbcollectionSample.ts | 109 - ...ourcesCreateUpdateMongoDbdatabaseSample.ts | 94 - ...stMongoDbcollectionPartitionMergeSample.ts | 47 - ...DbcontainerRedistributeThroughputSample.ts | 62 - ...nerRetrieveThroughputDistributionSample.ts | 52 - ...rcesMongoDbdatabasePartitionMergeSample.ts | 45 - ...oDbdatabaseRedistributeThroughputSample.ts | 60 - ...aseRetrieveThroughputDistributionSample.ts | 50 - ...ecurityPerimeterConfigurationsGetSample.ts | 45 - ...curityPerimeterConfigurationsListSample.ts | 45 - ...yPerimeterConfigurationsReconcileSample.ts | 46 - ...ResourcesCreateUpdateSqlContainerSample.ts | 186 - ...lResourcesCreateUpdateSqlDatabaseSample.ts | 90 - ...cesListSqlContainerPartitionMergeSample.ts | 47 - ...qlContainerRedistributeThroughputSample.ts | 62 - ...nerRetrieveThroughputDistributionSample.ts | 52 - ...esourcesSqlDatabasePartitionMergeSample.ts | 45 - ...SqlDatabaseRedistributeThroughputSample.ts | 60 - ...aseRetrieveThroughputDistributionSample.ts | 50 - .../src/throughputPoolAccountCreateSample.ts | 53 - .../src/throughputPoolAccountDeleteSample.ts | 44 - .../src/throughputPoolAccountGetSample.ts | 44 - .../src/throughputPoolAccountsListSample.ts | 45 - .../src/throughputPoolCreateOrUpdateSample.ts | 51 - .../src/throughputPoolDeleteSample.ts | 42 - .../typescript/src/throughputPoolGetSample.ts | 42 - .../src/throughputPoolUpdateSample.ts | 49 - ...hroughputPoolsListByResourceGroupSample.ts | 43 - .../src/throughputPoolsListSample.ts | 40 - .../src/cosmosDBManagementClient.ts | 37 +- sdk/cosmosdb/arm-cosmosdb/src/models/index.ts | 2399 +------- .../arm-cosmosdb/src/models/mappers.ts | 5369 +++++------------ .../arm-cosmosdb/src/models/parameters.ts | 226 +- .../src/operations/cassandraClusters.ts | 422 +- .../src/operations/cassandraResources.ts | 873 +-- .../arm-cosmosdb/src/operations/chaosFault.ts | 383 -- .../src/operations/dataTransferJobs.ts | 464 -- .../src/operations/graphResources.ts | 418 -- .../src/operations/gremlinResources.ts | 16 +- .../arm-cosmosdb/src/operations/index.ts | 8 - .../src/operations/mongoDBResources.ts | 1015 +--- .../networkSecurityPerimeterConfigurations.ts | 389 -- .../src/operations/sqlResources.ts | 1758 ++---- .../src/operations/throughputPool.ts | 454 -- .../src/operations/throughputPoolAccount.ts | 361 -- .../src/operations/throughputPoolAccounts.ts | 197 - .../src/operations/throughputPools.ts | 298 - .../operationsInterfaces/cassandraClusters.ts | 89 - .../cassandraResources.ts | 240 - .../src/operationsInterfaces/chaosFault.ts | 82 - .../operationsInterfaces/dataTransferJobs.ts | 122 - .../operationsInterfaces/graphResources.ts | 110 - .../src/operationsInterfaces/index.ts | 8 - .../operationsInterfaces/mongoDBResources.ts | 245 - .../networkSecurityPerimeterConfigurations.ts | 81 - .../src/operationsInterfaces/sqlResources.ts | 329 +- .../operationsInterfaces/throughputPool.ts | 122 - .../throughputPoolAccount.ts | 103 - .../throughputPoolAccounts.ts | 29 - .../operationsInterfaces/throughputPools.ts | 35 - .../test/cosmosdb_cassandra_examples.ts | 2 +- sdk/cosmosdb/arm-cosmosdb/tsconfig.json | 4 +- 779 files changed, 4313 insertions(+), 25534 deletions(-) delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersGetBackupSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersGetCommandAsyncSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersInvokeCommandAsyncSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListBackupsSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListCommandSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesCreateUpdateCassandraViewSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesDeleteCassandraViewSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraViewSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraViewThroughputSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesListCassandraViewsSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraViewToAutoscaleSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraViewToManualThroughputSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesUpdateCassandraViewThroughputSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/chaosFaultEnableDisableSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/chaosFaultGetSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/chaosFaultListSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsCancelSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsCompleteSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsCreateSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsGetSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsListByDatabaseAccountSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsPauseSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsResumeSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesDeleteGraphResourceSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesGetGraphSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesListGraphsSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoDbcollectionPartitionMergeSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbdatabasePartitionMergeSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/networkSecurityPerimeterConfigurationsGetSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/networkSecurityPerimeterConfigurationsListSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlContainerPartitionMergeSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlContainerRedistributeThroughputSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlContainerRetrieveThroughputDistributionSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlDatabasePartitionMergeSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlDatabaseRedistributeThroughputSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountCreateSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountDeleteSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountGetSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountsListSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolCreateOrUpdateSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolDeleteSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolGetSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolUpdateSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolsListByResourceGroupSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolsListSample.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/README.md rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraClustersCreateUpdateSample.js (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraClustersDeallocateSample.js (89%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraClustersDeleteSample.js (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraClustersGetSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraClustersInvokeCommandSample.js (84%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraClustersListByResourceGroupSample.js (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraClustersListBySubscriptionSample.js (91%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraClustersStartSample.js (89%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraClustersStatusSample.js (87%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraClustersUpdateSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraDataCentersCreateUpdateSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraDataCentersDeleteSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraDataCentersGetSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraDataCentersListSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraDataCentersUpdateSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesCreateUpdateCassandraKeyspaceSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesCreateUpdateCassandraTableSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesDeleteCassandraKeyspaceSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesDeleteCassandraTableSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesGetCassandraKeyspaceSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesGetCassandraKeyspaceThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesGetCassandraTableSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesGetCassandraTableThroughputSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesListCassandraKeyspacesSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesListCassandraTablesSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.js (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesMigrateCassandraTableToAutoscaleSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesMigrateCassandraTableToManualThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/cassandraResourcesUpdateCassandraTableThroughputSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/collectionListMetricDefinitionsSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/collectionListMetricsSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/collectionListUsagesSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/collectionPartitionListMetricsSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/collectionPartitionListUsagesSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/collectionPartitionRegionListMetricsSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/collectionRegionListMetricsSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountRegionListMetricsSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsCheckNameExistsSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsCreateOrUpdateSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsDeleteSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsFailoverPriorityChangeSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsGetReadOnlyKeysSample.js (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsGetSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsListByResourceGroupSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsListConnectionStringsSample.js (91%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsListKeysSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsListMetricDefinitionsSample.js (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsListMetricsSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsListReadOnlyKeysSample.js (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsListSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsListUsagesSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsOfflineRegionSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsOnlineRegionSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsRegenerateKeySample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseAccountsUpdateSample.js (90%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseListMetricDefinitionsSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseListMetricsSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/databaseListUsagesSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesCreateUpdateGremlinDatabaseSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesCreateUpdateGremlinGraphSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesDeleteGremlinDatabaseSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesDeleteGremlinGraphSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesGetGremlinDatabaseSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesGetGremlinDatabaseThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesGetGremlinGraphSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesGetGremlinGraphThroughputSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesListGremlinDatabasesSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesListGremlinGraphsSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.js (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesRetrieveContinuousBackupInformationSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesUpdateGremlinDatabaseThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/gremlinResourcesUpdateGremlinGraphThroughputSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/locationsGetSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/locationsListSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta/javascript/mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.js => v16/javascript/mongoDbResourcesCreateUpdateMongoDbcollectionSample.js} (57%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta/javascript/sqlResourcesListSqlContainerPartitionMergeSample.js => v16/javascript/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.js} (62%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesDeleteMongoDbcollectionSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesDeleteMongoDbdatabaseSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesDeleteMongoRoleDefinitionSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesDeleteMongoUserDefinitionSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesGetMongoDbcollectionSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesGetMongoDbcollectionThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesGetMongoDbdatabaseSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesGetMongoDbdatabaseThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesGetMongoRoleDefinitionSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesGetMongoUserDefinitionSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesListMongoDbcollectionsSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesListMongoDbdatabasesSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesListMongoRoleDefinitionsSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesListMongoUserDefinitionsSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.js (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesRetrieveContinuousBackupInformationSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/notebookWorkspacesCreateOrUpdateSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/notebookWorkspacesDeleteSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/notebookWorkspacesGetSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/notebookWorkspacesListByDatabaseAccountSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/notebookWorkspacesListConnectionInfoSample.js (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/notebookWorkspacesRegenerateAuthTokenSample.js (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/notebookWorkspacesStartSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/operationsListSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/package.json (81%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/partitionKeyRangeIdListMetricsSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/partitionKeyRangeIdRegionListMetricsSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/percentileListMetricsSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/percentileSourceTargetListMetricsSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/percentileTargetListMetricsSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/privateEndpointConnectionsCreateOrUpdateSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/privateEndpointConnectionsDeleteSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/privateEndpointConnectionsGetSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/privateEndpointConnectionsListByDatabaseAccountSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/privateLinkResourcesGetSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/privateLinkResourcesListByDatabaseAccountSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/restorableDatabaseAccountsGetByLocationSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/restorableDatabaseAccountsListByLocationSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/restorableDatabaseAccountsListSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/restorableGremlinDatabasesListSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/restorableGremlinGraphsListSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/restorableGremlinResourcesListSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/restorableMongodbCollectionsListSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/restorableMongodbDatabasesListSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/restorableMongodbResourcesListSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/restorableSqlContainersListSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/restorableSqlDatabasesListSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/restorableSqlResourcesListSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/restorableTableResourcesListSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/restorableTablesListSample.js (94%) create mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sample.env rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/serviceCreateSample.js (90%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/serviceDeleteSample.js (89%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/serviceGetSample.js (89%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/serviceListSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesCreateUpdateClientEncryptionKeySample.js (85%) create mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlContainerSample.js rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta/javascript/graphResourcesCreateUpdateGraphSample.js => v16/javascript/sqlResourcesCreateUpdateSqlDatabaseSample.js} (68%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesCreateUpdateSqlRoleAssignmentSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesCreateUpdateSqlRoleDefinitionSample.js (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesCreateUpdateSqlStoredProcedureSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesCreateUpdateSqlTriggerSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesDeleteSqlContainerSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesDeleteSqlDatabaseSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesDeleteSqlRoleAssignmentSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesDeleteSqlRoleDefinitionSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesDeleteSqlStoredProcedureSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesDeleteSqlTriggerSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesDeleteSqlUserDefinedFunctionSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesGetClientEncryptionKeySample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesGetSqlContainerSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesGetSqlContainerThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesGetSqlDatabaseSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesGetSqlDatabaseThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesGetSqlRoleAssignmentSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesGetSqlRoleDefinitionSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesGetSqlStoredProcedureSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesGetSqlTriggerSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesGetSqlUserDefinedFunctionSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesListClientEncryptionKeysSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesListSqlContainersSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesListSqlDatabasesSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesListSqlRoleAssignmentsSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesListSqlRoleDefinitionsSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesListSqlStoredProceduresSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesListSqlTriggersSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesListSqlUserDefinedFunctionsSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesMigrateSqlContainerToAutoscaleSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesMigrateSqlContainerToManualThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesRetrieveContinuousBackupInformationSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesUpdateSqlContainerThroughputSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/sqlResourcesUpdateSqlDatabaseThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/tableResourcesCreateUpdateTableSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/tableResourcesDeleteTableSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/tableResourcesGetTableSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/tableResourcesGetTableThroughputSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/tableResourcesListTablesSample.js (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/tableResourcesMigrateTableToAutoscaleSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/tableResourcesMigrateTableToManualThroughputSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/tableResourcesRetrieveContinuousBackupInformationSample.js (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/javascript/tableResourcesUpdateTableThroughputSample.js (94%) create mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/README.md rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/package.json (84%) create mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/sample.env rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraClustersCreateUpdateSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraClustersDeallocateSample.ts (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraClustersDeleteSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraClustersGetSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraClustersInvokeCommandSample.ts (88%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraClustersListByResourceGroupSample.ts (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraClustersListBySubscriptionSample.ts (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraClustersStartSample.ts (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraClustersStatusSample.ts (90%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraClustersUpdateSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraDataCentersCreateUpdateSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraDataCentersDeleteSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraDataCentersGetSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraDataCentersListSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraDataCentersUpdateSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesCreateUpdateCassandraTableSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesDeleteCassandraKeyspaceSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesDeleteCassandraTableSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesGetCassandraKeyspaceSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesGetCassandraKeyspaceThroughputSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesGetCassandraTableSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesGetCassandraTableThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesListCassandraKeyspacesSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesListCassandraTablesSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/cassandraResourcesUpdateCassandraTableThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/collectionListMetricDefinitionsSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/collectionListMetricsSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/collectionListUsagesSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/collectionPartitionListMetricsSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/collectionPartitionListUsagesSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/collectionPartitionRegionListMetricsSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/collectionRegionListMetricsSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountRegionListMetricsSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsCheckNameExistsSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsCreateOrUpdateSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsDeleteSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsFailoverPriorityChangeSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsGetReadOnlyKeysSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsGetSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsListByResourceGroupSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsListConnectionStringsSample.ts (91%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsListKeysSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsListMetricDefinitionsSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsListMetricsSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsListReadOnlyKeysSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsListSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsListUsagesSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsOfflineRegionSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsOnlineRegionSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsRegenerateKeySample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseAccountsUpdateSample.ts (91%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseListMetricDefinitionsSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseListMetricsSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/databaseListUsagesSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesCreateUpdateGremlinDatabaseSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesCreateUpdateGremlinGraphSample.ts (96%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesDeleteGremlinDatabaseSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesDeleteGremlinGraphSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesGetGremlinDatabaseSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesGetGremlinDatabaseThroughputSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesGetGremlinGraphSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesGetGremlinGraphThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesListGremlinDatabasesSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesListGremlinGraphsSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesRetrieveContinuousBackupInformationSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/gremlinResourcesUpdateGremlinGraphThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/locationsGetSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/locationsListSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta/typescript/src/cassandraResourcesCreateUpdateCassandraViewSample.ts => v16/typescript/src/mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts} (54%) rename sdk/cosmosdb/arm-cosmosdb/{samples-dev/sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.ts => samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts} (60%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesDeleteMongoDbcollectionSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesDeleteMongoDbdatabaseSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesDeleteMongoRoleDefinitionSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesDeleteMongoUserDefinitionSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesGetMongoDbcollectionSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesGetMongoDbcollectionThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesGetMongoDbdatabaseSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesGetMongoRoleDefinitionSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesGetMongoUserDefinitionSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesListMongoDbcollectionsSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesListMongoDbdatabasesSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesListMongoRoleDefinitionsSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesListMongoUserDefinitionsSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesRetrieveContinuousBackupInformationSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/notebookWorkspacesCreateOrUpdateSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/notebookWorkspacesDeleteSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/notebookWorkspacesGetSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/notebookWorkspacesListByDatabaseAccountSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/notebookWorkspacesListConnectionInfoSample.ts (92%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/notebookWorkspacesRegenerateAuthTokenSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/notebookWorkspacesStartSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/operationsListSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/partitionKeyRangeIdListMetricsSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/partitionKeyRangeIdRegionListMetricsSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/percentileListMetricsSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/percentileSourceTargetListMetricsSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/percentileTargetListMetricsSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/privateEndpointConnectionsDeleteSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/privateEndpointConnectionsGetSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/privateEndpointConnectionsListByDatabaseAccountSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/privateLinkResourcesGetSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/privateLinkResourcesListByDatabaseAccountSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/restorableDatabaseAccountsGetByLocationSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/restorableDatabaseAccountsListByLocationSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/restorableDatabaseAccountsListSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/restorableGremlinDatabasesListSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/restorableGremlinGraphsListSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/restorableGremlinResourcesListSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/restorableMongodbCollectionsListSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/restorableMongodbDatabasesListSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/restorableMongodbResourcesListSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/restorableSqlContainersListSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/restorableSqlDatabasesListSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/restorableSqlResourcesListSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/restorableTableResourcesListSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/restorableTablesListSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/serviceCreateSample.ts (91%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/serviceDeleteSample.ts (89%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/serviceGetSample.ts (89%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/serviceListSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesCreateUpdateClientEncryptionKeySample.ts (86%) create mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlContainerSample.ts rename sdk/cosmosdb/arm-cosmosdb/{samples-dev/graphResourcesCreateUpdateGraphSample.ts => samples/v16/typescript/src/sqlResourcesCreateUpdateSqlDatabaseSample.ts} (65%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesCreateUpdateSqlStoredProcedureSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesCreateUpdateSqlTriggerSample.ts (95%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesDeleteSqlContainerSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesDeleteSqlDatabaseSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesDeleteSqlRoleAssignmentSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesDeleteSqlRoleDefinitionSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesDeleteSqlStoredProcedureSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesDeleteSqlTriggerSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesDeleteSqlUserDefinedFunctionSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesGetClientEncryptionKeySample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesGetSqlContainerSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesGetSqlContainerThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesGetSqlDatabaseSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesGetSqlDatabaseThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesGetSqlRoleAssignmentSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesGetSqlRoleDefinitionSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesGetSqlStoredProcedureSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesGetSqlTriggerSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesGetSqlUserDefinedFunctionSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesListClientEncryptionKeysSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesListSqlContainersSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesListSqlDatabasesSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesListSqlRoleAssignmentsSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesListSqlRoleDefinitionsSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesListSqlStoredProceduresSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesListSqlTriggersSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesListSqlUserDefinedFunctionsSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesMigrateSqlContainerToAutoscaleSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesMigrateSqlContainerToManualThroughputSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesRetrieveContinuousBackupInformationSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesUpdateSqlContainerThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/sqlResourcesUpdateSqlDatabaseThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/tableResourcesCreateUpdateTableSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/tableResourcesDeleteTableSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/tableResourcesGetTableSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/tableResourcesGetTableThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/tableResourcesListTablesSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/tableResourcesMigrateTableToAutoscaleSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/tableResourcesMigrateTableToManualThroughputSample.ts (93%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/tableResourcesRetrieveContinuousBackupInformationSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/src/tableResourcesUpdateTableThroughputSample.ts (94%) rename sdk/cosmosdb/arm-cosmosdb/samples/{v17-beta => v16}/typescript/tsconfig.json (100%) delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/README.md delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersGetBackupSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersGetCommandAsyncSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersInvokeCommandAsyncSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListBackupsSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListCommandSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesCreateUpdateCassandraViewSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesDeleteCassandraViewSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraViewSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraViewThroughputSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesListCassandraViewsSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraViewToAutoscaleSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraViewToManualThroughputSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesUpdateCassandraViewThroughputSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultEnableDisableSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultGetSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultListSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCancelSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCompleteSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCreateSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsGetSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsListByDatabaseAccountSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsPauseSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsResumeSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesDeleteGraphResourceSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesGetGraphSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesListGraphsSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoDbcollectionSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoDbcollectionPartitionMergeSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabasePartitionMergeSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsGetSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsListSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsReconcileSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sample.env delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlContainerSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlDatabaseSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlContainerRedistributeThroughputSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlContainerRetrieveThroughputDistributionSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabasePartitionMergeSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabaseRedistributeThroughputSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountCreateSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountDeleteSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountGetSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountsListSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolCreateOrUpdateSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolDeleteSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolGetSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolUpdateSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolsListByResourceGroupSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolsListSample.js delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/README.md delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/sample.env delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersGetBackupSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersGetCommandAsyncSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersInvokeCommandAsyncSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListBackupsSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListCommandSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesDeleteCassandraViewSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraViewSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraViewThroughputSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesListCassandraViewsSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraViewToAutoscaleSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraViewToManualThroughputSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesUpdateCassandraViewThroughputSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultEnableDisableSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultGetSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultListSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCancelSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCompleteSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCreateSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsGetSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsListByDatabaseAccountSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsPauseSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsResumeSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesCreateUpdateGraphSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesDeleteGraphResourceSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesGetGraphSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesListGraphsSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoDbcollectionPartitionMergeSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabasePartitionMergeSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsGetSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsListSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlContainerSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlDatabaseSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlContainerPartitionMergeSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlContainerRedistributeThroughputSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlContainerRetrieveThroughputDistributionSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabasePartitionMergeSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabaseRedistributeThroughputSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountCreateSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountDeleteSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountGetSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountsListSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolCreateOrUpdateSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolDeleteSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolGetSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolUpdateSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolsListByResourceGroupSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolsListSample.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/chaosFault.ts 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/operations/networkSecurityPerimeterConfigurations.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPool.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPoolAccount.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPoolAccounts.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPools.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/chaosFault.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/dataTransferJobs.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/graphResources.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPool.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPoolAccount.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPoolAccounts.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPools.ts diff --git a/sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md b/sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md index eda41635f668..581fe8bc8146 100644 --- a/sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md +++ b/sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md @@ -1,15 +1,25 @@ # Release History - -## 17.0.0-beta.2 (Unreleased) - + +## 16.2.0 (2024-12-09) + ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface VectorEmbedding + - Added Interface VectorEmbeddingPolicy + - Added Interface VectorIndex + - Added Type Alias DistanceFunction + - Added Type Alias VectorDataType + - Added Type Alias VectorIndexType + - Interface DatabaseAccountCreateUpdateParameters has a new optional parameter enablePerRegionPerPartitionAutoscale + - Interface DatabaseAccountGetResults has a new optional parameter enablePerRegionPerPartitionAutoscale + - Interface DatabaseAccountUpdateParameters has a new optional parameter enablePerRegionPerPartitionAutoscale + - Interface IndexingPolicy has a new optional parameter vectorIndexes + - Interface SqlContainerResource has a new optional parameter vectorEmbeddingPolicy + - Added Enum KnownDistanceFunction + - Added Enum KnownVectorDataType + - Added Enum KnownVectorIndexType + + ## 17.0.0-beta.1 (2024-10-29) Compared with version 16.1.0 diff --git a/sdk/cosmosdb/arm-cosmosdb/README.md b/sdk/cosmosdb/arm-cosmosdb/README.md index 3dc46a9f2ab2..2e2088dfdc04 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://learn.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview) | +[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-cosmosdb) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started @@ -44,7 +44,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to Azure CosmosDBManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). diff --git a/sdk/cosmosdb/arm-cosmosdb/_meta.json b/sdk/cosmosdb/arm-cosmosdb/_meta.json index 040e2ba60f42..9d9b3c1c94a7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/_meta.json +++ b/sdk/cosmosdb/arm-cosmosdb/_meta.json @@ -1,8 +1,8 @@ { - "commit": "1ceae653a47852d592d87583a72e835f2f541d6f", + "commit": "552b4dd311f90f4a7b2f7adf45461d7a8774a1cc", "readme": "specification/cosmos-db/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --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.27 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --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.29 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.15", - "use": "@autorest/typescript@6.0.27" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.16", + "use": "@autorest/typescript@6.0.29" } \ No newline at end of file diff --git a/sdk/cosmosdb/arm-cosmosdb/assets.json b/sdk/cosmosdb/arm-cosmosdb/assets.json index ae688f5370d4..489cff3dcacb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/assets.json +++ b/sdk/cosmosdb/arm-cosmosdb/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/cosmosdb/arm-cosmosdb", - "Tag": "js/cosmosdb/arm-cosmosdb_7ac12bbf1d" + "Tag": "js/cosmosdb/arm-cosmosdb_c817010168" } diff --git a/sdk/cosmosdb/arm-cosmosdb/package.json b/sdk/cosmosdb/arm-cosmosdb/package.json index e4aea93538d4..5f51bd7bb481 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": "17.0.0-beta.2", + "version": "16.2.0", "engines": { "node": ">=18.0.0" }, @@ -89,7 +89,8 @@ "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped" + "integration-test:browser": "echo skipped", + "update-snippets": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -110,4 +111,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview" } -} +} \ 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 2022a757f103..3d7633b07a87 100644 --- a/sdk/cosmosdb/arm-cosmosdb/review/arm-cosmosdb.api.md +++ b/sdk/cosmosdb/arm-cosmosdb/review/arm-cosmosdb.api.md @@ -10,31 +10,6 @@ import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; -// @public -export interface AccessRule { - name?: string; - properties?: AccessRuleProperties; -} - -// @public -export type AccessRuleDirection = string; - -// @public -export interface AccessRuleProperties { - addressPrefixes?: string[]; - direction?: AccessRuleDirection; - emailAddresses?: string[]; - fullyQualifiedDomainNames?: string[]; - networkSecurityPerimeters?: NetworkSecurityPerimeter[]; - phoneNumbers?: string[]; - subscriptions?: AccessRulePropertiesSubscriptionsItem[]; -} - -// @public -export interface AccessRulePropertiesSubscriptionsItem { - id?: string; -} - // @public export interface AccountKeyMetadata { readonly generationTime?: Date; @@ -66,7 +41,6 @@ export interface ARMProxyResource { // @public export interface ARMResourceProperties { readonly id?: string; - identity?: ManagedServiceIdentity; location?: string; readonly name?: string; tags?: { @@ -91,9 +65,6 @@ export interface AuthenticationMethodLdapProperties { serviceUserPassword?: string; } -// @public -export type AutoReplicate = string; - // @public (undocumented) export interface AutoscaleSettings { maxThroughput?: number; @@ -111,15 +82,6 @@ export interface AutoUpgradePolicyResource { throughputPolicy?: ThroughputPolicyResource; } -// @public -export interface AzureBlobDataTransferDataSourceSink extends DataTransferDataSourceSink { - component: "AzureBlobStorage"; - // (undocumented) - containerName: string; - // (undocumented) - endpointUrl?: string; -} - // @public export type AzureConnectionType = string; @@ -150,38 +112,9 @@ export type BackupPolicyType = string; // @public (undocumented) export type BackupPolicyUnion = BackupPolicy | PeriodicModeBackupPolicy | ContinuousModeBackupPolicy; -// @public -export interface BackupResource { - backupExpiryTimestamp?: Date; - backupId?: string; - backupStartTimestamp?: Date; - backupState?: BackupState; - backupStopTimestamp?: Date; -} - -// @public (undocumented) -export interface BackupSchedule { - cronExpression?: string; - retentionInHours?: number; - scheduleName?: string; -} - -// @public -export type BackupState = string; - // @public export type BackupStorageRedundancy = string; -// @public -export interface BaseCosmosDataTransferDataSourceSink extends DataTransferDataSourceSink { - component: "BaseCosmosDataTransferDataSourceSink" | "CosmosDBCassandra" | "CosmosDBMongo" | "CosmosDBSql"; - // (undocumented) - remoteAccountName?: string; -} - -// @public (undocumented) -export type BaseCosmosDataTransferDataSourceSinkUnion = BaseCosmosDataTransferDataSourceSink | CosmosCassandraDataTransferDataSourceSink | CosmosMongoDataTransferDataSourceSink | CosmosSqlDataTransferDataSourceSink; - // @public export interface Capability { name?: string; @@ -192,22 +125,6 @@ export interface Capacity { totalThroughputLimit?: number; } -// @public -export type CapacityMode = string; - -// @public -export interface CapacityModeChangeTransitionState { - readonly capacityModeLastSuccessfulTransitionEndTimestamp?: Date; - readonly capacityModeTransitionBeginTimestamp?: Date; - readonly capacityModeTransitionEndTimestamp?: Date; - capacityModeTransitionStatus?: CapacityModeTransitionStatus; - currentCapacityMode?: CapacityMode; - previousCapacityMode?: CapacityMode; -} - -// @public -export type CapacityModeTransitionStatus = string; - // @public export interface CassandraClusterPublicStatus { connectionErrors?: ConnectionError[]; @@ -237,19 +154,13 @@ export interface CassandraClusters { beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: CassandraClustersDeleteOptionalParams): Promise; beginInvokeCommand(resourceGroupName: string, clusterName: string, body: CommandPostBody, options?: CassandraClustersInvokeCommandOptionalParams): Promise, CassandraClustersInvokeCommandResponse>>; beginInvokeCommandAndWait(resourceGroupName: string, clusterName: string, body: CommandPostBody, options?: CassandraClustersInvokeCommandOptionalParams): Promise; - beginInvokeCommandAsync(resourceGroupName: string, clusterName: string, body: CommandPostBody, options?: CassandraClustersInvokeCommandAsyncOptionalParams): Promise, CassandraClustersInvokeCommandAsyncResponse>>; - beginInvokeCommandAsyncAndWait(resourceGroupName: string, clusterName: string, body: CommandPostBody, options?: CassandraClustersInvokeCommandAsyncOptionalParams): Promise; beginStart(resourceGroupName: string, clusterName: string, options?: CassandraClustersStartOptionalParams): Promise, void>>; beginStartAndWait(resourceGroupName: string, clusterName: string, options?: CassandraClustersStartOptionalParams): Promise; 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; - getCommandAsync(resourceGroupName: string, clusterName: string, commandId: string, options?: CassandraClustersGetCommandAsyncOptionalParams): Promise; - listBackups(resourceGroupName: string, clusterName: string, options?: CassandraClustersListBackupsOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: CassandraClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: CassandraClustersListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - listCommand(resourceGroupName: string, clusterName: string, options?: CassandraClustersListCommandOptionalParams): PagedAsyncIterableIterator; status(resourceGroupName: string, clusterName: string, options?: CassandraClustersStatusOptionalParams): Promise; } @@ -266,7 +177,6 @@ export type CassandraClustersCreateUpdateResponse = ClusterResource; export interface CassandraClustersDeallocateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; - xMsForceDeallocate?: string; } // @public @@ -275,20 +185,6 @@ export interface CassandraClustersDeleteOptionalParams extends coreClient.Operat updateIntervalInMs?: number; } -// @public -export interface CassandraClustersGetBackupOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CassandraClustersGetBackupResponse = BackupResource; - -// @public -export interface CassandraClustersGetCommandAsyncOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CassandraClustersGetCommandAsyncResponse = ListCommands; - // @public export interface CassandraClustersGetOptionalParams extends coreClient.OperationOptions { } @@ -296,21 +192,6 @@ export interface CassandraClustersGetOptionalParams extends coreClient.Operation // @public export type CassandraClustersGetResponse = ClusterResource; -// @public -export interface CassandraClustersInvokeCommandAsyncHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface CassandraClustersInvokeCommandAsyncOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CassandraClustersInvokeCommandAsyncResponse = CommandPublicResource; - // @public export interface CassandraClustersInvokeCommandOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -320,13 +201,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 { } @@ -341,13 +215,6 @@ export interface CassandraClustersListBySubscriptionOptionalParams extends coreC // @public export type CassandraClustersListBySubscriptionResponse = ListClusters; -// @public -export interface CassandraClustersListCommandOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CassandraClustersListCommandResponse = ListCommands; - // @public export interface CassandraClustersStartOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -471,14 +338,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>>; @@ -487,25 +350,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 @@ -538,21 +392,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; @@ -583,18 +422,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 { } @@ -623,20 +450,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 { } @@ -651,13 +464,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; @@ -718,36 +524,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; @@ -778,21 +554,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[]; @@ -835,97 +596,11 @@ 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; } -// @public -export interface ChaosFault { - beginEnableDisable(resourceGroupName: string, accountName: string, chaosFault: string, chaosFaultRequest: ChaosFaultResource, options?: ChaosFaultEnableDisableOptionalParams): Promise, ChaosFaultEnableDisableResponse>>; - beginEnableDisableAndWait(resourceGroupName: string, accountName: string, chaosFault: string, chaosFaultRequest: ChaosFaultResource, options?: ChaosFaultEnableDisableOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, chaosFault: string, options?: ChaosFaultGetOptionalParams): Promise; - list(resourceGroupName: string, accountName: string, options?: ChaosFaultListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ChaosFaultEnableDisableOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ChaosFaultEnableDisableResponse = ChaosFaultResource; - -// @public -export interface ChaosFaultGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ChaosFaultGetResponse = ChaosFaultResource; - -// @public -export interface ChaosFaultListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ChaosFaultListNextResponse = ChaosFaultListResponse; - -// @public -export type ChaosFaultListOperationResponse = ChaosFaultListResponse; - -// @public -export interface ChaosFaultListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface ChaosFaultListResponse { - readonly nextLink?: string; - readonly value?: ChaosFaultResource[]; -} - -// @public -export interface ChaosFaultResource extends ProxyResource { - action?: SupportedActions; - containerName?: string; - databaseName?: string; - readonly provisioningState?: string; - region?: string; -} - // @public (undocumented) export interface ClientEncryptionIncludedPath { clientEncryptionKeyId: string; @@ -982,18 +657,13 @@ export interface ClusterResource extends ManagedCassandraARMResourceProperties { // @public export interface ClusterResourceProperties { authenticationMethod?: AuthenticationMethod; - autoReplicate?: AutoReplicate; azureConnectionMethod?: AzureConnectionType; - backupSchedules?: BackupSchedule[]; cassandraAuditLoggingEnabled?: boolean; cassandraVersion?: string; clientCertificates?: Certificate[]; clusterNameOverride?: string; - clusterType?: ClusterType; deallocated?: boolean; delegatedManagementSubnetId?: string; - extensions?: string[]; - externalDataCenters?: string[]; externalGossipCertificates?: Certificate[]; externalSeedNodes?: SeedNode[]; readonly gossipCertificates?: Certificate[]; @@ -1005,13 +675,9 @@ export interface ClusterResourceProperties { provisioningState?: ManagedCassandraProvisioningState; repairEnabled?: boolean; restoreFromBackupId?: string; - scheduledEventStrategy?: ScheduledEventStrategy; readonly seedNodes?: SeedNode[]; } -// @public -export type ClusterType = string; - // @public export interface Collection { listMetricDefinitions(resourceGroupName: string, accountName: string, databaseRid: string, collectionRid: string, options?: CollectionListMetricDefinitionsOptionalParams): PagedAsyncIterableIterator; @@ -1099,30 +765,15 @@ export interface CommandOutput { // @public export interface CommandPostBody { - arguments?: Record; + arguments?: { + [propertyName: string]: string; + }; cassandraStopStart?: boolean; command: string; host: string; - readWrite?: boolean; -} - -// @public -export interface CommandPublicResource { - arguments?: Record; - cassandraStopStart?: boolean; - command?: string; - commandId?: string; - host?: string; - isAdmin?: boolean; - outputFile?: string; - readWrite?: boolean; - result?: string; - status?: CommandStatus; + readwrite?: boolean; } -// @public -export type CommandStatus = string; - // @public (undocumented) export interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties { readonly clientId?: string; @@ -1137,7 +788,6 @@ export interface ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDa diskFreeKB?: number; diskUsedKB?: number; hostID?: string; - isLatestModel?: boolean; load?: string; memoryBuffersAndCachedKB?: number; memoryFreeKB?: number; @@ -1241,15 +891,6 @@ export interface CorsPolicy { maxAgeInSeconds?: number; } -// @public -export interface CosmosCassandraDataTransferDataSourceSink extends BaseCosmosDataTransferDataSourceSink { - component: "CosmosDBCassandra"; - // (undocumented) - keyspaceName: string; - // (undocumented) - tableName: string; -} - // @public (undocumented) export class CosmosDBManagementClient extends coreClient.ServiceClient { // (undocumented) @@ -1264,8 +905,6 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { // (undocumented) cassandraResources: CassandraResources; // (undocumented) - chaosFault: ChaosFault; - // (undocumented) collection: Collection; // (undocumented) collectionPartition: CollectionPartition; @@ -1280,18 +919,12 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { // (undocumented) databaseAccounts: DatabaseAccounts; // (undocumented) - dataTransferJobs: DataTransferJobs; - // (undocumented) - graphResources: GraphResources; - // (undocumented) gremlinResources: GremlinResources; // (undocumented) locations: Locations; // (undocumented) mongoDBResources: MongoDBResources; // (undocumented) - networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; - // (undocumented) notebookWorkspaces: NotebookWorkspaces; // (undocumented) operations: Operations; @@ -1341,14 +974,6 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { subscriptionId: string; // (undocumented) tableResources: TableResources; - // (undocumented) - throughputPool: ThroughputPool; - // (undocumented) - throughputPoolAccount: ThroughputPoolAccount; - // (undocumented) - throughputPoolAccounts: ThroughputPoolAccounts; - // (undocumented) - throughputPools: ThroughputPools; } // @public @@ -1358,45 +983,9 @@ export interface CosmosDBManagementClientOptionalParams extends coreClient.Servi endpoint?: string; } -// @public -export interface CosmosMongoDataTransferDataSourceSink extends BaseCosmosDataTransferDataSourceSink { - // (undocumented) - collectionName: string; - component: "CosmosDBMongo"; - // (undocumented) - databaseName: string; -} - -// @public -export interface CosmosMongoVCoreDataTransferDataSourceSink extends DataTransferDataSourceSink { - // (undocumented) - collectionName: string; - component: "CosmosDBMongoVCore"; - // (undocumented) - connectionStringKeyVaultUri?: string; - // (undocumented) - databaseName: string; - // (undocumented) - hostName?: string; -} - -// @public -export interface CosmosSqlDataTransferDataSourceSink extends BaseCosmosDataTransferDataSourceSink { - 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; @@ -1428,7 +1017,6 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper backupPolicy?: BackupPolicyUnion; capabilities?: Capability[]; capacity?: Capacity; - capacityMode?: CapacityMode; connectorOffer?: ConnectorOffer; consistencyPolicy?: ConsistencyPolicy; cors?: CorsPolicy[]; @@ -1436,8 +1024,6 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper customerManagedKeyStatus?: string; databaseAccountOfferType: "Standard"; defaultIdentity?: string; - defaultPriorityLevel?: DefaultPriorityLevel; - diagnosticLogSettings?: DiagnosticLogSettings; disableKeyBasedMetadataWriteAccess?: boolean; disableLocalAuth?: boolean; enableAnalyticalStorage?: boolean; @@ -1445,11 +1031,10 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper enableBurstCapacity?: boolean; enableCassandraConnector?: boolean; enableFreeTier?: boolean; - enableMaterializedViews?: boolean; enableMultipleWriteLocations?: boolean; enablePartitionMerge?: boolean; enablePerRegionPerPartitionAutoscale?: boolean; - enablePriorityBasedExecution?: boolean; + identity?: ManagedServiceIdentity; ipRules?: IpAddressOrRange[]; isVirtualNetworkFilterEnabled?: boolean; readonly keysMetadata?: DatabaseAccountKeysMetadata; @@ -1471,8 +1056,6 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { backupPolicy?: BackupPolicyUnion; capabilities?: Capability[]; capacity?: Capacity; - capacityMode?: CapacityMode; - capacityModeChangeTransitionState?: CapacityModeChangeTransitionState; connectorOffer?: ConnectorOffer; consistencyPolicy?: ConsistencyPolicy; cors?: CorsPolicy[]; @@ -1480,8 +1063,6 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { customerManagedKeyStatus?: string; readonly databaseAccountOfferType?: "Standard"; defaultIdentity?: string; - defaultPriorityLevel?: DefaultPriorityLevel; - diagnosticLogSettings?: DiagnosticLogSettings; disableKeyBasedMetadataWriteAccess?: boolean; disableLocalAuth?: boolean; readonly documentEndpoint?: string; @@ -1490,12 +1071,11 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { enableBurstCapacity?: boolean; enableCassandraConnector?: boolean; enableFreeTier?: boolean; - enableMaterializedViews?: boolean; enableMultipleWriteLocations?: boolean; enablePartitionMerge?: boolean; enablePerRegionPerPartitionAutoscale?: boolean; - enablePriorityBasedExecution?: boolean; readonly failoverPolicies?: FailoverPolicy[]; + identity?: ManagedServiceIdentity; readonly instanceId?: string; ipRules?: IpAddressOrRange[]; isVirtualNetworkFilterEnabled?: boolean; @@ -1766,14 +1346,11 @@ export interface DatabaseAccountUpdateParameters { backupPolicy?: BackupPolicyUnion; capabilities?: Capability[]; capacity?: Capacity; - capacityMode?: CapacityMode; connectorOffer?: ConnectorOffer; consistencyPolicy?: ConsistencyPolicy; cors?: CorsPolicy[]; customerManagedKeyStatus?: string; defaultIdentity?: string; - defaultPriorityLevel?: DefaultPriorityLevel; - diagnosticLogSettings?: DiagnosticLogSettings; disableKeyBasedMetadataWriteAccess?: boolean; disableLocalAuth?: boolean; enableAnalyticalStorage?: boolean; @@ -1781,11 +1358,9 @@ export interface DatabaseAccountUpdateParameters { enableBurstCapacity?: boolean; enableCassandraConnector?: boolean; enableFreeTier?: boolean; - enableMaterializedViews?: boolean; enableMultipleWriteLocations?: boolean; enablePartitionMerge?: boolean; enablePerRegionPerPartitionAutoscale?: boolean; - enablePriorityBasedExecution?: boolean; identity?: ManagedServiceIdentity; ipRules?: IpAddressOrRange[]; isVirtualNetworkFilterEnabled?: boolean; @@ -1856,123 +1431,6 @@ export interface DataCenterResourceProperties { sku?: string; } -// @public -export type DataTransferComponent = string; - -// @public -export interface DataTransferDataSourceSink { - component: "BaseCosmosDataTransferDataSourceSink" | "CosmosDBCassandra" | "CosmosDBMongo" | "CosmosDBMongoVCore" | "CosmosDBSql" | "AzureBlobStorage"; -} - -// @public (undocumented) -export type DataTransferDataSourceSinkUnion = DataTransferDataSourceSink | BaseCosmosDataTransferDataSourceSinkUnion | CosmosMongoVCoreDataTransferDataSourceSink | AzureBlobDataTransferDataSourceSink; - -// @public -export interface DataTransferJobFeedResults { - readonly nextLink?: string; - readonly value?: DataTransferJobGetResults[]; -} - -// @public -export interface DataTransferJobGetResults extends ARMProxyResource { - destination?: DataTransferDataSourceSinkUnion; - readonly duration?: string; - readonly error?: ErrorResponse; - readonly jobName?: string; - readonly lastUpdatedUtcTime?: Date; - mode?: DataTransferJobMode; - readonly processedCount?: number; - source?: DataTransferDataSourceSinkUnion; - readonly status?: string; - readonly totalCount?: number; - workerCount?: number; -} - -// @public -export type DataTransferJobMode = string; - -// @public -export interface DataTransferJobProperties { - destination: DataTransferDataSourceSinkUnion; - readonly duration?: string; - readonly error?: ErrorResponse; - readonly jobName?: string; - readonly lastUpdatedUtcTime?: Date; - mode?: DataTransferJobMode; - 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; - complete(resourceGroupName: string, accountName: string, jobName: string, options?: DataTransferJobsCompleteOptionalParams): 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 DataTransferJobsCompleteOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DataTransferJobsCompleteResponse = 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 { } @@ -2003,15 +1461,7 @@ export type DedicatedGatewayType = string; export type DefaultConsistencyLevel = "Eventual" | "Session" | "BoundedStaleness" | "Strong" | "ConsistentPrefix"; // @public -export type DefaultPriorityLevel = string; - -// @public -export interface DiagnosticLogSettings { - enableFullTextQuery?: EnableFullTextQuery; -} - -// @public -export type EnableFullTextQuery = "None" | "True" | "False"; +export type DistanceFunction = string; // @public export interface ErrorAdditionalInfo { @@ -2066,103 +1516,20 @@ export interface GraphAPIComputeRegionalServiceResource extends RegionalServiceR } // @public -export interface GraphAPIComputeServiceResource { - properties?: GraphAPIComputeServiceResourceProperties; -} - -// @public -export interface GraphAPIComputeServiceResourceCreateUpdateProperties extends ServiceResourceCreateUpdateProperties { - serviceType: "GraphAPICompute"; -} - -// @public -export interface GraphAPIComputeServiceResourceProperties extends ServiceResourceProperties { - graphApiComputeEndpoint?: string; - readonly locations?: GraphAPIComputeRegionalServiceResource[]; - 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 { +export interface GraphAPIComputeServiceResource { + properties?: GraphAPIComputeServiceResourceProperties; } // @public -export type GraphResourcesListGraphsResponse = GraphResourcesListResult; +export interface GraphAPIComputeServiceResourceCreateUpdateProperties extends ServiceResourceCreateUpdateProperties { + serviceType: "GraphAPICompute"; +} // @public -export interface GraphResourcesListResult { - readonly value?: GraphResourceGetResults[]; +export interface GraphAPIComputeServiceResourceProperties extends ServiceResourceProperties { + graphApiComputeEndpoint?: string; + readonly locations?: GraphAPIComputeRegionalServiceResource[]; + serviceType: "GraphAPICompute"; } // @public @@ -2502,6 +1869,7 @@ export interface IndexingPolicy { includedPaths?: IncludedPath[]; indexingMode?: IndexingMode; spatialIndexes?: SpatialSpec[]; + vectorIndexes?: VectorIndex[]; } // @public @@ -2512,9 +1880,6 @@ export interface IpAddressOrRange { ipAddressOrRange?: string; } -// @public -export type IssueType = string; - // @public export type KeyKind = string; @@ -2529,12 +1894,6 @@ export interface KeyWrapMetadata { // @public export type Kind = string; -// @public -export enum KnownAccessRuleDirection { - Inbound = "Inbound", - Outbound = "Outbound" -} - // @public export enum KnownAnalyticalStorageSchemaType { FullFidelity = "FullFidelity", @@ -2558,13 +1917,6 @@ export enum KnownAuthenticationMethod { None = "None" } -// @public -export enum KnownAutoReplicate { - AllKeyspaces = "AllKeyspaces", - None = "None", - SystemKeyspaces = "SystemKeyspaces" -} - // @public export enum KnownAzureConnectionType { None = "None", @@ -2585,14 +1937,6 @@ export enum KnownBackupPolicyType { Periodic = "Periodic" } -// @public -export enum KnownBackupState { - Failed = "Failed", - Initiated = "Initiated", - InProgress = "InProgress", - Succeeded = "Succeeded" -} - // @public export enum KnownBackupStorageRedundancy { Geo = "Geo", @@ -2600,38 +1944,6 @@ export enum KnownBackupStorageRedundancy { Zone = "Zone" } -// @public -export enum KnownCapacityMode { - None = "None", - Provisioned = "Provisioned", - Serverless = "Serverless" -} - -// @public -export enum KnownCapacityModeTransitionStatus { - Completed = "Completed", - Failed = "Failed", - Initialized = "Initialized", - InProgress = "InProgress", - Invalid = "Invalid" -} - -// @public -export enum KnownClusterType { - NonProduction = "NonProduction", - Production = "Production" -} - -// @public -export enum KnownCommandStatus { - Done = "Done", - Enqueue = "Enqueue", - Failed = "Failed", - Finished = "Finished", - Processing = "Processing", - Running = "Running" -} - // @public export enum KnownCompositePathSortOrder { Ascending = "ascending", @@ -2686,21 +1998,6 @@ export enum KnownDatabaseAccountKind { Parse = "Parse" } -// @public -export enum KnownDataTransferComponent { - AzureBlobStorage = "AzureBlobStorage", - CosmosDBCassandra = "CosmosDBCassandra", - CosmosDBMongo = "CosmosDBMongo", - CosmosDBMongoVCore = "CosmosDBMongoVCore", - CosmosDBSql = "CosmosDBSql" -} - -// @public -export enum KnownDataTransferJobMode { - Offline = "Offline", - Online = "Online" -} - // @public export enum KnownDataType { LineString = "LineString", @@ -2718,9 +2015,10 @@ export enum KnownDedicatedGatewayType { } // @public -export enum KnownDefaultPriorityLevel { - High = "High", - Low = "Low" +export enum KnownDistanceFunction { + Cosine = "cosine", + Dotproduct = "dotproduct", + Euclidean = "euclidean" } // @public @@ -2737,14 +2035,6 @@ export enum KnownIndexKind { Spatial = "Spatial" } -// @public -export enum KnownIssueType { - ConfigurationPropagationFailure = "ConfigurationPropagationFailure", - MissingIdentityConfiguration = "MissingIdentityConfiguration", - MissingPerimeterConfiguration = "MissingPerimeterConfiguration", - Unknown = "Unknown" -} - // @public export enum KnownKeyKind { Primary = "primary", @@ -2784,17 +2074,6 @@ export enum KnownMinimalTlsVersion { Tls12 = "Tls12" } -// @public -export enum KnownNetworkSecurityPerimeterConfigurationProvisioningState { - Accepted = "Accepted", - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" -} - // @public export enum KnownNodeState { Joining = "Joining", @@ -2848,25 +2127,11 @@ export enum KnownPublicNetworkAccess { SecuredByPerimeter = "SecuredByPerimeter" } -// @public -export enum KnownResourceAssociationAccessMode { - Audit = "Audit", - Enforced = "Enforced", - Learning = "Learning" -} - // @public export enum KnownRestoreMode { PointInTime = "PointInTime" } -// @public -export enum KnownScheduledEventStrategy { - Ignore = "Ignore", - StopAny = "StopAny", - StopByRack = "StopByRack" -} - // @public export enum KnownServerVersion { Five0 = "5.0", @@ -2903,12 +2168,6 @@ export enum KnownServiceType { SqlDedicatedGateway = "SqlDedicatedGateway" } -// @public -export enum KnownSeverity { - Error = "Error", - Warning = "Warning" -} - // @public export enum KnownSpatialType { LineString = "LineString", @@ -2919,22 +2178,11 @@ export enum KnownSpatialType { // @public export enum KnownStatus { - Canceled = "Canceled", Deleting = "Deleting", - Failed = "Failed", Initializing = "Initializing", InternallyReady = "InternallyReady", Online = "Online", - Succeeded = "Succeeded", - Uninitialized = "Uninitialized", - Updating = "Updating" -} - -// @public -export enum KnownThroughputPolicyType { - Custom = "custom", - Equal = "equal", - None = "none" + Uninitialized = "Uninitialized" } // @public @@ -2977,18 +2225,22 @@ export enum KnownUnitType { } // @public -export interface ListBackups { - readonly value?: BackupResource[]; +export enum KnownVectorDataType { + Float32 = "float32", + Int8 = "int8", + Uint8 = "uint8" } // @public -export interface ListClusters { - value?: ClusterResource[]; +export enum KnownVectorIndexType { + DiskANN = "diskANN", + Flat = "flat", + QuantizedFlat = "quantizedFlat" } // @public -export interface ListCommands { - readonly value?: CommandPublicResource[]; +export interface ListClusters { + value?: ClusterResource[]; } // @public @@ -3094,13 +2346,6 @@ export interface ManagedServiceIdentity { }; } -// @public -export interface MaterializedViewDefinition { - definition: string; - sourceCollectionId: string; - readonly sourceCollectionRid?: string; -} - // @public export interface MaterializedViewsBuilderRegionalServiceResource extends RegionalServiceResource { } @@ -3121,11 +2366,6 @@ export interface MaterializedViewsBuilderServiceResourceProperties extends Servi serviceType: "MaterializedViewsBuilder"; } -// @public -export interface MergeParameters { - isDryRun?: boolean; -} - // @public export interface Metric { readonly endTime?: Date; @@ -3271,8 +2511,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>>; @@ -3281,16 +2519,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; - beginMongoDBDatabasePartitionMerge(resourceGroupName: string, accountName: string, databaseName: string, mergeParameters: MergeParameters, options?: MongoDBResourcesMongoDBDatabasePartitionMergeOptionalParams): Promise, MongoDBResourcesMongoDBDatabasePartitionMergeResponse>>; - beginMongoDBDatabasePartitionMergeAndWait(resourceGroupName: string, accountName: string, databaseName: string, mergeParameters: MergeParameters, options?: MongoDBResourcesMongoDBDatabasePartitionMergeOptionalParams): 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>>; @@ -3441,21 +2669,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 { } @@ -3544,81 +2757,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 MongoDBResourcesMongoDBDatabasePartitionMergeHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface MongoDBResourcesMongoDBDatabasePartitionMergeOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type MongoDBResourcesMongoDBDatabasePartitionMergeResponse = PhysicalPartitionStorageInfoCollection; - -// @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; @@ -3729,89 +2867,6 @@ export interface MongoUserDefinitionListResult { // @public export type NetworkAclBypass = "None" | "AzureServices"; -// @public -export interface NetworkSecurityPerimeter { - id?: string; - location?: string; - perimeterGuid?: string; -} - -// @public -export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { - properties?: NetworkSecurityPerimeterConfigurationProperties; -} - -// @public -export interface NetworkSecurityPerimeterConfigurationListResult { - nextLink?: string; - value?: NetworkSecurityPerimeterConfiguration[]; -} - -// @public -export interface NetworkSecurityPerimeterConfigurationProperties { - networkSecurityPerimeter?: NetworkSecurityPerimeter; - profile?: NetworkSecurityProfile; - readonly provisioningIssues?: ProvisioningIssue[]; - readonly provisioningState?: NetworkSecurityPerimeterConfigurationProvisioningState; - resourceAssociation?: ResourceAssociation; -} - -// @public -export type NetworkSecurityPerimeterConfigurationProvisioningState = string; - -// @public -export interface NetworkSecurityPerimeterConfigurations { - beginReconcile(resourceGroupName: string, accountName: string, networkSecurityPerimeterConfigurationName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise, NetworkSecurityPerimeterConfigurationsReconcileResponse>>; - beginReconcileAndWait(resourceGroupName: string, accountName: string, networkSecurityPerimeterConfigurationName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, networkSecurityPerimeterConfigurationName: string, options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams): Promise; - list(resourceGroupName: string, accountName: string, options?: NetworkSecurityPerimeterConfigurationsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetworkSecurityPerimeterConfigurationsGetResponse = NetworkSecurityPerimeterConfiguration; - -// @public -export interface NetworkSecurityPerimeterConfigurationsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetworkSecurityPerimeterConfigurationsListNextResponse = NetworkSecurityPerimeterConfigurationListResult; - -// @public -export interface NetworkSecurityPerimeterConfigurationsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetworkSecurityPerimeterConfigurationsListResponse = NetworkSecurityPerimeterConfigurationListResult; - -// @public -export interface NetworkSecurityPerimeterConfigurationsReconcileHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type NetworkSecurityPerimeterConfigurationsReconcileResponse = NetworkSecurityPerimeterConfigurationsReconcileHeaders; - -// @public -export interface NetworkSecurityProfile { - accessRules?: AccessRule[]; - accessRulesVersion?: number; - diagnosticSettingsVersion?: number; - enabledLogCategories?: string[]; - name?: string; -} - // @public export type NodeState = string; @@ -4083,42 +3138,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; @@ -4219,50 +3238,23 @@ export interface PrivateLinkServiceConnectionStateProperty { } // @public -export interface Privilege { - actions?: string[]; - resource?: PrivilegeResource; -} - -// @public -export interface PrivilegeResource { - collection?: string; - db?: string; -} - -// @public -export interface ProvisioningIssue { - readonly name?: string; - readonly properties?: ProvisioningIssueProperties; -} - -// @public -export interface ProvisioningIssueProperties { - readonly description?: string; - readonly issueType?: IssueType; - readonly severity?: Severity; - readonly suggestedAccessRules?: AccessRule[]; - readonly suggestedResourceIds?: string[]; -} - -// @public -export interface ProxyResource extends Resource { +export interface Privilege { + actions?: string[]; + resource?: PrivilegeResource; } // @public -export type PublicNetworkAccess = string; +export interface PrivilegeResource { + collection?: string; + db?: string; +} // @public -export interface RedistributeThroughputParameters extends ARMResourceProperties { - resource: RedistributeThroughputPropertiesResource; +export interface ProxyResource extends Resource { } // @public -export interface RedistributeThroughputPropertiesResource { - sourcePhysicalPartitionThroughputInfo: PhysicalPartitionThroughputInfoResource[]; - targetPhysicalPartitionThroughputInfo: PhysicalPartitionThroughputInfoResource[]; - throughputPolicy: ThroughputPolicyType; -} +export type PublicNetworkAccess = string; // @public export interface RegionalServiceResource { @@ -4280,19 +3272,9 @@ export interface RegionForOnlineOffline { export interface Resource { readonly id?: string; readonly name?: string; - readonly systemData?: SystemData; readonly type?: string; } -// @public -export interface ResourceAssociation { - accessMode?: ResourceAssociationAccessMode; - name?: string; -} - -// @public -export type ResourceAssociationAccessMode = string; - // @public export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAssigned,UserAssigned" | "None"; @@ -4750,7 +3732,6 @@ export interface RestoreParameters extends RestoreParametersBase { databasesToRestore?: DatabaseRestoreResource[]; gremlinDatabasesToRestore?: GremlinDatabaseRestoreResource[]; restoreMode?: RestoreMode; - sourceBackupLocation?: string; tablesToRestore?: string[]; } @@ -4761,16 +3742,6 @@ export interface RestoreParametersBase { restoreWithTtlDisabled?: boolean; } -// @public -export interface RetrieveThroughputParameters extends ARMResourceProperties { - resource: RetrieveThroughputPropertiesResource; -} - -// @public -export interface RetrieveThroughputPropertiesResource { - physicalPartitionIds: PhysicalPartitionId[]; -} - // @public export interface Role { db?: string; @@ -4780,9 +3751,6 @@ export interface Role { // @public export type RoleDefinitionType = "BuiltInRole" | "CustomRole"; -// @public -export type ScheduledEventStrategy = string; - // @public (undocumented) export interface SeedNode { ipAddress?: string; @@ -4801,6 +3769,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; @@ -4883,9 +3857,6 @@ export type ServiceStatus = string; // @public export type ServiceType = string; -// @public -export type Severity = string; - // @public (undocumented) export interface SpatialSpec { path?: string; @@ -4932,10 +3903,10 @@ export interface SqlContainerResource { defaultTtl?: number; id: string; indexingPolicy?: IndexingPolicy; - materializedViewDefinition?: MaterializedViewDefinition; partitionKey?: ContainerPartitionKey; restoreParameters?: ResourceRestoreParameters; uniqueKeyPolicy?: UniqueKeyPolicy; + vectorEmbeddingPolicy?: VectorEmbeddingPolicy; } // @public @@ -5030,8 +4001,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>>; @@ -5042,16 +4011,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; - beginSqlDatabasePartitionMerge(resourceGroupName: string, accountName: string, databaseName: string, mergeParameters: MergeParameters, options?: SqlResourcesSqlDatabasePartitionMergeOptionalParams): Promise, SqlResourcesSqlDatabasePartitionMergeResponse>>; - beginSqlDatabasePartitionMergeAndWait(resourceGroupName: string, accountName: string, databaseName: string, mergeParameters: MergeParameters, options?: SqlResourcesSqlDatabasePartitionMergeOptionalParams): 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>>; @@ -5348,21 +4307,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 { } @@ -5481,81 +4425,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 SqlResourcesSqlDatabasePartitionMergeHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface SqlResourcesSqlDatabasePartitionMergeOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type SqlResourcesSqlDatabasePartitionMergeResponse = PhysicalPartitionStorageInfoCollection; - -// @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; @@ -5712,9 +4581,6 @@ export interface SqlUserDefinedFunctionResource { // @public export type Status = string; -// @public -export type SupportedActions = "Enable" | "Disable"; - // @public export interface SystemData { createdAt?: Date; @@ -5889,201 +4755,6 @@ export interface ThroughputPolicyResource { isEnabled?: boolean; } -// @public -export type ThroughputPolicyType = string; - -// @public -export interface ThroughputPool { - beginCreateOrUpdate(resourceGroupName: string, throughputPoolName: string, body: ThroughputPoolResource, options?: ThroughputPoolCreateOrUpdateOptionalParams): Promise, ThroughputPoolCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, throughputPoolName: string, body: ThroughputPoolResource, options?: ThroughputPoolCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, throughputPoolName: string, options?: ThroughputPoolDeleteOptionalParams): Promise, ThroughputPoolDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, throughputPoolName: string, options?: ThroughputPoolDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, throughputPoolName: string, options?: ThroughputPoolUpdateOptionalParams): Promise, ThroughputPoolUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, throughputPoolName: string, options?: ThroughputPoolUpdateOptionalParams): Promise; - get(resourceGroupName: string, throughputPoolName: string, options?: ThroughputPoolGetOptionalParams): Promise; -} - -// @public -export interface ThroughputPoolAccount { - beginCreate(resourceGroupName: string, throughputPoolName: string, throughputPoolAccountName: string, body: ThroughputPoolAccountResource, options?: ThroughputPoolAccountCreateOptionalParams): Promise, ThroughputPoolAccountCreateResponse>>; - beginCreateAndWait(resourceGroupName: string, throughputPoolName: string, throughputPoolAccountName: string, body: ThroughputPoolAccountResource, options?: ThroughputPoolAccountCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, throughputPoolName: string, throughputPoolAccountName: string, options?: ThroughputPoolAccountDeleteOptionalParams): Promise, ThroughputPoolAccountDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, throughputPoolName: string, throughputPoolAccountName: string, options?: ThroughputPoolAccountDeleteOptionalParams): Promise; - get(resourceGroupName: string, throughputPoolName: string, throughputPoolAccountName: string, options?: ThroughputPoolAccountGetOptionalParams): Promise; -} - -// @public -export interface ThroughputPoolAccountCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface ThroughputPoolAccountCreateParameters { - accountLocation?: string; - accountResourceIdentifier?: string; - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export type ThroughputPoolAccountCreateResponse = ThroughputPoolAccountResource; - -// @public -export interface ThroughputPoolAccountDeleteHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface ThroughputPoolAccountDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ThroughputPoolAccountDeleteResponse = ThroughputPoolAccountDeleteHeaders; - -// @public -export interface ThroughputPoolAccountGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ThroughputPoolAccountGetResponse = ThroughputPoolAccountResource; - -// @public -export interface ThroughputPoolAccountResource extends ProxyResource { - readonly accountInstanceId?: string; - accountLocation?: string; - accountResourceIdentifier?: string; - provisioningState?: Status; -} - -// @public -export interface ThroughputPoolAccounts { - list(resourceGroupName: string, throughputPoolName: string, options?: ThroughputPoolAccountsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ThroughputPoolAccountsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ThroughputPoolAccountsListNextResponse = ThroughputPoolAccountsListResult; - -// @public -export interface ThroughputPoolAccountsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ThroughputPoolAccountsListResponse = ThroughputPoolAccountsListResult; - -// @public -export interface ThroughputPoolAccountsListResult { - readonly nextLink?: string; - readonly value?: ThroughputPoolAccountResource[]; -} - -// @public -export interface ThroughputPoolCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ThroughputPoolCreateOrUpdateResponse = ThroughputPoolResource; - -// @public -export interface ThroughputPoolDeleteHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface ThroughputPoolDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ThroughputPoolDeleteResponse = ThroughputPoolDeleteHeaders; - -// @public -export interface ThroughputPoolGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ThroughputPoolGetResponse = ThroughputPoolResource; - -// @public -export interface ThroughputPoolResource extends TrackedResource { - maxThroughput?: number; - provisioningState?: Status; -} - -// @public -export interface ThroughputPools { - list(options?: ThroughputPoolsListOptionalParams): PagedAsyncIterableIterator; - listByResourceGroup(resourceGroupName: string, options?: ThroughputPoolsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ThroughputPoolsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ThroughputPoolsListByResourceGroupNextResponse = ThroughputPoolsListResult; - -// @public -export interface ThroughputPoolsListByResourceGroupOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ThroughputPoolsListByResourceGroupResponse = ThroughputPoolsListResult; - -// @public -export interface ThroughputPoolsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ThroughputPoolsListNextResponse = ThroughputPoolsListResult; - -// @public -export interface ThroughputPoolsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ThroughputPoolsListResponse = ThroughputPoolsListResult; - -// @public -export interface ThroughputPoolsListResult { - readonly nextLink?: string; - readonly value?: ThroughputPoolResource[]; -} - -// @public -export interface ThroughputPoolUpdate { - maxThroughput?: number; - provisioningState?: Status; -} - -// @public -export interface ThroughputPoolUpdateHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface ThroughputPoolUpdateOptionalParams extends coreClient.OperationOptions { - body?: ThroughputPoolUpdate; - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ThroughputPoolUpdateResponse = ThroughputPoolResource; - // @public (undocumented) export interface ThroughputSettingsGetPropertiesResource extends ThroughputSettingsResource, ExtendedResourceProperties { } @@ -6109,14 +4780,6 @@ export interface ThroughputSettingsUpdateParameters extends ARMResourcePropertie resource: ThroughputSettingsResource; } -// @public -export interface TrackedResource extends Resource { - location: string; - tags?: { - [propertyName: string]: string; - }; -} - // @public export type TriggerOperation = string; @@ -6153,6 +4816,31 @@ export interface UsagesResult { readonly value?: Usage[]; } +// @public +export type VectorDataType = string; + +// @public +export interface VectorEmbedding { + dataType: VectorDataType; + dimensions: number; + distanceFunction: DistanceFunction; + path: string; +} + +// @public +export interface VectorEmbeddingPolicy { + vectorEmbeddings?: VectorEmbedding[]; +} + +// @public (undocumented) +export interface VectorIndex { + path: string; + type: VectorIndexType; +} + +// @public +export type VectorIndexType = string; + // @public export interface VirtualNetworkRule { id?: string; diff --git a/sdk/cosmosdb/arm-cosmosdb/sample.env b/sdk/cosmosdb/arm-cosmosdb/sample.env index efbc7787bd3b..508439fc7d62 100644 --- a/sdk/cosmosdb/arm-cosmosdb/sample.env +++ b/sdk/cosmosdb/arm-cosmosdb/sample.env @@ -1 +1 @@ -# Feel free to add your own environment variables. +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersCreateUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersCreateUpdateSample.ts index 4b73fc786423..8bca62048601 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersCreateUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersCreateUpdateSample.ts @@ -18,12 +18,12 @@ dotenv.config(); * This sample demonstrates how to Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH. * * @summary Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterCreate.json */ async function cosmosDbManagedCassandraClusterCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; + "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersDeallocateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersDeallocateSample.ts index 226fd328540a..f9921c9e8fe1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersDeallocateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersDeallocateSample.ts @@ -18,12 +18,12 @@ dotenv.config(); * This sample demonstrates how to 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 already deallocated cluster. Use Start to restart the cluster. * * @summary 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 already deallocated cluster. Use Start to restart the cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterDeallocate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterDeallocate.json */ async function cosmosDbManagedCassandraClusterDeallocate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; + "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersDeleteSample.ts index 8932176d310e..305528d5a968 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersDeleteSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a managed Cassandra cluster. * * @summary Deletes a managed Cassandra cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterDelete.json */ async function cosmosDbManagedCassandraClusterDelete() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersGetBackupSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersGetBackupSample.ts deleted file mode 100644 index 567f8b0b0a09..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersGetBackupSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the properties of an individual backup of this cluster that is available to restore. - * - * @summary Get the properties of an individual backup of this cluster that is available to restore. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraBackup.json - */ -async function cosmosDbManagedCassandraBackup() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const backupId = "1611250348"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraClusters.getBackup( - resourceGroupName, - clusterName, - backupId, - ); - console.log(result); -} - -async function main() { - cosmosDbManagedCassandraBackup(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersGetCommandAsyncSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersGetCommandAsyncSample.ts deleted file mode 100644 index 0d4acaaa44d9..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersGetCommandAsyncSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get details about a specified command that was run asynchronously. - * - * @summary Get details about a specified command that was run asynchronously. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommandResult.json - */ -async function cosmosDbManagedCassandraCommandResult() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const commandId = "318653d0-3da5-4814-b8f6-429f2af0b2a4"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraClusters.getCommandAsync( - resourceGroupName, - clusterName, - commandId, - ); - console.log(result); -} - -async function main() { - cosmosDbManagedCassandraCommandResult(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersGetSample.ts index 103388a787eb..6819bbc9eda0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the properties of a managed Cassandra cluster. * * @summary Get the properties of a managed Cassandra cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterGet.json */ async function cosmosDbManagedCassandraClusterGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersInvokeCommandAsyncSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersInvokeCommandAsyncSample.ts deleted file mode 100644 index 5e433ee5a55a..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersInvokeCommandAsyncSample.ts +++ /dev/null @@ -1,49 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CommandPostBody, CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Invoke a command like nodetool for cassandra maintenance asynchronously - * - * @summary Invoke a command like nodetool for cassandra maintenance asynchronously - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommandAsync.json - */ -async function cosmosDbManagedCassandraCommandAsync() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const body: CommandPostBody = { - arguments: { status: "" }, - command: "nodetool", - host: "10.0.1.12", - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraClusters.beginInvokeCommandAsyncAndWait( - resourceGroupName, - clusterName, - body, - ); - console.log(result); -} - -async function main() { - cosmosDbManagedCassandraCommandAsync(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersInvokeCommandSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersInvokeCommandSample.ts index 59ae37ded102..fb53183bd163 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersInvokeCommandSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersInvokeCommandSample.ts @@ -18,18 +18,17 @@ dotenv.config(); * This sample demonstrates how to Invoke a command like nodetool for cassandra maintenance * * @summary Invoke a command like nodetool for cassandra maintenance - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommand.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraCommand.json */ async function cosmosDbManagedCassandraCommand() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; + "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; const body: CommandPostBody = { - arguments: { status: "" }, - command: "nodetool", + command: "nodetool status", host: "10.0.1.12", }; const credential = new DefaultAzureCredential(); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListBackupsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListBackupsSample.ts deleted file mode 100644 index 767d0c80d2bf..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListBackupsSample.ts +++ /dev/null @@ -1,46 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the backups of this cluster that are available to restore. - * - * @summary List the backups of this cluster that are available to restore. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraBackupsList.json - */ -async function cosmosDbManagedCassandraBackupsList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cassandraClusters.listBackups( - resourceGroupName, - clusterName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbManagedCassandraBackupsList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListByResourceGroupSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListByResourceGroupSample.ts index dba7fdf6d63f..4c761b69428b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListByResourceGroupSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all managed Cassandra clusters in this resource group. * * @summary List all managed Cassandra clusters in this resource group. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json */ async function cosmosDbManagedCassandraClusterListByResourceGroup() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListBySubscriptionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListBySubscriptionSample.ts index e9094a190649..6a527fcb2480 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListBySubscriptionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all managed Cassandra clusters in this subscription. * * @summary List all managed Cassandra clusters in this subscription. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterListBySubscription.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json */ async function cosmosDbManagedCassandraClusterListBySubscription() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListCommandSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListCommandSample.ts deleted file mode 100644 index 5d07ff4686e3..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersListCommandSample.ts +++ /dev/null @@ -1,46 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all commands currently running on ring info - * - * @summary List all commands currently running on ring info - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraListCommand.json - */ -async function cosmosDbManagedCassandraListCommand() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cassandraClusters.listCommand( - resourceGroupName, - clusterName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbManagedCassandraListCommand(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersStartSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersStartSample.ts index 45aaff77281a..01ce3133be11 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersStartSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersStartSample.ts @@ -18,12 +18,12 @@ dotenv.config(); * This sample demonstrates how to Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster. * * @summary Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterStart.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterStart.json */ async function cosmosDbManagedCassandraClusterStart() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; + "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersStatusSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersStatusSample.ts index 03a8f382d53c..4611df59ed61 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersStatusSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersStatusSample.ts @@ -18,12 +18,12 @@ dotenv.config(); * This sample demonstrates how to Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster. * * @summary Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraStatus.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraStatus.json */ async function cosmosDbManagedCassandraStatus() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; + "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersUpdateSample.ts index 792140a80110..7f32c64094ac 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates some of the properties of a managed Cassandra cluster. * * @summary Updates some of the properties of a managed Cassandra cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterPatch.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterPatch.json */ async function cosmosDbManagedCassandraClusterPatch() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersCreateUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersCreateUpdateSample.ts index 73e677621698..0063d200cede 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersCreateUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersCreateUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH. * * @summary Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterCreate.json */ async function cosmosDbManagedCassandraDataCenterCreate() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersDeleteSample.ts index a123d7755d77..6fbb7c22e9eb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersDeleteSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a managed Cassandra data center. * * @summary Delete a managed Cassandra data center. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterDelete.json */ async function cosmosDbManagedCassandraDataCenterDelete() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersGetSample.ts index d1284391ade1..2f318343f58c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the properties of a managed Cassandra data center. * * @summary Get the properties of a managed Cassandra data center. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterGet.json */ async function cosmosDbManagedCassandraDataCenterGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersListSample.ts index 5f12d683c9d1..f8785f6bb8d0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all data centers in a particular managed Cassandra cluster. * * @summary List all data centers in a particular managed Cassandra cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterList.json */ async function cosmosDbManagedCassandraDataCenterList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersUpdateSample.ts index 01efbf321909..c5076eef70d5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraDataCentersUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update some of the properties of a managed Cassandra data center. * * @summary Update some of the properties of a managed Cassandra data center. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterPatch.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterPatch.json */ async function cosmosDbManagedCassandraDataCenterUpdate() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts index 7d220e53ac48..8852b7800b07 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Cassandra keyspace * * @summary Create or update an Azure Cosmos DB Cassandra keyspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json */ async function cosmosDbCassandraKeyspaceCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesCreateUpdateCassandraTableSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesCreateUpdateCassandraTableSample.ts index 4881a5db6ef5..33d54648df1f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesCreateUpdateCassandraTableSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesCreateUpdateCassandraTableSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Cassandra Table * * @summary Create or update an Azure Cosmos DB Cassandra Table - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableCreateUpdate.json */ async function cosmosDbCassandraTableCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,6 @@ async function cosmosDbCassandraTableCreateUpdate() { columns: [{ name: "columnA", type: "Ascii" }], partitionKeys: [{ name: "columnA" }], }, - analyticalStorageTtl: 500, defaultTtl: 100, id: "tableName", }, diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesCreateUpdateCassandraViewSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesCreateUpdateCassandraViewSample.ts deleted file mode 100644 index 02d22e28da30..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesCreateUpdateCassandraViewSample.ts +++ /dev/null @@ -1,59 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CassandraViewCreateUpdateParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB Cassandra View - * - * @summary Create or update an Azure Cosmos DB Cassandra View - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewCreateUpdate.json - */ -async function cosmosDbCassandraViewCreateUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const createUpdateCassandraViewParameters: CassandraViewCreateUpdateParameters = - { - options: {}, - resource: { - id: "viewname", - viewDefinition: - "SELECT columna, columnb, columnc FROM keyspacename.srctablename WHERE columna IS NOT NULL AND columnc IS NOT NULL PRIMARY (columnc, columna)", - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.cassandraResources.beginCreateUpdateCassandraViewAndWait( - resourceGroupName, - accountName, - keyspaceName, - viewName, - createUpdateCassandraViewParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewCreateUpdate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesDeleteCassandraKeyspaceSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesDeleteCassandraKeyspaceSample.ts index bc134c22c8fa..c4da7654f91f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesDeleteCassandraKeyspaceSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesDeleteCassandraKeyspaceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Cassandra keyspace. * * @summary Deletes an existing Azure Cosmos DB Cassandra keyspace. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceDelete.json */ async function cosmosDbCassandraKeyspaceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesDeleteCassandraTableSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesDeleteCassandraTableSample.ts index 677d439f62e6..38f8a1a96595 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesDeleteCassandraTableSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesDeleteCassandraTableSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Cassandra table. * * @summary Deletes an existing Azure Cosmos DB Cassandra table. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableDelete.json */ async function cosmosDbCassandraTableDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesDeleteCassandraViewSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesDeleteCassandraViewSample.ts deleted file mode 100644 index 8bf12ae0c334..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesDeleteCassandraViewSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes an existing Azure Cosmos DB Cassandra view. - * - * @summary Deletes an existing Azure Cosmos DB Cassandra view. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewDelete.json - */ -async function cosmosDbCassandraViewDelete() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.cassandraResources.beginDeleteCassandraViewAndWait( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewDelete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraKeyspaceSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraKeyspaceSample.ts index 2f409e492454..d4409999eff6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraKeyspaceSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraKeyspaceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceGet.json */ async function cosmosDbCassandraKeyspaceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraKeyspaceThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraKeyspaceThroughputSample.ts index 5d4d20fe870c..7bcfe6468efa 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraKeyspaceThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraKeyspaceThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json */ async function cosmosDbCassandraKeyspaceThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraTableSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraTableSample.ts index 6aa8104d6f09..86671e8836bc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraTableSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraTableSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Cassandra table under an existing Azure Cosmos DB database account. * * @summary Gets the Cassandra table under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableGet.json */ async function cosmosDbCassandraTableGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraTableThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraTableThroughputSample.ts index 35f5fc3daa7f..b7da9da74893 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraTableThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraTableThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableThroughputGet.json */ async function cosmosDbCassandraTableThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraViewSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraViewSample.ts deleted file mode 100644 index 8ccb916085ff..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraViewSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the Cassandra view under an existing Azure Cosmos DB database account. - * - * @summary Gets the Cassandra view under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewGet.json - */ -async function cosmosDbCassandraViewGet() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraResources.getCassandraView( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraViewThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraViewThroughputSample.ts deleted file mode 100644 index 19470501b35d..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesGetCassandraViewThroughputSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the RUs per second of the Cassandra view under an existing Azure Cosmos DB database account with the provided name. - * - * @summary Gets the RUs per second of the Cassandra view under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewThroughputGet.json - */ -async function cosmosDbCassandraViewThroughputGet() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraResources.getCassandraViewThroughput( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewThroughputGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesListCassandraKeyspacesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesListCassandraKeyspacesSample.ts index 3dd74a866c1b..3528b88c0cd2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesListCassandraKeyspacesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesListCassandraKeyspacesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. * * @summary Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceList.json */ async function cosmosDbCassandraKeyspaceList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesListCassandraTablesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesListCassandraTablesSample.ts index 1985c8e9b269..dec60e9b51ac 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesListCassandraTablesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesListCassandraTablesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the Cassandra table under an existing Azure Cosmos DB database account. * * @summary Lists the Cassandra table under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableList.json */ async function cosmosDbCassandraTableList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesListCassandraViewsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesListCassandraViewsSample.ts deleted file mode 100644 index 8bab70f3ea29..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesListCassandraViewsSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the Cassandra materialized views under an existing Azure Cosmos DB database account. - * - * @summary Lists the Cassandra materialized views under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewList.json - */ -async function cosmosDbCassandraViewList() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cassandraResources.listCassandraViews( - resourceGroupName, - accountName, - keyspaceName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbCassandraViewList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts index fb67229ad170..040aa3e633a6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json */ async function cosmosDbCassandraKeyspaceMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts index 9d8d857d06c3..528ad35b9a01 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json */ async function cosmosDbCassandraKeyspaceMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts index b6a1f2a131f0..eae2d7bcd56d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json */ async function cosmosDbCassandraTableMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts index 8dd311c806bb..f8619f3a3ddf 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json */ async function cosmosDbCassandraTableMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraViewToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraViewToAutoscaleSample.ts deleted file mode 100644 index 310209d729f3..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraViewToAutoscaleSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra view from manual throughput to autoscale - * - * @summary Migrate an Azure Cosmos DB Cassandra view from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewMigrateToAutoscale.json - */ -async function cosmosDbCassandraViewMigrateToAutoscale() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.cassandraResources.beginMigrateCassandraViewToAutoscaleAndWait( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewMigrateToAutoscale(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraViewToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraViewToManualThroughputSample.ts deleted file mode 100644 index 3e9388b7420a..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesMigrateCassandraViewToManualThroughputSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra view from autoscale to manual throughput - * - * @summary Migrate an Azure Cosmos DB Cassandra view from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewMigrateToManualThroughput.json - */ -async function cosmosDbCassandraViewMigrateToManualThroughput() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.cassandraResources.beginMigrateCassandraViewToManualThroughputAndWait( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewMigrateToManualThroughput(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts index a0fd3a538d62..79380043f650 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Cassandra Keyspace * * @summary Update RUs per second of an Azure Cosmos DB Cassandra Keyspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json */ async function cosmosDbCassandraKeyspaceThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesUpdateCassandraTableThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesUpdateCassandraTableThroughputSample.ts index b7d7af500c78..4486041f9cac 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesUpdateCassandraTableThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesUpdateCassandraTableThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Cassandra table * * @summary Update RUs per second of an Azure Cosmos DB Cassandra table - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableThroughputUpdate.json */ async function cosmosDbCassandraTableThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesUpdateCassandraViewThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesUpdateCassandraViewThroughputSample.ts deleted file mode 100644 index 629fddb408d1..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraResourcesUpdateCassandraViewThroughputSample.ts +++ /dev/null @@ -1,53 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ThroughputSettingsUpdateParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Cassandra view - * - * @summary Update RUs per second of an Azure Cosmos DB Cassandra view - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewThroughputUpdate.json - */ -async function cosmosDbCassandraViewThroughputUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const updateThroughputParameters: ThroughputSettingsUpdateParameters = { - resource: { throughput: 400 }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.cassandraResources.beginUpdateCassandraViewThroughputAndWait( - resourceGroupName, - accountName, - keyspaceName, - viewName, - updateThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewThroughputUpdate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/chaosFaultEnableDisableSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/chaosFaultEnableDisableSample.ts deleted file mode 100644 index a3a463b18f04..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/chaosFaultEnableDisableSample.ts +++ /dev/null @@ -1,55 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ChaosFaultResource, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Enable, disable Chaos Fault in a CosmosDB account. - * - * @summary Enable, disable Chaos Fault in a CosmosDB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultEnableDisable.json - */ -async function chaosFaultEnableDisable() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["COSMOSDB_RESOURCE_GROUP"] || "myResourceGroupName"; - const accountName = "myAccountName"; - const chaosFault = "ServiceUnavailability"; - const chaosFaultRequest: ChaosFaultResource = { - action: "Enable", - containerName: "testCollection", - databaseName: "testDatabase", - region: "EastUS", - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.chaosFault.beginEnableDisableAndWait( - resourceGroupName, - accountName, - chaosFault, - chaosFaultRequest, - ); - console.log(result); -} - -async function main() { - chaosFaultEnableDisable(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/chaosFaultGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/chaosFaultGetSample.ts deleted file mode 100644 index ee07da6cb69f..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/chaosFaultGetSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get Chaos Fault for a CosmosdB account for a particular Chaos Fault. - * - * @summary Get Chaos Fault for a CosmosdB account for a particular Chaos Fault. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultGet.json - */ -async function chaosFaultGet() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const chaosFault = "ServiceUnavailability"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.chaosFault.get( - resourceGroupName, - accountName, - chaosFault, - ); - console.log(result); -} - -async function main() { - chaosFaultGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/chaosFaultListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/chaosFaultListSample.ts deleted file mode 100644 index a151d0e184b0..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/chaosFaultListSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Chaos Faults for CosmosDB account. - * - * @summary List Chaos Faults for CosmosDB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultList.json - */ -async function chaosFaultList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.chaosFault.list( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - chaosFaultList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionListMetricDefinitionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionListMetricDefinitionsSample.ts index 80ec3e4ef1d2..23a5c1caf82b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionListMetricDefinitionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionListMetricDefinitionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves metric definitions for the given collection. * * @summary Retrieves metric definitions for the given collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetMetricDefinitions.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetMetricDefinitions.json */ async function cosmosDbCollectionGetMetricDefinitions() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionListMetricsSample.ts index 5d6d5f1005d3..309e967251fc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account and collection. * * @summary Retrieves the metrics determined by the given filter for the given database account and collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetMetrics.json */ async function cosmosDbCollectionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionListUsagesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionListUsagesSample.ts index c762fea17b30..df5bbd097f9b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionListUsagesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionListUsagesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the usages (most recent storage data) for the given collection. * * @summary Retrieves the usages (most recent storage data) for the given collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetUsages.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetUsages.json */ async function cosmosDbCollectionGetUsages() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionPartitionListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionPartitionListMetricsSample.ts index 02e2c1d27829..f2dbf377db42 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionPartitionListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionPartitionListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given collection, split by partition. * * @summary Retrieves the metrics determined by the given filter for the given collection, split by partition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionPartitionListUsagesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionPartitionListUsagesSample.ts index cea0883e6f69..de0deff0d157 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionPartitionListUsagesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionPartitionListUsagesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the usages (most recent storage data) for the given collection, split by partition. * * @summary Retrieves the usages (most recent storage data) for the given collection, split by partition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionGetUsages.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionGetUsages.json */ async function cosmosDbCollectionGetUsages() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionPartitionRegionListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionPartitionRegionListMetricsSample.ts index 70108aced594..98412819df88 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionPartitionRegionListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionPartitionRegionListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given collection and region, split by partition. * * @summary Retrieves the metrics determined by the given filter for the given collection and region, split by partition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionRegionListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionRegionListMetricsSample.ts index bc0874ecb325..d8f0a40976b7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionRegionListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/collectionRegionListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account, collection and region. * * @summary Retrieves the metrics determined by the given filter for the given database account, collection and region. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRegionCollectionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRegionCollectionGetMetrics.json */ async function cosmosDbRegionCollectionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsCancelSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsCancelSample.ts deleted file mode 100644 index 5e69dfe5e400..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsCancelSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Cancels a Data Transfer Job. - * - * @summary Cancels a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobCancel.json - */ -async function cosmosDbDataTransferJobCancel() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.cancel( - resourceGroupName, - accountName, - jobName, - ); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobCancel(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsCompleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsCompleteSample.ts deleted file mode 100644 index 5200db092b8f..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsCompleteSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Completes a Data Transfer Online Job. - * - * @summary Completes a Data Transfer Online Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobComplete.json - */ -async function cosmosDbDataTransferJobComplete() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "e35cc6eb-c8e3-447b-8de6-b83328cd0098"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.complete( - resourceGroupName, - accountName, - jobName, - ); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobComplete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsCreateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsCreateSample.ts deleted file mode 100644 index 7587f099e38d..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsCreateSample.ts +++ /dev/null @@ -1,60 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CreateJobRequest, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates a Data Transfer Job. - * - * @summary Creates a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobCreate.json - */ -async function cosmosDbDataTransferJobCreate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const jobCreateParameters: CreateJobRequest = { - properties: { - destination: { - component: "AzureBlobStorage", - containerName: "blob_container", - endpointUrl: "https://blob.windows.net", - }, - source: { - component: "CosmosDBCassandra", - keyspaceName: "keyspace", - tableName: "table", - }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.create( - resourceGroupName, - accountName, - jobName, - jobCreateParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobCreate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsGetSample.ts deleted file mode 100644 index 3cb76e37cc19..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsGetSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a Data Transfer Job. - * - * @summary Get a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobGet.json - */ -async function cosmosDbDataTransferJobGet() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.get( - resourceGroupName, - accountName, - jobName, - ); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsListByDatabaseAccountSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsListByDatabaseAccountSample.ts deleted file mode 100644 index fa35f0adc533..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsListByDatabaseAccountSample.ts +++ /dev/null @@ -1,43 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of Data Transfer jobs. - * - * @summary Get a list of Data Transfer jobs. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobFeed.json - */ -async function cosmosDbDataTransferJobFeed() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataTransferJobs.listByDatabaseAccount( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbDataTransferJobFeed(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsPauseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsPauseSample.ts deleted file mode 100644 index dfcdb2933965..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsPauseSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Pause a Data Transfer Job. - * - * @summary Pause a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobPause.json - */ -async function cosmosDbDataTransferJobPause() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.pause( - resourceGroupName, - accountName, - jobName, - ); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobPause(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsResumeSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsResumeSample.ts deleted file mode 100644 index 574e720320b6..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/dataTransferJobsResumeSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Resumes a Data Transfer Job. - * - * @summary Resumes a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobResume.json - */ -async function cosmosDbDataTransferJobResume() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.resume( - resourceGroupName, - accountName, - jobName, - ); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobResume(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountRegionListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountRegionListMetricsSample.ts index a6992ac9ee56..1a6451403d12 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountRegionListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountRegionListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account and region. * * @summary Retrieves the metrics determined by the given filter for the given database account and region. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsCheckNameExistsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsCheckNameExistsSample.ts index 8aac8d20ee51..b0c0947cbfb0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsCheckNameExistsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsCheckNameExistsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters. * * @summary Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountCheckNameExists.json */ async function cosmosDbDatabaseAccountCheckNameExists() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsCreateOrUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsCreateOrUpdateSample.ts index 7ac9e3c98432..681afaed2ad1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsCreateOrUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. * * @summary Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountCreateMax.json */ async function cosmosDbDatabaseAccountCreateMax() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,6 @@ async function cosmosDbDatabaseAccountCreateMax() { }, }, capacity: { totalThroughputLimit: 2000 }, - capacityMode: "Provisioned", consistencyPolicy: { defaultConsistencyLevel: "BoundedStaleness", maxIntervalInSeconds: 10, @@ -49,13 +48,10 @@ async function cosmosDbDatabaseAccountCreateMax() { createMode: "Default", databaseAccountOfferType: "Standard", defaultIdentity: "FirstPartyIdentity", - defaultPriorityLevel: "Low", enableAnalyticalStorage: true, enableBurstCapacity: true, enableFreeTier: false, - enableMaterializedViews: false, enablePerRegionPerPartitionAutoscale: true, - enablePriorityBasedExecution: true, identity: { type: "SystemAssigned,UserAssigned", userAssignedIdentities: { @@ -107,7 +103,7 @@ async function cosmosDbDatabaseAccountCreateMax() { * This sample demonstrates how to Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. * * @summary Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountCreateMin.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountCreateMin.json */ async function cosmosDbDatabaseAccountCreateMin() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -139,7 +135,7 @@ async function cosmosDbDatabaseAccountCreateMin() { * This sample demonstrates how to Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. * * @summary Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json */ async function cosmosDbRestoreDatabaseAccountCreateUpdateJson() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -160,7 +156,6 @@ async function cosmosDbRestoreDatabaseAccountCreateUpdateJson() { databaseAccountOfferType: "Standard", enableAnalyticalStorage: true, enableFreeTier: false, - enableMaterializedViews: false, keyVaultKeyUri: "https://myKeyVault.vault.azure.net", kind: "GlobalDocumentDB", location: "westus", @@ -188,7 +183,6 @@ async function cosmosDbRestoreDatabaseAccountCreateUpdateJson() { "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/1a97b4bb-f6a0-430e-ade1-638d781830cc", restoreTimestampInUtc: new Date("2021-03-11T22:05:09Z"), restoreWithTtlDisabled: false, - sourceBackupLocation: "westus", }, tags: {}, }; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsDeleteSample.ts index 197fa52a0abc..631a75498e50 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsDeleteSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB database account. * * @summary Deletes an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountDelete.json */ async function cosmosDbDatabaseAccountDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsFailoverPriorityChangeSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsFailoverPriorityChangeSample.ts index 93911cc59372..104a6a16a74e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsFailoverPriorityChangeSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsFailoverPriorityChangeSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. * * @summary Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json */ async function cosmosDbDatabaseAccountFailoverPriorityChange() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsGetReadOnlyKeysSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsGetReadOnlyKeysSample.ts index c8237486aa40..a6f1ef65d080 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsGetReadOnlyKeysSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsGetReadOnlyKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the read-only access keys for the specified Azure Cosmos DB database account. * * @summary Lists the read-only access keys for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json */ async function cosmosDbDatabaseAccountListReadOnlyKeys() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsGetSample.ts index 32be7cd10b57..50f4f4128aa7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB database account. * * @summary Retrieves the properties of an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGet.json */ async function cosmosDbDatabaseAccountGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListByResourceGroupSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListByResourceGroupSample.ts index c2c66ce4d7d2..f01e63be0013 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListByResourceGroupSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the Azure Cosmos DB database accounts available under the given resource group. * * @summary Lists all the Azure Cosmos DB database accounts available under the given resource group. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json */ async function cosmosDbDatabaseAccountListByResourceGroup() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListConnectionStringsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListConnectionStringsSample.ts index ff3521d15486..660869b7eaa2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListConnectionStringsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListConnectionStringsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the connection strings for the specified Azure Cosmos DB database account. * * @summary Lists the connection strings for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json */ async function cosmosDbDatabaseAccountListConnectionStrings() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -37,7 +37,7 @@ async function cosmosDbDatabaseAccountListConnectionStrings() { * This sample demonstrates how to Lists the connection strings for the specified Azure Cosmos DB database account. * * @summary Lists the connection strings for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json */ async function cosmosDbDatabaseAccountListConnectionStringsMongo() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListKeysSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListKeysSample.ts index 2eaa1fb5a24b..36368b5112b7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListKeysSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the access keys for the specified Azure Cosmos DB database account. * * @summary Lists the access keys for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListKeys.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListKeys.json */ async function cosmosDbDatabaseAccountListKeys() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListMetricDefinitionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListMetricDefinitionsSample.ts index c129d99e54c7..5bba6a6c03cd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListMetricDefinitionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListMetricDefinitionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves metric definitions for the given database account. * * @summary Retrieves metric definitions for the given database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json */ async function cosmosDbDatabaseAccountGetMetricDefinitions() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListMetricsSample.ts index 01e0d78d3525..a799ef3a0bb0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account. * * @summary Retrieves the metrics determined by the given filter for the given database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetMetrics.json */ async function cosmosDbDatabaseAccountGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListReadOnlyKeysSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListReadOnlyKeysSample.ts index 83241d86a715..92f9088cc4dd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListReadOnlyKeysSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListReadOnlyKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the read-only access keys for the specified Azure Cosmos DB database account. * * @summary Lists the read-only access keys for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json */ async function cosmosDbDatabaseAccountListReadOnlyKeys() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListSample.ts index 15469a03784a..b03a250e3e6c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the Azure Cosmos DB database accounts available under the subscription. * * @summary Lists all the Azure Cosmos DB database accounts available under the subscription. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountList.json */ async function cosmosDbDatabaseAccountList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListUsagesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListUsagesSample.ts index 731601317c15..e90e1b9b51ca 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListUsagesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsListUsagesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the usages (most recent data) for the given database account. * * @summary Retrieves the usages (most recent data) for the given database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetUsages.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetUsages.json */ async function cosmosDbDatabaseAccountGetUsages() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsOfflineRegionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsOfflineRegionSample.ts index aeddb4c21227..5af9489949d3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsOfflineRegionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsOfflineRegionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Offline the specified region for the specified Azure Cosmos DB database account. * * @summary Offline the specified region for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountOfflineRegion.json */ async function cosmosDbDatabaseAccountOfflineRegion() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsOnlineRegionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsOnlineRegionSample.ts index 21db28480115..eb2bc8eb4eef 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsOnlineRegionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsOnlineRegionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Online the specified region for the specified Azure Cosmos DB database account. * * @summary Online the specified region for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountOnlineRegion.json */ async function cosmosDbDatabaseAccountOnlineRegion() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsRegenerateKeySample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsRegenerateKeySample.ts index e94fec9a0ac1..9090bfa49673 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsRegenerateKeySample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsRegenerateKeySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates an access key for the specified Azure Cosmos DB database account. * * @summary Regenerates an access key for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountRegenerateKey.json */ async function cosmosDbDatabaseAccountRegenerateKey() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsUpdateSample.ts index 35b201a8d1ba..00e20216ed8f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseAccountsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing Azure Cosmos DB database account. * * @summary Updates the properties of an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountPatch.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountPatch.json */ async function cosmosDbDatabaseAccountPatch() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -34,25 +34,21 @@ async function cosmosDbDatabaseAccountPatch() { periodicModeProperties: { backupIntervalInMinutes: 240, backupRetentionIntervalInHours: 720, - backupStorageRedundancy: "Geo", + backupStorageRedundancy: "Local", }, }, capacity: { totalThroughputLimit: 2000 }, - capacityMode: "Provisioned", consistencyPolicy: { defaultConsistencyLevel: "BoundedStaleness", maxIntervalInSeconds: 10, maxStalenessPrefix: 200, }, defaultIdentity: "FirstPartyIdentity", - defaultPriorityLevel: "Low", - diagnosticLogSettings: { enableFullTextQuery: "True" }, enableAnalyticalStorage: true, enableBurstCapacity: true, enableFreeTier: false, enablePartitionMerge: true, enablePerRegionPerPartitionAutoscale: true, - enablePriorityBasedExecution: true, identity: { type: "SystemAssigned,UserAssigned", userAssignedIdentities: { diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseListMetricDefinitionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseListMetricDefinitionsSample.ts index 3fd2032765f8..e49a4bab07c5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseListMetricDefinitionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseListMetricDefinitionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves metric definitions for the given database. * * @summary Retrieves metric definitions for the given database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetMetricDefinitions.json */ async function cosmosDbDatabaseGetMetricDefinitions() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseListMetricsSample.ts index 7f71a4bfa6ce..fadb9e342724 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account and database. * * @summary Retrieves the metrics determined by the given filter for the given database account and database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetMetrics.json */ async function cosmosDbDatabaseGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseListUsagesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseListUsagesSample.ts index eac3b80f8826..cf52875c6d75 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseListUsagesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/databaseListUsagesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the usages (most recent data) for the given database. * * @summary Retrieves the usages (most recent data) for the given database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetUsages.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetUsages.json */ async function cosmosDbDatabaseGetUsages() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesDeleteGraphResourceSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesDeleteGraphResourceSample.ts deleted file mode 100644 index 83efe2f3ade4..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesDeleteGraphResourceSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes an existing Azure Cosmos DB Graph Resource. - * - * @summary Deletes an existing Azure Cosmos DB Graph Resource. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceDelete.json - */ -async function cosmosDbSqlDatabaseDelete() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const graphName = "graphName"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.graphResources.beginDeleteGraphResourceAndWait( - resourceGroupName, - accountName, - graphName, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabaseDelete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesGetGraphSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesGetGraphSample.ts deleted file mode 100644 index 1a1cafdb55e2..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesGetGraphSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the Graph resource under an existing Azure Cosmos DB database account with the provided name. - * - * @summary Gets the Graph resource under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceGet.json - */ -async function cosmosDbSqlDatabaseGet() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const graphName = "graphName"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.graphResources.getGraph( - resourceGroupName, - accountName, - graphName, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabaseGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesListGraphsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesListGraphsSample.ts deleted file mode 100644 index 725d78bb6a99..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesListGraphsSample.ts +++ /dev/null @@ -1,43 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the graphs under an existing Azure Cosmos DB database account. - * - * @summary Lists the graphs under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceList.json - */ -async function cosmosDbSqlDatabaseList() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.graphResources.listGraphs( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbSqlDatabaseList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesCreateUpdateGremlinDatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesCreateUpdateGremlinDatabaseSample.ts index 9932bde2975c..1b45231aa4ea 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesCreateUpdateGremlinDatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesCreateUpdateGremlinDatabaseSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Gremlin database * * @summary Create or update an Azure Cosmos DB Gremlin database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json */ async function cosmosDbGremlinDatabaseCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesCreateUpdateGremlinGraphSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesCreateUpdateGremlinGraphSample.ts index 7245af092523..782fb365db85 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesCreateUpdateGremlinGraphSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesCreateUpdateGremlinGraphSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Gremlin graph * * @summary Create or update an Azure Cosmos DB Gremlin graph - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphCreateUpdate.json */ async function cosmosDbGremlinGraphCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesDeleteGremlinDatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesDeleteGremlinDatabaseSample.ts index e1bd2b7b2417..4fd841d1cf2f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesDeleteGremlinDatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesDeleteGremlinDatabaseSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Gremlin database. * * @summary Deletes an existing Azure Cosmos DB Gremlin database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseDelete.json */ async function cosmosDbGremlinDatabaseDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesDeleteGremlinGraphSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesDeleteGremlinGraphSample.ts index f1981eac2cb3..5b79706d064a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesDeleteGremlinGraphSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesDeleteGremlinGraphSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Gremlin graph. * * @summary Deletes an existing Azure Cosmos DB Gremlin graph. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphDelete.json */ async function cosmosDbGremlinGraphDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinDatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinDatabaseSample.ts index d97b06af4da1..80977d644668 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinDatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinDatabaseSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseGet.json */ async function cosmosDbGremlinDatabaseGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinDatabaseThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinDatabaseThroughputSample.ts index f101375446f9..78194bec956f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinDatabaseThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinDatabaseThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseThroughputGet.json */ async function cosmosDbGremlinDatabaseThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinGraphSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinGraphSample.ts index bd584a003c45..cb3d6e703415 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinGraphSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinGraphSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Gremlin graph under an existing Azure Cosmos DB database account. * * @summary Gets the Gremlin graph under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphGet.json */ async function cosmosDbGremlinGraphGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinGraphThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinGraphThroughputSample.ts index 70f8a2fdeb26..453afdb5c155 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinGraphThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesGetGremlinGraphThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphThroughputGet.json */ async function cosmosDbGremlinGraphThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesListGremlinDatabasesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesListGremlinDatabasesSample.ts index 48b1b68c03f1..4236d592ce70 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesListGremlinDatabasesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesListGremlinDatabasesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the Gremlin databases under an existing Azure Cosmos DB database account. * * @summary Lists the Gremlin databases under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseList.json */ async function cosmosDbGremlinDatabaseList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesListGremlinGraphsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesListGremlinGraphsSample.ts index 48be3df00df8..b5ce778c1314 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesListGremlinGraphsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesListGremlinGraphsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the Gremlin graph under an existing Azure Cosmos DB database account. * * @summary Lists the Gremlin graph under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphList.json */ async function cosmosDbGremlinGraphList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts index 5b305ba7858e..69782c4fe58b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json */ async function cosmosDbGremlinDatabaseMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts index f490761e19be..d911a37643cb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json */ async function cosmosDbGremlinDatabaseMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts index a9bcc6a9111e..67cdaf9dda00 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json */ async function cosmosDbGremlinGraphMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts index 1a0be662398d..2ed863ef5b31 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json */ async function cosmosDbGremlinGraphMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesRetrieveContinuousBackupInformationSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesRetrieveContinuousBackupInformationSample.ts index 0b171acbfc16..ec4373512824 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesRetrieveContinuousBackupInformationSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesRetrieveContinuousBackupInformationSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves continuous backup information for a gremlin graph. * * @summary Retrieves continuous backup information for a gremlin graph. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphBackupInformation.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphBackupInformation.json */ async function cosmosDbGremlinGraphBackupInformation() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts index d443650408f4..0f5af07bc622 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Gremlin database * * @summary Update RUs per second of an Azure Cosmos DB Gremlin database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json */ async function cosmosDbGremlinDatabaseThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesUpdateGremlinGraphThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesUpdateGremlinGraphThroughputSample.ts index 015a031572ef..45967ff8146c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesUpdateGremlinGraphThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/gremlinResourcesUpdateGremlinGraphThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Gremlin graph * * @summary Update RUs per second of an Azure Cosmos DB Gremlin graph - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphThroughputUpdate.json */ async function cosmosDbGremlinGraphThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/locationsGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/locationsGetSample.ts index d836240c30bc..12b11c4a268f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/locationsGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/locationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the properties of an existing Cosmos DB location * * @summary Get the properties of an existing Cosmos DB location - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBLocationGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBLocationGet.json */ async function cosmosDbLocationGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/locationsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/locationsListSample.ts index fde2764fc351..827ef42592e3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/locationsListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/locationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List Cosmos DB locations and their properties * * @summary List Cosmos DB locations and their properties - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBLocationList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBLocationList.json */ async function cosmosDbLocationList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts index b16ab963ba36..a5f5546a5919 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB MongoDB Collection * * @summary Create or update an Azure Cosmos DB MongoDB Collection - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json */ async function cosmosDbMongoDbcollectionCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -34,7 +34,6 @@ async function cosmosDbMongoDbcollectionCreateUpdate() { location: "West US", options: {}, resource: { - analyticalStorageTtl: 500, id: "collectionName", indexes: [ { @@ -60,50 +59,8 @@ async function cosmosDbMongoDbcollectionCreateUpdate() { console.log(result); } -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB MongoDB Collection - * - * @summary Create or update an Azure Cosmos DB MongoDB Collection - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionRestore.json - */ -async function cosmosDbMongoDbcollectionRestore() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const collectionName = "collectionName"; - const createUpdateMongoDBCollectionParameters: MongoDBCollectionCreateUpdateParameters = - { - location: "West US", - options: {}, - resource: { - createMode: "Restore", - id: "collectionName", - restoreParameters: { - restoreSource: - "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId", - restoreTimestampInUtc: new Date("2022-07-20T18:28:00Z"), - restoreWithTtlDisabled: false, - }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginCreateUpdateMongoDBCollectionAndWait( - resourceGroupName, - accountName, - databaseName, - collectionName, - createUpdateMongoDBCollectionParameters, - ); - console.log(result); -} - async function main() { cosmosDbMongoDbcollectionCreateUpdate(); - cosmosDbMongoDbcollectionRestore(); } main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts index 728911f3db89..3644e29bcd81 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or updates Azure Cosmos DB MongoDB database * * @summary Create or updates Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json */ async function cosmosDbMongoDbdatabaseCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -47,48 +47,8 @@ async function cosmosDbMongoDbdatabaseCreateUpdate() { console.log(result); } -/** - * This sample demonstrates how to Create or updates Azure Cosmos DB MongoDB database - * - * @summary Create or updates Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseRestore.json - */ -async function cosmosDbMongoDbdatabaseRestore() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const createUpdateMongoDBDatabaseParameters: MongoDBDatabaseCreateUpdateParameters = - { - location: "West US", - options: {}, - resource: { - createMode: "Restore", - id: "databaseName", - restoreParameters: { - restoreSource: - "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId", - restoreTimestampInUtc: new Date("2022-07-20T18:28:00Z"), - restoreWithTtlDisabled: false, - }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginCreateUpdateMongoDBDatabaseAndWait( - resourceGroupName, - accountName, - databaseName, - createUpdateMongoDBDatabaseParameters, - ); - console.log(result); -} - async function main() { cosmosDbMongoDbdatabaseCreateUpdate(); - cosmosDbMongoDbdatabaseRestore(); } main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts index ae9b9e3049be..9070380cdaec 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB Mongo Role Definition. * * @summary Creates or updates an Azure Cosmos DB Mongo Role Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json */ async function cosmosDbMongoDbroleDefinitionCreateUpdate() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts index 1f238d74efd6..80ca764b78bb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB Mongo User Definition. * * @summary Creates or updates an Azure Cosmos DB Mongo User Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json */ async function cosmosDbMongoDbuserDefinitionCreateUpdate() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoDbcollectionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoDbcollectionSample.ts index 18c740ef6406..c6e379d1fbf9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoDbcollectionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoDbcollectionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB MongoDB Collection. * * @summary Deletes an existing Azure Cosmos DB MongoDB Collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionDelete.json */ async function cosmosDbMongoDbcollectionDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoDbdatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoDbdatabaseSample.ts index d638292ee638..7394eb59370d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoDbdatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoDbdatabaseSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB MongoDB database. * * @summary Deletes an existing Azure Cosmos DB MongoDB database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseDelete.json */ async function cosmosDbMongoDbdatabaseDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoRoleDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoRoleDefinitionSample.ts index 455af7e78b06..9f6ae4850ed5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoRoleDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoRoleDefinitionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Mongo Role Definition. * * @summary Deletes an existing Azure Cosmos DB Mongo Role Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionDelete.json */ async function cosmosDbMongoDbroleDefinitionDelete() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoUserDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoUserDefinitionSample.ts index 3387c4ee1e28..49e8c8b36ef2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoUserDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesDeleteMongoUserDefinitionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Mongo User Definition. * * @summary Deletes an existing Azure Cosmos DB Mongo User Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionDelete.json */ async function cosmosDbMongoDbuserDefinitionDelete() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbcollectionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbcollectionSample.ts index d5c6a155b7c7..a370166595f7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbcollectionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbcollectionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the MongoDB collection under an existing Azure Cosmos DB database account. * * @summary Gets the MongoDB collection under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionGet.json */ async function cosmosDbMongoDbcollectionGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbcollectionThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbcollectionThroughputSample.ts index 11e363adc2dd..b5f5e06dce9f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbcollectionThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbcollectionThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionThroughputGet.json */ async function cosmosDbMongoDbcollectionThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbdatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbdatabaseSample.ts index ce9e2456ec8b..14098475bad3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbdatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbdatabaseSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseGet.json */ async function cosmosDbMongoDbdatabaseGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts index 82992f9213df..33c41172b961 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json */ async function cosmosDbMongoDbdatabaseThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoRoleDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoRoleDefinitionSample.ts index 4ea2274fc065..38cb717370c7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoRoleDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoRoleDefinitionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB Mongo Role Definition with the given Id. * * @summary Retrieves the properties of an existing Azure Cosmos DB Mongo Role Definition with the given Id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionGet.json */ async function cosmosDbMongoRoleDefinitionGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoUserDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoUserDefinitionSample.ts index 7e558b3ff8e8..1c2afd267b4b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoUserDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesGetMongoUserDefinitionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id. * * @summary Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionGet.json */ async function cosmosDbMongoDbuserDefinitionGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoDbcollectionPartitionMergeSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoDbcollectionPartitionMergeSample.ts deleted file mode 100644 index bca86d6534e8..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoDbcollectionPartitionMergeSample.ts +++ /dev/null @@ -1,47 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MergeParameters, CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Merges the partitions of a MongoDB Collection - * - * @summary Merges the partitions of a MongoDB Collection - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionPartitionMerge.json - */ -async function cosmosDbMongoDbcollectionPartitionMerge() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const collectionName = "collectionName"; - const mergeParameters: MergeParameters = { isDryRun: false }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginListMongoDBCollectionPartitionMergeAndWait( - resourceGroupName, - accountName, - databaseName, - collectionName, - mergeParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbcollectionPartitionMerge(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoDbcollectionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoDbcollectionsSample.ts index 5466ee66d95e..54cf10855997 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoDbcollectionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoDbcollectionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the MongoDB collection under an existing Azure Cosmos DB database account. * * @summary Lists the MongoDB collection under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionList.json */ async function cosmosDbMongoDbcollectionList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoDbdatabasesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoDbdatabasesSample.ts index d7a11a5b5e11..02c8340434ef 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoDbdatabasesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoDbdatabasesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the MongoDB databases under an existing Azure Cosmos DB database account. * * @summary Lists the MongoDB databases under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseList.json */ async function cosmosDbMongoDbdatabaseList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoRoleDefinitionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoRoleDefinitionsSample.ts index 1845435f10c2..b75e8679aec0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoRoleDefinitionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoRoleDefinitionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the list of all Azure Cosmos DB Mongo Role Definitions. * * @summary Retrieves the list of all Azure Cosmos DB Mongo Role Definitions. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionList.json */ async function cosmosDbMongoDbroleDefinitionList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoUserDefinitionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoUserDefinitionsSample.ts index 7189da5c84e4..7c83cd5f9d68 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoUserDefinitionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesListMongoUserDefinitionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the list of all Azure Cosmos DB Mongo User Definition. * * @summary Retrieves the list of all Azure Cosmos DB Mongo User Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionList.json */ async function cosmosDbMongoDbuserDefinitionList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts index 06d356bde234..fad37ea8c404 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json */ async function cosmosDbMongoDbcollectionMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts index f43085ee619f..36dd9a502a6b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json */ async function cosmosDbMongoDbcollectionMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts index dbffb6302abf..1531798ead50 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json */ async function cosmosDbMongoDbdatabaseMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts index 350cf3a5558e..8722cd024afd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json */ async function cosmosDbMongoDbdatabaseMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.ts deleted file mode 100644 index 3bcc8e0a3bb9..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.ts +++ /dev/null @@ -1,62 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RedistributeThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Redistribute throughput for an Azure Cosmos DB MongoDB container - * - * @summary Redistribute throughput for an Azure Cosmos DB MongoDB container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionRedistributeThroughput.json - */ -async function cosmosDbMongoDbcollectionRedistributeThroughput() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const collectionName = "collectionName"; - const redistributeThroughputParameters: RedistributeThroughputParameters = { - resource: { - sourcePhysicalPartitionThroughputInfo: [ - { id: "2", throughput: 5000 }, - { id: "3" }, - ], - targetPhysicalPartitionThroughputInfo: [ - { id: "0", throughput: 5000 }, - { id: "1", throughput: 5000 }, - ], - throughputPolicy: "custom", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginMongoDBContainerRedistributeThroughputAndWait( - resourceGroupName, - accountName, - databaseName, - collectionName, - redistributeThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbcollectionRedistributeThroughput(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.ts deleted file mode 100644 index 555d8b346600..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.ts +++ /dev/null @@ -1,52 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RetrieveThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve throughput distribution for an Azure Cosmos DB MongoDB container - * - * @summary Retrieve throughput distribution for an Azure Cosmos DB MongoDB container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionRetrieveThroughputDistribution.json - */ -async function cosmosDbMongoDbcollectionRetrieveThroughputDistribution() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const collectionName = "collectionName"; - const retrieveThroughputParameters: RetrieveThroughputParameters = { - resource: { physicalPartitionIds: [{ id: "0" }, { id: "1" }] }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginMongoDBContainerRetrieveThroughputDistributionAndWait( - resourceGroupName, - accountName, - databaseName, - collectionName, - retrieveThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbcollectionRetrieveThroughputDistribution(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbdatabasePartitionMergeSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbdatabasePartitionMergeSample.ts deleted file mode 100644 index 7ae866933fe7..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbdatabasePartitionMergeSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MergeParameters, CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Merges the partitions of a MongoDB database - * - * @summary Merges the partitions of a MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabasePartitionMerge.json - */ -async function cosmosDbMongoDbdatabasePartitionMerge() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const mergeParameters: MergeParameters = { isDryRun: false }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginMongoDBDatabasePartitionMergeAndWait( - resourceGroupName, - accountName, - databaseName, - mergeParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbdatabasePartitionMerge(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.ts deleted file mode 100644 index a3e2667a31a7..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.ts +++ /dev/null @@ -1,60 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RedistributeThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Redistribute throughput for an Azure Cosmos DB MongoDB database - * - * @summary Redistribute throughput for an Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseRedistributeThroughput.json - */ -async function cosmosDbMongoDbdatabaseRedistributeThroughput() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const redistributeThroughputParameters: RedistributeThroughputParameters = { - resource: { - sourcePhysicalPartitionThroughputInfo: [ - { id: "2", throughput: 5000 }, - { id: "3" }, - ], - targetPhysicalPartitionThroughputInfo: [ - { id: "0", throughput: 5000 }, - { id: "1", throughput: 5000 }, - ], - throughputPolicy: "custom", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginMongoDBDatabaseRedistributeThroughputAndWait( - resourceGroupName, - accountName, - databaseName, - redistributeThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbdatabaseRedistributeThroughput(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.ts deleted file mode 100644 index 0b12fd29aef2..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.ts +++ /dev/null @@ -1,50 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RetrieveThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve throughput distribution for an Azure Cosmos DB MongoDB database - * - * @summary Retrieve throughput distribution for an Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseRetrieveThroughputDistribution.json - */ -async function cosmosDbMongoDbdatabaseRetrieveThroughputDistribution() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const retrieveThroughputParameters: RetrieveThroughputParameters = { - resource: { physicalPartitionIds: [{ id: "0" }, { id: "1" }] }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginMongoDBDatabaseRetrieveThroughputDistributionAndWait( - resourceGroupName, - accountName, - databaseName, - retrieveThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbdatabaseRetrieveThroughputDistribution(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesRetrieveContinuousBackupInformationSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesRetrieveContinuousBackupInformationSample.ts index 4985ffd87fb5..a2017db506b0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesRetrieveContinuousBackupInformationSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesRetrieveContinuousBackupInformationSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves continuous backup information for a Mongodb collection. * * @summary Retrieves continuous backup information for a Mongodb collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionBackupInformation.json */ async function cosmosDbMongoDbcollectionBackupInformation() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts index e97d5a58934c..9ee4de8a068e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update the RUs per second of an Azure Cosmos DB MongoDB collection * * @summary Update the RUs per second of an Azure Cosmos DB MongoDB collection - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json */ async function cosmosDbMongoDbcollectionThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts index 8f4a317cbc3a..2545c1e17d7e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of the an Azure Cosmos DB MongoDB database * * @summary Update RUs per second of the an Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json */ async function cosmosDbMongoDbdatabaseThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/networkSecurityPerimeterConfigurationsGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/networkSecurityPerimeterConfigurationsGetSample.ts deleted file mode 100644 index d73c328622ca..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/networkSecurityPerimeterConfigurationsGetSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets effective Network Security Perimeter Configuration for association - * - * @summary Gets effective Network Security Perimeter Configuration for association - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationGet.json - */ -async function namspaceNetworkSecurityPerimeterConfigurationList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "res4410"; - const accountName = "cosmosTest"; - const networkSecurityPerimeterConfigurationName = - "dbedb4e0-40e6-4145-81f3-f1314c150774.resourceAssociation1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.networkSecurityPerimeterConfigurations.get( - resourceGroupName, - accountName, - networkSecurityPerimeterConfigurationName, - ); - console.log(result); -} - -async function main() { - namspaceNetworkSecurityPerimeterConfigurationList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/networkSecurityPerimeterConfigurationsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/networkSecurityPerimeterConfigurationsListSample.ts deleted file mode 100644 index eeb2b31ea195..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/networkSecurityPerimeterConfigurationsListSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets list of effective Network Security Perimeter Configuration for cosmos db account - * - * @summary Gets list of effective Network Security Perimeter Configuration for cosmos db account - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationList.json - */ -async function namspaceNetworkSecurityPerimeterConfigurationList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "res4410"; - const accountName = "cosmosTest"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkSecurityPerimeterConfigurations.list( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - namspaceNetworkSecurityPerimeterConfigurationList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.ts deleted file mode 100644 index ef15d1dccab7..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.ts +++ /dev/null @@ -1,46 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Refreshes any information about the association. - * - * @summary Refreshes any information about the association. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationReconcile.json - */ -async function networkSecurityPerimeterConfigurationList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "res4410"; - const accountName = "sto8607"; - const networkSecurityPerimeterConfigurationName = - "dbedb4e0-40e6-4145-81f3-f1314c150774.resourceAssociation1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.networkSecurityPerimeterConfigurations.beginReconcileAndWait( - resourceGroupName, - accountName, - networkSecurityPerimeterConfigurationName, - ); - console.log(result); -} - -async function main() { - networkSecurityPerimeterConfigurationList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesCreateOrUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesCreateOrUpdateSample.ts index 462cf5dd14fd..908adf7d05b9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesCreateOrUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates the notebook workspace for a Cosmos DB account. * * @summary Creates the notebook workspace for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceCreate.json */ async function cosmosDbNotebookWorkspaceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesDeleteSample.ts index 2143f15f975d..f9a37b876750 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesDeleteSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the notebook workspace for a Cosmos DB account. * * @summary Deletes the notebook workspace for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceDelete.json */ async function cosmosDbNotebookWorkspaceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesGetSample.ts index 4e533af7a134..519f9e0a193a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the notebook workspace for a Cosmos DB account. * * @summary Gets the notebook workspace for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceGet.json */ async function cosmosDbNotebookWorkspaceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesListByDatabaseAccountSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesListByDatabaseAccountSample.ts index 663236337c13..87539e39c1b3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesListByDatabaseAccountSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesListByDatabaseAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the notebook workspace resources of an existing Cosmos DB account. * * @summary Gets the notebook workspace resources of an existing Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceList.json */ async function cosmosDbNotebookWorkspaceList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesListConnectionInfoSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesListConnectionInfoSample.ts index a1a15a85b7f6..b7b164759ddd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesListConnectionInfoSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesListConnectionInfoSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the connection info for the notebook workspace * * @summary Retrieves the connection info for the notebook workspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json */ async function cosmosDbNotebookWorkspaceListConnectionInfo() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesRegenerateAuthTokenSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesRegenerateAuthTokenSample.ts index c7ab7582b9c0..680d466acb9d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesRegenerateAuthTokenSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesRegenerateAuthTokenSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates the auth token for the notebook workspace * * @summary Regenerates the auth token for the notebook workspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json */ async function cosmosDbNotebookWorkspaceRegenerateAuthToken() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesStartSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesStartSample.ts index 76da1dc8bd02..fb8d32d9c255 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesStartSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/notebookWorkspacesStartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Starts the notebook workspace * * @summary Starts the notebook workspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceStart.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceStart.json */ async function cosmosDbNotebookWorkspaceStart() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/operationsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/operationsListSample.ts index 5c641cb5b7ce..7eceff1a6c29 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/operationsListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available Cosmos DB Resource Provider operations. * * @summary Lists all of the available Cosmos DB Resource Provider operations. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBOperationsList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBOperationsList.json */ async function cosmosDbOperationsList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/partitionKeyRangeIdListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/partitionKeyRangeIdListMetricsSample.ts index 37d3b3cc6381..091a2619441f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/partitionKeyRangeIdListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/partitionKeyRangeIdListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given partition key range id. * * @summary Retrieves the metrics determined by the given filter for the given partition key range id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPKeyRangeIdGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/partitionKeyRangeIdRegionListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/partitionKeyRangeIdRegionListMetricsSample.ts index 169e2c0adabf..d2967ae366e7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/partitionKeyRangeIdRegionListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/partitionKeyRangeIdRegionListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given partition key range id and region. * * @summary Retrieves the metrics determined by the given filter for the given partition key range id and region. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/percentileListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/percentileListMetricsSample.ts index 10557e404259..d69d3e80ccdb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/percentileListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/percentileListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data * * @summary Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/percentileSourceTargetListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/percentileSourceTargetListMetricsSample.ts index 474d44b70e61..410612c76e28 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/percentileSourceTargetListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/percentileSourceTargetListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data * * @summary Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/percentileTargetListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/percentileTargetListMetricsSample.ts index 6abd63973e35..9fc6e89caba5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/percentileTargetListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/percentileTargetListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data * * @summary Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileTargetGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileTargetGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts index cabf6af6a3eb..1a77f6924db1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Approve or reject a private endpoint connection with a given name. * * @summary Approve or reject a private endpoint connection with a given name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json */ async function approveOrRejectAPrivateEndpointConnectionWithAGivenName() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsDeleteSample.ts index aef3ab61ee32..4859ab59bcf3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a private endpoint connection with a given name. * * @summary Deletes a private endpoint connection with a given name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionDelete.json */ async function deletesAPrivateEndpointConnectionWithAGivenName() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsGetSample.ts index ecd8e27dd4c3..34db25222933 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a private endpoint connection. * * @summary Gets a private endpoint connection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsListByDatabaseAccountSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsListByDatabaseAccountSample.ts index 063f8c65e229..182b7d280852 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsListByDatabaseAccountSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateEndpointConnectionsListByDatabaseAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all private endpoint connections on a Cosmos DB account. * * @summary List all private endpoint connections on a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionListGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateLinkResourcesGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateLinkResourcesGetSample.ts index ab3e8ce9ec2d..0570d1584c85 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateLinkResourcesGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateLinkResourcesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources that need to be created for a Cosmos DB account. * * @summary Gets the private link resources that need to be created for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateLinkResourceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateLinkResourceGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateLinkResourcesListByDatabaseAccountSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateLinkResourcesListByDatabaseAccountSample.ts index 978355243ef8..5052eaf5ed55 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateLinkResourcesListByDatabaseAccountSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/privateLinkResourcesListByDatabaseAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources that need to be created for a Cosmos DB account. * * @summary Gets the private link resources that need to be created for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateLinkResourceListGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateLinkResourceListGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableDatabaseAccountsGetByLocationSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableDatabaseAccountsGetByLocationSample.ts index 5ccc998a1168..0a5fa126b434 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableDatabaseAccountsGetByLocationSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableDatabaseAccountsGetByLocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission. * * @summary Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountGet.json */ async function cosmosDbRestorableDatabaseAccountGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableDatabaseAccountsListByLocationSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableDatabaseAccountsListByLocationSample.ts index 3901dcfee623..a817b37b4407 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableDatabaseAccountsListByLocationSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableDatabaseAccountsListByLocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. * * @summary Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountList.json */ async function cosmosDbRestorableDatabaseAccountList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableDatabaseAccountsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableDatabaseAccountsListSample.ts index 2be696937c62..9143ce37a4a6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableDatabaseAccountsListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableDatabaseAccountsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. * * @summary Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json */ async function cosmosDbRestorableDatabaseAccountNoLocationList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableGremlinDatabasesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableGremlinDatabasesListSample.ts index 42131c2c3ea7..5fe1b0512347 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableGremlinDatabasesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableGremlinDatabasesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinDatabaseList.json */ async function cosmosDbRestorableGremlinDatabaseList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableGremlinGraphsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableGremlinGraphsListSample.ts index a07dc1bf76bf..d8cb724cbd2d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableGremlinGraphsListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableGremlinGraphsListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin graphs under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin graphs under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinGraphList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinGraphList.json */ async function cosmosDbRestorableGremlinGraphList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableGremlinResourcesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableGremlinResourcesListSample.ts index 225300adf119..f725472179c5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableGremlinResourcesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableGremlinResourcesListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Return a list of gremlin database and graphs combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. * * @summary Return a list of gremlin database and graphs combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinResourceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinResourceList.json */ async function cosmosDbRestorableGremlinResourceList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableMongodbCollectionsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableMongodbCollectionsListSample.ts index 53894f71146b..3a8481a19a17 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableMongodbCollectionsListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableMongodbCollectionsListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbCollectionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbCollectionList.json */ async function cosmosDbRestorableMongodbCollectionList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableMongodbDatabasesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableMongodbDatabasesListSample.ts index 22566916f962..2d7f3518b028 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableMongodbDatabasesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableMongodbDatabasesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbDatabaseList.json */ async function cosmosDbRestorableMongodbDatabaseList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableMongodbResourcesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableMongodbResourcesListSample.ts index 88f1a46af846..84a4189b2aa1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableMongodbResourcesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableMongodbResourcesListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. * * @summary Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbResourceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbResourceList.json */ async function cosmosDbRestorableMongodbResourceList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableSqlContainersListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableSqlContainersListSample.ts index 8c7f2a20b415..6e910768f681 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableSqlContainersListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableSqlContainersListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlContainerList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlContainerList.json */ async function cosmosDbRestorableSqlContainerList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableSqlDatabasesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableSqlDatabasesListSample.ts index 32de6c018044..d6ca881ff59f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableSqlDatabasesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableSqlDatabasesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlDatabaseList.json */ async function cosmosDbRestorableSqlDatabaseList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableSqlResourcesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableSqlResourcesListSample.ts index 4aa140ae7045..743de4fc0c35 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableSqlResourcesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableSqlResourcesListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. * * @summary Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlResourceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlResourceList.json */ async function cosmosDbRestorableSqlResourceList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableTableResourcesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableTableResourcesListSample.ts index e61168ef358a..411ce12e0ae1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableTableResourcesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableTableResourcesListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Return a list of tables that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. * * @summary Return a list of tables that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableTableResourceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableTableResourceList.json */ async function cosmosDbRestorableTableResourceList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableTablesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableTablesListSample.ts index 940d0a613a55..26c1f355dfbd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableTablesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/restorableTablesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB Tables. This helps in scenario where table was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB Tables. This helps in scenario where table was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableTableList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableTableList.json */ async function cosmosDbRestorableTableList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceCreateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceCreateSample.ts index cd2a495b1658..d1c053d2466c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceCreateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a service. * * @summary Creates a service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceCreate.json */ async function dataTransferServiceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -50,7 +50,7 @@ async function dataTransferServiceCreate() { * This sample demonstrates how to Creates a service. * * @summary Creates a service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphAPIComputeServiceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGraphAPIComputeServiceCreate.json */ async function graphApiComputeServiceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -79,7 +79,7 @@ async function graphApiComputeServiceCreate() { * This sample demonstrates how to Creates a service. * * @summary Creates a service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMaterializedViewsBuilderServiceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMaterializedViewsBuilderServiceCreate.json */ async function materializedViewsBuilderServiceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -108,7 +108,7 @@ async function materializedViewsBuilderServiceCreate() { * This sample demonstrates how to Creates a service. * * @summary Creates a service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceCreate.json */ async function sqlDedicatedGatewayServiceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceDeleteSample.ts index f45b1f5553e6..28833728c1ad 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceDeleteSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes service with the given serviceName. * * @summary Deletes service with the given serviceName. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceDelete.json */ async function dataTransferServiceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,7 @@ async function dataTransferServiceDelete() { * This sample demonstrates how to Deletes service with the given serviceName. * * @summary Deletes service with the given serviceName. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphAPIComputeServiceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGraphAPIComputeServiceDelete.json */ async function graphApiComputeServiceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -60,7 +60,7 @@ async function graphApiComputeServiceDelete() { * This sample demonstrates how to Deletes service with the given serviceName. * * @summary Deletes service with the given serviceName. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMaterializedViewsBuilderServiceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMaterializedViewsBuilderServiceDelete.json */ async function materializedViewsBuilderServiceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -81,7 +81,7 @@ async function materializedViewsBuilderServiceDelete() { * This sample demonstrates how to Deletes service with the given serviceName. * * @summary Deletes service with the given serviceName. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceDelete.json */ async function sqlDedicatedGatewayServiceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceGetSample.ts index 7c0fd04d44de..390e1ae433c0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceGet.json */ async function dataTransferServiceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,7 @@ async function dataTransferServiceGet() { * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphAPIComputeServiceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGraphAPIComputeServiceGet.json */ async function graphApiComputeServiceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -60,7 +60,7 @@ async function graphApiComputeServiceGet() { * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMaterializedViewsBuilderServiceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMaterializedViewsBuilderServiceGet.json */ async function materializedViewsBuilderServiceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -81,7 +81,7 @@ async function materializedViewsBuilderServiceGet() { * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceGet.json */ async function sqlDedicatedGatewayServiceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceListSample.ts index 3aaf97a2397d..5d37ae555d50 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/serviceListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBServicesList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBServicesList.json */ async function cosmosDbServicesList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateClientEncryptionKeySample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateClientEncryptionKeySample.ts index d442fdcb34f9..4249a213b249 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateClientEncryptionKeySample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateClientEncryptionKeySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly). * * @summary Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly). - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json */ async function cosmosDbClientEncryptionKeyCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subId"; @@ -40,9 +40,7 @@ async function cosmosDbClientEncryptionKeyCreateUpdate() { algorithm: "RSA-OAEP", value: "AzureKeyVault Key URL", }, - wrappedDataEncryptionKey: Buffer.from( - "VGhpcyBpcyBhY3R1YWxseSBhbiBhcnJheSBvZiBieXRlcy4gVGhpcyByZXF1ZXN0L3Jlc3BvbnNlIGlzIGJlaW5nIHByZXNlbnRlZCBhcyBhIHN0cmluZyBmb3IgcmVhZGFiaWxpdHkgaW4gdGhlIGV4YW1wbGU=", - ), + wrappedDataEncryptionKey: Buffer.from("U3dhZ2dlciByb2Nrcw=="), }, }; const credential = new DefaultAzureCredential(); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlContainerSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlContainerSample.ts index 680b0323f882..387d67ec459f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlContainerSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlContainerSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB SQL container * * @summary Create or update an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerCreateUpdate.json */ async function cosmosDbSqlContainerCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -67,101 +67,36 @@ async function cosmosDbSqlContainerCreateUpdate() { }, ], indexingMode: "consistent", + vectorIndexes: [ + { type: "flat", path: "/vectorPath1" }, + { type: "quantizedFlat", path: "/vectorPath2" }, + { type: "diskANN", path: "/vectorPath3" }, + ], }, partitionKey: { kind: "Hash", paths: ["/AccountNumber"] }, uniqueKeyPolicy: { uniqueKeys: [{ paths: ["/testPath"] }] }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginCreateUpdateSqlContainerAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - createUpdateSqlContainerParameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB SQL container - * - * @summary Create or update an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerRestore.json - */ -async function cosmosDbSqlContainerRestore() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "containerName"; - const createUpdateSqlContainerParameters: SqlContainerCreateUpdateParameters = - { - location: "West US", - options: {}, - resource: { - createMode: "Restore", - id: "containerName", - restoreParameters: { - restoreSource: - "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId", - restoreTimestampInUtc: new Date("2022-07-20T18:28:00Z"), - restoreWithTtlDisabled: true, - }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginCreateUpdateSqlContainerAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - createUpdateSqlContainerParameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB SQL container - * - * @summary Create or update an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlMaterializedViewCreateUpdate.json - */ -async function cosmosDbSqlMaterializedViewCreateUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "mvContainerName"; - const createUpdateSqlContainerParameters: SqlContainerCreateUpdateParameters = - { - location: "West US", - options: {}, - resource: { - id: "mvContainerName", - indexingPolicy: { - automatic: true, - excludedPaths: [], - includedPaths: [ + vectorEmbeddingPolicy: { + vectorEmbeddings: [ { - path: "/*", - indexes: [ - { dataType: "String", kind: "Range", precision: -1 }, - { dataType: "Number", kind: "Range", precision: -1 }, - ], + path: "/vectorPath1", + dataType: "float32", + dimensions: 400, + distanceFunction: "euclidean", + }, + { + path: "/vectorPath2", + dataType: "uint8", + dimensions: 512, + distanceFunction: "cosine", + }, + { + path: "/vectorPath3", + dataType: "int8", + dimensions: 512, + distanceFunction: "dotproduct", }, ], - indexingMode: "consistent", - }, - materializedViewDefinition: { - definition: "select * from ROOT", - sourceCollectionId: "sourceContainerName", }, - partitionKey: { kind: "Hash", paths: ["/mvpk"] }, }, tags: {}, }; @@ -179,8 +114,6 @@ async function cosmosDbSqlMaterializedViewCreateUpdate() { async function main() { cosmosDbSqlContainerCreateUpdate(); - cosmosDbSqlContainerRestore(); - cosmosDbSqlMaterializedViewCreateUpdate(); } main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlDatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlDatabaseSample.ts index 84b0925b8f87..4468864647b2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlDatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlDatabaseSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB SQL database * * @summary Create or update an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseCreateUpdate.json */ async function cosmosDbSqlDatabaseCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -45,46 +45,8 @@ async function cosmosDbSqlDatabaseCreateUpdate() { console.log(result); } -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB SQL database - * - * @summary Create or update an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseRestore.json - */ -async function cosmosDbSqlDatabaseRestore() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const createUpdateSqlDatabaseParameters: SqlDatabaseCreateUpdateParameters = { - location: "West US", - options: {}, - resource: { - createMode: "Restore", - id: "databaseName", - restoreParameters: { - restoreSource: - "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId", - restoreTimestampInUtc: new Date("2022-07-20T18:28:00Z"), - restoreWithTtlDisabled: true, - }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginCreateUpdateSqlDatabaseAndWait( - resourceGroupName, - accountName, - databaseName, - createUpdateSqlDatabaseParameters, - ); - console.log(result); -} - async function main() { cosmosDbSqlDatabaseCreateUpdate(); - cosmosDbSqlDatabaseRestore(); } main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts index f512fd9a37f1..644f2e5587ae 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB SQL Role Assignment. * * @summary Creates or updates an Azure Cosmos DB SQL Role Assignment. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json */ async function cosmosDbSqlRoleAssignmentCreateUpdate() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts index e1d95ebdf00d..011fe662c2ce 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB SQL Role Definition. * * @summary Creates or updates an Azure Cosmos DB SQL Role Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json */ async function cosmosDbSqlRoleDefinitionCreateUpdate() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlStoredProcedureSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlStoredProcedureSample.ts index faf35cce97e8..9edf562119a7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlStoredProcedureSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlStoredProcedureSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB SQL storedProcedure * * @summary Create or update an Azure Cosmos DB SQL storedProcedure - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json */ async function cosmosDbSqlStoredProcedureCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlTriggerSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlTriggerSample.ts index cfe8ea1d7213..1e8055bfa4c3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlTriggerSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlTriggerSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB SQL trigger * * @summary Create or update an Azure Cosmos DB SQL trigger - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerCreateUpdate.json */ async function cosmosDbSqlTriggerCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts index 67c48557770c..af7f30a448d9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB SQL userDefinedFunction * * @summary Create or update an Azure Cosmos DB SQL userDefinedFunction - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json */ async function cosmosDbSqlUserDefinedFunctionCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlContainerSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlContainerSample.ts index f05b69d4d1b7..9a72a925498f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlContainerSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlContainerSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL container. * * @summary Deletes an existing Azure Cosmos DB SQL container. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerDelete.json */ async function cosmosDbSqlContainerDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlDatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlDatabaseSample.ts index ef465c359cca..21d9aefcc03c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlDatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlDatabaseSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL database. * * @summary Deletes an existing Azure Cosmos DB SQL database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseDelete.json */ async function cosmosDbSqlDatabaseDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlRoleAssignmentSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlRoleAssignmentSample.ts index 074e161ccb22..f614dcffb3dc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlRoleAssignmentSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlRoleAssignmentSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL Role Assignment. * * @summary Deletes an existing Azure Cosmos DB SQL Role Assignment. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentDelete.json */ async function cosmosDbSqlRoleAssignmentDelete() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlRoleDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlRoleDefinitionSample.ts index 34637f5a316b..5ae8e0f3f36e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlRoleDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlRoleDefinitionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL Role Definition. * * @summary Deletes an existing Azure Cosmos DB SQL Role Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionDelete.json */ async function cosmosDbSqlRoleDefinitionDelete() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlStoredProcedureSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlStoredProcedureSample.ts index e3b80ee6901a..8fe9920e9a59 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlStoredProcedureSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlStoredProcedureSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL storedProcedure. * * @summary Deletes an existing Azure Cosmos DB SQL storedProcedure. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureDelete.json */ async function cosmosDbSqlStoredProcedureDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlTriggerSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlTriggerSample.ts index 1679fa182627..1038bf68a3bf 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlTriggerSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlTriggerSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL trigger. * * @summary Deletes an existing Azure Cosmos DB SQL trigger. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerDelete.json */ async function cosmosDbSqlTriggerDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlUserDefinedFunctionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlUserDefinedFunctionSample.ts index ce2c34249023..ffa1ce204b3c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlUserDefinedFunctionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesDeleteSqlUserDefinedFunctionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL userDefinedFunction. * * @summary Deletes an existing Azure Cosmos DB SQL userDefinedFunction. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json */ async function cosmosDbSqlUserDefinedFunctionDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetClientEncryptionKeySample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetClientEncryptionKeySample.ts index 57fc359a3c20..b9d252657856 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetClientEncryptionKeySample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetClientEncryptionKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. * * @summary Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeyGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeyGet.json */ async function cosmosDbClientEncryptionKeyGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlContainerSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlContainerSample.ts index 598f843c54b2..a10a556c43e1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlContainerSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlContainerSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the SQL container under an existing Azure Cosmos DB database account. * * @summary Gets the SQL container under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerGet.json */ async function cosmosDbSqlContainerGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlContainerThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlContainerThroughputSample.ts index 1deb90c2c58e..8c1ca6c9cd00 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlContainerThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlContainerThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account. * * @summary Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerThroughputGet.json */ async function cosmosDbSqlContainerThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlDatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlDatabaseSample.ts index a29311954235..773d81ac43fa 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlDatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlDatabaseSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the SQL database under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the SQL database under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseGet.json */ async function cosmosDbSqlDatabaseGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlDatabaseThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlDatabaseThroughputSample.ts index a875897385aa..99df276c5eb2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlDatabaseThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlDatabaseThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseThroughputGet.json */ async function cosmosDbSqlDatabaseThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlRoleAssignmentSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlRoleAssignmentSample.ts index 51a1c139ceeb..c3d3cedb1feb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlRoleAssignmentSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlRoleAssignmentSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. * * @summary Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentGet.json */ async function cosmosDbSqlRoleAssignmentGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlRoleDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlRoleDefinitionSample.ts index aacfc95c5d3a..e2c888c6c160 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlRoleDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlRoleDefinitionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. * * @summary Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionGet.json */ async function cosmosDbSqlRoleDefinitionGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlStoredProcedureSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlStoredProcedureSample.ts index 048d55ec4a64..17a3fc0a13d9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlStoredProcedureSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlStoredProcedureSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. * * @summary Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureGet.json */ async function cosmosDbSqlStoredProcedureGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlTriggerSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlTriggerSample.ts index cb340288be40..0ada7798453f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlTriggerSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlTriggerSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the SQL trigger under an existing Azure Cosmos DB database account. * * @summary Gets the SQL trigger under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerGet.json */ async function cosmosDbSqlTriggerGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlUserDefinedFunctionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlUserDefinedFunctionSample.ts index cf6ecc993dfe..819b3cd55e1b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlUserDefinedFunctionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesGetSqlUserDefinedFunctionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account. * * @summary Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionGet.json */ async function cosmosDbSqlUserDefinedFunctionGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListClientEncryptionKeysSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListClientEncryptionKeysSample.ts index 22937321beae..5386fc292734 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListClientEncryptionKeysSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListClientEncryptionKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. * * @summary Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeysList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeysList.json */ async function cosmosDbClientEncryptionKeysList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlContainerPartitionMergeSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlContainerPartitionMergeSample.ts deleted file mode 100644 index fa0a12bfde0c..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlContainerPartitionMergeSample.ts +++ /dev/null @@ -1,47 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MergeParameters, CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Merges the partitions of a SQL Container - * - * @summary Merges the partitions of a SQL Container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerPartitionMerge.json - */ -async function cosmosDbSqlContainerPartitionMerge() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "containerName"; - const mergeParameters: MergeParameters = { isDryRun: false }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.sqlResources.beginListSqlContainerPartitionMergeAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - mergeParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlContainerPartitionMerge(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlContainersSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlContainersSample.ts index 213ab7563a5a..c8b4e713a6c8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlContainersSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlContainersSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the SQL container under an existing Azure Cosmos DB database account. * * @summary Lists the SQL container under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerList.json */ async function cosmosDbSqlContainerList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlDatabasesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlDatabasesSample.ts index 08b997dc975a..8fdcbcd5420b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlDatabasesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlDatabasesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the SQL databases under an existing Azure Cosmos DB database account. * * @summary Lists the SQL databases under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseList.json */ async function cosmosDbSqlDatabaseList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlRoleAssignmentsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlRoleAssignmentsSample.ts index 27756bcb1a4a..031f8528ffad 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlRoleAssignmentsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlRoleAssignmentsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the list of all Azure Cosmos DB SQL Role Assignments. * * @summary Retrieves the list of all Azure Cosmos DB SQL Role Assignments. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentList.json */ async function cosmosDbSqlRoleAssignmentList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlRoleDefinitionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlRoleDefinitionsSample.ts index 4467fbec51cd..60b680d26aef 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlRoleDefinitionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlRoleDefinitionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the list of all Azure Cosmos DB SQL Role Definitions. * * @summary Retrieves the list of all Azure Cosmos DB SQL Role Definitions. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionList.json */ async function cosmosDbSqlRoleDefinitionList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlStoredProceduresSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlStoredProceduresSample.ts index c395babb1966..9eab0671efa6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlStoredProceduresSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlStoredProceduresSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. * * @summary Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureList.json */ async function cosmosDbSqlStoredProcedureList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlTriggersSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlTriggersSample.ts index ae18201970df..135179faf833 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlTriggersSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlTriggersSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the SQL trigger under an existing Azure Cosmos DB database account. * * @summary Lists the SQL trigger under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerList.json */ async function cosmosDbSqlTriggerList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlUserDefinedFunctionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlUserDefinedFunctionsSample.ts index 4d53bc04589e..7310f9cf4445 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlUserDefinedFunctionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesListSqlUserDefinedFunctionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account. * * @summary Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionList.json */ async function cosmosDbSqlUserDefinedFunctionList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlContainerToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlContainerToAutoscaleSample.ts index 254594e5e687..749db4702caf 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlContainerToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlContainerToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json */ async function cosmosDbSqlContainerMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlContainerToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlContainerToManualThroughputSample.ts index b493affa1288..e4d687a7ef15 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlContainerToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlContainerToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json */ async function cosmosDbSqlContainerMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts index 6c3753e2266f..288e57b80d14 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json */ async function cosmosDbSqlDatabaseMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts index fea6ded44f72..255c4027613b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json */ async function cosmosDbSqlDatabaseMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesRetrieveContinuousBackupInformationSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesRetrieveContinuousBackupInformationSample.ts index 5bf4653204aa..4ed7d80b2fee 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesRetrieveContinuousBackupInformationSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesRetrieveContinuousBackupInformationSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves continuous backup information for a container resource. * * @summary Retrieves continuous backup information for a container resource. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerBackupInformation.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerBackupInformation.json */ async function cosmosDbSqlContainerBackupInformation() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlContainerRedistributeThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlContainerRedistributeThroughputSample.ts deleted file mode 100644 index 90e5ac16ae30..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlContainerRedistributeThroughputSample.ts +++ /dev/null @@ -1,62 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RedistributeThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Redistribute throughput for an Azure Cosmos DB SQL container - * - * @summary Redistribute throughput for an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerRedistributeThroughput.json - */ -async function cosmosDbSqlContainerRedistributeThroughput() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "containerName"; - const redistributeThroughputParameters: RedistributeThroughputParameters = { - resource: { - sourcePhysicalPartitionThroughputInfo: [ - { id: "2", throughput: 5000 }, - { id: "3" }, - ], - targetPhysicalPartitionThroughputInfo: [ - { id: "0", throughput: 5000 }, - { id: "1", throughput: 5000 }, - ], - throughputPolicy: "custom", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.sqlResources.beginSqlContainerRedistributeThroughputAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - redistributeThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlContainerRedistributeThroughput(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlContainerRetrieveThroughputDistributionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlContainerRetrieveThroughputDistributionSample.ts deleted file mode 100644 index d18926628447..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlContainerRetrieveThroughputDistributionSample.ts +++ /dev/null @@ -1,52 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RetrieveThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve throughput distribution for an Azure Cosmos DB SQL container - * - * @summary Retrieve throughput distribution for an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerRetrieveThroughputDistribution.json - */ -async function cosmosDbSqlContainerRetrieveThroughputDistribution() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "containerName"; - const retrieveThroughputParameters: RetrieveThroughputParameters = { - resource: { physicalPartitionIds: [{ id: "0" }, { id: "1" }] }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.sqlResources.beginSqlContainerRetrieveThroughputDistributionAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - retrieveThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlContainerRetrieveThroughputDistribution(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlDatabasePartitionMergeSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlDatabasePartitionMergeSample.ts deleted file mode 100644 index 27ab42d99d0d..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlDatabasePartitionMergeSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MergeParameters, CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Merges the partitions of a SQL database - * - * @summary Merges the partitions of a SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabasePartitionMerge.json - */ -async function cosmosDbSqlDatabasePartitionMerge() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const mergeParameters: MergeParameters = { isDryRun: false }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.sqlResources.beginSqlDatabasePartitionMergeAndWait( - resourceGroupName, - accountName, - databaseName, - mergeParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabasePartitionMerge(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlDatabaseRedistributeThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlDatabaseRedistributeThroughputSample.ts deleted file mode 100644 index 8ab64bc362a5..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlDatabaseRedistributeThroughputSample.ts +++ /dev/null @@ -1,60 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RedistributeThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Redistribute throughput for an Azure Cosmos DB SQL database - * - * @summary Redistribute throughput for an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseRedistributeThroughput.json - */ -async function cosmosDbSqlDatabaseRedistributeThroughput() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const redistributeThroughputParameters: RedistributeThroughputParameters = { - resource: { - sourcePhysicalPartitionThroughputInfo: [ - { id: "2", throughput: 5000 }, - { id: "3" }, - ], - targetPhysicalPartitionThroughputInfo: [ - { id: "0", throughput: 5000 }, - { id: "1", throughput: 5000 }, - ], - throughputPolicy: "custom", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.sqlResources.beginSqlDatabaseRedistributeThroughputAndWait( - resourceGroupName, - accountName, - databaseName, - redistributeThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabaseRedistributeThroughput(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesUpdateSqlContainerThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesUpdateSqlContainerThroughputSample.ts index 136f846bf289..bf09b1bc5192 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesUpdateSqlContainerThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesUpdateSqlContainerThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB SQL container * * @summary Update RUs per second of an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerThroughputUpdate.json */ async function cosmosDbSqlContainerThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesUpdateSqlDatabaseThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesUpdateSqlDatabaseThroughputSample.ts index 22dc7943d06c..f938c16ab62d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesUpdateSqlDatabaseThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesUpdateSqlDatabaseThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB SQL database * * @summary Update RUs per second of an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json */ async function cosmosDbSqlDatabaseThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesCreateUpdateTableSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesCreateUpdateTableSample.ts index c8f4ceafc1e0..7995b7e1dda6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesCreateUpdateTableSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesCreateUpdateTableSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Table * * @summary Create or update an Azure Cosmos DB Table - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableCreateUpdate.json */ async function cosmosDbTableReplace() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesDeleteTableSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesDeleteTableSample.ts index e4932b868ea1..4b98a6e095f9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesDeleteTableSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesDeleteTableSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Table. * * @summary Deletes an existing Azure Cosmos DB Table. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableDelete.json */ async function cosmosDbTableDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesGetTableSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesGetTableSample.ts index 8b34b50c9623..a93f754dc1cc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesGetTableSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesGetTableSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Tables under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the Tables under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableGet.json */ async function cosmosDbTableGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesGetTableThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesGetTableThroughputSample.ts index 8d346e494760..b69ff7564131 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesGetTableThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesGetTableThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableThroughputGet.json */ async function cosmosDbTableThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesListTablesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesListTablesSample.ts index 76028c8a2652..8cc3a8c536ed 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesListTablesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesListTablesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the Tables under an existing Azure Cosmos DB database account. * * @summary Lists the Tables under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableList.json */ async function cosmosDbTableList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesMigrateTableToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesMigrateTableToAutoscaleSample.ts index 0de4ca8c4edf..3351c3d2dacc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesMigrateTableToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesMigrateTableToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Table from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Table from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableMigrateToAutoscale.json */ async function cosmosDbTableMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesMigrateTableToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesMigrateTableToManualThroughputSample.ts index 9fbda1172f97..2f953cc797fc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesMigrateTableToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesMigrateTableToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Table from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Table from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableMigrateToManualThroughput.json */ async function cosmosDbTableMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesRetrieveContinuousBackupInformationSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesRetrieveContinuousBackupInformationSample.ts index 761843db371e..db5b04471043 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesRetrieveContinuousBackupInformationSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesRetrieveContinuousBackupInformationSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves continuous backup information for a table. * * @summary Retrieves continuous backup information for a table. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableBackupInformation.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableBackupInformation.json */ async function cosmosDbTableCollectionBackupInformation() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesUpdateTableThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesUpdateTableThroughputSample.ts index 3e400be53ff3..1ea2878e68e3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesUpdateTableThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples-dev/tableResourcesUpdateTableThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Table * * @summary Update RUs per second of an Azure Cosmos DB Table - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableThroughputUpdate.json */ async function cosmosDbTableThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountCreateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountCreateSample.ts deleted file mode 100644 index 0f6a73101b78..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountCreateSample.ts +++ /dev/null @@ -1,53 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ThroughputPoolAccountResource, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. - * - * @summary Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountCreate.json - */ -async function cosmosDbThroughputPoolAccountCreate() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const throughputPoolName = "tp1"; - const throughputPoolAccountName = "db1"; - const body: ThroughputPoolAccountResource = { - accountLocation: "West US", - accountResourceIdentifier: - "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DocumentDB/resourceGroup/rg1/databaseAccounts/db1/", - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPoolAccount.beginCreateAndWait( - resourceGroupName, - throughputPoolName, - throughputPoolAccountName, - body, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolAccountCreate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountDeleteSample.ts deleted file mode 100644 index d7738d40d40d..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountDeleteSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Removes an existing Azure Cosmos DB database account from a throughput pool. - * - * @summary Removes an existing Azure Cosmos DB database account from a throughput pool. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountDelete.json - */ -async function cosmosDbThroughputPoolAccountDelete() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const throughputPoolAccountName = "db1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPoolAccount.beginDeleteAndWait( - resourceGroupName, - throughputPoolName, - throughputPoolAccountName, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolAccountDelete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountGetSample.ts deleted file mode 100644 index d40f9284ba00..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountGetSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * - * @summary Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountGet.json - */ -async function cosmosDbThroughputPoolAccountGet() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const throughputPoolAccountName = "db1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPoolAccount.get( - resourceGroupName, - throughputPoolName, - throughputPoolAccountName, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolAccountGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountsListSample.ts deleted file mode 100644 index 8e8e44522456..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolAccountsListSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the Azure Cosmos DB accounts available under the subscription. - * - * @summary Lists all the Azure Cosmos DB accounts available under the subscription. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountsList.json - */ -async function cosmosDbThroughputPoolAccountList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.throughputPoolAccounts.list( - resourceGroupName, - throughputPoolName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbThroughputPoolAccountList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolCreateOrUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolCreateOrUpdateSample.ts deleted file mode 100644 index ca1861a74f69..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolCreateOrUpdateSample.ts +++ /dev/null @@ -1,51 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ThroughputPoolResource, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. - * - * @summary Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolCreate.json - */ -async function cosmosDbThroughputPoolCreate() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const throughputPoolName = "tp1"; - const body: ThroughputPoolResource = { - location: "westus2", - maxThroughput: 10000, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPool.beginCreateOrUpdateAndWait( - resourceGroupName, - throughputPoolName, - body, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolCreate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolDeleteSample.ts deleted file mode 100644 index d9a7fbf2ed62..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolDeleteSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes an existing Azure Cosmos DB Throughput Pool. - * - * @summary Deletes an existing Azure Cosmos DB Throughput Pool. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolDelete.json - */ -async function cosmosDbThroughputPoolDelete() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPool.beginDeleteAndWait( - resourceGroupName, - throughputPoolName, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolDelete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolGetSample.ts deleted file mode 100644 index 8a0dd614b60c..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolGetSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * - * @summary Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolGet.json - */ -async function cosmosDbThroughputPoolGet() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPool.get( - resourceGroupName, - throughputPoolName, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolUpdateSample.ts deleted file mode 100644 index fe48ed4ce37e..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolUpdateSample.ts +++ /dev/null @@ -1,49 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ThroughputPoolUpdate, - ThroughputPoolUpdateOptionalParams, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates the properties of an existing Azure Cosmos DB Throughput Pool. - * - * @summary Updates the properties of an existing Azure Cosmos DB Throughput Pool. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolUpdate.json - */ -async function cosmosDbThroughputPoolUpdate() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const throughputPoolName = "tp1"; - const body: ThroughputPoolUpdate = { maxThroughput: 10000 }; - const options: ThroughputPoolUpdateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPool.beginUpdateAndWait( - resourceGroupName, - throughputPoolName, - options, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolUpdate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolsListByResourceGroupSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolsListByResourceGroupSample.ts deleted file mode 100644 index 80c78b8a7259..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolsListByResourceGroupSample.ts +++ /dev/null @@ -1,43 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all the ThroughputPools in a given resource group. - * - * @summary List all the ThroughputPools in a given resource group. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolList.json - */ -async function cosmosDbThroughputPoolListByResourceGroup() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.throughputPools.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbThroughputPoolListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolsListSample.ts deleted file mode 100644 index 30e6d15d6e90..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/throughputPoolsListSample.ts +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the Azure Cosmos DB Throughput Pools available under the subscription. - * - * @summary Lists all the Azure Cosmos DB Throughput Pools available under the subscription. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolList.json - */ -async function cosmosDbThroughputPoolList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.throughputPools.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbThroughputPoolList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/README.md b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/README.md new file mode 100644 index 000000000000..4f59f05c8f8c --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/README.md @@ -0,0 +1,428 @@ +# client library samples for JavaScript + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [cassandraClustersCreateUpdateSample.js][cassandraclusterscreateupdatesample] | Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterCreate.json | +| [cassandraClustersDeallocateSample.js][cassandraclustersdeallocatesample] | 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 already deallocated cluster. Use Start to restart the cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterDeallocate.json | +| [cassandraClustersDeleteSample.js][cassandraclustersdeletesample] | Deletes a managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterDelete.json | +| [cassandraClustersGetSample.js][cassandraclustersgetsample] | Get the properties of a managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterGet.json | +| [cassandraClustersInvokeCommandSample.js][cassandraclustersinvokecommandsample] | Invoke a command like nodetool for cassandra maintenance x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraCommand.json | +| [cassandraClustersListByResourceGroupSample.js][cassandraclusterslistbyresourcegroupsample] | List all managed Cassandra clusters in this resource group. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json | +| [cassandraClustersListBySubscriptionSample.js][cassandraclusterslistbysubscriptionsample] | List all managed Cassandra clusters in this subscription. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json | +| [cassandraClustersStartSample.js][cassandraclustersstartsample] | Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterStart.json | +| [cassandraClustersStatusSample.js][cassandraclustersstatussample] | Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraStatus.json | +| [cassandraClustersUpdateSample.js][cassandraclustersupdatesample] | Updates some of the properties of a managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterPatch.json | +| [cassandraDataCentersCreateUpdateSample.js][cassandradatacenterscreateupdatesample] | Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterCreate.json | +| [cassandraDataCentersDeleteSample.js][cassandradatacentersdeletesample] | Delete a managed Cassandra data center. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterDelete.json | +| [cassandraDataCentersGetSample.js][cassandradatacentersgetsample] | Get the properties of a managed Cassandra data center. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterGet.json | +| [cassandraDataCentersListSample.js][cassandradatacenterslistsample] | List all data centers in a particular managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterList.json | +| [cassandraDataCentersUpdateSample.js][cassandradatacentersupdatesample] | Update some of the properties of a managed Cassandra data center. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterPatch.json | +| [cassandraResourcesCreateUpdateCassandraKeyspaceSample.js][cassandraresourcescreateupdatecassandrakeyspacesample] | Create or update an Azure Cosmos DB Cassandra keyspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json | +| [cassandraResourcesCreateUpdateCassandraTableSample.js][cassandraresourcescreateupdatecassandratablesample] | Create or update an Azure Cosmos DB Cassandra Table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableCreateUpdate.json | +| [cassandraResourcesDeleteCassandraKeyspaceSample.js][cassandraresourcesdeletecassandrakeyspacesample] | Deletes an existing Azure Cosmos DB Cassandra keyspace. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceDelete.json | +| [cassandraResourcesDeleteCassandraTableSample.js][cassandraresourcesdeletecassandratablesample] | Deletes an existing Azure Cosmos DB Cassandra table. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableDelete.json | +| [cassandraResourcesGetCassandraKeyspaceSample.js][cassandraresourcesgetcassandrakeyspacesample] | Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceGet.json | +| [cassandraResourcesGetCassandraKeyspaceThroughputSample.js][cassandraresourcesgetcassandrakeyspacethroughputsample] | Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json | +| [cassandraResourcesGetCassandraTableSample.js][cassandraresourcesgetcassandratablesample] | Gets the Cassandra table under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableGet.json | +| [cassandraResourcesGetCassandraTableThroughputSample.js][cassandraresourcesgetcassandratablethroughputsample] | Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableThroughputGet.json | +| [cassandraResourcesListCassandraKeyspacesSample.js][cassandraresourceslistcassandrakeyspacessample] | Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceList.json | +| [cassandraResourcesListCassandraTablesSample.js][cassandraresourceslistcassandratablessample] | Lists the Cassandra table under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableList.json | +| [cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.js][cassandraresourcesmigratecassandrakeyspacetoautoscalesample] | Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json | +| [cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.js][cassandraresourcesmigratecassandrakeyspacetomanualthroughputsample] | Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json | +| [cassandraResourcesMigrateCassandraTableToAutoscaleSample.js][cassandraresourcesmigratecassandratabletoautoscalesample] | Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json | +| [cassandraResourcesMigrateCassandraTableToManualThroughputSample.js][cassandraresourcesmigratecassandratabletomanualthroughputsample] | Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json | +| [cassandraResourcesUpdateCassandraKeyspaceThroughputSample.js][cassandraresourcesupdatecassandrakeyspacethroughputsample] | Update RUs per second of an Azure Cosmos DB Cassandra Keyspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json | +| [cassandraResourcesUpdateCassandraTableThroughputSample.js][cassandraresourcesupdatecassandratablethroughputsample] | Update RUs per second of an Azure Cosmos DB Cassandra table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableThroughputUpdate.json | +| [collectionListMetricDefinitionsSample.js][collectionlistmetricdefinitionssample] | Retrieves metric definitions for the given collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetMetricDefinitions.json | +| [collectionListMetricsSample.js][collectionlistmetricssample] | Retrieves the metrics determined by the given filter for the given database account and collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetMetrics.json | +| [collectionListUsagesSample.js][collectionlistusagessample] | Retrieves the usages (most recent storage data) for the given collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetUsages.json | +| [collectionPartitionListMetricsSample.js][collectionpartitionlistmetricssample] | Retrieves the metrics determined by the given filter for the given collection, split by partition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionGetMetrics.json | +| [collectionPartitionListUsagesSample.js][collectionpartitionlistusagessample] | Retrieves the usages (most recent storage data) for the given collection, split by partition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionGetUsages.json | +| [collectionPartitionRegionListMetricsSample.js][collectionpartitionregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given collection and region, split by partition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json | +| [collectionRegionListMetricsSample.js][collectionregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given database account, collection and region. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRegionCollectionGetMetrics.json | +| [databaseAccountRegionListMetricsSample.js][databaseaccountregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given database account and region. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json | +| [databaseAccountsCheckNameExistsSample.js][databaseaccountschecknameexistssample] | Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountCheckNameExists.json | +| [databaseAccountsCreateOrUpdateSample.js][databaseaccountscreateorupdatesample] | Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountCreateMax.json | +| [databaseAccountsDeleteSample.js][databaseaccountsdeletesample] | Deletes an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountDelete.json | +| [databaseAccountsFailoverPriorityChangeSample.js][databaseaccountsfailoverprioritychangesample] | Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json | +| [databaseAccountsGetReadOnlyKeysSample.js][databaseaccountsgetreadonlykeyssample] | Lists the read-only access keys for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json | +| [databaseAccountsGetSample.js][databaseaccountsgetsample] | Retrieves the properties of an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGet.json | +| [databaseAccountsListByResourceGroupSample.js][databaseaccountslistbyresourcegroupsample] | Lists all the Azure Cosmos DB database accounts available under the given resource group. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json | +| [databaseAccountsListConnectionStringsSample.js][databaseaccountslistconnectionstringssample] | Lists the connection strings for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json | +| [databaseAccountsListKeysSample.js][databaseaccountslistkeyssample] | Lists the access keys for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListKeys.json | +| [databaseAccountsListMetricDefinitionsSample.js][databaseaccountslistmetricdefinitionssample] | Retrieves metric definitions for the given database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json | +| [databaseAccountsListMetricsSample.js][databaseaccountslistmetricssample] | Retrieves the metrics determined by the given filter for the given database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetMetrics.json | +| [databaseAccountsListReadOnlyKeysSample.js][databaseaccountslistreadonlykeyssample] | Lists the read-only access keys for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json | +| [databaseAccountsListSample.js][databaseaccountslistsample] | Lists all the Azure Cosmos DB database accounts available under the subscription. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountList.json | +| [databaseAccountsListUsagesSample.js][databaseaccountslistusagessample] | Retrieves the usages (most recent data) for the given database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetUsages.json | +| [databaseAccountsOfflineRegionSample.js][databaseaccountsofflineregionsample] | Offline the specified region for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountOfflineRegion.json | +| [databaseAccountsOnlineRegionSample.js][databaseaccountsonlineregionsample] | Online the specified region for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountOnlineRegion.json | +| [databaseAccountsRegenerateKeySample.js][databaseaccountsregeneratekeysample] | Regenerates an access key for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountRegenerateKey.json | +| [databaseAccountsUpdateSample.js][databaseaccountsupdatesample] | Updates the properties of an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountPatch.json | +| [databaseListMetricDefinitionsSample.js][databaselistmetricdefinitionssample] | Retrieves metric definitions for the given database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetMetricDefinitions.json | +| [databaseListMetricsSample.js][databaselistmetricssample] | Retrieves the metrics determined by the given filter for the given database account and database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetMetrics.json | +| [databaseListUsagesSample.js][databaselistusagessample] | Retrieves the usages (most recent data) for the given database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetUsages.json | +| [gremlinResourcesCreateUpdateGremlinDatabaseSample.js][gremlinresourcescreateupdategremlindatabasesample] | Create or update an Azure Cosmos DB Gremlin database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json | +| [gremlinResourcesCreateUpdateGremlinGraphSample.js][gremlinresourcescreateupdategremlingraphsample] | Create or update an Azure Cosmos DB Gremlin graph x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphCreateUpdate.json | +| [gremlinResourcesDeleteGremlinDatabaseSample.js][gremlinresourcesdeletegremlindatabasesample] | Deletes an existing Azure Cosmos DB Gremlin database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseDelete.json | +| [gremlinResourcesDeleteGremlinGraphSample.js][gremlinresourcesdeletegremlingraphsample] | Deletes an existing Azure Cosmos DB Gremlin graph. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphDelete.json | +| [gremlinResourcesGetGremlinDatabaseSample.js][gremlinresourcesgetgremlindatabasesample] | Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseGet.json | +| [gremlinResourcesGetGremlinDatabaseThroughputSample.js][gremlinresourcesgetgremlindatabasethroughputsample] | Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseThroughputGet.json | +| [gremlinResourcesGetGremlinGraphSample.js][gremlinresourcesgetgremlingraphsample] | Gets the Gremlin graph under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphGet.json | +| [gremlinResourcesGetGremlinGraphThroughputSample.js][gremlinresourcesgetgremlingraphthroughputsample] | Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphThroughputGet.json | +| [gremlinResourcesListGremlinDatabasesSample.js][gremlinresourceslistgremlindatabasessample] | Lists the Gremlin databases under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseList.json | +| [gremlinResourcesListGremlinGraphsSample.js][gremlinresourceslistgremlingraphssample] | Lists the Gremlin graph under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphList.json | +| [gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.js][gremlinresourcesmigrategremlindatabasetoautoscalesample] | Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json | +| [gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.js][gremlinresourcesmigrategremlindatabasetomanualthroughputsample] | Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json | +| [gremlinResourcesMigrateGremlinGraphToAutoscaleSample.js][gremlinresourcesmigrategremlingraphtoautoscalesample] | Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json | +| [gremlinResourcesMigrateGremlinGraphToManualThroughputSample.js][gremlinresourcesmigrategremlingraphtomanualthroughputsample] | Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json | +| [gremlinResourcesRetrieveContinuousBackupInformationSample.js][gremlinresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a gremlin graph. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphBackupInformation.json | +| [gremlinResourcesUpdateGremlinDatabaseThroughputSample.js][gremlinresourcesupdategremlindatabasethroughputsample] | Update RUs per second of an Azure Cosmos DB Gremlin database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json | +| [gremlinResourcesUpdateGremlinGraphThroughputSample.js][gremlinresourcesupdategremlingraphthroughputsample] | Update RUs per second of an Azure Cosmos DB Gremlin graph x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphThroughputUpdate.json | +| [locationsGetSample.js][locationsgetsample] | Get the properties of an existing Cosmos DB location x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBLocationGet.json | +| [locationsListSample.js][locationslistsample] | List Cosmos DB locations and their properties x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBLocationList.json | +| [mongoDbResourcesCreateUpdateMongoDbcollectionSample.js][mongodbresourcescreateupdatemongodbcollectionsample] | Create or update an Azure Cosmos DB MongoDB Collection x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json | +| [mongoDbResourcesCreateUpdateMongoDbdatabaseSample.js][mongodbresourcescreateupdatemongodbdatabasesample] | Create or updates Azure Cosmos DB MongoDB database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json | +| [mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.js][mongodbresourcescreateupdatemongoroledefinitionsample] | Creates or updates an Azure Cosmos DB Mongo Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json | +| [mongoDbResourcesCreateUpdateMongoUserDefinitionSample.js][mongodbresourcescreateupdatemongouserdefinitionsample] | Creates or updates an Azure Cosmos DB Mongo User Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json | +| [mongoDbResourcesDeleteMongoDbcollectionSample.js][mongodbresourcesdeletemongodbcollectionsample] | Deletes an existing Azure Cosmos DB MongoDB Collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionDelete.json | +| [mongoDbResourcesDeleteMongoDbdatabaseSample.js][mongodbresourcesdeletemongodbdatabasesample] | Deletes an existing Azure Cosmos DB MongoDB database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseDelete.json | +| [mongoDbResourcesDeleteMongoRoleDefinitionSample.js][mongodbresourcesdeletemongoroledefinitionsample] | Deletes an existing Azure Cosmos DB Mongo Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionDelete.json | +| [mongoDbResourcesDeleteMongoUserDefinitionSample.js][mongodbresourcesdeletemongouserdefinitionsample] | Deletes an existing Azure Cosmos DB Mongo User Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionDelete.json | +| [mongoDbResourcesGetMongoDbcollectionSample.js][mongodbresourcesgetmongodbcollectionsample] | Gets the MongoDB collection under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionGet.json | +| [mongoDbResourcesGetMongoDbcollectionThroughputSample.js][mongodbresourcesgetmongodbcollectionthroughputsample] | Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionThroughputGet.json | +| [mongoDbResourcesGetMongoDbdatabaseSample.js][mongodbresourcesgetmongodbdatabasesample] | Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseGet.json | +| [mongoDbResourcesGetMongoDbdatabaseThroughputSample.js][mongodbresourcesgetmongodbdatabasethroughputsample] | Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json | +| [mongoDbResourcesGetMongoRoleDefinitionSample.js][mongodbresourcesgetmongoroledefinitionsample] | Retrieves the properties of an existing Azure Cosmos DB Mongo Role Definition with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionGet.json | +| [mongoDbResourcesGetMongoUserDefinitionSample.js][mongodbresourcesgetmongouserdefinitionsample] | Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionGet.json | +| [mongoDbResourcesListMongoDbcollectionsSample.js][mongodbresourceslistmongodbcollectionssample] | Lists the MongoDB collection under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionList.json | +| [mongoDbResourcesListMongoDbdatabasesSample.js][mongodbresourceslistmongodbdatabasessample] | Lists the MongoDB databases under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseList.json | +| [mongoDbResourcesListMongoRoleDefinitionsSample.js][mongodbresourceslistmongoroledefinitionssample] | Retrieves the list of all Azure Cosmos DB Mongo Role Definitions. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionList.json | +| [mongoDbResourcesListMongoUserDefinitionsSample.js][mongodbresourceslistmongouserdefinitionssample] | Retrieves the list of all Azure Cosmos DB Mongo User Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionList.json | +| [mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.js][mongodbresourcesmigratemongodbcollectiontoautoscalesample] | Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json | +| [mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.js][mongodbresourcesmigratemongodbcollectiontomanualthroughputsample] | Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json | +| [mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.js][mongodbresourcesmigratemongodbdatabasetoautoscalesample] | Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json | +| [mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.js][mongodbresourcesmigratemongodbdatabasetomanualthroughputsample] | Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json | +| [mongoDbResourcesRetrieveContinuousBackupInformationSample.js][mongodbresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a Mongodb collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionBackupInformation.json | +| [mongoDbResourcesUpdateMongoDbcollectionThroughputSample.js][mongodbresourcesupdatemongodbcollectionthroughputsample] | Update the RUs per second of an Azure Cosmos DB MongoDB collection x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json | +| [mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.js][mongodbresourcesupdatemongodbdatabasethroughputsample] | Update RUs per second of the an Azure Cosmos DB MongoDB database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json | +| [notebookWorkspacesCreateOrUpdateSample.js][notebookworkspacescreateorupdatesample] | Creates the notebook workspace for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceCreate.json | +| [notebookWorkspacesDeleteSample.js][notebookworkspacesdeletesample] | Deletes the notebook workspace for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceDelete.json | +| [notebookWorkspacesGetSample.js][notebookworkspacesgetsample] | Gets the notebook workspace for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceGet.json | +| [notebookWorkspacesListByDatabaseAccountSample.js][notebookworkspaceslistbydatabaseaccountsample] | Gets the notebook workspace resources of an existing Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceList.json | +| [notebookWorkspacesListConnectionInfoSample.js][notebookworkspaceslistconnectioninfosample] | Retrieves the connection info for the notebook workspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json | +| [notebookWorkspacesRegenerateAuthTokenSample.js][notebookworkspacesregenerateauthtokensample] | Regenerates the auth token for the notebook workspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json | +| [notebookWorkspacesStartSample.js][notebookworkspacesstartsample] | Starts the notebook workspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceStart.json | +| [operationsListSample.js][operationslistsample] | Lists all of the available Cosmos DB Resource Provider operations. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBOperationsList.json | +| [partitionKeyRangeIdListMetricsSample.js][partitionkeyrangeidlistmetricssample] | Retrieves the metrics determined by the given filter for the given partition key range id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPKeyRangeIdGetMetrics.json | +| [partitionKeyRangeIdRegionListMetricsSample.js][partitionkeyrangeidregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given partition key range id and region. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json | +| [percentileListMetricsSample.js][percentilelistmetricssample] | Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileGetMetrics.json | +| [percentileSourceTargetListMetricsSample.js][percentilesourcetargetlistmetricssample] | Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json | +| [percentileTargetListMetricsSample.js][percentiletargetlistmetricssample] | Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileTargetGetMetrics.json | +| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection with a given name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json | +| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection with a given name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionDelete.json | +| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets a private endpoint connection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionGet.json | +| [privateEndpointConnectionsListByDatabaseAccountSample.js][privateendpointconnectionslistbydatabaseaccountsample] | List all private endpoint connections on a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionListGet.json | +| [privateLinkResourcesGetSample.js][privatelinkresourcesgetsample] | Gets the private link resources that need to be created for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateLinkResourceGet.json | +| [privateLinkResourcesListByDatabaseAccountSample.js][privatelinkresourceslistbydatabaseaccountsample] | Gets the private link resources that need to be created for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateLinkResourceListGet.json | +| [restorableDatabaseAccountsGetByLocationSample.js][restorabledatabaseaccountsgetbylocationsample] | Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/\*' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountGet.json | +| [restorableDatabaseAccountsListByLocationSample.js][restorabledatabaseaccountslistbylocationsample] | Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountList.json | +| [restorableDatabaseAccountsListSample.js][restorabledatabaseaccountslistsample] | Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json | +| [restorableGremlinDatabasesListSample.js][restorablegremlindatabaseslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinDatabaseList.json | +| [restorableGremlinGraphsListSample.js][restorablegremlingraphslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin graphs under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinGraphList.json | +| [restorableGremlinResourcesListSample.js][restorablegremlinresourceslistsample] | Return a list of gremlin database and graphs combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinResourceList.json | +| [restorableMongodbCollectionsListSample.js][restorablemongodbcollectionslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbCollectionList.json | +| [restorableMongodbDatabasesListSample.js][restorablemongodbdatabaseslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbDatabaseList.json | +| [restorableMongodbResourcesListSample.js][restorablemongodbresourceslistsample] | Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbResourceList.json | +| [restorableSqlContainersListSample.js][restorablesqlcontainerslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlContainerList.json | +| [restorableSqlDatabasesListSample.js][restorablesqldatabaseslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlDatabaseList.json | +| [restorableSqlResourcesListSample.js][restorablesqlresourceslistsample] | Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlResourceList.json | +| [restorableTableResourcesListSample.js][restorabletableresourceslistsample] | Return a list of tables that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableTableResourceList.json | +| [restorableTablesListSample.js][restorabletableslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB Tables. This helps in scenario where table was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableTableList.json | +| [serviceCreateSample.js][servicecreatesample] | Creates a service. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceCreate.json | +| [serviceDeleteSample.js][servicedeletesample] | Deletes service with the given serviceName. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceDelete.json | +| [serviceGetSample.js][servicegetsample] | Gets the status of service. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceGet.json | +| [serviceListSample.js][servicelistsample] | Gets the status of service. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBServicesList.json | +| [sqlResourcesCreateUpdateClientEncryptionKeySample.js][sqlresourcescreateupdateclientencryptionkeysample] | Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly). x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json | +| [sqlResourcesCreateUpdateSqlContainerSample.js][sqlresourcescreateupdatesqlcontainersample] | Create or update an Azure Cosmos DB SQL container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerCreateUpdate.json | +| [sqlResourcesCreateUpdateSqlDatabaseSample.js][sqlresourcescreateupdatesqldatabasesample] | Create or update an Azure Cosmos DB SQL database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseCreateUpdate.json | +| [sqlResourcesCreateUpdateSqlRoleAssignmentSample.js][sqlresourcescreateupdatesqlroleassignmentsample] | Creates or updates an Azure Cosmos DB SQL Role Assignment. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json | +| [sqlResourcesCreateUpdateSqlRoleDefinitionSample.js][sqlresourcescreateupdatesqlroledefinitionsample] | Creates or updates an Azure Cosmos DB SQL Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json | +| [sqlResourcesCreateUpdateSqlStoredProcedureSample.js][sqlresourcescreateupdatesqlstoredproceduresample] | Create or update an Azure Cosmos DB SQL storedProcedure x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json | +| [sqlResourcesCreateUpdateSqlTriggerSample.js][sqlresourcescreateupdatesqltriggersample] | Create or update an Azure Cosmos DB SQL trigger x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerCreateUpdate.json | +| [sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.js][sqlresourcescreateupdatesqluserdefinedfunctionsample] | Create or update an Azure Cosmos DB SQL userDefinedFunction x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json | +| [sqlResourcesDeleteSqlContainerSample.js][sqlresourcesdeletesqlcontainersample] | Deletes an existing Azure Cosmos DB SQL container. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerDelete.json | +| [sqlResourcesDeleteSqlDatabaseSample.js][sqlresourcesdeletesqldatabasesample] | Deletes an existing Azure Cosmos DB SQL database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseDelete.json | +| [sqlResourcesDeleteSqlRoleAssignmentSample.js][sqlresourcesdeletesqlroleassignmentsample] | Deletes an existing Azure Cosmos DB SQL Role Assignment. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentDelete.json | +| [sqlResourcesDeleteSqlRoleDefinitionSample.js][sqlresourcesdeletesqlroledefinitionsample] | Deletes an existing Azure Cosmos DB SQL Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionDelete.json | +| [sqlResourcesDeleteSqlStoredProcedureSample.js][sqlresourcesdeletesqlstoredproceduresample] | Deletes an existing Azure Cosmos DB SQL storedProcedure. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureDelete.json | +| [sqlResourcesDeleteSqlTriggerSample.js][sqlresourcesdeletesqltriggersample] | Deletes an existing Azure Cosmos DB SQL trigger. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerDelete.json | +| [sqlResourcesDeleteSqlUserDefinedFunctionSample.js][sqlresourcesdeletesqluserdefinedfunctionsample] | Deletes an existing Azure Cosmos DB SQL userDefinedFunction. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json | +| [sqlResourcesGetClientEncryptionKeySample.js][sqlresourcesgetclientencryptionkeysample] | Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeyGet.json | +| [sqlResourcesGetSqlContainerSample.js][sqlresourcesgetsqlcontainersample] | Gets the SQL container under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerGet.json | +| [sqlResourcesGetSqlContainerThroughputSample.js][sqlresourcesgetsqlcontainerthroughputsample] | Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerThroughputGet.json | +| [sqlResourcesGetSqlDatabaseSample.js][sqlresourcesgetsqldatabasesample] | Gets the SQL database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseGet.json | +| [sqlResourcesGetSqlDatabaseThroughputSample.js][sqlresourcesgetsqldatabasethroughputsample] | Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseThroughputGet.json | +| [sqlResourcesGetSqlRoleAssignmentSample.js][sqlresourcesgetsqlroleassignmentsample] | Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentGet.json | +| [sqlResourcesGetSqlRoleDefinitionSample.js][sqlresourcesgetsqlroledefinitionsample] | Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionGet.json | +| [sqlResourcesGetSqlStoredProcedureSample.js][sqlresourcesgetsqlstoredproceduresample] | Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureGet.json | +| [sqlResourcesGetSqlTriggerSample.js][sqlresourcesgetsqltriggersample] | Gets the SQL trigger under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerGet.json | +| [sqlResourcesGetSqlUserDefinedFunctionSample.js][sqlresourcesgetsqluserdefinedfunctionsample] | Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionGet.json | +| [sqlResourcesListClientEncryptionKeysSample.js][sqlresourceslistclientencryptionkeyssample] | Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeysList.json | +| [sqlResourcesListSqlContainersSample.js][sqlresourceslistsqlcontainerssample] | Lists the SQL container under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerList.json | +| [sqlResourcesListSqlDatabasesSample.js][sqlresourceslistsqldatabasessample] | Lists the SQL databases under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseList.json | +| [sqlResourcesListSqlRoleAssignmentsSample.js][sqlresourceslistsqlroleassignmentssample] | Retrieves the list of all Azure Cosmos DB SQL Role Assignments. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentList.json | +| [sqlResourcesListSqlRoleDefinitionsSample.js][sqlresourceslistsqlroledefinitionssample] | Retrieves the list of all Azure Cosmos DB SQL Role Definitions. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionList.json | +| [sqlResourcesListSqlStoredProceduresSample.js][sqlresourceslistsqlstoredproceduressample] | Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureList.json | +| [sqlResourcesListSqlTriggersSample.js][sqlresourceslistsqltriggerssample] | Lists the SQL trigger under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerList.json | +| [sqlResourcesListSqlUserDefinedFunctionsSample.js][sqlresourceslistsqluserdefinedfunctionssample] | Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionList.json | +| [sqlResourcesMigrateSqlContainerToAutoscaleSample.js][sqlresourcesmigratesqlcontainertoautoscalesample] | Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json | +| [sqlResourcesMigrateSqlContainerToManualThroughputSample.js][sqlresourcesmigratesqlcontainertomanualthroughputsample] | Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json | +| [sqlResourcesMigrateSqlDatabaseToAutoscaleSample.js][sqlresourcesmigratesqldatabasetoautoscalesample] | Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json | +| [sqlResourcesMigrateSqlDatabaseToManualThroughputSample.js][sqlresourcesmigratesqldatabasetomanualthroughputsample] | Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json | +| [sqlResourcesRetrieveContinuousBackupInformationSample.js][sqlresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a container resource. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerBackupInformation.json | +| [sqlResourcesUpdateSqlContainerThroughputSample.js][sqlresourcesupdatesqlcontainerthroughputsample] | Update RUs per second of an Azure Cosmos DB SQL container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerThroughputUpdate.json | +| [sqlResourcesUpdateSqlDatabaseThroughputSample.js][sqlresourcesupdatesqldatabasethroughputsample] | Update RUs per second of an Azure Cosmos DB SQL database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json | +| [tableResourcesCreateUpdateTableSample.js][tableresourcescreateupdatetablesample] | Create or update an Azure Cosmos DB Table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableCreateUpdate.json | +| [tableResourcesDeleteTableSample.js][tableresourcesdeletetablesample] | Deletes an existing Azure Cosmos DB Table. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableDelete.json | +| [tableResourcesGetTableSample.js][tableresourcesgettablesample] | Gets the Tables under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableGet.json | +| [tableResourcesGetTableThroughputSample.js][tableresourcesgettablethroughputsample] | Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableThroughputGet.json | +| [tableResourcesListTablesSample.js][tableresourceslisttablessample] | Lists the Tables under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableList.json | +| [tableResourcesMigrateTableToAutoscaleSample.js][tableresourcesmigratetabletoautoscalesample] | Migrate an Azure Cosmos DB Table from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableMigrateToAutoscale.json | +| [tableResourcesMigrateTableToManualThroughputSample.js][tableresourcesmigratetabletomanualthroughputsample] | Migrate an Azure Cosmos DB Table from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableMigrateToManualThroughput.json | +| [tableResourcesRetrieveContinuousBackupInformationSample.js][tableresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a table. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableBackupInformation.json | +| [tableResourcesUpdateTableThroughputSample.js][tableresourcesupdatetablethroughputsample] | Update RUs per second of an Azure Cosmos DB Table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableThroughputUpdate.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node cassandraClustersCreateUpdateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx dev-tool run vendored cross-env COSMOSDB_SUBSCRIPTION_ID="" COSMOSDB_RESOURCE_GROUP="" node cassandraClustersCreateUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[cassandraclusterscreateupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersCreateUpdateSample.js +[cassandraclustersdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersDeallocateSample.js +[cassandraclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersDeleteSample.js +[cassandraclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersGetSample.js +[cassandraclustersinvokecommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersInvokeCommandSample.js +[cassandraclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersListByResourceGroupSample.js +[cassandraclusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersListBySubscriptionSample.js +[cassandraclustersstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersStartSample.js +[cassandraclustersstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersStatusSample.js +[cassandraclustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersUpdateSample.js +[cassandradatacenterscreateupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersCreateUpdateSample.js +[cassandradatacentersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersDeleteSample.js +[cassandradatacentersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersGetSample.js +[cassandradatacenterslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersListSample.js +[cassandradatacentersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersUpdateSample.js +[cassandraresourcescreateupdatecassandrakeyspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesCreateUpdateCassandraKeyspaceSample.js +[cassandraresourcescreateupdatecassandratablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesCreateUpdateCassandraTableSample.js +[cassandraresourcesdeletecassandrakeyspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesDeleteCassandraKeyspaceSample.js +[cassandraresourcesdeletecassandratablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesDeleteCassandraTableSample.js +[cassandraresourcesgetcassandrakeyspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraKeyspaceSample.js +[cassandraresourcesgetcassandrakeyspacethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraKeyspaceThroughputSample.js +[cassandraresourcesgetcassandratablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraTableSample.js +[cassandraresourcesgetcassandratablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraTableThroughputSample.js +[cassandraresourceslistcassandrakeyspacessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesListCassandraKeyspacesSample.js +[cassandraresourceslistcassandratablessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesListCassandraTablesSample.js +[cassandraresourcesmigratecassandrakeyspacetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.js +[cassandraresourcesmigratecassandrakeyspacetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.js +[cassandraresourcesmigratecassandratabletoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraTableToAutoscaleSample.js +[cassandraresourcesmigratecassandratabletomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraTableToManualThroughputSample.js +[cassandraresourcesupdatecassandrakeyspacethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.js +[cassandraresourcesupdatecassandratablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesUpdateCassandraTableThroughputSample.js +[collectionlistmetricdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionListMetricDefinitionsSample.js +[collectionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionListMetricsSample.js +[collectionlistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionListUsagesSample.js +[collectionpartitionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionPartitionListMetricsSample.js +[collectionpartitionlistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionPartitionListUsagesSample.js +[collectionpartitionregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionPartitionRegionListMetricsSample.js +[collectionregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionRegionListMetricsSample.js +[databaseaccountregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountRegionListMetricsSample.js +[databaseaccountschecknameexistssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsCheckNameExistsSample.js +[databaseaccountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsCreateOrUpdateSample.js +[databaseaccountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsDeleteSample.js +[databaseaccountsfailoverprioritychangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsFailoverPriorityChangeSample.js +[databaseaccountsgetreadonlykeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsGetReadOnlyKeysSample.js +[databaseaccountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsGetSample.js +[databaseaccountslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListByResourceGroupSample.js +[databaseaccountslistconnectionstringssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListConnectionStringsSample.js +[databaseaccountslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListKeysSample.js +[databaseaccountslistmetricdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListMetricDefinitionsSample.js +[databaseaccountslistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListMetricsSample.js +[databaseaccountslistreadonlykeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListReadOnlyKeysSample.js +[databaseaccountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListSample.js +[databaseaccountslistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListUsagesSample.js +[databaseaccountsofflineregionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsOfflineRegionSample.js +[databaseaccountsonlineregionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsOnlineRegionSample.js +[databaseaccountsregeneratekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsRegenerateKeySample.js +[databaseaccountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsUpdateSample.js +[databaselistmetricdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseListMetricDefinitionsSample.js +[databaselistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseListMetricsSample.js +[databaselistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseListUsagesSample.js +[gremlinresourcescreateupdategremlindatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesCreateUpdateGremlinDatabaseSample.js +[gremlinresourcescreateupdategremlingraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesCreateUpdateGremlinGraphSample.js +[gremlinresourcesdeletegremlindatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesDeleteGremlinDatabaseSample.js +[gremlinresourcesdeletegremlingraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesDeleteGremlinGraphSample.js +[gremlinresourcesgetgremlindatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinDatabaseSample.js +[gremlinresourcesgetgremlindatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinDatabaseThroughputSample.js +[gremlinresourcesgetgremlingraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinGraphSample.js +[gremlinresourcesgetgremlingraphthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinGraphThroughputSample.js +[gremlinresourceslistgremlindatabasessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesListGremlinDatabasesSample.js +[gremlinresourceslistgremlingraphssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesListGremlinGraphsSample.js +[gremlinresourcesmigrategremlindatabasetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.js +[gremlinresourcesmigrategremlindatabasetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.js +[gremlinresourcesmigrategremlingraphtoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.js +[gremlinresourcesmigrategremlingraphtomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.js +[gremlinresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesRetrieveContinuousBackupInformationSample.js +[gremlinresourcesupdategremlindatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesUpdateGremlinDatabaseThroughputSample.js +[gremlinresourcesupdategremlingraphthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesUpdateGremlinGraphThroughputSample.js +[locationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/locationsGetSample.js +[locationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/locationsListSample.js +[mongodbresourcescreateupdatemongodbcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoDbcollectionSample.js +[mongodbresourcescreateupdatemongodbdatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.js +[mongodbresourcescreateupdatemongoroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.js +[mongodbresourcescreateupdatemongouserdefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.js +[mongodbresourcesdeletemongodbcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoDbcollectionSample.js +[mongodbresourcesdeletemongodbdatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoDbdatabaseSample.js +[mongodbresourcesdeletemongoroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoRoleDefinitionSample.js +[mongodbresourcesdeletemongouserdefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoUserDefinitionSample.js +[mongodbresourcesgetmongodbcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbcollectionSample.js +[mongodbresourcesgetmongodbcollectionthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbcollectionThroughputSample.js +[mongodbresourcesgetmongodbdatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbdatabaseSample.js +[mongodbresourcesgetmongodbdatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbdatabaseThroughputSample.js +[mongodbresourcesgetmongoroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoRoleDefinitionSample.js +[mongodbresourcesgetmongouserdefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoUserDefinitionSample.js +[mongodbresourceslistmongodbcollectionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoDbcollectionsSample.js +[mongodbresourceslistmongodbdatabasessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoDbdatabasesSample.js +[mongodbresourceslistmongoroledefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoRoleDefinitionsSample.js +[mongodbresourceslistmongouserdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoUserDefinitionsSample.js +[mongodbresourcesmigratemongodbcollectiontoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.js +[mongodbresourcesmigratemongodbcollectiontomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.js +[mongodbresourcesmigratemongodbdatabasetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.js +[mongodbresourcesmigratemongodbdatabasetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.js +[mongodbresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesRetrieveContinuousBackupInformationSample.js +[mongodbresourcesupdatemongodbcollectionthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.js +[mongodbresourcesupdatemongodbdatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.js +[notebookworkspacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesCreateOrUpdateSample.js +[notebookworkspacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesDeleteSample.js +[notebookworkspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesGetSample.js +[notebookworkspaceslistbydatabaseaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesListByDatabaseAccountSample.js +[notebookworkspaceslistconnectioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesListConnectionInfoSample.js +[notebookworkspacesregenerateauthtokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesRegenerateAuthTokenSample.js +[notebookworkspacesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesStartSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/operationsListSample.js +[partitionkeyrangeidlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/partitionKeyRangeIdListMetricsSample.js +[partitionkeyrangeidregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/partitionKeyRangeIdRegionListMetricsSample.js +[percentilelistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/percentileListMetricsSample.js +[percentilesourcetargetlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/percentileSourceTargetListMetricsSample.js +[percentiletargetlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/percentileTargetListMetricsSample.js +[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsCreateOrUpdateSample.js +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsDeleteSample.js +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsGetSample.js +[privateendpointconnectionslistbydatabaseaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsListByDatabaseAccountSample.js +[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateLinkResourcesGetSample.js +[privatelinkresourceslistbydatabaseaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateLinkResourcesListByDatabaseAccountSample.js +[restorabledatabaseaccountsgetbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableDatabaseAccountsGetByLocationSample.js +[restorabledatabaseaccountslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableDatabaseAccountsListByLocationSample.js +[restorabledatabaseaccountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableDatabaseAccountsListSample.js +[restorablegremlindatabaseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableGremlinDatabasesListSample.js +[restorablegremlingraphslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableGremlinGraphsListSample.js +[restorablegremlinresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableGremlinResourcesListSample.js +[restorablemongodbcollectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableMongodbCollectionsListSample.js +[restorablemongodbdatabaseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableMongodbDatabasesListSample.js +[restorablemongodbresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableMongodbResourcesListSample.js +[restorablesqlcontainerslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableSqlContainersListSample.js +[restorablesqldatabaseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableSqlDatabasesListSample.js +[restorablesqlresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableSqlResourcesListSample.js +[restorabletableresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableTableResourcesListSample.js +[restorabletableslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableTablesListSample.js +[servicecreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceCreateSample.js +[servicedeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceDeleteSample.js +[servicegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceGetSample.js +[servicelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceListSample.js +[sqlresourcescreateupdateclientencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateClientEncryptionKeySample.js +[sqlresourcescreateupdatesqlcontainersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlContainerSample.js +[sqlresourcescreateupdatesqldatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlDatabaseSample.js +[sqlresourcescreateupdatesqlroleassignmentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlRoleAssignmentSample.js +[sqlresourcescreateupdatesqlroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlRoleDefinitionSample.js +[sqlresourcescreateupdatesqlstoredproceduresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlStoredProcedureSample.js +[sqlresourcescreateupdatesqltriggersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlTriggerSample.js +[sqlresourcescreateupdatesqluserdefinedfunctionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.js +[sqlresourcesdeletesqlcontainersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlContainerSample.js +[sqlresourcesdeletesqldatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlDatabaseSample.js +[sqlresourcesdeletesqlroleassignmentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlRoleAssignmentSample.js +[sqlresourcesdeletesqlroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlRoleDefinitionSample.js +[sqlresourcesdeletesqlstoredproceduresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlStoredProcedureSample.js +[sqlresourcesdeletesqltriggersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlTriggerSample.js +[sqlresourcesdeletesqluserdefinedfunctionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlUserDefinedFunctionSample.js +[sqlresourcesgetclientencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetClientEncryptionKeySample.js +[sqlresourcesgetsqlcontainersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlContainerSample.js +[sqlresourcesgetsqlcontainerthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlContainerThroughputSample.js +[sqlresourcesgetsqldatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlDatabaseSample.js +[sqlresourcesgetsqldatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlDatabaseThroughputSample.js +[sqlresourcesgetsqlroleassignmentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlRoleAssignmentSample.js +[sqlresourcesgetsqlroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlRoleDefinitionSample.js +[sqlresourcesgetsqlstoredproceduresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlStoredProcedureSample.js +[sqlresourcesgetsqltriggersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlTriggerSample.js +[sqlresourcesgetsqluserdefinedfunctionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlUserDefinedFunctionSample.js +[sqlresourceslistclientencryptionkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListClientEncryptionKeysSample.js +[sqlresourceslistsqlcontainerssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlContainersSample.js +[sqlresourceslistsqldatabasessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlDatabasesSample.js +[sqlresourceslistsqlroleassignmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlRoleAssignmentsSample.js +[sqlresourceslistsqlroledefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlRoleDefinitionsSample.js +[sqlresourceslistsqlstoredproceduressample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlStoredProceduresSample.js +[sqlresourceslistsqltriggerssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlTriggersSample.js +[sqlresourceslistsqluserdefinedfunctionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlUserDefinedFunctionsSample.js +[sqlresourcesmigratesqlcontainertoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlContainerToAutoscaleSample.js +[sqlresourcesmigratesqlcontainertomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlContainerToManualThroughputSample.js +[sqlresourcesmigratesqldatabasetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.js +[sqlresourcesmigratesqldatabasetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.js +[sqlresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesRetrieveContinuousBackupInformationSample.js +[sqlresourcesupdatesqlcontainerthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesUpdateSqlContainerThroughputSample.js +[sqlresourcesupdatesqldatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesUpdateSqlDatabaseThroughputSample.js +[tableresourcescreateupdatetablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesCreateUpdateTableSample.js +[tableresourcesdeletetablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesDeleteTableSample.js +[tableresourcesgettablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesGetTableSample.js +[tableresourcesgettablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesGetTableThroughputSample.js +[tableresourceslisttablessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesListTablesSample.js +[tableresourcesmigratetabletoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesMigrateTableToAutoscaleSample.js +[tableresourcesmigratetabletomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesMigrateTableToManualThroughputSample.js +[tableresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesRetrieveContinuousBackupInformationSample.js +[tableresourcesupdatetablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesUpdateTableThroughputSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb/README.md diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersCreateUpdateSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersCreateUpdateSample.js similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersCreateUpdateSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersCreateUpdateSample.js index dc759ea83b0d..b9fd3bf98cbe 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersCreateUpdateSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersCreateUpdateSample.js @@ -16,11 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH. * * @summary Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterCreate.json */ async function cosmosDbManagedCassandraClusterCreate() { const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; const body = { diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersDeallocateSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersDeallocateSample.js similarity index 89% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersDeallocateSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersDeallocateSample.js index 8eda053e94ed..b7ada7bcf8ac 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersDeallocateSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersDeallocateSample.js @@ -16,11 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to 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 already deallocated cluster. Use Start to restart the cluster. * * @summary 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 already deallocated cluster. Use Start to restart the cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterDeallocate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterDeallocate.json */ async function cosmosDbManagedCassandraClusterDeallocate() { const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; const credential = new DefaultAzureCredential(); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersDeleteSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersDeleteSample.js similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersDeleteSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersDeleteSample.js index 333e352f83ed..fdeb0a5f6047 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersDeleteSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a managed Cassandra cluster. * * @summary Deletes a managed Cassandra cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterDelete.json */ async function cosmosDbManagedCassandraClusterDelete() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersGetSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersGetSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersGetSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersGetSample.js index a47d25402ae1..3566f8c70cf6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersGetSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the properties of a managed Cassandra cluster. * * @summary Get the properties of a managed Cassandra cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterGet.json */ async function cosmosDbManagedCassandraClusterGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersInvokeCommandSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersInvokeCommandSample.js similarity index 84% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersInvokeCommandSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersInvokeCommandSample.js index ae6d1613a8b0..30c74dfc0a81 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersInvokeCommandSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersInvokeCommandSample.js @@ -16,16 +16,15 @@ require("dotenv").config(); * This sample demonstrates how to Invoke a command like nodetool for cassandra maintenance * * @summary Invoke a command like nodetool for cassandra maintenance - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommand.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraCommand.json */ async function cosmosDbManagedCassandraCommand() { const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; const body = { - arguments: { status: "" }, - command: "nodetool", + command: "nodetool status", host: "10.0.1.12", }; const credential = new DefaultAzureCredential(); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListByResourceGroupSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersListByResourceGroupSample.js similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListByResourceGroupSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersListByResourceGroupSample.js index ade6c4bf6121..03be7bb3238c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListByResourceGroupSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all managed Cassandra clusters in this resource group. * * @summary List all managed Cassandra clusters in this resource group. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json */ async function cosmosDbManagedCassandraClusterListByResourceGroup() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListBySubscriptionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersListBySubscriptionSample.js similarity index 91% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListBySubscriptionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersListBySubscriptionSample.js index 6c9c6149845c..99fd406183cb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListBySubscriptionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all managed Cassandra clusters in this subscription. * * @summary List all managed Cassandra clusters in this subscription. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterListBySubscription.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json */ async function cosmosDbManagedCassandraClusterListBySubscription() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersStartSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersStartSample.js similarity index 89% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersStartSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersStartSample.js index b52017038287..8cee7e883ba3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersStartSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersStartSample.js @@ -16,11 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster. * * @summary Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterStart.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterStart.json */ async function cosmosDbManagedCassandraClusterStart() { const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; const credential = new DefaultAzureCredential(); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersStatusSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersStatusSample.js similarity index 87% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersStatusSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersStatusSample.js index 8c52f6cbcdcd..d423f93c98f0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersStatusSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersStatusSample.js @@ -16,11 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster. * * @summary Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraStatus.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraStatus.json */ async function cosmosDbManagedCassandraStatus() { const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; const credential = new DefaultAzureCredential(); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersUpdateSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersUpdateSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersUpdateSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersUpdateSample.js index c3c9f17a3520..3e832bee71f6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersUpdateSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraClustersUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates some of the properties of a managed Cassandra cluster. * * @summary Updates some of the properties of a managed Cassandra cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterPatch.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterPatch.json */ async function cosmosDbManagedCassandraClusterPatch() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersCreateUpdateSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersCreateUpdateSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersCreateUpdateSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersCreateUpdateSample.js index 039fa564412d..8c2cc790ffef 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersCreateUpdateSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersCreateUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH. * * @summary Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterCreate.json */ async function cosmosDbManagedCassandraDataCenterCreate() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersDeleteSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersDeleteSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersDeleteSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersDeleteSample.js index e553bdf3f01d..92ed4b1fddba 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersDeleteSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a managed Cassandra data center. * * @summary Delete a managed Cassandra data center. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterDelete.json */ async function cosmosDbManagedCassandraDataCenterDelete() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersGetSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersGetSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersGetSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersGetSample.js index a21059c9bf87..becaeb9348b8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersGetSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the properties of a managed Cassandra data center. * * @summary Get the properties of a managed Cassandra data center. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterGet.json */ async function cosmosDbManagedCassandraDataCenterGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersListSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersListSample.js index ea740799ee53..eadfb139da3c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all data centers in a particular managed Cassandra cluster. * * @summary List all data centers in a particular managed Cassandra cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterList.json */ async function cosmosDbManagedCassandraDataCenterList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersUpdateSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersUpdateSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersUpdateSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersUpdateSample.js index 3c04381f9805..14a98fdf2a5d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersUpdateSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraDataCentersUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update some of the properties of a managed Cassandra data center. * * @summary Update some of the properties of a managed Cassandra data center. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterPatch.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterPatch.json */ async function cosmosDbManagedCassandraDataCenterUpdate() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesCreateUpdateCassandraKeyspaceSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesCreateUpdateCassandraKeyspaceSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesCreateUpdateCassandraKeyspaceSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesCreateUpdateCassandraKeyspaceSample.js index f283f7dbd25d..75c872a1fd63 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesCreateUpdateCassandraKeyspaceSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesCreateUpdateCassandraKeyspaceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Cassandra keyspace * * @summary Create or update an Azure Cosmos DB Cassandra keyspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json */ async function cosmosDbCassandraKeyspaceCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesCreateUpdateCassandraTableSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesCreateUpdateCassandraTableSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesCreateUpdateCassandraTableSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesCreateUpdateCassandraTableSample.js index f3f30d4be456..7572b969c298 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesCreateUpdateCassandraTableSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesCreateUpdateCassandraTableSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Cassandra Table * * @summary Create or update an Azure Cosmos DB Cassandra Table - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableCreateUpdate.json */ async function cosmosDbCassandraTableCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,6 @@ async function cosmosDbCassandraTableCreateUpdate() { columns: [{ name: "columnA", type: "Ascii" }], partitionKeys: [{ name: "columnA" }], }, - analyticalStorageTtl: 500, defaultTtl: 100, id: "tableName", }, diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesDeleteCassandraKeyspaceSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesDeleteCassandraKeyspaceSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesDeleteCassandraKeyspaceSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesDeleteCassandraKeyspaceSample.js index 80d11a3c39e1..6f047987ac1e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesDeleteCassandraKeyspaceSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesDeleteCassandraKeyspaceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Cassandra keyspace. * * @summary Deletes an existing Azure Cosmos DB Cassandra keyspace. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceDelete.json */ async function cosmosDbCassandraKeyspaceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesDeleteCassandraTableSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesDeleteCassandraTableSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesDeleteCassandraTableSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesDeleteCassandraTableSample.js index e99d097a7898..90e0557713e9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesDeleteCassandraTableSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesDeleteCassandraTableSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Cassandra table. * * @summary Deletes an existing Azure Cosmos DB Cassandra table. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableDelete.json */ async function cosmosDbCassandraTableDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraKeyspaceSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraKeyspaceSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraKeyspaceSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraKeyspaceSample.js index 0c3ff8c984d5..98e2fc5c2414 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraKeyspaceSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraKeyspaceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceGet.json */ async function cosmosDbCassandraKeyspaceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraKeyspaceThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraKeyspaceThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraKeyspaceThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraKeyspaceThroughputSample.js index 2a178173afdd..b4c8bc3fb92f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraKeyspaceThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraKeyspaceThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json */ async function cosmosDbCassandraKeyspaceThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraTableSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraTableSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraTableSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraTableSample.js index 797941618388..09b1283dbf61 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraTableSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraTableSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the Cassandra table under an existing Azure Cosmos DB database account. * * @summary Gets the Cassandra table under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableGet.json */ async function cosmosDbCassandraTableGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraTableThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraTableThroughputSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraTableThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraTableThroughputSample.js index 7f4ce15b212d..dc70546f10bf 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraTableThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesGetCassandraTableThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableThroughputGet.json */ async function cosmosDbCassandraTableThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesListCassandraKeyspacesSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesListCassandraKeyspacesSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesListCassandraKeyspacesSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesListCassandraKeyspacesSample.js index dccb3681282f..2a3b276b60d4 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesListCassandraKeyspacesSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesListCassandraKeyspacesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. * * @summary Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceList.json */ async function cosmosDbCassandraKeyspaceList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesListCassandraTablesSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesListCassandraTablesSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesListCassandraTablesSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesListCassandraTablesSample.js index 614963843342..56032010ba7e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesListCassandraTablesSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesListCassandraTablesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the Cassandra table under an existing Azure Cosmos DB database account. * * @summary Lists the Cassandra table under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableList.json */ async function cosmosDbCassandraTableList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.js index c88f502ef714..188d47c3e3f6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json */ async function cosmosDbCassandraKeyspaceMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.js similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.js index c4320bf14085..a90830bb40bc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json */ async function cosmosDbCassandraKeyspaceMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraTableToAutoscaleSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraTableToAutoscaleSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraTableToAutoscaleSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraTableToAutoscaleSample.js index fa630420e68b..8cf37c1ccbd0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraTableToAutoscaleSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraTableToAutoscaleSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json */ async function cosmosDbCassandraTableMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraTableToManualThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraTableToManualThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraTableToManualThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraTableToManualThroughputSample.js index eb96715630c6..2fb2d22f9345 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraTableToManualThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesMigrateCassandraTableToManualThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json */ async function cosmosDbCassandraTableMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.js index 2574dddb76b2..4df94f50fe18 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Cassandra Keyspace * * @summary Update RUs per second of an Azure Cosmos DB Cassandra Keyspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json */ async function cosmosDbCassandraKeyspaceThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesUpdateCassandraTableThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesUpdateCassandraTableThroughputSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesUpdateCassandraTableThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesUpdateCassandraTableThroughputSample.js index cf89714091d2..ddc84da0b7bd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesUpdateCassandraTableThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/cassandraResourcesUpdateCassandraTableThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Cassandra table * * @summary Update RUs per second of an Azure Cosmos DB Cassandra table - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableThroughputUpdate.json */ async function cosmosDbCassandraTableThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionListMetricDefinitionsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionListMetricDefinitionsSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionListMetricDefinitionsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionListMetricDefinitionsSample.js index 1d1d35c8dda2..4c7ac855a649 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionListMetricDefinitionsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionListMetricDefinitionsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves metric definitions for the given collection. * * @summary Retrieves metric definitions for the given collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetMetricDefinitions.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetMetricDefinitions.json */ async function cosmosDbCollectionGetMetricDefinitions() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionListMetricsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionListMetricsSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionListMetricsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionListMetricsSample.js index 3283cc716161..bc2c1612c4f0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionListMetricsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionListMetricsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account and collection. * * @summary Retrieves the metrics determined by the given filter for the given database account and collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetMetrics.json */ async function cosmosDbCollectionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionListUsagesSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionListUsagesSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionListUsagesSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionListUsagesSample.js index d4d418edf87f..57ac3cd4bfe9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionListUsagesSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionListUsagesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the usages (most recent storage data) for the given collection. * * @summary Retrieves the usages (most recent storage data) for the given collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetUsages.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetUsages.json */ async function cosmosDbCollectionGetUsages() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionPartitionListMetricsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionPartitionListMetricsSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionPartitionListMetricsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionPartitionListMetricsSample.js index 7b1cd40da23a..4dcb270f8b6c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionPartitionListMetricsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionPartitionListMetricsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given collection, split by partition. * * @summary Retrieves the metrics determined by the given filter for the given collection, split by partition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionPartitionListUsagesSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionPartitionListUsagesSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionPartitionListUsagesSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionPartitionListUsagesSample.js index 08bf6ae5c485..a4d77dd966fa 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionPartitionListUsagesSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionPartitionListUsagesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the usages (most recent storage data) for the given collection, split by partition. * * @summary Retrieves the usages (most recent storage data) for the given collection, split by partition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionGetUsages.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionGetUsages.json */ async function cosmosDbCollectionGetUsages() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionPartitionRegionListMetricsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionPartitionRegionListMetricsSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionPartitionRegionListMetricsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionPartitionRegionListMetricsSample.js index 94749dfd1683..935206c99c42 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionPartitionRegionListMetricsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionPartitionRegionListMetricsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given collection and region, split by partition. * * @summary Retrieves the metrics determined by the given filter for the given collection and region, split by partition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionRegionListMetricsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionRegionListMetricsSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionRegionListMetricsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionRegionListMetricsSample.js index 994d891a11e9..c1f64fb6f1c2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionRegionListMetricsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/collectionRegionListMetricsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account, collection and region. * * @summary Retrieves the metrics determined by the given filter for the given database account, collection and region. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRegionCollectionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRegionCollectionGetMetrics.json */ async function cosmosDbRegionCollectionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountRegionListMetricsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountRegionListMetricsSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountRegionListMetricsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountRegionListMetricsSample.js index 941e6f8e603f..dddb22d2e741 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountRegionListMetricsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountRegionListMetricsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account and region. * * @summary Retrieves the metrics determined by the given filter for the given database account and region. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsCheckNameExistsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsCheckNameExistsSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsCheckNameExistsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsCheckNameExistsSample.js index 4f2e1a236d9e..a67689832f97 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsCheckNameExistsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsCheckNameExistsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters. * * @summary Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountCheckNameExists.json */ async function cosmosDbDatabaseAccountCheckNameExists() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsCreateOrUpdateSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsCreateOrUpdateSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsCreateOrUpdateSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsCreateOrUpdateSample.js index 4cf277dfdbfb..51cfc4b060ec 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsCreateOrUpdateSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. * * @summary Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountCreateMax.json */ async function cosmosDbDatabaseAccountCreateMax() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -34,7 +34,6 @@ async function cosmosDbDatabaseAccountCreateMax() { }, }, capacity: { totalThroughputLimit: 2000 }, - capacityMode: "Provisioned", consistencyPolicy: { defaultConsistencyLevel: "BoundedStaleness", maxIntervalInSeconds: 10, @@ -44,13 +43,10 @@ async function cosmosDbDatabaseAccountCreateMax() { createMode: "Default", databaseAccountOfferType: "Standard", defaultIdentity: "FirstPartyIdentity", - defaultPriorityLevel: "Low", enableAnalyticalStorage: true, enableBurstCapacity: true, enableFreeTier: false, - enableMaterializedViews: false, enablePerRegionPerPartitionAutoscale: true, - enablePriorityBasedExecution: true, identity: { type: "SystemAssigned,UserAssigned", userAssignedIdentities: { @@ -99,7 +95,7 @@ async function cosmosDbDatabaseAccountCreateMax() { * This sample demonstrates how to Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. * * @summary Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountCreateMin.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountCreateMin.json */ async function cosmosDbDatabaseAccountCreateMin() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -131,7 +127,7 @@ async function cosmosDbDatabaseAccountCreateMin() { * This sample demonstrates how to Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. * * @summary Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json */ async function cosmosDbRestoreDatabaseAccountCreateUpdateJson() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -152,7 +148,6 @@ async function cosmosDbRestoreDatabaseAccountCreateUpdateJson() { databaseAccountOfferType: "Standard", enableAnalyticalStorage: true, enableFreeTier: false, - enableMaterializedViews: false, keyVaultKeyUri: "https://myKeyVault.vault.azure.net", kind: "GlobalDocumentDB", location: "westus", @@ -180,7 +175,6 @@ async function cosmosDbRestoreDatabaseAccountCreateUpdateJson() { "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/1a97b4bb-f6a0-430e-ade1-638d781830cc", restoreTimestampInUtc: new Date("2021-03-11T22:05:09Z"), restoreWithTtlDisabled: false, - sourceBackupLocation: "westus", }, tags: {}, }; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsDeleteSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsDeleteSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsDeleteSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsDeleteSample.js index bca3af994abf..5eec7aaca868 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsDeleteSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB database account. * * @summary Deletes an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountDelete.json */ async function cosmosDbDatabaseAccountDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsFailoverPriorityChangeSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsFailoverPriorityChangeSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsFailoverPriorityChangeSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsFailoverPriorityChangeSample.js index 5c9b06f4e732..e03b58f1a047 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsFailoverPriorityChangeSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsFailoverPriorityChangeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. * * @summary Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json */ async function cosmosDbDatabaseAccountFailoverPriorityChange() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsGetReadOnlyKeysSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsGetReadOnlyKeysSample.js similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsGetReadOnlyKeysSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsGetReadOnlyKeysSample.js index 01ec2b649326..7ed19166ab2f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsGetReadOnlyKeysSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsGetReadOnlyKeysSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the read-only access keys for the specified Azure Cosmos DB database account. * * @summary Lists the read-only access keys for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json */ async function cosmosDbDatabaseAccountListReadOnlyKeys() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsGetSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsGetSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsGetSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsGetSample.js index 9ea9ca64c2d4..bc52be9e90cd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsGetSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB database account. * * @summary Retrieves the properties of an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGet.json */ async function cosmosDbDatabaseAccountGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListByResourceGroupSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListByResourceGroupSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListByResourceGroupSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListByResourceGroupSample.js index 2f99e10b557d..6604863eba9f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListByResourceGroupSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the Azure Cosmos DB database accounts available under the given resource group. * * @summary Lists all the Azure Cosmos DB database accounts available under the given resource group. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json */ async function cosmosDbDatabaseAccountListByResourceGroup() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListConnectionStringsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListConnectionStringsSample.js similarity index 91% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListConnectionStringsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListConnectionStringsSample.js index 5173986db85d..486628d9f778 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListConnectionStringsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListConnectionStringsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the connection strings for the specified Azure Cosmos DB database account. * * @summary Lists the connection strings for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json */ async function cosmosDbDatabaseAccountListConnectionStrings() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -35,7 +35,7 @@ async function cosmosDbDatabaseAccountListConnectionStrings() { * This sample demonstrates how to Lists the connection strings for the specified Azure Cosmos DB database account. * * @summary Lists the connection strings for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json */ async function cosmosDbDatabaseAccountListConnectionStringsMongo() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListKeysSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListKeysSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListKeysSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListKeysSample.js index f5020fc4f1d8..9eba471449e5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListKeysSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListKeysSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the access keys for the specified Azure Cosmos DB database account. * * @summary Lists the access keys for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListKeys.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListKeys.json */ async function cosmosDbDatabaseAccountListKeys() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListMetricDefinitionsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListMetricDefinitionsSample.js similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListMetricDefinitionsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListMetricDefinitionsSample.js index 8566955b791f..3a8933cc23d6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListMetricDefinitionsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListMetricDefinitionsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves metric definitions for the given database account. * * @summary Retrieves metric definitions for the given database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json */ async function cosmosDbDatabaseAccountGetMetricDefinitions() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListMetricsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListMetricsSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListMetricsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListMetricsSample.js index 41b235c6529e..ed94f5fddfd4 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListMetricsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListMetricsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account. * * @summary Retrieves the metrics determined by the given filter for the given database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetMetrics.json */ async function cosmosDbDatabaseAccountGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListReadOnlyKeysSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListReadOnlyKeysSample.js similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListReadOnlyKeysSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListReadOnlyKeysSample.js index 1743d1f7e2dc..0a07d7188641 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListReadOnlyKeysSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListReadOnlyKeysSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the read-only access keys for the specified Azure Cosmos DB database account. * * @summary Lists the read-only access keys for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json */ async function cosmosDbDatabaseAccountListReadOnlyKeys() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListSample.js index ef07d72b1db1..3d35a656a638 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the Azure Cosmos DB database accounts available under the subscription. * * @summary Lists all the Azure Cosmos DB database accounts available under the subscription. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountList.json */ async function cosmosDbDatabaseAccountList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListUsagesSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListUsagesSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListUsagesSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListUsagesSample.js index 3a23226f1c18..ce296c465d90 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListUsagesSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsListUsagesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the usages (most recent data) for the given database account. * * @summary Retrieves the usages (most recent data) for the given database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetUsages.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetUsages.json */ async function cosmosDbDatabaseAccountGetUsages() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsOfflineRegionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsOfflineRegionSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsOfflineRegionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsOfflineRegionSample.js index d3c74f447686..c3542abbe5e7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsOfflineRegionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsOfflineRegionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Offline the specified region for the specified Azure Cosmos DB database account. * * @summary Offline the specified region for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountOfflineRegion.json */ async function cosmosDbDatabaseAccountOfflineRegion() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsOnlineRegionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsOnlineRegionSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsOnlineRegionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsOnlineRegionSample.js index 8f8aa121886d..2c5565f9d774 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsOnlineRegionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsOnlineRegionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Online the specified region for the specified Azure Cosmos DB database account. * * @summary Online the specified region for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountOnlineRegion.json */ async function cosmosDbDatabaseAccountOnlineRegion() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsRegenerateKeySample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsRegenerateKeySample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsRegenerateKeySample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsRegenerateKeySample.js index 61c7ad499700..ad241fc09daa 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsRegenerateKeySample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsRegenerateKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Regenerates an access key for the specified Azure Cosmos DB database account. * * @summary Regenerates an access key for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountRegenerateKey.json */ async function cosmosDbDatabaseAccountRegenerateKey() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsUpdateSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsUpdateSample.js similarity index 90% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsUpdateSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsUpdateSample.js index 0ef3096cf59f..0a00976fa205 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsUpdateSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseAccountsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the properties of an existing Azure Cosmos DB database account. * * @summary Updates the properties of an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountPatch.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountPatch.json */ async function cosmosDbDatabaseAccountPatch() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -29,25 +29,21 @@ async function cosmosDbDatabaseAccountPatch() { periodicModeProperties: { backupIntervalInMinutes: 240, backupRetentionIntervalInHours: 720, - backupStorageRedundancy: "Geo", + backupStorageRedundancy: "Local", }, }, capacity: { totalThroughputLimit: 2000 }, - capacityMode: "Provisioned", consistencyPolicy: { defaultConsistencyLevel: "BoundedStaleness", maxIntervalInSeconds: 10, maxStalenessPrefix: 200, }, defaultIdentity: "FirstPartyIdentity", - defaultPriorityLevel: "Low", - diagnosticLogSettings: { enableFullTextQuery: "True" }, enableAnalyticalStorage: true, enableBurstCapacity: true, enableFreeTier: false, enablePartitionMerge: true, enablePerRegionPerPartitionAutoscale: true, - enablePriorityBasedExecution: true, identity: { type: "SystemAssigned,UserAssigned", userAssignedIdentities: { diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseListMetricDefinitionsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseListMetricDefinitionsSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseListMetricDefinitionsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseListMetricDefinitionsSample.js index 1ec0f5bc887e..b1afc78064f6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseListMetricDefinitionsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseListMetricDefinitionsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves metric definitions for the given database. * * @summary Retrieves metric definitions for the given database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetMetricDefinitions.json */ async function cosmosDbDatabaseGetMetricDefinitions() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseListMetricsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseListMetricsSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseListMetricsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseListMetricsSample.js index 159b7e2d4b75..3f43a4147c5e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseListMetricsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseListMetricsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account and database. * * @summary Retrieves the metrics determined by the given filter for the given database account and database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetMetrics.json */ async function cosmosDbDatabaseGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseListUsagesSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseListUsagesSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseListUsagesSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseListUsagesSample.js index 1dc59dc37142..14fc2168d90f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseListUsagesSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/databaseListUsagesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the usages (most recent data) for the given database. * * @summary Retrieves the usages (most recent data) for the given database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetUsages.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetUsages.json */ async function cosmosDbDatabaseGetUsages() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesCreateUpdateGremlinDatabaseSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesCreateUpdateGremlinDatabaseSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesCreateUpdateGremlinDatabaseSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesCreateUpdateGremlinDatabaseSample.js index 6e5fe7a60fb7..f108fd6366a5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesCreateUpdateGremlinDatabaseSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesCreateUpdateGremlinDatabaseSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Gremlin database * * @summary Create or update an Azure Cosmos DB Gremlin database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json */ async function cosmosDbGremlinDatabaseCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesCreateUpdateGremlinGraphSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesCreateUpdateGremlinGraphSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesCreateUpdateGremlinGraphSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesCreateUpdateGremlinGraphSample.js index d855cccc85cb..18076e859b7d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesCreateUpdateGremlinGraphSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesCreateUpdateGremlinGraphSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Gremlin graph * * @summary Create or update an Azure Cosmos DB Gremlin graph - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphCreateUpdate.json */ async function cosmosDbGremlinGraphCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesDeleteGremlinDatabaseSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesDeleteGremlinDatabaseSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesDeleteGremlinDatabaseSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesDeleteGremlinDatabaseSample.js index fd34fe742ed7..f55b844e37cd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesDeleteGremlinDatabaseSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesDeleteGremlinDatabaseSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Gremlin database. * * @summary Deletes an existing Azure Cosmos DB Gremlin database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseDelete.json */ async function cosmosDbGremlinDatabaseDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesDeleteGremlinGraphSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesDeleteGremlinGraphSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesDeleteGremlinGraphSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesDeleteGremlinGraphSample.js index 8c9f87ea56a2..7e70a4586b00 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesDeleteGremlinGraphSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesDeleteGremlinGraphSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Gremlin graph. * * @summary Deletes an existing Azure Cosmos DB Gremlin graph. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphDelete.json */ async function cosmosDbGremlinGraphDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinDatabaseSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinDatabaseSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinDatabaseSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinDatabaseSample.js index 40b80e5618b0..7c74817f39b9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinDatabaseSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinDatabaseSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseGet.json */ async function cosmosDbGremlinDatabaseGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinDatabaseThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinDatabaseThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinDatabaseThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinDatabaseThroughputSample.js index 00d675787922..18a1ad773fcd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinDatabaseThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinDatabaseThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseThroughputGet.json */ async function cosmosDbGremlinDatabaseThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinGraphSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinGraphSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinGraphSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinGraphSample.js index 730e0d84fd8b..3349f7dbb8c8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinGraphSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinGraphSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the Gremlin graph under an existing Azure Cosmos DB database account. * * @summary Gets the Gremlin graph under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphGet.json */ async function cosmosDbGremlinGraphGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinGraphThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinGraphThroughputSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinGraphThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinGraphThroughputSample.js index 56357fe64061..86a75584baf7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinGraphThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesGetGremlinGraphThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphThroughputGet.json */ async function cosmosDbGremlinGraphThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesListGremlinDatabasesSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesListGremlinDatabasesSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesListGremlinDatabasesSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesListGremlinDatabasesSample.js index 23a634d5d4ee..9264558c56b7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesListGremlinDatabasesSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesListGremlinDatabasesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the Gremlin databases under an existing Azure Cosmos DB database account. * * @summary Lists the Gremlin databases under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseList.json */ async function cosmosDbGremlinDatabaseList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesListGremlinGraphsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesListGremlinGraphsSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesListGremlinGraphsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesListGremlinGraphsSample.js index ba663a3bb985..7f1c5ab7f880 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesListGremlinGraphsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesListGremlinGraphsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the Gremlin graph under an existing Azure Cosmos DB database account. * * @summary Lists the Gremlin graph under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphList.json */ async function cosmosDbGremlinGraphList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.js index 60e8151fbb09..7219ffe3fc9f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json */ async function cosmosDbGremlinDatabaseMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.js similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.js index a9136f50260e..316330a34e53 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json */ async function cosmosDbGremlinDatabaseMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.js index 4651c0aed3f7..d0e478238f72 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json */ async function cosmosDbGremlinGraphMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.js index ec8ecb356e45..539c09c4ef4a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json */ async function cosmosDbGremlinGraphMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesRetrieveContinuousBackupInformationSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesRetrieveContinuousBackupInformationSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesRetrieveContinuousBackupInformationSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesRetrieveContinuousBackupInformationSample.js index 5533045b2401..db0a3108b677 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesRetrieveContinuousBackupInformationSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesRetrieveContinuousBackupInformationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves continuous backup information for a gremlin graph. * * @summary Retrieves continuous backup information for a gremlin graph. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphBackupInformation.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphBackupInformation.json */ async function cosmosDbGremlinGraphBackupInformation() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesUpdateGremlinDatabaseThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesUpdateGremlinDatabaseThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesUpdateGremlinDatabaseThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesUpdateGremlinDatabaseThroughputSample.js index 2af5f8a8908c..a71d570d0341 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesUpdateGremlinDatabaseThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesUpdateGremlinDatabaseThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Gremlin database * * @summary Update RUs per second of an Azure Cosmos DB Gremlin database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json */ async function cosmosDbGremlinDatabaseThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesUpdateGremlinGraphThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesUpdateGremlinGraphThroughputSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesUpdateGremlinGraphThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesUpdateGremlinGraphThroughputSample.js index a94c52cb4b17..2555ace08cf6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesUpdateGremlinGraphThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/gremlinResourcesUpdateGremlinGraphThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Gremlin graph * * @summary Update RUs per second of an Azure Cosmos DB Gremlin graph - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphThroughputUpdate.json */ async function cosmosDbGremlinGraphThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/locationsGetSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/locationsGetSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/locationsGetSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/locationsGetSample.js index 01707e785abc..590eb249205e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/locationsGetSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/locationsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the properties of an existing Cosmos DB location * * @summary Get the properties of an existing Cosmos DB location - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBLocationGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBLocationGet.json */ async function cosmosDbLocationGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/locationsListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/locationsListSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/locationsListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/locationsListSample.js index 4999e4e3dccf..471d4b9efee6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/locationsListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/locationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List Cosmos DB locations and their properties * * @summary List Cosmos DB locations and their properties - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBLocationList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBLocationList.json */ async function cosmosDbLocationList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoDbcollectionSample.js similarity index 57% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoDbcollectionSample.js index 600396d8474d..8b2328380bb8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoDbcollectionSample.js @@ -13,41 +13,47 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Redistribute throughput for an Azure Cosmos DB MongoDB container + * This sample demonstrates how to Create or update an Azure Cosmos DB MongoDB Collection * - * @summary Redistribute throughput for an Azure Cosmos DB MongoDB container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionRedistributeThroughput.json + * @summary Create or update an Azure Cosmos DB MongoDB Collection + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json */ -async function cosmosDbMongoDbcollectionRedistributeThroughput() { +async function cosmosDbMongoDbcollectionCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; const accountName = "ddb1"; const databaseName = "databaseName"; const collectionName = "collectionName"; - const redistributeThroughputParameters = { + const createUpdateMongoDBCollectionParameters = { + location: "West US", + options: {}, resource: { - sourcePhysicalPartitionThroughputInfo: [{ id: "2", throughput: 5000 }, { id: "3" }], - targetPhysicalPartitionThroughputInfo: [ - { id: "0", throughput: 5000 }, - { id: "1", throughput: 5000 }, + id: "collectionName", + indexes: [ + { + key: { keys: ["_ts"] }, + options: { expireAfterSeconds: 100, unique: true }, + }, + { key: { keys: ["_id"] } }, ], - throughputPolicy: "custom", + shardKey: { testKey: "Hash" }, }, + tags: {}, }; const credential = new DefaultAzureCredential(); const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.mongoDBResources.beginMongoDBContainerRedistributeThroughputAndWait( + const result = await client.mongoDBResources.beginCreateUpdateMongoDBCollectionAndWait( resourceGroupName, accountName, databaseName, collectionName, - redistributeThroughputParameters, + createUpdateMongoDBCollectionParameters, ); console.log(result); } async function main() { - cosmosDbMongoDbcollectionRedistributeThroughput(); + cosmosDbMongoDbcollectionCreateUpdate(); } main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlContainerPartitionMergeSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.js similarity index 62% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlContainerPartitionMergeSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.js index e18bc660b3b8..664f2d6326d8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlContainerPartitionMergeSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.js @@ -13,32 +13,35 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Merges the partitions of a SQL Container + * This sample demonstrates how to Create or updates Azure Cosmos DB MongoDB database * - * @summary Merges the partitions of a SQL Container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerPartitionMerge.json + * @summary Create or updates Azure Cosmos DB MongoDB database + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json */ -async function cosmosDbSqlContainerPartitionMerge() { +async function cosmosDbMongoDbdatabaseCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; + const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; const accountName = "ddb1"; const databaseName = "databaseName"; - const containerName = "containerName"; - const mergeParameters = { isDryRun: false }; + const createUpdateMongoDBDatabaseParameters = { + location: "West US", + options: {}, + resource: { id: "databaseName" }, + tags: {}, + }; const credential = new DefaultAzureCredential(); const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginListSqlContainerPartitionMergeAndWait( + const result = await client.mongoDBResources.beginCreateUpdateMongoDBDatabaseAndWait( resourceGroupName, accountName, databaseName, - containerName, - mergeParameters, + createUpdateMongoDBDatabaseParameters, ); console.log(result); } async function main() { - cosmosDbSqlContainerPartitionMerge(); + cosmosDbMongoDbdatabaseCreateUpdate(); } main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.js index e008046ae75f..155ac2841980 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB Mongo Role Definition. * * @summary Creates or updates an Azure Cosmos DB Mongo Role Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json */ async function cosmosDbMongoDbroleDefinitionCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.js index 099be4c0d372..1e58ef79efa8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB Mongo User Definition. * * @summary Creates or updates an Azure Cosmos DB Mongo User Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json */ async function cosmosDbMongoDbuserDefinitionCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoDbcollectionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoDbcollectionSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoDbcollectionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoDbcollectionSample.js index 7733441924c7..c7ccec5db59c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoDbcollectionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoDbcollectionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB MongoDB Collection. * * @summary Deletes an existing Azure Cosmos DB MongoDB Collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionDelete.json */ async function cosmosDbMongoDbcollectionDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoDbdatabaseSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoDbdatabaseSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoDbdatabaseSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoDbdatabaseSample.js index 044c0209379b..7a69cbe5d03d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoDbdatabaseSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoDbdatabaseSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB MongoDB database. * * @summary Deletes an existing Azure Cosmos DB MongoDB database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseDelete.json */ async function cosmosDbMongoDbdatabaseDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoRoleDefinitionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoRoleDefinitionSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoRoleDefinitionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoRoleDefinitionSample.js index cc287c634d5a..eb1d422d0d7f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoRoleDefinitionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoRoleDefinitionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Mongo Role Definition. * * @summary Deletes an existing Azure Cosmos DB Mongo Role Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionDelete.json */ async function cosmosDbMongoDbroleDefinitionDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoUserDefinitionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoUserDefinitionSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoUserDefinitionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoUserDefinitionSample.js index 1f83047e0a52..57381afaf976 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoUserDefinitionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesDeleteMongoUserDefinitionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Mongo User Definition. * * @summary Deletes an existing Azure Cosmos DB Mongo User Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionDelete.json */ async function cosmosDbMongoDbuserDefinitionDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbcollectionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbcollectionSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbcollectionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbcollectionSample.js index dd8fd4a9360c..2402e6ea469c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbcollectionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbcollectionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the MongoDB collection under an existing Azure Cosmos DB database account. * * @summary Gets the MongoDB collection under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionGet.json */ async function cosmosDbMongoDbcollectionGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbcollectionThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbcollectionThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbcollectionThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbcollectionThroughputSample.js index 6ebf48c027c8..d39057ebaa35 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbcollectionThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbcollectionThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionThroughputGet.json */ async function cosmosDbMongoDbcollectionThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbdatabaseSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbdatabaseSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbdatabaseSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbdatabaseSample.js index f6ebbbf6fa82..43215a8864b5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbdatabaseSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbdatabaseSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseGet.json */ async function cosmosDbMongoDbdatabaseGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbdatabaseThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbdatabaseThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbdatabaseThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbdatabaseThroughputSample.js index d0d7dbfabd40..414ac58f5f73 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbdatabaseThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoDbdatabaseThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json */ async function cosmosDbMongoDbdatabaseThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoRoleDefinitionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoRoleDefinitionSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoRoleDefinitionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoRoleDefinitionSample.js index debd14aefbb5..59362a08037f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoRoleDefinitionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoRoleDefinitionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB Mongo Role Definition with the given Id. * * @summary Retrieves the properties of an existing Azure Cosmos DB Mongo Role Definition with the given Id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionGet.json */ async function cosmosDbMongoRoleDefinitionGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoUserDefinitionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoUserDefinitionSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoUserDefinitionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoUserDefinitionSample.js index b1eb45892577..bd0f5d4e0bba 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoUserDefinitionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesGetMongoUserDefinitionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id. * * @summary Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionGet.json */ async function cosmosDbMongoDbuserDefinitionGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoDbcollectionsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoDbcollectionsSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoDbcollectionsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoDbcollectionsSample.js index c003900ff87c..a3b307a7b07f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoDbcollectionsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoDbcollectionsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the MongoDB collection under an existing Azure Cosmos DB database account. * * @summary Lists the MongoDB collection under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionList.json */ async function cosmosDbMongoDbcollectionList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoDbdatabasesSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoDbdatabasesSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoDbdatabasesSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoDbdatabasesSample.js index c4e05f79a6ac..e4e62c26e83d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoDbdatabasesSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoDbdatabasesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the MongoDB databases under an existing Azure Cosmos DB database account. * * @summary Lists the MongoDB databases under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseList.json */ async function cosmosDbMongoDbdatabaseList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoRoleDefinitionsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoRoleDefinitionsSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoRoleDefinitionsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoRoleDefinitionsSample.js index c6ee33736a39..1df1f54db5ee 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoRoleDefinitionsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoRoleDefinitionsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the list of all Azure Cosmos DB Mongo Role Definitions. * * @summary Retrieves the list of all Azure Cosmos DB Mongo Role Definitions. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionList.json */ async function cosmosDbMongoDbroleDefinitionList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoUserDefinitionsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoUserDefinitionsSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoUserDefinitionsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoUserDefinitionsSample.js index eba116e7e775..3e2565d5129c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoUserDefinitionsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesListMongoUserDefinitionsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the list of all Azure Cosmos DB Mongo User Definition. * * @summary Retrieves the list of all Azure Cosmos DB Mongo User Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionList.json */ async function cosmosDbMongoDbuserDefinitionList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.js index 6b4b866e8dbc..3e791ac43939 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json */ async function cosmosDbMongoDbcollectionMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.js index 1a80c6d3895f..d270376e15f8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json */ async function cosmosDbMongoDbcollectionMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.js index ebfc0e9ebf4c..0fda11c6df2c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json */ async function cosmosDbMongoDbdatabaseMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.js similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.js index 3c7a4091f3a2..3eb78fd2ed25 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json */ async function cosmosDbMongoDbdatabaseMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesRetrieveContinuousBackupInformationSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesRetrieveContinuousBackupInformationSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesRetrieveContinuousBackupInformationSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesRetrieveContinuousBackupInformationSample.js index dd16bc6e1546..72e5bcc1f955 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesRetrieveContinuousBackupInformationSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesRetrieveContinuousBackupInformationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves continuous backup information for a Mongodb collection. * * @summary Retrieves continuous backup information for a Mongodb collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionBackupInformation.json */ async function cosmosDbMongoDbcollectionBackupInformation() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.js index 6dfadf99e60f..2723e479b74e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update the RUs per second of an Azure Cosmos DB MongoDB collection * * @summary Update the RUs per second of an Azure Cosmos DB MongoDB collection - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json */ async function cosmosDbMongoDbcollectionThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.js index 3ae359b4ea33..be74156bfe16 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update RUs per second of the an Azure Cosmos DB MongoDB database * * @summary Update RUs per second of the an Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json */ async function cosmosDbMongoDbdatabaseThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesCreateOrUpdateSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesCreateOrUpdateSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesCreateOrUpdateSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesCreateOrUpdateSample.js index 9f46f8e6c965..c383405001bd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesCreateOrUpdateSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates the notebook workspace for a Cosmos DB account. * * @summary Creates the notebook workspace for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceCreate.json */ async function cosmosDbNotebookWorkspaceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesDeleteSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesDeleteSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesDeleteSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesDeleteSample.js index 73496f56d575..e10477a9f31c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesDeleteSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the notebook workspace for a Cosmos DB account. * * @summary Deletes the notebook workspace for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceDelete.json */ async function cosmosDbNotebookWorkspaceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesGetSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesGetSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesGetSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesGetSample.js index 91bdca4cfd2a..2676c701ee40 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesGetSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the notebook workspace for a Cosmos DB account. * * @summary Gets the notebook workspace for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceGet.json */ async function cosmosDbNotebookWorkspaceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesListByDatabaseAccountSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesListByDatabaseAccountSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesListByDatabaseAccountSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesListByDatabaseAccountSample.js index 48fa8151e6f8..13f0f78dda26 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesListByDatabaseAccountSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesListByDatabaseAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the notebook workspace resources of an existing Cosmos DB account. * * @summary Gets the notebook workspace resources of an existing Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceList.json */ async function cosmosDbNotebookWorkspaceList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesListConnectionInfoSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesListConnectionInfoSample.js similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesListConnectionInfoSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesListConnectionInfoSample.js index 011572b41d83..0e5aa1e81eb3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesListConnectionInfoSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesListConnectionInfoSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the connection info for the notebook workspace * * @summary Retrieves the connection info for the notebook workspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json */ async function cosmosDbNotebookWorkspaceListConnectionInfo() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesRegenerateAuthTokenSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesRegenerateAuthTokenSample.js similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesRegenerateAuthTokenSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesRegenerateAuthTokenSample.js index 774bf60fbae6..edd51413b696 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesRegenerateAuthTokenSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesRegenerateAuthTokenSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Regenerates the auth token for the notebook workspace * * @summary Regenerates the auth token for the notebook workspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json */ async function cosmosDbNotebookWorkspaceRegenerateAuthToken() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesStartSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesStartSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesStartSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesStartSample.js index d927603e6ba1..874ae75f8948 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesStartSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/notebookWorkspacesStartSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Starts the notebook workspace * * @summary Starts the notebook workspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceStart.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceStart.json */ async function cosmosDbNotebookWorkspaceStart() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/operationsListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/operationsListSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/operationsListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/operationsListSample.js index 7d693ce4f5fb..d9ff430aeb0f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/operationsListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the available Cosmos DB Resource Provider operations. * * @summary Lists all of the available Cosmos DB Resource Provider operations. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBOperationsList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBOperationsList.json */ async function cosmosDbOperationsList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/package.json b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/package.json similarity index 81% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/package.json rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/package.json index aab6362d0b05..9c55bdd39071 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/package.json +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-cosmosdb-js-beta", + "name": "@azure-samples/arm-cosmosdb-js", "private": true, "version": "1.0.0", - "description": " client library samples for JavaScript (Beta)", + "description": " client library samples for JavaScript", "engines": { "node": ">=18.0.0" }, @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb", "dependencies": { - "@azure/arm-cosmosdb": "next", + "@azure/arm-cosmosdb": "latest", "dotenv": "latest", "@azure/identity": "^4.2.1" } diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/partitionKeyRangeIdListMetricsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/partitionKeyRangeIdListMetricsSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/partitionKeyRangeIdListMetricsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/partitionKeyRangeIdListMetricsSample.js index b258d15d6464..41765ddea78c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/partitionKeyRangeIdListMetricsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/partitionKeyRangeIdListMetricsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given partition key range id. * * @summary Retrieves the metrics determined by the given filter for the given partition key range id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPKeyRangeIdGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/partitionKeyRangeIdRegionListMetricsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/partitionKeyRangeIdRegionListMetricsSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/partitionKeyRangeIdRegionListMetricsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/partitionKeyRangeIdRegionListMetricsSample.js index 8a59bf632c68..2e7707500855 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/partitionKeyRangeIdRegionListMetricsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/partitionKeyRangeIdRegionListMetricsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given partition key range id and region. * * @summary Retrieves the metrics determined by the given filter for the given partition key range id and region. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/percentileListMetricsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/percentileListMetricsSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/percentileListMetricsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/percentileListMetricsSample.js index 8be661c971c4..00334cc73dd9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/percentileListMetricsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/percentileListMetricsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data * * @summary Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/percentileSourceTargetListMetricsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/percentileSourceTargetListMetricsSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/percentileSourceTargetListMetricsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/percentileSourceTargetListMetricsSample.js index 212fec9791a1..0110282ff179 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/percentileSourceTargetListMetricsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/percentileSourceTargetListMetricsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data * * @summary Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/percentileTargetListMetricsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/percentileTargetListMetricsSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/percentileTargetListMetricsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/percentileTargetListMetricsSample.js index 6cdce293bd97..f257b862495a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/percentileTargetListMetricsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/percentileTargetListMetricsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data * * @summary Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileTargetGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileTargetGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsCreateOrUpdateSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsCreateOrUpdateSample.js index c7cd863da3f2..e778c6513bed 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Approve or reject a private endpoint connection with a given name. * * @summary Approve or reject a private endpoint connection with a given name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json */ async function approveOrRejectAPrivateEndpointConnectionWithAGivenName() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsDeleteSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsDeleteSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsDeleteSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsDeleteSample.js index 44c3f1d70411..45bf69e33f5f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsDeleteSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a private endpoint connection with a given name. * * @summary Deletes a private endpoint connection with a given name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionDelete.json */ async function deletesAPrivateEndpointConnectionWithAGivenName() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsGetSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsGetSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsGetSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsGetSample.js index 07b1dc49f46e..802608d9393d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsGetSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a private endpoint connection. * * @summary Gets a private endpoint connection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsListByDatabaseAccountSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsListByDatabaseAccountSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsListByDatabaseAccountSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsListByDatabaseAccountSample.js index d51fff6ca369..f0fe7b198428 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsListByDatabaseAccountSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateEndpointConnectionsListByDatabaseAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all private endpoint connections on a Cosmos DB account. * * @summary List all private endpoint connections on a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionListGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateLinkResourcesGetSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateLinkResourcesGetSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateLinkResourcesGetSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateLinkResourcesGetSample.js index 91f043be261c..2dfbadfa0540 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateLinkResourcesGetSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateLinkResourcesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the private link resources that need to be created for a Cosmos DB account. * * @summary Gets the private link resources that need to be created for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateLinkResourceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateLinkResourceGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateLinkResourcesListByDatabaseAccountSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateLinkResourcesListByDatabaseAccountSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateLinkResourcesListByDatabaseAccountSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateLinkResourcesListByDatabaseAccountSample.js index 71811b37d595..54e709d33e26 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateLinkResourcesListByDatabaseAccountSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/privateLinkResourcesListByDatabaseAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the private link resources that need to be created for a Cosmos DB account. * * @summary Gets the private link resources that need to be created for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateLinkResourceListGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateLinkResourceListGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableDatabaseAccountsGetByLocationSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableDatabaseAccountsGetByLocationSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableDatabaseAccountsGetByLocationSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableDatabaseAccountsGetByLocationSample.js index be940741eb7e..621d60008d43 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableDatabaseAccountsGetByLocationSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableDatabaseAccountsGetByLocationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission. * * @summary Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountGet.json */ async function cosmosDbRestorableDatabaseAccountGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableDatabaseAccountsListByLocationSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableDatabaseAccountsListByLocationSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableDatabaseAccountsListByLocationSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableDatabaseAccountsListByLocationSample.js index 1d575317e323..3358eb658bc2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableDatabaseAccountsListByLocationSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableDatabaseAccountsListByLocationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. * * @summary Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountList.json */ async function cosmosDbRestorableDatabaseAccountList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableDatabaseAccountsListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableDatabaseAccountsListSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableDatabaseAccountsListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableDatabaseAccountsListSample.js index 40d20b6ef07e..599de972d089 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableDatabaseAccountsListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableDatabaseAccountsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. * * @summary Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json */ async function cosmosDbRestorableDatabaseAccountNoLocationList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableGremlinDatabasesListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableGremlinDatabasesListSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableGremlinDatabasesListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableGremlinDatabasesListSample.js index d3cf058082a3..c8daac3d6d69 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableGremlinDatabasesListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableGremlinDatabasesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinDatabaseList.json */ async function cosmosDbRestorableGremlinDatabaseList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableGremlinGraphsListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableGremlinGraphsListSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableGremlinGraphsListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableGremlinGraphsListSample.js index ae35d4cad0c8..a7432bfcb92d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableGremlinGraphsListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableGremlinGraphsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin graphs under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin graphs under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinGraphList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinGraphList.json */ async function cosmosDbRestorableGremlinGraphList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableGremlinResourcesListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableGremlinResourcesListSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableGremlinResourcesListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableGremlinResourcesListSample.js index d4d02c500bb2..56d737f5734f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableGremlinResourcesListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableGremlinResourcesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Return a list of gremlin database and graphs combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. * * @summary Return a list of gremlin database and graphs combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinResourceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinResourceList.json */ async function cosmosDbRestorableGremlinResourceList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableMongodbCollectionsListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableMongodbCollectionsListSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableMongodbCollectionsListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableMongodbCollectionsListSample.js index 93b8c93c1fae..558b21319e60 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableMongodbCollectionsListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableMongodbCollectionsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbCollectionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbCollectionList.json */ async function cosmosDbRestorableMongodbCollectionList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableMongodbDatabasesListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableMongodbDatabasesListSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableMongodbDatabasesListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableMongodbDatabasesListSample.js index 0ff7d919682b..bd5dd03e24c7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableMongodbDatabasesListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableMongodbDatabasesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbDatabaseList.json */ async function cosmosDbRestorableMongodbDatabaseList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableMongodbResourcesListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableMongodbResourcesListSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableMongodbResourcesListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableMongodbResourcesListSample.js index 5ac8fb1d2df8..fb06f32fc31a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableMongodbResourcesListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableMongodbResourcesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. * * @summary Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbResourceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbResourceList.json */ async function cosmosDbRestorableMongodbResourceList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableSqlContainersListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableSqlContainersListSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableSqlContainersListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableSqlContainersListSample.js index 5e04b02f5478..9a2132828c7a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableSqlContainersListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableSqlContainersListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlContainerList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlContainerList.json */ async function cosmosDbRestorableSqlContainerList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableSqlDatabasesListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableSqlDatabasesListSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableSqlDatabasesListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableSqlDatabasesListSample.js index 3372e0f44900..551bfbade006 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableSqlDatabasesListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableSqlDatabasesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlDatabaseList.json */ async function cosmosDbRestorableSqlDatabaseList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableSqlResourcesListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableSqlResourcesListSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableSqlResourcesListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableSqlResourcesListSample.js index 9faed8b441a5..d283c0f070e7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableSqlResourcesListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableSqlResourcesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. * * @summary Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlResourceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlResourceList.json */ async function cosmosDbRestorableSqlResourceList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableTableResourcesListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableTableResourcesListSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableTableResourcesListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableTableResourcesListSample.js index 96b901211dad..c425d6bca770 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableTableResourcesListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableTableResourcesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Return a list of tables that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. * * @summary Return a list of tables that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableTableResourceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableTableResourceList.json */ async function cosmosDbRestorableTableResourceList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableTablesListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableTablesListSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableTablesListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableTablesListSample.js index a26ff52b9350..10b1b75a8d5e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableTablesListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/restorableTablesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB Tables. This helps in scenario where table was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB Tables. This helps in scenario where table was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableTableList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableTableList.json */ async function cosmosDbRestorableTableList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sample.env b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceCreateSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceCreateSample.js similarity index 90% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceCreateSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceCreateSample.js index 6e90dd78901b..0960c1038857 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceCreateSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a service. * * @summary Creates a service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceCreate.json */ async function dataTransferServiceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -45,7 +45,7 @@ async function dataTransferServiceCreate() { * This sample demonstrates how to Creates a service. * * @summary Creates a service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphAPIComputeServiceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGraphAPIComputeServiceCreate.json */ async function graphApiComputeServiceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -74,7 +74,7 @@ async function graphApiComputeServiceCreate() { * This sample demonstrates how to Creates a service. * * @summary Creates a service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMaterializedViewsBuilderServiceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMaterializedViewsBuilderServiceCreate.json */ async function materializedViewsBuilderServiceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -103,7 +103,7 @@ async function materializedViewsBuilderServiceCreate() { * This sample demonstrates how to Creates a service. * * @summary Creates a service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceCreate.json */ async function sqlDedicatedGatewayServiceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceDeleteSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceDeleteSample.js similarity index 89% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceDeleteSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceDeleteSample.js index 8fdd4012e914..a9e6a7683fd3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceDeleteSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes service with the given serviceName. * * @summary Deletes service with the given serviceName. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceDelete.json */ async function dataTransferServiceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -37,7 +37,7 @@ async function dataTransferServiceDelete() { * This sample demonstrates how to Deletes service with the given serviceName. * * @summary Deletes service with the given serviceName. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphAPIComputeServiceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGraphAPIComputeServiceDelete.json */ async function graphApiComputeServiceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -58,7 +58,7 @@ async function graphApiComputeServiceDelete() { * This sample demonstrates how to Deletes service with the given serviceName. * * @summary Deletes service with the given serviceName. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMaterializedViewsBuilderServiceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMaterializedViewsBuilderServiceDelete.json */ async function materializedViewsBuilderServiceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -79,7 +79,7 @@ async function materializedViewsBuilderServiceDelete() { * This sample demonstrates how to Deletes service with the given serviceName. * * @summary Deletes service with the given serviceName. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceDelete.json */ async function sqlDedicatedGatewayServiceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceGetSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceGetSample.js similarity index 89% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceGetSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceGetSample.js index 62a0451dd852..312c6a2c6b9e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceGetSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceGet.json */ async function dataTransferServiceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function dataTransferServiceGet() { * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphAPIComputeServiceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGraphAPIComputeServiceGet.json */ async function graphApiComputeServiceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -50,7 +50,7 @@ async function graphApiComputeServiceGet() { * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMaterializedViewsBuilderServiceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMaterializedViewsBuilderServiceGet.json */ async function materializedViewsBuilderServiceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -67,7 +67,7 @@ async function materializedViewsBuilderServiceGet() { * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceGet.json */ async function sqlDedicatedGatewayServiceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceListSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceListSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceListSample.js index 0d4084961af8..57771160366c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceListSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/serviceListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBServicesList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBServicesList.json */ async function cosmosDbServicesList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateClientEncryptionKeySample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateClientEncryptionKeySample.js similarity index 85% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateClientEncryptionKeySample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateClientEncryptionKeySample.js index ba87c05d94b3..c360e42b7adb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateClientEncryptionKeySample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateClientEncryptionKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly). * * @summary Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly). - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json */ async function cosmosDbClientEncryptionKeyCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subId"; @@ -34,9 +34,7 @@ async function cosmosDbClientEncryptionKeyCreateUpdate() { algorithm: "RSA-OAEP", value: "AzureKeyVault Key URL", }, - wrappedDataEncryptionKey: Buffer.from( - "VGhpcyBpcyBhY3R1YWxseSBhbiBhcnJheSBvZiBieXRlcy4gVGhpcyByZXF1ZXN0L3Jlc3BvbnNlIGlzIGJlaW5nIHByZXNlbnRlZCBhcyBhIHN0cmluZyBmb3IgcmVhZGFiaWxpdHkgaW4gdGhlIGV4YW1wbGU=", - ), + wrappedDataEncryptionKey: Buffer.from("U3dhZ2dlciByb2Nrcw=="), }, }; const credential = new DefaultAzureCredential(); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlContainerSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlContainerSample.js new file mode 100644 index 000000000000..9506a2bab704 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlContainerSample.js @@ -0,0 +1,111 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create or update an Azure Cosmos DB SQL container + * + * @summary Create or update an Azure Cosmos DB SQL container + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerCreateUpdate.json + */ +async function cosmosDbSqlContainerCreateUpdate() { + const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; + const accountName = "ddb1"; + const databaseName = "databaseName"; + const containerName = "containerName"; + const createUpdateSqlContainerParameters = { + location: "West US", + options: {}, + resource: { + clientEncryptionPolicy: { + includedPaths: [ + { + path: "/path", + clientEncryptionKeyId: "keyId", + encryptionAlgorithm: "AEAD_AES_256_CBC_HMAC_SHA256", + encryptionType: "Deterministic", + }, + ], + policyFormatVersion: 2, + }, + computedProperties: [{ name: "cp_lowerName", query: "SELECT VALUE LOWER(c.name) FROM c" }], + conflictResolutionPolicy: { + conflictResolutionPath: "/path", + mode: "LastWriterWins", + }, + defaultTtl: 100, + id: "containerName", + indexingPolicy: { + automatic: true, + excludedPaths: [], + includedPaths: [ + { + path: "/*", + indexes: [ + { dataType: "String", kind: "Range", precision: -1 }, + { dataType: "Number", kind: "Range", precision: -1 }, + ], + }, + ], + indexingMode: "consistent", + vectorIndexes: [ + { type: "flat", path: "/vectorPath1" }, + { type: "quantizedFlat", path: "/vectorPath2" }, + { type: "diskANN", path: "/vectorPath3" }, + ], + }, + partitionKey: { kind: "Hash", paths: ["/AccountNumber"] }, + uniqueKeyPolicy: { uniqueKeys: [{ paths: ["/testPath"] }] }, + vectorEmbeddingPolicy: { + vectorEmbeddings: [ + { + path: "/vectorPath1", + dataType: "float32", + dimensions: 400, + distanceFunction: "euclidean", + }, + { + path: "/vectorPath2", + dataType: "uint8", + dimensions: 512, + distanceFunction: "cosine", + }, + { + path: "/vectorPath3", + dataType: "int8", + dimensions: 512, + distanceFunction: "dotproduct", + }, + ], + }, + }, + tags: {}, + }; + const credential = new DefaultAzureCredential(); + const client = new CosmosDBManagementClient(credential, subscriptionId); + const result = await client.sqlResources.beginCreateUpdateSqlContainerAndWait( + resourceGroupName, + accountName, + databaseName, + containerName, + createUpdateSqlContainerParameters, + ); + console.log(result); +} + +async function main() { + cosmosDbSqlContainerCreateUpdate(); +} + +main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesCreateUpdateGraphSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlDatabaseSample.js similarity index 68% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesCreateUpdateGraphSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlDatabaseSample.js index 951788c859df..8669e8137620 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesCreateUpdateGraphSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlDatabaseSample.js @@ -13,35 +13,35 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Create or update an Azure Cosmos DB Graph. + * This sample demonstrates how to Create or update an Azure Cosmos DB SQL database * - * @summary Create or update an Azure Cosmos DB Graph. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceCreateUpdate.json + * @summary Create or update an Azure Cosmos DB SQL database + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseCreateUpdate.json */ -async function cosmosDbGraphCreateUpdate() { +async function cosmosDbSqlDatabaseCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; const accountName = "ddb1"; - const graphName = "graphName"; - const createUpdateGraphParameters = { + const databaseName = "databaseName"; + const createUpdateSqlDatabaseParameters = { location: "West US", options: {}, - resource: { id: "graphName" }, + resource: { id: "databaseName" }, tags: {}, }; const credential = new DefaultAzureCredential(); const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.graphResources.beginCreateUpdateGraphAndWait( + const result = await client.sqlResources.beginCreateUpdateSqlDatabaseAndWait( resourceGroupName, accountName, - graphName, - createUpdateGraphParameters, + databaseName, + createUpdateSqlDatabaseParameters, ); console.log(result); } async function main() { - cosmosDbGraphCreateUpdate(); + cosmosDbSqlDatabaseCreateUpdate(); } main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlRoleAssignmentSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlRoleAssignmentSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlRoleAssignmentSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlRoleAssignmentSample.js index 1e59bbbf25ad..746a99ef711e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlRoleAssignmentSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlRoleAssignmentSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB SQL Role Assignment. * * @summary Creates or updates an Azure Cosmos DB SQL Role Assignment. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json */ async function cosmosDbSqlRoleAssignmentCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlRoleDefinitionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlRoleDefinitionSample.js similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlRoleDefinitionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlRoleDefinitionSample.js index cd164d638679..d1b7f7a861c0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlRoleDefinitionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlRoleDefinitionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB SQL Role Definition. * * @summary Creates or updates an Azure Cosmos DB SQL Role Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json */ async function cosmosDbSqlRoleDefinitionCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlStoredProcedureSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlStoredProcedureSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlStoredProcedureSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlStoredProcedureSample.js index 7725d7b0e5ef..bc16a7c359af 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlStoredProcedureSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlStoredProcedureSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update an Azure Cosmos DB SQL storedProcedure * * @summary Create or update an Azure Cosmos DB SQL storedProcedure - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json */ async function cosmosDbSqlStoredProcedureCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlTriggerSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlTriggerSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlTriggerSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlTriggerSample.js index 14c959b64fa7..8aca545ca589 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlTriggerSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlTriggerSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update an Azure Cosmos DB SQL trigger * * @summary Create or update an Azure Cosmos DB SQL trigger - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerCreateUpdate.json */ async function cosmosDbSqlTriggerCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.js index dd2675ed7124..afa5206baaae 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update an Azure Cosmos DB SQL userDefinedFunction * * @summary Create or update an Azure Cosmos DB SQL userDefinedFunction - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json */ async function cosmosDbSqlUserDefinedFunctionCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlContainerSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlContainerSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlContainerSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlContainerSample.js index c45e034f843b..6d0b6702b945 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlContainerSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlContainerSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL container. * * @summary Deletes an existing Azure Cosmos DB SQL container. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerDelete.json */ async function cosmosDbSqlContainerDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlDatabaseSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlDatabaseSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlDatabaseSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlDatabaseSample.js index 8cbe9e5771d0..ddf621158520 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlDatabaseSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlDatabaseSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL database. * * @summary Deletes an existing Azure Cosmos DB SQL database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseDelete.json */ async function cosmosDbSqlDatabaseDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlRoleAssignmentSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlRoleAssignmentSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlRoleAssignmentSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlRoleAssignmentSample.js index 7f7f47f4eb58..0ff31c91f9bb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlRoleAssignmentSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlRoleAssignmentSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL Role Assignment. * * @summary Deletes an existing Azure Cosmos DB SQL Role Assignment. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentDelete.json */ async function cosmosDbSqlRoleAssignmentDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlRoleDefinitionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlRoleDefinitionSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlRoleDefinitionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlRoleDefinitionSample.js index 4a61b91919c5..f5695ac3abfa 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlRoleDefinitionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlRoleDefinitionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL Role Definition. * * @summary Deletes an existing Azure Cosmos DB SQL Role Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionDelete.json */ async function cosmosDbSqlRoleDefinitionDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlStoredProcedureSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlStoredProcedureSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlStoredProcedureSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlStoredProcedureSample.js index 49015fe3e862..94206b5fdcf4 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlStoredProcedureSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlStoredProcedureSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL storedProcedure. * * @summary Deletes an existing Azure Cosmos DB SQL storedProcedure. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureDelete.json */ async function cosmosDbSqlStoredProcedureDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlTriggerSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlTriggerSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlTriggerSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlTriggerSample.js index c273844293d3..323cbba510da 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlTriggerSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlTriggerSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL trigger. * * @summary Deletes an existing Azure Cosmos DB SQL trigger. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerDelete.json */ async function cosmosDbSqlTriggerDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlUserDefinedFunctionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlUserDefinedFunctionSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlUserDefinedFunctionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlUserDefinedFunctionSample.js index 6d8431015a23..b36d6a732f5b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlUserDefinedFunctionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesDeleteSqlUserDefinedFunctionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL userDefinedFunction. * * @summary Deletes an existing Azure Cosmos DB SQL userDefinedFunction. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json */ async function cosmosDbSqlUserDefinedFunctionDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetClientEncryptionKeySample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetClientEncryptionKeySample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetClientEncryptionKeySample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetClientEncryptionKeySample.js index 0b053c7370db..851aa47b7357 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetClientEncryptionKeySample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetClientEncryptionKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. * * @summary Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeyGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeyGet.json */ async function cosmosDbClientEncryptionKeyGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlContainerSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlContainerSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlContainerSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlContainerSample.js index d5fa96ef9f93..2162f5ca9e2f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlContainerSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlContainerSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the SQL container under an existing Azure Cosmos DB database account. * * @summary Gets the SQL container under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerGet.json */ async function cosmosDbSqlContainerGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlContainerThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlContainerThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlContainerThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlContainerThroughputSample.js index 0c05e2953d4e..cb5d2f27c9aa 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlContainerThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlContainerThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account. * * @summary Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerThroughputGet.json */ async function cosmosDbSqlContainerThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlDatabaseSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlDatabaseSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlDatabaseSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlDatabaseSample.js index 1318af7a4639..62e0058917f0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlDatabaseSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlDatabaseSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the SQL database under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the SQL database under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseGet.json */ async function cosmosDbSqlDatabaseGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlDatabaseThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlDatabaseThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlDatabaseThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlDatabaseThroughputSample.js index 0bc8d5035934..c411b4e5de78 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlDatabaseThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlDatabaseThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseThroughputGet.json */ async function cosmosDbSqlDatabaseThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlRoleAssignmentSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlRoleAssignmentSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlRoleAssignmentSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlRoleAssignmentSample.js index 1abdf31fc5e5..246a5f6b727e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlRoleAssignmentSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlRoleAssignmentSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. * * @summary Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentGet.json */ async function cosmosDbSqlRoleAssignmentGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlRoleDefinitionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlRoleDefinitionSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlRoleDefinitionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlRoleDefinitionSample.js index da5e3bfb830c..c367a646883e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlRoleDefinitionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlRoleDefinitionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. * * @summary Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionGet.json */ async function cosmosDbSqlRoleDefinitionGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlStoredProcedureSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlStoredProcedureSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlStoredProcedureSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlStoredProcedureSample.js index 535d2428c414..a69967fdd7db 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlStoredProcedureSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlStoredProcedureSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. * * @summary Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureGet.json */ async function cosmosDbSqlStoredProcedureGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlTriggerSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlTriggerSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlTriggerSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlTriggerSample.js index ba2527a14695..cbdeabe551a7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlTriggerSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlTriggerSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the SQL trigger under an existing Azure Cosmos DB database account. * * @summary Gets the SQL trigger under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerGet.json */ async function cosmosDbSqlTriggerGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlUserDefinedFunctionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlUserDefinedFunctionSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlUserDefinedFunctionSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlUserDefinedFunctionSample.js index f4887ba746fe..8c042931dbc9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlUserDefinedFunctionSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesGetSqlUserDefinedFunctionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account. * * @summary Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionGet.json */ async function cosmosDbSqlUserDefinedFunctionGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListClientEncryptionKeysSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListClientEncryptionKeysSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListClientEncryptionKeysSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListClientEncryptionKeysSample.js index a2cfca085f14..551934752f9f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListClientEncryptionKeysSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListClientEncryptionKeysSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. * * @summary Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeysList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeysList.json */ async function cosmosDbClientEncryptionKeysList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlContainersSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlContainersSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlContainersSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlContainersSample.js index 7b9df017cecd..8d7acac8e12f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlContainersSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlContainersSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the SQL container under an existing Azure Cosmos DB database account. * * @summary Lists the SQL container under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerList.json */ async function cosmosDbSqlContainerList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlDatabasesSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlDatabasesSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlDatabasesSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlDatabasesSample.js index 6bec27b4ebf6..3d56df278011 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlDatabasesSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlDatabasesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the SQL databases under an existing Azure Cosmos DB database account. * * @summary Lists the SQL databases under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseList.json */ async function cosmosDbSqlDatabaseList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlRoleAssignmentsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlRoleAssignmentsSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlRoleAssignmentsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlRoleAssignmentsSample.js index c2ccea9fd0b5..b067d669bd64 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlRoleAssignmentsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlRoleAssignmentsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the list of all Azure Cosmos DB SQL Role Assignments. * * @summary Retrieves the list of all Azure Cosmos DB SQL Role Assignments. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentList.json */ async function cosmosDbSqlRoleAssignmentList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlRoleDefinitionsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlRoleDefinitionsSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlRoleDefinitionsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlRoleDefinitionsSample.js index ab1954756ba7..9e3e8d577553 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlRoleDefinitionsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlRoleDefinitionsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves the list of all Azure Cosmos DB SQL Role Definitions. * * @summary Retrieves the list of all Azure Cosmos DB SQL Role Definitions. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionList.json */ async function cosmosDbSqlRoleDefinitionList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "mySubscriptionId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlStoredProceduresSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlStoredProceduresSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlStoredProceduresSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlStoredProceduresSample.js index d1c2d7caecf7..bb39f9ccc576 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlStoredProceduresSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlStoredProceduresSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. * * @summary Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureList.json */ async function cosmosDbSqlStoredProcedureList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlTriggersSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlTriggersSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlTriggersSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlTriggersSample.js index 45903c5ae119..4986eecfc79e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlTriggersSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlTriggersSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the SQL trigger under an existing Azure Cosmos DB database account. * * @summary Lists the SQL trigger under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerList.json */ async function cosmosDbSqlTriggerList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlUserDefinedFunctionsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlUserDefinedFunctionsSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlUserDefinedFunctionsSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlUserDefinedFunctionsSample.js index 96ee349627fd..f228aa2c0e37 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlUserDefinedFunctionsSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesListSqlUserDefinedFunctionsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account. * * @summary Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionList.json */ async function cosmosDbSqlUserDefinedFunctionList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlContainerToAutoscaleSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlContainerToAutoscaleSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlContainerToAutoscaleSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlContainerToAutoscaleSample.js index caef1a43bab9..6b900f75d476 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlContainerToAutoscaleSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlContainerToAutoscaleSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json */ async function cosmosDbSqlContainerMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlContainerToManualThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlContainerToManualThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlContainerToManualThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlContainerToManualThroughputSample.js index 3bc99e1754f8..64c27f3cd7a5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlContainerToManualThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlContainerToManualThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json */ async function cosmosDbSqlContainerMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.js index ed32387ffd09..bc87569d4947 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json */ async function cosmosDbSqlDatabaseMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.js index 32e150d86a95..fbd8f664fc78 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json */ async function cosmosDbSqlDatabaseMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesRetrieveContinuousBackupInformationSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesRetrieveContinuousBackupInformationSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesRetrieveContinuousBackupInformationSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesRetrieveContinuousBackupInformationSample.js index d30aeed3ece1..1f9a52eae7c5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesRetrieveContinuousBackupInformationSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesRetrieveContinuousBackupInformationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves continuous backup information for a container resource. * * @summary Retrieves continuous backup information for a container resource. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerBackupInformation.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerBackupInformation.json */ async function cosmosDbSqlContainerBackupInformation() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesUpdateSqlContainerThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesUpdateSqlContainerThroughputSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesUpdateSqlContainerThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesUpdateSqlContainerThroughputSample.js index afeb455d723f..74deb7f3695b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesUpdateSqlContainerThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesUpdateSqlContainerThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB SQL container * * @summary Update RUs per second of an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerThroughputUpdate.json */ async function cosmosDbSqlContainerThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesUpdateSqlDatabaseThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesUpdateSqlDatabaseThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesUpdateSqlDatabaseThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesUpdateSqlDatabaseThroughputSample.js index b11cfcf032d7..067d3b329e1f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesUpdateSqlDatabaseThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/sqlResourcesUpdateSqlDatabaseThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB SQL database * * @summary Update RUs per second of an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json */ async function cosmosDbSqlDatabaseThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesCreateUpdateTableSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesCreateUpdateTableSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesCreateUpdateTableSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesCreateUpdateTableSample.js index d121a9e39efa..00340cbf704b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesCreateUpdateTableSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesCreateUpdateTableSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Table * * @summary Create or update an Azure Cosmos DB Table - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableCreateUpdate.json */ async function cosmosDbTableReplace() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesDeleteTableSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesDeleteTableSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesDeleteTableSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesDeleteTableSample.js index 556a6b51458c..4439bdb7ccaa 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesDeleteTableSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesDeleteTableSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Table. * * @summary Deletes an existing Azure Cosmos DB Table. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableDelete.json */ async function cosmosDbTableDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesGetTableSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesGetTableSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesGetTableSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesGetTableSample.js index 05fc7a68020f..0c74e91bec19 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesGetTableSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesGetTableSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the Tables under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the Tables under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableGet.json */ async function cosmosDbTableGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesGetTableThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesGetTableThroughputSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesGetTableThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesGetTableThroughputSample.js index a3e462ea1c9b..cae2b8e475a0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesGetTableThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesGetTableThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableThroughputGet.json */ async function cosmosDbTableThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesListTablesSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesListTablesSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesListTablesSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesListTablesSample.js index 699cf7601320..79234ec6bc98 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesListTablesSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesListTablesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the Tables under an existing Azure Cosmos DB database account. * * @summary Lists the Tables under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableList.json */ async function cosmosDbTableList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesMigrateTableToAutoscaleSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesMigrateTableToAutoscaleSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesMigrateTableToAutoscaleSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesMigrateTableToAutoscaleSample.js index 36bcd18e2f77..84b7776599b8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesMigrateTableToAutoscaleSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesMigrateTableToAutoscaleSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Table from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Table from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableMigrateToAutoscale.json */ async function cosmosDbTableMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesMigrateTableToManualThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesMigrateTableToManualThroughputSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesMigrateTableToManualThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesMigrateTableToManualThroughputSample.js index 239266a4dadb..a34d79d8c331 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesMigrateTableToManualThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesMigrateTableToManualThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Table from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Table from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableMigrateToManualThroughput.json */ async function cosmosDbTableMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesRetrieveContinuousBackupInformationSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesRetrieveContinuousBackupInformationSample.js similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesRetrieveContinuousBackupInformationSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesRetrieveContinuousBackupInformationSample.js index 56330b7b064b..39def80d9ee6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesRetrieveContinuousBackupInformationSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesRetrieveContinuousBackupInformationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves continuous backup information for a table. * * @summary Retrieves continuous backup information for a table. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableBackupInformation.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableBackupInformation.json */ async function cosmosDbTableCollectionBackupInformation() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesUpdateTableThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesUpdateTableThroughputSample.js similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesUpdateTableThroughputSample.js rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesUpdateTableThroughputSample.js index ac2458d6b2de..3847e8a5963b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesUpdateTableThroughputSample.js +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/javascript/tableResourcesUpdateTableThroughputSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Table * * @summary Update RUs per second of an Azure Cosmos DB Table - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableThroughputUpdate.json */ async function cosmosDbTableThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/README.md b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/README.md new file mode 100644 index 000000000000..2bcee4557cbd --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/README.md @@ -0,0 +1,441 @@ +# client library samples for TypeScript + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [cassandraClustersCreateUpdateSample.ts][cassandraclusterscreateupdatesample] | Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterCreate.json | +| [cassandraClustersDeallocateSample.ts][cassandraclustersdeallocatesample] | 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 already deallocated cluster. Use Start to restart the cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterDeallocate.json | +| [cassandraClustersDeleteSample.ts][cassandraclustersdeletesample] | Deletes a managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterDelete.json | +| [cassandraClustersGetSample.ts][cassandraclustersgetsample] | Get the properties of a managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterGet.json | +| [cassandraClustersInvokeCommandSample.ts][cassandraclustersinvokecommandsample] | Invoke a command like nodetool for cassandra maintenance x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraCommand.json | +| [cassandraClustersListByResourceGroupSample.ts][cassandraclusterslistbyresourcegroupsample] | List all managed Cassandra clusters in this resource group. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json | +| [cassandraClustersListBySubscriptionSample.ts][cassandraclusterslistbysubscriptionsample] | List all managed Cassandra clusters in this subscription. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json | +| [cassandraClustersStartSample.ts][cassandraclustersstartsample] | Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterStart.json | +| [cassandraClustersStatusSample.ts][cassandraclustersstatussample] | Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraStatus.json | +| [cassandraClustersUpdateSample.ts][cassandraclustersupdatesample] | Updates some of the properties of a managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterPatch.json | +| [cassandraDataCentersCreateUpdateSample.ts][cassandradatacenterscreateupdatesample] | Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterCreate.json | +| [cassandraDataCentersDeleteSample.ts][cassandradatacentersdeletesample] | Delete a managed Cassandra data center. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterDelete.json | +| [cassandraDataCentersGetSample.ts][cassandradatacentersgetsample] | Get the properties of a managed Cassandra data center. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterGet.json | +| [cassandraDataCentersListSample.ts][cassandradatacenterslistsample] | List all data centers in a particular managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterList.json | +| [cassandraDataCentersUpdateSample.ts][cassandradatacentersupdatesample] | Update some of the properties of a managed Cassandra data center. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterPatch.json | +| [cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts][cassandraresourcescreateupdatecassandrakeyspacesample] | Create or update an Azure Cosmos DB Cassandra keyspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json | +| [cassandraResourcesCreateUpdateCassandraTableSample.ts][cassandraresourcescreateupdatecassandratablesample] | Create or update an Azure Cosmos DB Cassandra Table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableCreateUpdate.json | +| [cassandraResourcesDeleteCassandraKeyspaceSample.ts][cassandraresourcesdeletecassandrakeyspacesample] | Deletes an existing Azure Cosmos DB Cassandra keyspace. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceDelete.json | +| [cassandraResourcesDeleteCassandraTableSample.ts][cassandraresourcesdeletecassandratablesample] | Deletes an existing Azure Cosmos DB Cassandra table. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableDelete.json | +| [cassandraResourcesGetCassandraKeyspaceSample.ts][cassandraresourcesgetcassandrakeyspacesample] | Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceGet.json | +| [cassandraResourcesGetCassandraKeyspaceThroughputSample.ts][cassandraresourcesgetcassandrakeyspacethroughputsample] | Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json | +| [cassandraResourcesGetCassandraTableSample.ts][cassandraresourcesgetcassandratablesample] | Gets the Cassandra table under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableGet.json | +| [cassandraResourcesGetCassandraTableThroughputSample.ts][cassandraresourcesgetcassandratablethroughputsample] | Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableThroughputGet.json | +| [cassandraResourcesListCassandraKeyspacesSample.ts][cassandraresourceslistcassandrakeyspacessample] | Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceList.json | +| [cassandraResourcesListCassandraTablesSample.ts][cassandraresourceslistcassandratablessample] | Lists the Cassandra table under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableList.json | +| [cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts][cassandraresourcesmigratecassandrakeyspacetoautoscalesample] | Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json | +| [cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts][cassandraresourcesmigratecassandrakeyspacetomanualthroughputsample] | Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json | +| [cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts][cassandraresourcesmigratecassandratabletoautoscalesample] | Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json | +| [cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts][cassandraresourcesmigratecassandratabletomanualthroughputsample] | Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json | +| [cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts][cassandraresourcesupdatecassandrakeyspacethroughputsample] | Update RUs per second of an Azure Cosmos DB Cassandra Keyspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json | +| [cassandraResourcesUpdateCassandraTableThroughputSample.ts][cassandraresourcesupdatecassandratablethroughputsample] | Update RUs per second of an Azure Cosmos DB Cassandra table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableThroughputUpdate.json | +| [collectionListMetricDefinitionsSample.ts][collectionlistmetricdefinitionssample] | Retrieves metric definitions for the given collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetMetricDefinitions.json | +| [collectionListMetricsSample.ts][collectionlistmetricssample] | Retrieves the metrics determined by the given filter for the given database account and collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetMetrics.json | +| [collectionListUsagesSample.ts][collectionlistusagessample] | Retrieves the usages (most recent storage data) for the given collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetUsages.json | +| [collectionPartitionListMetricsSample.ts][collectionpartitionlistmetricssample] | Retrieves the metrics determined by the given filter for the given collection, split by partition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionGetMetrics.json | +| [collectionPartitionListUsagesSample.ts][collectionpartitionlistusagessample] | Retrieves the usages (most recent storage data) for the given collection, split by partition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionGetUsages.json | +| [collectionPartitionRegionListMetricsSample.ts][collectionpartitionregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given collection and region, split by partition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json | +| [collectionRegionListMetricsSample.ts][collectionregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given database account, collection and region. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRegionCollectionGetMetrics.json | +| [databaseAccountRegionListMetricsSample.ts][databaseaccountregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given database account and region. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json | +| [databaseAccountsCheckNameExistsSample.ts][databaseaccountschecknameexistssample] | Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountCheckNameExists.json | +| [databaseAccountsCreateOrUpdateSample.ts][databaseaccountscreateorupdatesample] | Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountCreateMax.json | +| [databaseAccountsDeleteSample.ts][databaseaccountsdeletesample] | Deletes an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountDelete.json | +| [databaseAccountsFailoverPriorityChangeSample.ts][databaseaccountsfailoverprioritychangesample] | Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json | +| [databaseAccountsGetReadOnlyKeysSample.ts][databaseaccountsgetreadonlykeyssample] | Lists the read-only access keys for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json | +| [databaseAccountsGetSample.ts][databaseaccountsgetsample] | Retrieves the properties of an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGet.json | +| [databaseAccountsListByResourceGroupSample.ts][databaseaccountslistbyresourcegroupsample] | Lists all the Azure Cosmos DB database accounts available under the given resource group. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json | +| [databaseAccountsListConnectionStringsSample.ts][databaseaccountslistconnectionstringssample] | Lists the connection strings for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json | +| [databaseAccountsListKeysSample.ts][databaseaccountslistkeyssample] | Lists the access keys for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListKeys.json | +| [databaseAccountsListMetricDefinitionsSample.ts][databaseaccountslistmetricdefinitionssample] | Retrieves metric definitions for the given database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json | +| [databaseAccountsListMetricsSample.ts][databaseaccountslistmetricssample] | Retrieves the metrics determined by the given filter for the given database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetMetrics.json | +| [databaseAccountsListReadOnlyKeysSample.ts][databaseaccountslistreadonlykeyssample] | Lists the read-only access keys for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json | +| [databaseAccountsListSample.ts][databaseaccountslistsample] | Lists all the Azure Cosmos DB database accounts available under the subscription. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountList.json | +| [databaseAccountsListUsagesSample.ts][databaseaccountslistusagessample] | Retrieves the usages (most recent data) for the given database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetUsages.json | +| [databaseAccountsOfflineRegionSample.ts][databaseaccountsofflineregionsample] | Offline the specified region for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountOfflineRegion.json | +| [databaseAccountsOnlineRegionSample.ts][databaseaccountsonlineregionsample] | Online the specified region for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountOnlineRegion.json | +| [databaseAccountsRegenerateKeySample.ts][databaseaccountsregeneratekeysample] | Regenerates an access key for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountRegenerateKey.json | +| [databaseAccountsUpdateSample.ts][databaseaccountsupdatesample] | Updates the properties of an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountPatch.json | +| [databaseListMetricDefinitionsSample.ts][databaselistmetricdefinitionssample] | Retrieves metric definitions for the given database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetMetricDefinitions.json | +| [databaseListMetricsSample.ts][databaselistmetricssample] | Retrieves the metrics determined by the given filter for the given database account and database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetMetrics.json | +| [databaseListUsagesSample.ts][databaselistusagessample] | Retrieves the usages (most recent data) for the given database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetUsages.json | +| [gremlinResourcesCreateUpdateGremlinDatabaseSample.ts][gremlinresourcescreateupdategremlindatabasesample] | Create or update an Azure Cosmos DB Gremlin database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json | +| [gremlinResourcesCreateUpdateGremlinGraphSample.ts][gremlinresourcescreateupdategremlingraphsample] | Create or update an Azure Cosmos DB Gremlin graph x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphCreateUpdate.json | +| [gremlinResourcesDeleteGremlinDatabaseSample.ts][gremlinresourcesdeletegremlindatabasesample] | Deletes an existing Azure Cosmos DB Gremlin database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseDelete.json | +| [gremlinResourcesDeleteGremlinGraphSample.ts][gremlinresourcesdeletegremlingraphsample] | Deletes an existing Azure Cosmos DB Gremlin graph. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphDelete.json | +| [gremlinResourcesGetGremlinDatabaseSample.ts][gremlinresourcesgetgremlindatabasesample] | Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseGet.json | +| [gremlinResourcesGetGremlinDatabaseThroughputSample.ts][gremlinresourcesgetgremlindatabasethroughputsample] | Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseThroughputGet.json | +| [gremlinResourcesGetGremlinGraphSample.ts][gremlinresourcesgetgremlingraphsample] | Gets the Gremlin graph under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphGet.json | +| [gremlinResourcesGetGremlinGraphThroughputSample.ts][gremlinresourcesgetgremlingraphthroughputsample] | Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphThroughputGet.json | +| [gremlinResourcesListGremlinDatabasesSample.ts][gremlinresourceslistgremlindatabasessample] | Lists the Gremlin databases under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseList.json | +| [gremlinResourcesListGremlinGraphsSample.ts][gremlinresourceslistgremlingraphssample] | Lists the Gremlin graph under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphList.json | +| [gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts][gremlinresourcesmigrategremlindatabasetoautoscalesample] | Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json | +| [gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts][gremlinresourcesmigrategremlindatabasetomanualthroughputsample] | Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json | +| [gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts][gremlinresourcesmigrategremlingraphtoautoscalesample] | Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json | +| [gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts][gremlinresourcesmigrategremlingraphtomanualthroughputsample] | Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json | +| [gremlinResourcesRetrieveContinuousBackupInformationSample.ts][gremlinresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a gremlin graph. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphBackupInformation.json | +| [gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts][gremlinresourcesupdategremlindatabasethroughputsample] | Update RUs per second of an Azure Cosmos DB Gremlin database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json | +| [gremlinResourcesUpdateGremlinGraphThroughputSample.ts][gremlinresourcesupdategremlingraphthroughputsample] | Update RUs per second of an Azure Cosmos DB Gremlin graph x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphThroughputUpdate.json | +| [locationsGetSample.ts][locationsgetsample] | Get the properties of an existing Cosmos DB location x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBLocationGet.json | +| [locationsListSample.ts][locationslistsample] | List Cosmos DB locations and their properties x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBLocationList.json | +| [mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts][mongodbresourcescreateupdatemongodbcollectionsample] | Create or update an Azure Cosmos DB MongoDB Collection x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json | +| [mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts][mongodbresourcescreateupdatemongodbdatabasesample] | Create or updates Azure Cosmos DB MongoDB database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json | +| [mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts][mongodbresourcescreateupdatemongoroledefinitionsample] | Creates or updates an Azure Cosmos DB Mongo Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json | +| [mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts][mongodbresourcescreateupdatemongouserdefinitionsample] | Creates or updates an Azure Cosmos DB Mongo User Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json | +| [mongoDbResourcesDeleteMongoDbcollectionSample.ts][mongodbresourcesdeletemongodbcollectionsample] | Deletes an existing Azure Cosmos DB MongoDB Collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionDelete.json | +| [mongoDbResourcesDeleteMongoDbdatabaseSample.ts][mongodbresourcesdeletemongodbdatabasesample] | Deletes an existing Azure Cosmos DB MongoDB database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseDelete.json | +| [mongoDbResourcesDeleteMongoRoleDefinitionSample.ts][mongodbresourcesdeletemongoroledefinitionsample] | Deletes an existing Azure Cosmos DB Mongo Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionDelete.json | +| [mongoDbResourcesDeleteMongoUserDefinitionSample.ts][mongodbresourcesdeletemongouserdefinitionsample] | Deletes an existing Azure Cosmos DB Mongo User Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionDelete.json | +| [mongoDbResourcesGetMongoDbcollectionSample.ts][mongodbresourcesgetmongodbcollectionsample] | Gets the MongoDB collection under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionGet.json | +| [mongoDbResourcesGetMongoDbcollectionThroughputSample.ts][mongodbresourcesgetmongodbcollectionthroughputsample] | Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionThroughputGet.json | +| [mongoDbResourcesGetMongoDbdatabaseSample.ts][mongodbresourcesgetmongodbdatabasesample] | Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseGet.json | +| [mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts][mongodbresourcesgetmongodbdatabasethroughputsample] | Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json | +| [mongoDbResourcesGetMongoRoleDefinitionSample.ts][mongodbresourcesgetmongoroledefinitionsample] | Retrieves the properties of an existing Azure Cosmos DB Mongo Role Definition with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionGet.json | +| [mongoDbResourcesGetMongoUserDefinitionSample.ts][mongodbresourcesgetmongouserdefinitionsample] | Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionGet.json | +| [mongoDbResourcesListMongoDbcollectionsSample.ts][mongodbresourceslistmongodbcollectionssample] | Lists the MongoDB collection under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionList.json | +| [mongoDbResourcesListMongoDbdatabasesSample.ts][mongodbresourceslistmongodbdatabasessample] | Lists the MongoDB databases under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseList.json | +| [mongoDbResourcesListMongoRoleDefinitionsSample.ts][mongodbresourceslistmongoroledefinitionssample] | Retrieves the list of all Azure Cosmos DB Mongo Role Definitions. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionList.json | +| [mongoDbResourcesListMongoUserDefinitionsSample.ts][mongodbresourceslistmongouserdefinitionssample] | Retrieves the list of all Azure Cosmos DB Mongo User Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionList.json | +| [mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts][mongodbresourcesmigratemongodbcollectiontoautoscalesample] | Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json | +| [mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts][mongodbresourcesmigratemongodbcollectiontomanualthroughputsample] | Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json | +| [mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts][mongodbresourcesmigratemongodbdatabasetoautoscalesample] | Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json | +| [mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts][mongodbresourcesmigratemongodbdatabasetomanualthroughputsample] | Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json | +| [mongoDbResourcesRetrieveContinuousBackupInformationSample.ts][mongodbresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a Mongodb collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionBackupInformation.json | +| [mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts][mongodbresourcesupdatemongodbcollectionthroughputsample] | Update the RUs per second of an Azure Cosmos DB MongoDB collection x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json | +| [mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts][mongodbresourcesupdatemongodbdatabasethroughputsample] | Update RUs per second of the an Azure Cosmos DB MongoDB database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json | +| [notebookWorkspacesCreateOrUpdateSample.ts][notebookworkspacescreateorupdatesample] | Creates the notebook workspace for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceCreate.json | +| [notebookWorkspacesDeleteSample.ts][notebookworkspacesdeletesample] | Deletes the notebook workspace for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceDelete.json | +| [notebookWorkspacesGetSample.ts][notebookworkspacesgetsample] | Gets the notebook workspace for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceGet.json | +| [notebookWorkspacesListByDatabaseAccountSample.ts][notebookworkspaceslistbydatabaseaccountsample] | Gets the notebook workspace resources of an existing Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceList.json | +| [notebookWorkspacesListConnectionInfoSample.ts][notebookworkspaceslistconnectioninfosample] | Retrieves the connection info for the notebook workspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json | +| [notebookWorkspacesRegenerateAuthTokenSample.ts][notebookworkspacesregenerateauthtokensample] | Regenerates the auth token for the notebook workspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json | +| [notebookWorkspacesStartSample.ts][notebookworkspacesstartsample] | Starts the notebook workspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceStart.json | +| [operationsListSample.ts][operationslistsample] | Lists all of the available Cosmos DB Resource Provider operations. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBOperationsList.json | +| [partitionKeyRangeIdListMetricsSample.ts][partitionkeyrangeidlistmetricssample] | Retrieves the metrics determined by the given filter for the given partition key range id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPKeyRangeIdGetMetrics.json | +| [partitionKeyRangeIdRegionListMetricsSample.ts][partitionkeyrangeidregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given partition key range id and region. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json | +| [percentileListMetricsSample.ts][percentilelistmetricssample] | Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileGetMetrics.json | +| [percentileSourceTargetListMetricsSample.ts][percentilesourcetargetlistmetricssample] | Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json | +| [percentileTargetListMetricsSample.ts][percentiletargetlistmetricssample] | Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileTargetGetMetrics.json | +| [privateEndpointConnectionsCreateOrUpdateSample.ts][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection with a given name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json | +| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection with a given name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionDelete.json | +| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Gets a private endpoint connection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionGet.json | +| [privateEndpointConnectionsListByDatabaseAccountSample.ts][privateendpointconnectionslistbydatabaseaccountsample] | List all private endpoint connections on a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionListGet.json | +| [privateLinkResourcesGetSample.ts][privatelinkresourcesgetsample] | Gets the private link resources that need to be created for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateLinkResourceGet.json | +| [privateLinkResourcesListByDatabaseAccountSample.ts][privatelinkresourceslistbydatabaseaccountsample] | Gets the private link resources that need to be created for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateLinkResourceListGet.json | +| [restorableDatabaseAccountsGetByLocationSample.ts][restorabledatabaseaccountsgetbylocationsample] | Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/\*' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountGet.json | +| [restorableDatabaseAccountsListByLocationSample.ts][restorabledatabaseaccountslistbylocationsample] | Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountList.json | +| [restorableDatabaseAccountsListSample.ts][restorabledatabaseaccountslistsample] | Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json | +| [restorableGremlinDatabasesListSample.ts][restorablegremlindatabaseslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinDatabaseList.json | +| [restorableGremlinGraphsListSample.ts][restorablegremlingraphslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin graphs under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinGraphList.json | +| [restorableGremlinResourcesListSample.ts][restorablegremlinresourceslistsample] | Return a list of gremlin database and graphs combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinResourceList.json | +| [restorableMongodbCollectionsListSample.ts][restorablemongodbcollectionslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbCollectionList.json | +| [restorableMongodbDatabasesListSample.ts][restorablemongodbdatabaseslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbDatabaseList.json | +| [restorableMongodbResourcesListSample.ts][restorablemongodbresourceslistsample] | Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbResourceList.json | +| [restorableSqlContainersListSample.ts][restorablesqlcontainerslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlContainerList.json | +| [restorableSqlDatabasesListSample.ts][restorablesqldatabaseslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlDatabaseList.json | +| [restorableSqlResourcesListSample.ts][restorablesqlresourceslistsample] | Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlResourceList.json | +| [restorableTableResourcesListSample.ts][restorabletableresourceslistsample] | Return a list of tables that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableTableResourceList.json | +| [restorableTablesListSample.ts][restorabletableslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB Tables. This helps in scenario where table was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableTableList.json | +| [serviceCreateSample.ts][servicecreatesample] | Creates a service. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceCreate.json | +| [serviceDeleteSample.ts][servicedeletesample] | Deletes service with the given serviceName. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceDelete.json | +| [serviceGetSample.ts][servicegetsample] | Gets the status of service. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceGet.json | +| [serviceListSample.ts][servicelistsample] | Gets the status of service. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBServicesList.json | +| [sqlResourcesCreateUpdateClientEncryptionKeySample.ts][sqlresourcescreateupdateclientencryptionkeysample] | Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly). x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json | +| [sqlResourcesCreateUpdateSqlContainerSample.ts][sqlresourcescreateupdatesqlcontainersample] | Create or update an Azure Cosmos DB SQL container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerCreateUpdate.json | +| [sqlResourcesCreateUpdateSqlDatabaseSample.ts][sqlresourcescreateupdatesqldatabasesample] | Create or update an Azure Cosmos DB SQL database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseCreateUpdate.json | +| [sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts][sqlresourcescreateupdatesqlroleassignmentsample] | Creates or updates an Azure Cosmos DB SQL Role Assignment. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json | +| [sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts][sqlresourcescreateupdatesqlroledefinitionsample] | Creates or updates an Azure Cosmos DB SQL Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json | +| [sqlResourcesCreateUpdateSqlStoredProcedureSample.ts][sqlresourcescreateupdatesqlstoredproceduresample] | Create or update an Azure Cosmos DB SQL storedProcedure x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json | +| [sqlResourcesCreateUpdateSqlTriggerSample.ts][sqlresourcescreateupdatesqltriggersample] | Create or update an Azure Cosmos DB SQL trigger x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerCreateUpdate.json | +| [sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts][sqlresourcescreateupdatesqluserdefinedfunctionsample] | Create or update an Azure Cosmos DB SQL userDefinedFunction x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json | +| [sqlResourcesDeleteSqlContainerSample.ts][sqlresourcesdeletesqlcontainersample] | Deletes an existing Azure Cosmos DB SQL container. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerDelete.json | +| [sqlResourcesDeleteSqlDatabaseSample.ts][sqlresourcesdeletesqldatabasesample] | Deletes an existing Azure Cosmos DB SQL database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseDelete.json | +| [sqlResourcesDeleteSqlRoleAssignmentSample.ts][sqlresourcesdeletesqlroleassignmentsample] | Deletes an existing Azure Cosmos DB SQL Role Assignment. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentDelete.json | +| [sqlResourcesDeleteSqlRoleDefinitionSample.ts][sqlresourcesdeletesqlroledefinitionsample] | Deletes an existing Azure Cosmos DB SQL Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionDelete.json | +| [sqlResourcesDeleteSqlStoredProcedureSample.ts][sqlresourcesdeletesqlstoredproceduresample] | Deletes an existing Azure Cosmos DB SQL storedProcedure. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureDelete.json | +| [sqlResourcesDeleteSqlTriggerSample.ts][sqlresourcesdeletesqltriggersample] | Deletes an existing Azure Cosmos DB SQL trigger. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerDelete.json | +| [sqlResourcesDeleteSqlUserDefinedFunctionSample.ts][sqlresourcesdeletesqluserdefinedfunctionsample] | Deletes an existing Azure Cosmos DB SQL userDefinedFunction. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json | +| [sqlResourcesGetClientEncryptionKeySample.ts][sqlresourcesgetclientencryptionkeysample] | Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeyGet.json | +| [sqlResourcesGetSqlContainerSample.ts][sqlresourcesgetsqlcontainersample] | Gets the SQL container under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerGet.json | +| [sqlResourcesGetSqlContainerThroughputSample.ts][sqlresourcesgetsqlcontainerthroughputsample] | Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerThroughputGet.json | +| [sqlResourcesGetSqlDatabaseSample.ts][sqlresourcesgetsqldatabasesample] | Gets the SQL database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseGet.json | +| [sqlResourcesGetSqlDatabaseThroughputSample.ts][sqlresourcesgetsqldatabasethroughputsample] | Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseThroughputGet.json | +| [sqlResourcesGetSqlRoleAssignmentSample.ts][sqlresourcesgetsqlroleassignmentsample] | Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentGet.json | +| [sqlResourcesGetSqlRoleDefinitionSample.ts][sqlresourcesgetsqlroledefinitionsample] | Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionGet.json | +| [sqlResourcesGetSqlStoredProcedureSample.ts][sqlresourcesgetsqlstoredproceduresample] | Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureGet.json | +| [sqlResourcesGetSqlTriggerSample.ts][sqlresourcesgetsqltriggersample] | Gets the SQL trigger under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerGet.json | +| [sqlResourcesGetSqlUserDefinedFunctionSample.ts][sqlresourcesgetsqluserdefinedfunctionsample] | Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionGet.json | +| [sqlResourcesListClientEncryptionKeysSample.ts][sqlresourceslistclientencryptionkeyssample] | Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeysList.json | +| [sqlResourcesListSqlContainersSample.ts][sqlresourceslistsqlcontainerssample] | Lists the SQL container under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerList.json | +| [sqlResourcesListSqlDatabasesSample.ts][sqlresourceslistsqldatabasessample] | Lists the SQL databases under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseList.json | +| [sqlResourcesListSqlRoleAssignmentsSample.ts][sqlresourceslistsqlroleassignmentssample] | Retrieves the list of all Azure Cosmos DB SQL Role Assignments. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentList.json | +| [sqlResourcesListSqlRoleDefinitionsSample.ts][sqlresourceslistsqlroledefinitionssample] | Retrieves the list of all Azure Cosmos DB SQL Role Definitions. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionList.json | +| [sqlResourcesListSqlStoredProceduresSample.ts][sqlresourceslistsqlstoredproceduressample] | Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureList.json | +| [sqlResourcesListSqlTriggersSample.ts][sqlresourceslistsqltriggerssample] | Lists the SQL trigger under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerList.json | +| [sqlResourcesListSqlUserDefinedFunctionsSample.ts][sqlresourceslistsqluserdefinedfunctionssample] | Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionList.json | +| [sqlResourcesMigrateSqlContainerToAutoscaleSample.ts][sqlresourcesmigratesqlcontainertoautoscalesample] | Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json | +| [sqlResourcesMigrateSqlContainerToManualThroughputSample.ts][sqlresourcesmigratesqlcontainertomanualthroughputsample] | Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json | +| [sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts][sqlresourcesmigratesqldatabasetoautoscalesample] | Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json | +| [sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts][sqlresourcesmigratesqldatabasetomanualthroughputsample] | Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json | +| [sqlResourcesRetrieveContinuousBackupInformationSample.ts][sqlresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a container resource. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerBackupInformation.json | +| [sqlResourcesUpdateSqlContainerThroughputSample.ts][sqlresourcesupdatesqlcontainerthroughputsample] | Update RUs per second of an Azure Cosmos DB SQL container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerThroughputUpdate.json | +| [sqlResourcesUpdateSqlDatabaseThroughputSample.ts][sqlresourcesupdatesqldatabasethroughputsample] | Update RUs per second of an Azure Cosmos DB SQL database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json | +| [tableResourcesCreateUpdateTableSample.ts][tableresourcescreateupdatetablesample] | Create or update an Azure Cosmos DB Table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableCreateUpdate.json | +| [tableResourcesDeleteTableSample.ts][tableresourcesdeletetablesample] | Deletes an existing Azure Cosmos DB Table. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableDelete.json | +| [tableResourcesGetTableSample.ts][tableresourcesgettablesample] | Gets the Tables under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableGet.json | +| [tableResourcesGetTableThroughputSample.ts][tableresourcesgettablethroughputsample] | Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableThroughputGet.json | +| [tableResourcesListTablesSample.ts][tableresourceslisttablessample] | Lists the Tables under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableList.json | +| [tableResourcesMigrateTableToAutoscaleSample.ts][tableresourcesmigratetabletoautoscalesample] | Migrate an Azure Cosmos DB Table from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableMigrateToAutoscale.json | +| [tableResourcesMigrateTableToManualThroughputSample.ts][tableresourcesmigratetabletomanualthroughputsample] | Migrate an Azure Cosmos DB Table from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableMigrateToManualThroughput.json | +| [tableResourcesRetrieveContinuousBackupInformationSample.ts][tableresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a table. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableBackupInformation.json | +| [tableResourcesUpdateTableThroughputSample.ts][tableresourcesupdatetablethroughputsample] | Update RUs per second of an Azure Cosmos DB Table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableThroughputUpdate.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/cassandraClustersCreateUpdateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx dev-tool run vendored cross-env COSMOSDB_SUBSCRIPTION_ID="" COSMOSDB_RESOURCE_GROUP="" node dist/cassandraClustersCreateUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[cassandraclusterscreateupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersCreateUpdateSample.ts +[cassandraclustersdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersDeallocateSample.ts +[cassandraclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersDeleteSample.ts +[cassandraclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersGetSample.ts +[cassandraclustersinvokecommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersInvokeCommandSample.ts +[cassandraclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersListByResourceGroupSample.ts +[cassandraclusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersListBySubscriptionSample.ts +[cassandraclustersstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersStartSample.ts +[cassandraclustersstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersStatusSample.ts +[cassandraclustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersUpdateSample.ts +[cassandradatacenterscreateupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersCreateUpdateSample.ts +[cassandradatacentersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersDeleteSample.ts +[cassandradatacentersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersGetSample.ts +[cassandradatacenterslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersListSample.ts +[cassandradatacentersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersUpdateSample.ts +[cassandraresourcescreateupdatecassandrakeyspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts +[cassandraresourcescreateupdatecassandratablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesCreateUpdateCassandraTableSample.ts +[cassandraresourcesdeletecassandrakeyspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesDeleteCassandraKeyspaceSample.ts +[cassandraresourcesdeletecassandratablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesDeleteCassandraTableSample.ts +[cassandraresourcesgetcassandrakeyspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraKeyspaceSample.ts +[cassandraresourcesgetcassandrakeyspacethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraKeyspaceThroughputSample.ts +[cassandraresourcesgetcassandratablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraTableSample.ts +[cassandraresourcesgetcassandratablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraTableThroughputSample.ts +[cassandraresourceslistcassandrakeyspacessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesListCassandraKeyspacesSample.ts +[cassandraresourceslistcassandratablessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesListCassandraTablesSample.ts +[cassandraresourcesmigratecassandrakeyspacetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts +[cassandraresourcesmigratecassandrakeyspacetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts +[cassandraresourcesmigratecassandratabletoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts +[cassandraresourcesmigratecassandratabletomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts +[cassandraresourcesupdatecassandrakeyspacethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts +[cassandraresourcesupdatecassandratablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesUpdateCassandraTableThroughputSample.ts +[collectionlistmetricdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionListMetricDefinitionsSample.ts +[collectionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionListMetricsSample.ts +[collectionlistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionListUsagesSample.ts +[collectionpartitionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionPartitionListMetricsSample.ts +[collectionpartitionlistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionPartitionListUsagesSample.ts +[collectionpartitionregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionPartitionRegionListMetricsSample.ts +[collectionregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionRegionListMetricsSample.ts +[databaseaccountregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountRegionListMetricsSample.ts +[databaseaccountschecknameexistssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsCheckNameExistsSample.ts +[databaseaccountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsCreateOrUpdateSample.ts +[databaseaccountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsDeleteSample.ts +[databaseaccountsfailoverprioritychangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsFailoverPriorityChangeSample.ts +[databaseaccountsgetreadonlykeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsGetReadOnlyKeysSample.ts +[databaseaccountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsGetSample.ts +[databaseaccountslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListByResourceGroupSample.ts +[databaseaccountslistconnectionstringssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListConnectionStringsSample.ts +[databaseaccountslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListKeysSample.ts +[databaseaccountslistmetricdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListMetricDefinitionsSample.ts +[databaseaccountslistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListMetricsSample.ts +[databaseaccountslistreadonlykeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListReadOnlyKeysSample.ts +[databaseaccountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListSample.ts +[databaseaccountslistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListUsagesSample.ts +[databaseaccountsofflineregionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsOfflineRegionSample.ts +[databaseaccountsonlineregionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsOnlineRegionSample.ts +[databaseaccountsregeneratekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsRegenerateKeySample.ts +[databaseaccountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsUpdateSample.ts +[databaselistmetricdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseListMetricDefinitionsSample.ts +[databaselistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseListMetricsSample.ts +[databaselistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseListUsagesSample.ts +[gremlinresourcescreateupdategremlindatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesCreateUpdateGremlinDatabaseSample.ts +[gremlinresourcescreateupdategremlingraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesCreateUpdateGremlinGraphSample.ts +[gremlinresourcesdeletegremlindatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesDeleteGremlinDatabaseSample.ts +[gremlinresourcesdeletegremlingraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesDeleteGremlinGraphSample.ts +[gremlinresourcesgetgremlindatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinDatabaseSample.ts +[gremlinresourcesgetgremlindatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinDatabaseThroughputSample.ts +[gremlinresourcesgetgremlingraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinGraphSample.ts +[gremlinresourcesgetgremlingraphthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinGraphThroughputSample.ts +[gremlinresourceslistgremlindatabasessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesListGremlinDatabasesSample.ts +[gremlinresourceslistgremlingraphssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesListGremlinGraphsSample.ts +[gremlinresourcesmigrategremlindatabasetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts +[gremlinresourcesmigrategremlindatabasetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts +[gremlinresourcesmigrategremlingraphtoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts +[gremlinresourcesmigrategremlingraphtomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts +[gremlinresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesRetrieveContinuousBackupInformationSample.ts +[gremlinresourcesupdategremlindatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts +[gremlinresourcesupdategremlingraphthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesUpdateGremlinGraphThroughputSample.ts +[locationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/locationsGetSample.ts +[locationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/locationsListSample.ts +[mongodbresourcescreateupdatemongodbcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts +[mongodbresourcescreateupdatemongodbdatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts +[mongodbresourcescreateupdatemongoroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts +[mongodbresourcescreateupdatemongouserdefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts +[mongodbresourcesdeletemongodbcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoDbcollectionSample.ts +[mongodbresourcesdeletemongodbdatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoDbdatabaseSample.ts +[mongodbresourcesdeletemongoroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoRoleDefinitionSample.ts +[mongodbresourcesdeletemongouserdefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoUserDefinitionSample.ts +[mongodbresourcesgetmongodbcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbcollectionSample.ts +[mongodbresourcesgetmongodbcollectionthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbcollectionThroughputSample.ts +[mongodbresourcesgetmongodbdatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbdatabaseSample.ts +[mongodbresourcesgetmongodbdatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts +[mongodbresourcesgetmongoroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoRoleDefinitionSample.ts +[mongodbresourcesgetmongouserdefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoUserDefinitionSample.ts +[mongodbresourceslistmongodbcollectionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoDbcollectionsSample.ts +[mongodbresourceslistmongodbdatabasessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoDbdatabasesSample.ts +[mongodbresourceslistmongoroledefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoRoleDefinitionsSample.ts +[mongodbresourceslistmongouserdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoUserDefinitionsSample.ts +[mongodbresourcesmigratemongodbcollectiontoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts +[mongodbresourcesmigratemongodbcollectiontomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts +[mongodbresourcesmigratemongodbdatabasetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts +[mongodbresourcesmigratemongodbdatabasetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts +[mongodbresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesRetrieveContinuousBackupInformationSample.ts +[mongodbresourcesupdatemongodbcollectionthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts +[mongodbresourcesupdatemongodbdatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts +[notebookworkspacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesCreateOrUpdateSample.ts +[notebookworkspacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesDeleteSample.ts +[notebookworkspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesGetSample.ts +[notebookworkspaceslistbydatabaseaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesListByDatabaseAccountSample.ts +[notebookworkspaceslistconnectioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesListConnectionInfoSample.ts +[notebookworkspacesregenerateauthtokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesRegenerateAuthTokenSample.ts +[notebookworkspacesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesStartSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/operationsListSample.ts +[partitionkeyrangeidlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/partitionKeyRangeIdListMetricsSample.ts +[partitionkeyrangeidregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/partitionKeyRangeIdRegionListMetricsSample.ts +[percentilelistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/percentileListMetricsSample.ts +[percentilesourcetargetlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/percentileSourceTargetListMetricsSample.ts +[percentiletargetlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/percentileTargetListMetricsSample.ts +[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsDeleteSample.ts +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsGetSample.ts +[privateendpointconnectionslistbydatabaseaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsListByDatabaseAccountSample.ts +[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateLinkResourcesGetSample.ts +[privatelinkresourceslistbydatabaseaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateLinkResourcesListByDatabaseAccountSample.ts +[restorabledatabaseaccountsgetbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableDatabaseAccountsGetByLocationSample.ts +[restorabledatabaseaccountslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableDatabaseAccountsListByLocationSample.ts +[restorabledatabaseaccountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableDatabaseAccountsListSample.ts +[restorablegremlindatabaseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableGremlinDatabasesListSample.ts +[restorablegremlingraphslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableGremlinGraphsListSample.ts +[restorablegremlinresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableGremlinResourcesListSample.ts +[restorablemongodbcollectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableMongodbCollectionsListSample.ts +[restorablemongodbdatabaseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableMongodbDatabasesListSample.ts +[restorablemongodbresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableMongodbResourcesListSample.ts +[restorablesqlcontainerslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableSqlContainersListSample.ts +[restorablesqldatabaseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableSqlDatabasesListSample.ts +[restorablesqlresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableSqlResourcesListSample.ts +[restorabletableresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableTableResourcesListSample.ts +[restorabletableslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableTablesListSample.ts +[servicecreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceCreateSample.ts +[servicedeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceDeleteSample.ts +[servicegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceGetSample.ts +[servicelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceListSample.ts +[sqlresourcescreateupdateclientencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateClientEncryptionKeySample.ts +[sqlresourcescreateupdatesqlcontainersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlContainerSample.ts +[sqlresourcescreateupdatesqldatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlDatabaseSample.ts +[sqlresourcescreateupdatesqlroleassignmentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts +[sqlresourcescreateupdatesqlroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts +[sqlresourcescreateupdatesqlstoredproceduresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlStoredProcedureSample.ts +[sqlresourcescreateupdatesqltriggersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlTriggerSample.ts +[sqlresourcescreateupdatesqluserdefinedfunctionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts +[sqlresourcesdeletesqlcontainersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlContainerSample.ts +[sqlresourcesdeletesqldatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlDatabaseSample.ts +[sqlresourcesdeletesqlroleassignmentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlRoleAssignmentSample.ts +[sqlresourcesdeletesqlroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlRoleDefinitionSample.ts +[sqlresourcesdeletesqlstoredproceduresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlStoredProcedureSample.ts +[sqlresourcesdeletesqltriggersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlTriggerSample.ts +[sqlresourcesdeletesqluserdefinedfunctionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlUserDefinedFunctionSample.ts +[sqlresourcesgetclientencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetClientEncryptionKeySample.ts +[sqlresourcesgetsqlcontainersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlContainerSample.ts +[sqlresourcesgetsqlcontainerthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlContainerThroughputSample.ts +[sqlresourcesgetsqldatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlDatabaseSample.ts +[sqlresourcesgetsqldatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlDatabaseThroughputSample.ts +[sqlresourcesgetsqlroleassignmentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlRoleAssignmentSample.ts +[sqlresourcesgetsqlroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlRoleDefinitionSample.ts +[sqlresourcesgetsqlstoredproceduresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlStoredProcedureSample.ts +[sqlresourcesgetsqltriggersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlTriggerSample.ts +[sqlresourcesgetsqluserdefinedfunctionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlUserDefinedFunctionSample.ts +[sqlresourceslistclientencryptionkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListClientEncryptionKeysSample.ts +[sqlresourceslistsqlcontainerssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlContainersSample.ts +[sqlresourceslistsqldatabasessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlDatabasesSample.ts +[sqlresourceslistsqlroleassignmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlRoleAssignmentsSample.ts +[sqlresourceslistsqlroledefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlRoleDefinitionsSample.ts +[sqlresourceslistsqlstoredproceduressample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlStoredProceduresSample.ts +[sqlresourceslistsqltriggerssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlTriggersSample.ts +[sqlresourceslistsqluserdefinedfunctionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlUserDefinedFunctionsSample.ts +[sqlresourcesmigratesqlcontainertoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlContainerToAutoscaleSample.ts +[sqlresourcesmigratesqlcontainertomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlContainerToManualThroughputSample.ts +[sqlresourcesmigratesqldatabasetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts +[sqlresourcesmigratesqldatabasetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts +[sqlresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesRetrieveContinuousBackupInformationSample.ts +[sqlresourcesupdatesqlcontainerthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesUpdateSqlContainerThroughputSample.ts +[sqlresourcesupdatesqldatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesUpdateSqlDatabaseThroughputSample.ts +[tableresourcescreateupdatetablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesCreateUpdateTableSample.ts +[tableresourcesdeletetablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesDeleteTableSample.ts +[tableresourcesgettablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesGetTableSample.ts +[tableresourcesgettablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesGetTableThroughputSample.ts +[tableresourceslisttablessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesListTablesSample.ts +[tableresourcesmigratetabletoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesMigrateTableToAutoscaleSample.ts +[tableresourcesmigratetabletomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesMigrateTableToManualThroughputSample.ts +[tableresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesRetrieveContinuousBackupInformationSample.ts +[tableresourcesupdatetablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesUpdateTableThroughputSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/package.json b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/package.json similarity index 84% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/package.json rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/package.json index ec1f97a8dbe6..d65903804613 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/package.json +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-cosmosdb-ts-beta", + "name": "@azure-samples/arm-cosmosdb-ts", "private": true, "version": "1.0.0", - "description": " client library samples for TypeScript (Beta)", + "description": " client library samples for TypeScript", "engines": { "node": ">=18.0.0" }, @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb", "dependencies": { - "@azure/arm-cosmosdb": "next", + "@azure/arm-cosmosdb": "latest", "dotenv": "latest", "@azure/identity": "^4.2.1" }, diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/sample.env b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersCreateUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersCreateUpdateSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersCreateUpdateSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersCreateUpdateSample.ts index 4b73fc786423..8bca62048601 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersCreateUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersCreateUpdateSample.ts @@ -18,12 +18,12 @@ dotenv.config(); * This sample demonstrates how to Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH. * * @summary Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterCreate.json */ async function cosmosDbManagedCassandraClusterCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; + "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersDeallocateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersDeallocateSample.ts similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersDeallocateSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersDeallocateSample.ts index 226fd328540a..f9921c9e8fe1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersDeallocateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersDeallocateSample.ts @@ -18,12 +18,12 @@ dotenv.config(); * This sample demonstrates how to 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 already deallocated cluster. Use Start to restart the cluster. * * @summary 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 already deallocated cluster. Use Start to restart the cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterDeallocate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterDeallocate.json */ async function cosmosDbManagedCassandraClusterDeallocate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; + "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersDeleteSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersDeleteSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersDeleteSample.ts index 8932176d310e..305528d5a968 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersDeleteSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a managed Cassandra cluster. * * @summary Deletes a managed Cassandra cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterDelete.json */ async function cosmosDbManagedCassandraClusterDelete() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersGetSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersGetSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersGetSample.ts index 103388a787eb..6819bbc9eda0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the properties of a managed Cassandra cluster. * * @summary Get the properties of a managed Cassandra cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterGet.json */ async function cosmosDbManagedCassandraClusterGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersInvokeCommandSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersInvokeCommandSample.ts similarity index 88% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersInvokeCommandSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersInvokeCommandSample.ts index 59ae37ded102..fb53183bd163 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersInvokeCommandSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersInvokeCommandSample.ts @@ -18,18 +18,17 @@ dotenv.config(); * This sample demonstrates how to Invoke a command like nodetool for cassandra maintenance * * @summary Invoke a command like nodetool for cassandra maintenance - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommand.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraCommand.json */ async function cosmosDbManagedCassandraCommand() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; + "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; const body: CommandPostBody = { - arguments: { status: "" }, - command: "nodetool", + command: "nodetool status", host: "10.0.1.12", }; const credential = new DefaultAzureCredential(); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListByResourceGroupSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersListByResourceGroupSample.ts similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListByResourceGroupSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersListByResourceGroupSample.ts index dba7fdf6d63f..4c761b69428b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListByResourceGroupSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all managed Cassandra clusters in this resource group. * * @summary List all managed Cassandra clusters in this resource group. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json */ async function cosmosDbManagedCassandraClusterListByResourceGroup() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListBySubscriptionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersListBySubscriptionSample.ts similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListBySubscriptionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersListBySubscriptionSample.ts index e9094a190649..6a527fcb2480 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListBySubscriptionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all managed Cassandra clusters in this subscription. * * @summary List all managed Cassandra clusters in this subscription. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterListBySubscription.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json */ async function cosmosDbManagedCassandraClusterListBySubscription() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersStartSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersStartSample.ts similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersStartSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersStartSample.ts index 45aaff77281a..01ce3133be11 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersStartSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersStartSample.ts @@ -18,12 +18,12 @@ dotenv.config(); * This sample demonstrates how to Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster. * * @summary Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterStart.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterStart.json */ async function cosmosDbManagedCassandraClusterStart() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; + "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersStatusSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersStatusSample.ts similarity index 90% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersStatusSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersStatusSample.ts index 03a8f382d53c..4611df59ed61 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersStatusSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersStatusSample.ts @@ -18,12 +18,12 @@ dotenv.config(); * This sample demonstrates how to Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster. * * @summary Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraStatus.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraStatus.json */ async function cosmosDbManagedCassandraStatus() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; + "ffffffff-ffff-ffff-ffff-ffffffffffff"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; const clusterName = "cassandra-prod"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersUpdateSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersUpdateSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersUpdateSample.ts index 792140a80110..7f32c64094ac 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraClustersUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates some of the properties of a managed Cassandra cluster. * * @summary Updates some of the properties of a managed Cassandra cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterPatch.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraClusterPatch.json */ async function cosmosDbManagedCassandraClusterPatch() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersCreateUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersCreateUpdateSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersCreateUpdateSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersCreateUpdateSample.ts index 73e677621698..0063d200cede 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersCreateUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersCreateUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH. * * @summary Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterCreate.json */ async function cosmosDbManagedCassandraDataCenterCreate() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersDeleteSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersDeleteSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersDeleteSample.ts index a123d7755d77..6fbb7c22e9eb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersDeleteSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a managed Cassandra data center. * * @summary Delete a managed Cassandra data center. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterDelete.json */ async function cosmosDbManagedCassandraDataCenterDelete() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersGetSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersGetSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersGetSample.ts index d1284391ade1..2f318343f58c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the properties of a managed Cassandra data center. * * @summary Get the properties of a managed Cassandra data center. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterGet.json */ async function cosmosDbManagedCassandraDataCenterGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersListSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersListSample.ts index 5f12d683c9d1..f8785f6bb8d0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all data centers in a particular managed Cassandra cluster. * * @summary List all data centers in a particular managed Cassandra cluster. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterList.json */ async function cosmosDbManagedCassandraDataCenterList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersUpdateSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersUpdateSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersUpdateSample.ts index 01efbf321909..c5076eef70d5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraDataCentersUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update some of the properties of a managed Cassandra data center. * * @summary Update some of the properties of a managed Cassandra data center. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterPatch.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBManagedCassandraDataCenterPatch.json */ async function cosmosDbManagedCassandraDataCenterUpdate() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts index 7d220e53ac48..8852b7800b07 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Cassandra keyspace * * @summary Create or update an Azure Cosmos DB Cassandra keyspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json */ async function cosmosDbCassandraKeyspaceCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesCreateUpdateCassandraTableSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesCreateUpdateCassandraTableSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesCreateUpdateCassandraTableSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesCreateUpdateCassandraTableSample.ts index 4881a5db6ef5..33d54648df1f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesCreateUpdateCassandraTableSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesCreateUpdateCassandraTableSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Cassandra Table * * @summary Create or update an Azure Cosmos DB Cassandra Table - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableCreateUpdate.json */ async function cosmosDbCassandraTableCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,6 @@ async function cosmosDbCassandraTableCreateUpdate() { columns: [{ name: "columnA", type: "Ascii" }], partitionKeys: [{ name: "columnA" }], }, - analyticalStorageTtl: 500, defaultTtl: 100, id: "tableName", }, diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesDeleteCassandraKeyspaceSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesDeleteCassandraKeyspaceSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesDeleteCassandraKeyspaceSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesDeleteCassandraKeyspaceSample.ts index bc134c22c8fa..c4da7654f91f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesDeleteCassandraKeyspaceSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesDeleteCassandraKeyspaceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Cassandra keyspace. * * @summary Deletes an existing Azure Cosmos DB Cassandra keyspace. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceDelete.json */ async function cosmosDbCassandraKeyspaceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesDeleteCassandraTableSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesDeleteCassandraTableSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesDeleteCassandraTableSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesDeleteCassandraTableSample.ts index 677d439f62e6..38f8a1a96595 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesDeleteCassandraTableSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesDeleteCassandraTableSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Cassandra table. * * @summary Deletes an existing Azure Cosmos DB Cassandra table. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableDelete.json */ async function cosmosDbCassandraTableDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraKeyspaceSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraKeyspaceSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraKeyspaceSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraKeyspaceSample.ts index 2f409e492454..d4409999eff6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraKeyspaceSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraKeyspaceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceGet.json */ async function cosmosDbCassandraKeyspaceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraKeyspaceThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraKeyspaceThroughputSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraKeyspaceThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraKeyspaceThroughputSample.ts index 5d4d20fe870c..7bcfe6468efa 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraKeyspaceThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraKeyspaceThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json */ async function cosmosDbCassandraKeyspaceThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraTableSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraTableSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraTableSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraTableSample.ts index 6aa8104d6f09..86671e8836bc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraTableSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraTableSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Cassandra table under an existing Azure Cosmos DB database account. * * @summary Gets the Cassandra table under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableGet.json */ async function cosmosDbCassandraTableGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraTableThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraTableThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraTableThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraTableThroughputSample.ts index 35f5fc3daa7f..b7da9da74893 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraTableThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesGetCassandraTableThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableThroughputGet.json */ async function cosmosDbCassandraTableThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesListCassandraKeyspacesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesListCassandraKeyspacesSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesListCassandraKeyspacesSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesListCassandraKeyspacesSample.ts index 3dd74a866c1b..3528b88c0cd2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesListCassandraKeyspacesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesListCassandraKeyspacesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. * * @summary Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceList.json */ async function cosmosDbCassandraKeyspaceList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesListCassandraTablesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesListCassandraTablesSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesListCassandraTablesSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesListCassandraTablesSample.ts index 1985c8e9b269..dec60e9b51ac 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesListCassandraTablesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesListCassandraTablesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the Cassandra table under an existing Azure Cosmos DB database account. * * @summary Lists the Cassandra table under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableList.json */ async function cosmosDbCassandraTableList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts index fb67229ad170..040aa3e633a6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json */ async function cosmosDbCassandraKeyspaceMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts index 9d8d857d06c3..528ad35b9a01 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json */ async function cosmosDbCassandraKeyspaceMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts index b6a1f2a131f0..eae2d7bcd56d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json */ async function cosmosDbCassandraTableMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts index 8dd311c806bb..f8619f3a3ddf 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json */ async function cosmosDbCassandraTableMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts index a0fd3a538d62..79380043f650 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Cassandra Keyspace * * @summary Update RUs per second of an Azure Cosmos DB Cassandra Keyspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json */ async function cosmosDbCassandraKeyspaceThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesUpdateCassandraTableThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesUpdateCassandraTableThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesUpdateCassandraTableThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesUpdateCassandraTableThroughputSample.ts index b7d7af500c78..4486041f9cac 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesUpdateCassandraTableThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/cassandraResourcesUpdateCassandraTableThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Cassandra table * * @summary Update RUs per second of an Azure Cosmos DB Cassandra table - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCassandraTableThroughputUpdate.json */ async function cosmosDbCassandraTableThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionListMetricDefinitionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionListMetricDefinitionsSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionListMetricDefinitionsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionListMetricDefinitionsSample.ts index 80ec3e4ef1d2..23a5c1caf82b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionListMetricDefinitionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionListMetricDefinitionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves metric definitions for the given collection. * * @summary Retrieves metric definitions for the given collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetMetricDefinitions.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetMetricDefinitions.json */ async function cosmosDbCollectionGetMetricDefinitions() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionListMetricsSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionListMetricsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionListMetricsSample.ts index 5d6d5f1005d3..309e967251fc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account and collection. * * @summary Retrieves the metrics determined by the given filter for the given database account and collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetMetrics.json */ async function cosmosDbCollectionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionListUsagesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionListUsagesSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionListUsagesSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionListUsagesSample.ts index c762fea17b30..df5bbd097f9b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionListUsagesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionListUsagesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the usages (most recent storage data) for the given collection. * * @summary Retrieves the usages (most recent storage data) for the given collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetUsages.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionGetUsages.json */ async function cosmosDbCollectionGetUsages() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionPartitionListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionPartitionListMetricsSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionPartitionListMetricsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionPartitionListMetricsSample.ts index 02e2c1d27829..f2dbf377db42 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionPartitionListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionPartitionListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given collection, split by partition. * * @summary Retrieves the metrics determined by the given filter for the given collection, split by partition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionPartitionListUsagesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionPartitionListUsagesSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionPartitionListUsagesSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionPartitionListUsagesSample.ts index cea0883e6f69..de0deff0d157 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionPartitionListUsagesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionPartitionListUsagesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the usages (most recent storage data) for the given collection, split by partition. * * @summary Retrieves the usages (most recent storage data) for the given collection, split by partition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionGetUsages.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionGetUsages.json */ async function cosmosDbCollectionGetUsages() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionPartitionRegionListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionPartitionRegionListMetricsSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionPartitionRegionListMetricsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionPartitionRegionListMetricsSample.ts index 70108aced594..98412819df88 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionPartitionRegionListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionPartitionRegionListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given collection and region, split by partition. * * @summary Retrieves the metrics determined by the given filter for the given collection and region, split by partition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionRegionListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionRegionListMetricsSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionRegionListMetricsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionRegionListMetricsSample.ts index bc0874ecb325..d8f0a40976b7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionRegionListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/collectionRegionListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account, collection and region. * * @summary Retrieves the metrics determined by the given filter for the given database account, collection and region. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRegionCollectionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRegionCollectionGetMetrics.json */ async function cosmosDbRegionCollectionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountRegionListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountRegionListMetricsSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountRegionListMetricsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountRegionListMetricsSample.ts index a6992ac9ee56..1a6451403d12 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountRegionListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountRegionListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account and region. * * @summary Retrieves the metrics determined by the given filter for the given database account and region. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsCheckNameExistsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsCheckNameExistsSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsCheckNameExistsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsCheckNameExistsSample.ts index 8aac8d20ee51..b0c0947cbfb0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsCheckNameExistsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsCheckNameExistsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters. * * @summary Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountCheckNameExists.json */ async function cosmosDbDatabaseAccountCheckNameExists() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsCreateOrUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsCreateOrUpdateSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsCreateOrUpdateSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsCreateOrUpdateSample.ts index 7ac9e3c98432..681afaed2ad1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsCreateOrUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. * * @summary Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountCreateMax.json */ async function cosmosDbDatabaseAccountCreateMax() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,6 @@ async function cosmosDbDatabaseAccountCreateMax() { }, }, capacity: { totalThroughputLimit: 2000 }, - capacityMode: "Provisioned", consistencyPolicy: { defaultConsistencyLevel: "BoundedStaleness", maxIntervalInSeconds: 10, @@ -49,13 +48,10 @@ async function cosmosDbDatabaseAccountCreateMax() { createMode: "Default", databaseAccountOfferType: "Standard", defaultIdentity: "FirstPartyIdentity", - defaultPriorityLevel: "Low", enableAnalyticalStorage: true, enableBurstCapacity: true, enableFreeTier: false, - enableMaterializedViews: false, enablePerRegionPerPartitionAutoscale: true, - enablePriorityBasedExecution: true, identity: { type: "SystemAssigned,UserAssigned", userAssignedIdentities: { @@ -107,7 +103,7 @@ async function cosmosDbDatabaseAccountCreateMax() { * This sample demonstrates how to Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. * * @summary Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountCreateMin.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountCreateMin.json */ async function cosmosDbDatabaseAccountCreateMin() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -139,7 +135,7 @@ async function cosmosDbDatabaseAccountCreateMin() { * This sample demonstrates how to Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. * * @summary Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json */ async function cosmosDbRestoreDatabaseAccountCreateUpdateJson() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -160,7 +156,6 @@ async function cosmosDbRestoreDatabaseAccountCreateUpdateJson() { databaseAccountOfferType: "Standard", enableAnalyticalStorage: true, enableFreeTier: false, - enableMaterializedViews: false, keyVaultKeyUri: "https://myKeyVault.vault.azure.net", kind: "GlobalDocumentDB", location: "westus", @@ -188,7 +183,6 @@ async function cosmosDbRestoreDatabaseAccountCreateUpdateJson() { "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/1a97b4bb-f6a0-430e-ade1-638d781830cc", restoreTimestampInUtc: new Date("2021-03-11T22:05:09Z"), restoreWithTtlDisabled: false, - sourceBackupLocation: "westus", }, tags: {}, }; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsDeleteSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsDeleteSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsDeleteSample.ts index 197fa52a0abc..631a75498e50 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsDeleteSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB database account. * * @summary Deletes an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountDelete.json */ async function cosmosDbDatabaseAccountDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsFailoverPriorityChangeSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsFailoverPriorityChangeSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsFailoverPriorityChangeSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsFailoverPriorityChangeSample.ts index 93911cc59372..104a6a16a74e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsFailoverPriorityChangeSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsFailoverPriorityChangeSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. * * @summary Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json */ async function cosmosDbDatabaseAccountFailoverPriorityChange() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsGetReadOnlyKeysSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsGetReadOnlyKeysSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsGetReadOnlyKeysSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsGetReadOnlyKeysSample.ts index c8237486aa40..a6f1ef65d080 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsGetReadOnlyKeysSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsGetReadOnlyKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the read-only access keys for the specified Azure Cosmos DB database account. * * @summary Lists the read-only access keys for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json */ async function cosmosDbDatabaseAccountListReadOnlyKeys() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsGetSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsGetSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsGetSample.ts index 32be7cd10b57..50f4f4128aa7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB database account. * * @summary Retrieves the properties of an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGet.json */ async function cosmosDbDatabaseAccountGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListByResourceGroupSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListByResourceGroupSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListByResourceGroupSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListByResourceGroupSample.ts index c2c66ce4d7d2..f01e63be0013 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListByResourceGroupSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the Azure Cosmos DB database accounts available under the given resource group. * * @summary Lists all the Azure Cosmos DB database accounts available under the given resource group. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json */ async function cosmosDbDatabaseAccountListByResourceGroup() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListConnectionStringsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListConnectionStringsSample.ts similarity index 91% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListConnectionStringsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListConnectionStringsSample.ts index ff3521d15486..660869b7eaa2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListConnectionStringsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListConnectionStringsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the connection strings for the specified Azure Cosmos DB database account. * * @summary Lists the connection strings for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json */ async function cosmosDbDatabaseAccountListConnectionStrings() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -37,7 +37,7 @@ async function cosmosDbDatabaseAccountListConnectionStrings() { * This sample demonstrates how to Lists the connection strings for the specified Azure Cosmos DB database account. * * @summary Lists the connection strings for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json */ async function cosmosDbDatabaseAccountListConnectionStringsMongo() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListKeysSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListKeysSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListKeysSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListKeysSample.ts index 2eaa1fb5a24b..36368b5112b7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListKeysSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the access keys for the specified Azure Cosmos DB database account. * * @summary Lists the access keys for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListKeys.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListKeys.json */ async function cosmosDbDatabaseAccountListKeys() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListMetricDefinitionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListMetricDefinitionsSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListMetricDefinitionsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListMetricDefinitionsSample.ts index c129d99e54c7..5bba6a6c03cd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListMetricDefinitionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListMetricDefinitionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves metric definitions for the given database account. * * @summary Retrieves metric definitions for the given database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json */ async function cosmosDbDatabaseAccountGetMetricDefinitions() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListMetricsSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListMetricsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListMetricsSample.ts index 01e0d78d3525..a799ef3a0bb0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account. * * @summary Retrieves the metrics determined by the given filter for the given database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetMetrics.json */ async function cosmosDbDatabaseAccountGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListReadOnlyKeysSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListReadOnlyKeysSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListReadOnlyKeysSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListReadOnlyKeysSample.ts index 83241d86a715..92f9088cc4dd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListReadOnlyKeysSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListReadOnlyKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the read-only access keys for the specified Azure Cosmos DB database account. * * @summary Lists the read-only access keys for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json */ async function cosmosDbDatabaseAccountListReadOnlyKeys() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListSample.ts index 15469a03784a..b03a250e3e6c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the Azure Cosmos DB database accounts available under the subscription. * * @summary Lists all the Azure Cosmos DB database accounts available under the subscription. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountList.json */ async function cosmosDbDatabaseAccountList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListUsagesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListUsagesSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListUsagesSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListUsagesSample.ts index 731601317c15..e90e1b9b51ca 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListUsagesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsListUsagesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the usages (most recent data) for the given database account. * * @summary Retrieves the usages (most recent data) for the given database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetUsages.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountGetUsages.json */ async function cosmosDbDatabaseAccountGetUsages() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsOfflineRegionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsOfflineRegionSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsOfflineRegionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsOfflineRegionSample.ts index aeddb4c21227..5af9489949d3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsOfflineRegionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsOfflineRegionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Offline the specified region for the specified Azure Cosmos DB database account. * * @summary Offline the specified region for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountOfflineRegion.json */ async function cosmosDbDatabaseAccountOfflineRegion() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsOnlineRegionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsOnlineRegionSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsOnlineRegionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsOnlineRegionSample.ts index 21db28480115..eb2bc8eb4eef 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsOnlineRegionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsOnlineRegionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Online the specified region for the specified Azure Cosmos DB database account. * * @summary Online the specified region for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountOnlineRegion.json */ async function cosmosDbDatabaseAccountOnlineRegion() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsRegenerateKeySample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsRegenerateKeySample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsRegenerateKeySample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsRegenerateKeySample.ts index e94fec9a0ac1..9090bfa49673 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsRegenerateKeySample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsRegenerateKeySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates an access key for the specified Azure Cosmos DB database account. * * @summary Regenerates an access key for the specified Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountRegenerateKey.json */ async function cosmosDbDatabaseAccountRegenerateKey() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsUpdateSample.ts similarity index 91% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsUpdateSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsUpdateSample.ts index 35b201a8d1ba..00e20216ed8f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseAccountsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing Azure Cosmos DB database account. * * @summary Updates the properties of an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountPatch.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseAccountPatch.json */ async function cosmosDbDatabaseAccountPatch() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -34,25 +34,21 @@ async function cosmosDbDatabaseAccountPatch() { periodicModeProperties: { backupIntervalInMinutes: 240, backupRetentionIntervalInHours: 720, - backupStorageRedundancy: "Geo", + backupStorageRedundancy: "Local", }, }, capacity: { totalThroughputLimit: 2000 }, - capacityMode: "Provisioned", consistencyPolicy: { defaultConsistencyLevel: "BoundedStaleness", maxIntervalInSeconds: 10, maxStalenessPrefix: 200, }, defaultIdentity: "FirstPartyIdentity", - defaultPriorityLevel: "Low", - diagnosticLogSettings: { enableFullTextQuery: "True" }, enableAnalyticalStorage: true, enableBurstCapacity: true, enableFreeTier: false, enablePartitionMerge: true, enablePerRegionPerPartitionAutoscale: true, - enablePriorityBasedExecution: true, identity: { type: "SystemAssigned,UserAssigned", userAssignedIdentities: { diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseListMetricDefinitionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseListMetricDefinitionsSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseListMetricDefinitionsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseListMetricDefinitionsSample.ts index 3fd2032765f8..e49a4bab07c5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseListMetricDefinitionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseListMetricDefinitionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves metric definitions for the given database. * * @summary Retrieves metric definitions for the given database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetMetricDefinitions.json */ async function cosmosDbDatabaseGetMetricDefinitions() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseListMetricsSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseListMetricsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseListMetricsSample.ts index 7f71a4bfa6ce..fadb9e342724 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account and database. * * @summary Retrieves the metrics determined by the given filter for the given database account and database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetMetrics.json */ async function cosmosDbDatabaseGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseListUsagesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseListUsagesSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseListUsagesSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseListUsagesSample.ts index eac3b80f8826..cf52875c6d75 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseListUsagesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/databaseListUsagesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the usages (most recent data) for the given database. * * @summary Retrieves the usages (most recent data) for the given database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetUsages.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDatabaseGetUsages.json */ async function cosmosDbDatabaseGetUsages() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesCreateUpdateGremlinDatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesCreateUpdateGremlinDatabaseSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesCreateUpdateGremlinDatabaseSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesCreateUpdateGremlinDatabaseSample.ts index 9932bde2975c..1b45231aa4ea 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesCreateUpdateGremlinDatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesCreateUpdateGremlinDatabaseSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Gremlin database * * @summary Create or update an Azure Cosmos DB Gremlin database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json */ async function cosmosDbGremlinDatabaseCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesCreateUpdateGremlinGraphSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesCreateUpdateGremlinGraphSample.ts similarity index 96% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesCreateUpdateGremlinGraphSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesCreateUpdateGremlinGraphSample.ts index 7245af092523..782fb365db85 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesCreateUpdateGremlinGraphSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesCreateUpdateGremlinGraphSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Gremlin graph * * @summary Create or update an Azure Cosmos DB Gremlin graph - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphCreateUpdate.json */ async function cosmosDbGremlinGraphCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesDeleteGremlinDatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesDeleteGremlinDatabaseSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesDeleteGremlinDatabaseSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesDeleteGremlinDatabaseSample.ts index e1bd2b7b2417..4fd841d1cf2f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesDeleteGremlinDatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesDeleteGremlinDatabaseSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Gremlin database. * * @summary Deletes an existing Azure Cosmos DB Gremlin database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseDelete.json */ async function cosmosDbGremlinDatabaseDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesDeleteGremlinGraphSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesDeleteGremlinGraphSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesDeleteGremlinGraphSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesDeleteGremlinGraphSample.ts index f1981eac2cb3..5b79706d064a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesDeleteGremlinGraphSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesDeleteGremlinGraphSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Gremlin graph. * * @summary Deletes an existing Azure Cosmos DB Gremlin graph. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphDelete.json */ async function cosmosDbGremlinGraphDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinDatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinDatabaseSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinDatabaseSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinDatabaseSample.ts index d97b06af4da1..80977d644668 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinDatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinDatabaseSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseGet.json */ async function cosmosDbGremlinDatabaseGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinDatabaseThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinDatabaseThroughputSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinDatabaseThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinDatabaseThroughputSample.ts index f101375446f9..78194bec956f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinDatabaseThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinDatabaseThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseThroughputGet.json */ async function cosmosDbGremlinDatabaseThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinGraphSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinGraphSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinGraphSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinGraphSample.ts index bd584a003c45..cb3d6e703415 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinGraphSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinGraphSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Gremlin graph under an existing Azure Cosmos DB database account. * * @summary Gets the Gremlin graph under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphGet.json */ async function cosmosDbGremlinGraphGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinGraphThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinGraphThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinGraphThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinGraphThroughputSample.ts index 70f8a2fdeb26..453afdb5c155 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinGraphThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesGetGremlinGraphThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphThroughputGet.json */ async function cosmosDbGremlinGraphThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesListGremlinDatabasesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesListGremlinDatabasesSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesListGremlinDatabasesSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesListGremlinDatabasesSample.ts index 48b1b68c03f1..4236d592ce70 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesListGremlinDatabasesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesListGremlinDatabasesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the Gremlin databases under an existing Azure Cosmos DB database account. * * @summary Lists the Gremlin databases under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseList.json */ async function cosmosDbGremlinDatabaseList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesListGremlinGraphsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesListGremlinGraphsSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesListGremlinGraphsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesListGremlinGraphsSample.ts index 48be3df00df8..b5ce778c1314 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesListGremlinGraphsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesListGremlinGraphsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the Gremlin graph under an existing Azure Cosmos DB database account. * * @summary Lists the Gremlin graph under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphList.json */ async function cosmosDbGremlinGraphList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts index 5b305ba7858e..69782c4fe58b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json */ async function cosmosDbGremlinDatabaseMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts index f490761e19be..d911a37643cb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json */ async function cosmosDbGremlinDatabaseMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts index a9bcc6a9111e..67cdaf9dda00 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json */ async function cosmosDbGremlinGraphMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts index 1a0be662398d..2ed863ef5b31 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json */ async function cosmosDbGremlinGraphMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesRetrieveContinuousBackupInformationSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesRetrieveContinuousBackupInformationSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesRetrieveContinuousBackupInformationSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesRetrieveContinuousBackupInformationSample.ts index 0b171acbfc16..ec4373512824 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesRetrieveContinuousBackupInformationSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesRetrieveContinuousBackupInformationSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves continuous backup information for a gremlin graph. * * @summary Retrieves continuous backup information for a gremlin graph. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphBackupInformation.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphBackupInformation.json */ async function cosmosDbGremlinGraphBackupInformation() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts index d443650408f4..0f5af07bc622 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Gremlin database * * @summary Update RUs per second of an Azure Cosmos DB Gremlin database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json */ async function cosmosDbGremlinDatabaseThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesUpdateGremlinGraphThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesUpdateGremlinGraphThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesUpdateGremlinGraphThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesUpdateGremlinGraphThroughputSample.ts index 015a031572ef..45967ff8146c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesUpdateGremlinGraphThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/gremlinResourcesUpdateGremlinGraphThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Gremlin graph * * @summary Update RUs per second of an Azure Cosmos DB Gremlin graph - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGremlinGraphThroughputUpdate.json */ async function cosmosDbGremlinGraphThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/locationsGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/locationsGetSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/locationsGetSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/locationsGetSample.ts index d836240c30bc..12b11c4a268f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/locationsGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/locationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the properties of an existing Cosmos DB location * * @summary Get the properties of an existing Cosmos DB location - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBLocationGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBLocationGet.json */ async function cosmosDbLocationGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/locationsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/locationsListSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/locationsListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/locationsListSample.ts index fde2764fc351..827ef42592e3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/locationsListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/locationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List Cosmos DB locations and their properties * * @summary List Cosmos DB locations and their properties - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBLocationList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBLocationList.json */ async function cosmosDbLocationList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesCreateUpdateCassandraViewSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts similarity index 54% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesCreateUpdateCassandraViewSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts index 02d22e28da30..a5f5546a5919 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesCreateUpdateCassandraViewSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts @@ -9,7 +9,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - CassandraViewCreateUpdateParameters, + MongoDBCollectionCreateUpdateParameters, CosmosDBManagementClient, } from "@azure/arm-cosmosdb"; import { DefaultAzureCredential } from "@azure/identity"; @@ -18,42 +18,49 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Create or update an Azure Cosmos DB Cassandra View + * This sample demonstrates how to Create or update an Azure Cosmos DB MongoDB Collection * - * @summary Create or update an Azure Cosmos DB Cassandra View - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewCreateUpdate.json + * @summary Create or update an Azure Cosmos DB MongoDB Collection + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json */ -async function cosmosDbCassandraViewCreateUpdate() { +async function cosmosDbMongoDbcollectionCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const createUpdateCassandraViewParameters: CassandraViewCreateUpdateParameters = + const databaseName = "databaseName"; + const collectionName = "collectionName"; + const createUpdateMongoDBCollectionParameters: MongoDBCollectionCreateUpdateParameters = { + location: "West US", options: {}, resource: { - id: "viewname", - viewDefinition: - "SELECT columna, columnb, columnc FROM keyspacename.srctablename WHERE columna IS NOT NULL AND columnc IS NOT NULL PRIMARY (columnc, columna)", + id: "collectionName", + indexes: [ + { + key: { keys: ["_ts"] }, + options: { expireAfterSeconds: 100, unique: true }, + }, + { key: { keys: ["_id"] } }, + ], + shardKey: { testKey: "Hash" }, }, tags: {}, }; const credential = new DefaultAzureCredential(); const client = new CosmosDBManagementClient(credential, subscriptionId); const result = - await client.cassandraResources.beginCreateUpdateCassandraViewAndWait( + await client.mongoDBResources.beginCreateUpdateMongoDBCollectionAndWait( resourceGroupName, accountName, - keyspaceName, - viewName, - createUpdateCassandraViewParameters, + databaseName, + collectionName, + createUpdateMongoDBCollectionParameters, ); console.log(result); } async function main() { - cosmosDbCassandraViewCreateUpdate(); + cosmosDbMongoDbcollectionCreateUpdate(); } main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts similarity index 60% rename from sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts index d6f1d65e2af1..3644e29bcd81 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts @@ -9,7 +9,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - RetrieveThroughputParameters, + MongoDBDatabaseCreateUpdateParameters, CosmosDBManagementClient, } from "@azure/arm-cosmosdb"; import { DefaultAzureCredential } from "@azure/identity"; @@ -18,33 +18,37 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Retrieve throughput distribution for an Azure Cosmos DB SQL database + * This sample demonstrates how to Create or updates Azure Cosmos DB MongoDB database * - * @summary Retrieve throughput distribution for an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseRetrieveThroughputDistribution.json + * @summary Create or updates Azure Cosmos DB MongoDB database + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json */ -async function cosmosDbSqlDatabaseRetrieveThroughputDistribution() { +async function cosmosDbMongoDbdatabaseCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; const accountName = "ddb1"; const databaseName = "databaseName"; - const retrieveThroughputParameters: RetrieveThroughputParameters = { - resource: { physicalPartitionIds: [{ id: "0" }, { id: "1" }] }, - }; + const createUpdateMongoDBDatabaseParameters: MongoDBDatabaseCreateUpdateParameters = + { + location: "West US", + options: {}, + resource: { id: "databaseName" }, + tags: {}, + }; const credential = new DefaultAzureCredential(); const client = new CosmosDBManagementClient(credential, subscriptionId); const result = - await client.sqlResources.beginSqlDatabaseRetrieveThroughputDistributionAndWait( + await client.mongoDBResources.beginCreateUpdateMongoDBDatabaseAndWait( resourceGroupName, accountName, databaseName, - retrieveThroughputParameters, + createUpdateMongoDBDatabaseParameters, ); console.log(result); } async function main() { - cosmosDbSqlDatabaseRetrieveThroughputDistribution(); + cosmosDbMongoDbdatabaseCreateUpdate(); } main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts index ae9b9e3049be..9070380cdaec 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB Mongo Role Definition. * * @summary Creates or updates an Azure Cosmos DB Mongo Role Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json */ async function cosmosDbMongoDbroleDefinitionCreateUpdate() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts index 1f238d74efd6..80ca764b78bb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB Mongo User Definition. * * @summary Creates or updates an Azure Cosmos DB Mongo User Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json */ async function cosmosDbMongoDbuserDefinitionCreateUpdate() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoDbcollectionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoDbcollectionSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoDbcollectionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoDbcollectionSample.ts index 18c740ef6406..c6e379d1fbf9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoDbcollectionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoDbcollectionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB MongoDB Collection. * * @summary Deletes an existing Azure Cosmos DB MongoDB Collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionDelete.json */ async function cosmosDbMongoDbcollectionDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoDbdatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoDbdatabaseSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoDbdatabaseSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoDbdatabaseSample.ts index d638292ee638..7394eb59370d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoDbdatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoDbdatabaseSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB MongoDB database. * * @summary Deletes an existing Azure Cosmos DB MongoDB database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseDelete.json */ async function cosmosDbMongoDbdatabaseDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoRoleDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoRoleDefinitionSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoRoleDefinitionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoRoleDefinitionSample.ts index 455af7e78b06..9f6ae4850ed5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoRoleDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoRoleDefinitionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Mongo Role Definition. * * @summary Deletes an existing Azure Cosmos DB Mongo Role Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionDelete.json */ async function cosmosDbMongoDbroleDefinitionDelete() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoUserDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoUserDefinitionSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoUserDefinitionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoUserDefinitionSample.ts index 3387c4ee1e28..49e8c8b36ef2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoUserDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesDeleteMongoUserDefinitionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Mongo User Definition. * * @summary Deletes an existing Azure Cosmos DB Mongo User Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionDelete.json */ async function cosmosDbMongoDbuserDefinitionDelete() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbcollectionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbcollectionSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbcollectionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbcollectionSample.ts index d5c6a155b7c7..a370166595f7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbcollectionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbcollectionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the MongoDB collection under an existing Azure Cosmos DB database account. * * @summary Gets the MongoDB collection under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionGet.json */ async function cosmosDbMongoDbcollectionGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbcollectionThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbcollectionThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbcollectionThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbcollectionThroughputSample.ts index 11e363adc2dd..b5f5e06dce9f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbcollectionThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbcollectionThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionThroughputGet.json */ async function cosmosDbMongoDbcollectionThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbdatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbdatabaseSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbdatabaseSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbdatabaseSample.ts index ce9e2456ec8b..14098475bad3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbdatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbdatabaseSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseGet.json */ async function cosmosDbMongoDbdatabaseGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts index 82992f9213df..33c41172b961 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json */ async function cosmosDbMongoDbdatabaseThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoRoleDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoRoleDefinitionSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoRoleDefinitionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoRoleDefinitionSample.ts index 4ea2274fc065..38cb717370c7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoRoleDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoRoleDefinitionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB Mongo Role Definition with the given Id. * * @summary Retrieves the properties of an existing Azure Cosmos DB Mongo Role Definition with the given Id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionGet.json */ async function cosmosDbMongoRoleDefinitionGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoUserDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoUserDefinitionSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoUserDefinitionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoUserDefinitionSample.ts index 7e558b3ff8e8..1c2afd267b4b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoUserDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesGetMongoUserDefinitionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id. * * @summary Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionGet.json */ async function cosmosDbMongoDbuserDefinitionGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoDbcollectionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoDbcollectionsSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoDbcollectionsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoDbcollectionsSample.ts index 5466ee66d95e..54cf10855997 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoDbcollectionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoDbcollectionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the MongoDB collection under an existing Azure Cosmos DB database account. * * @summary Lists the MongoDB collection under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionList.json */ async function cosmosDbMongoDbcollectionList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoDbdatabasesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoDbdatabasesSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoDbdatabasesSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoDbdatabasesSample.ts index d7a11a5b5e11..02c8340434ef 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoDbdatabasesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoDbdatabasesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the MongoDB databases under an existing Azure Cosmos DB database account. * * @summary Lists the MongoDB databases under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseList.json */ async function cosmosDbMongoDbdatabaseList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoRoleDefinitionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoRoleDefinitionsSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoRoleDefinitionsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoRoleDefinitionsSample.ts index 1845435f10c2..b75e8679aec0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoRoleDefinitionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoRoleDefinitionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the list of all Azure Cosmos DB Mongo Role Definitions. * * @summary Retrieves the list of all Azure Cosmos DB Mongo Role Definitions. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBRoleDefinitionList.json */ async function cosmosDbMongoDbroleDefinitionList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoUserDefinitionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoUserDefinitionsSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoUserDefinitionsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoUserDefinitionsSample.ts index 7189da5c84e4..7c83cd5f9d68 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoUserDefinitionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesListMongoUserDefinitionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the list of all Azure Cosmos DB Mongo User Definition. * * @summary Retrieves the list of all Azure Cosmos DB Mongo User Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBUserDefinitionList.json */ async function cosmosDbMongoDbuserDefinitionList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts index 06d356bde234..fad37ea8c404 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json */ async function cosmosDbMongoDbcollectionMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts index f43085ee619f..36dd9a502a6b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json */ async function cosmosDbMongoDbcollectionMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts index dbffb6302abf..1531798ead50 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json */ async function cosmosDbMongoDbdatabaseMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts index 350cf3a5558e..8722cd024afd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json */ async function cosmosDbMongoDbdatabaseMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesRetrieveContinuousBackupInformationSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesRetrieveContinuousBackupInformationSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesRetrieveContinuousBackupInformationSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesRetrieveContinuousBackupInformationSample.ts index 4985ffd87fb5..a2017db506b0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesRetrieveContinuousBackupInformationSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesRetrieveContinuousBackupInformationSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves continuous backup information for a Mongodb collection. * * @summary Retrieves continuous backup information for a Mongodb collection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionBackupInformation.json */ async function cosmosDbMongoDbcollectionBackupInformation() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts index e97d5a58934c..9ee4de8a068e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update the RUs per second of an Azure Cosmos DB MongoDB collection * * @summary Update the RUs per second of an Azure Cosmos DB MongoDB collection - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json */ async function cosmosDbMongoDbcollectionThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts index 8f4a317cbc3a..2545c1e17d7e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of the an Azure Cosmos DB MongoDB database * * @summary Update RUs per second of the an Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json */ async function cosmosDbMongoDbdatabaseThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesCreateOrUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesCreateOrUpdateSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesCreateOrUpdateSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesCreateOrUpdateSample.ts index 462cf5dd14fd..908adf7d05b9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesCreateOrUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates the notebook workspace for a Cosmos DB account. * * @summary Creates the notebook workspace for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceCreate.json */ async function cosmosDbNotebookWorkspaceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesDeleteSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesDeleteSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesDeleteSample.ts index 2143f15f975d..f9a37b876750 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesDeleteSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the notebook workspace for a Cosmos DB account. * * @summary Deletes the notebook workspace for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceDelete.json */ async function cosmosDbNotebookWorkspaceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesGetSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesGetSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesGetSample.ts index 4e533af7a134..519f9e0a193a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the notebook workspace for a Cosmos DB account. * * @summary Gets the notebook workspace for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceGet.json */ async function cosmosDbNotebookWorkspaceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesListByDatabaseAccountSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesListByDatabaseAccountSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesListByDatabaseAccountSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesListByDatabaseAccountSample.ts index 663236337c13..87539e39c1b3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesListByDatabaseAccountSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesListByDatabaseAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the notebook workspace resources of an existing Cosmos DB account. * * @summary Gets the notebook workspace resources of an existing Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceList.json */ async function cosmosDbNotebookWorkspaceList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesListConnectionInfoSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesListConnectionInfoSample.ts similarity index 92% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesListConnectionInfoSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesListConnectionInfoSample.ts index a1a15a85b7f6..b7b164759ddd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesListConnectionInfoSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesListConnectionInfoSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the connection info for the notebook workspace * * @summary Retrieves the connection info for the notebook workspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json */ async function cosmosDbNotebookWorkspaceListConnectionInfo() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesRegenerateAuthTokenSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesRegenerateAuthTokenSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesRegenerateAuthTokenSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesRegenerateAuthTokenSample.ts index c7ab7582b9c0..680d466acb9d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesRegenerateAuthTokenSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesRegenerateAuthTokenSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates the auth token for the notebook workspace * * @summary Regenerates the auth token for the notebook workspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json */ async function cosmosDbNotebookWorkspaceRegenerateAuthToken() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesStartSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesStartSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesStartSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesStartSample.ts index 76da1dc8bd02..fb8d32d9c255 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesStartSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/notebookWorkspacesStartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Starts the notebook workspace * * @summary Starts the notebook workspace - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceStart.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBNotebookWorkspaceStart.json */ async function cosmosDbNotebookWorkspaceStart() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/operationsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/operationsListSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/operationsListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/operationsListSample.ts index 5c641cb5b7ce..7eceff1a6c29 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/operationsListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available Cosmos DB Resource Provider operations. * * @summary Lists all of the available Cosmos DB Resource Provider operations. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBOperationsList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBOperationsList.json */ async function cosmosDbOperationsList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/partitionKeyRangeIdListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/partitionKeyRangeIdListMetricsSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/partitionKeyRangeIdListMetricsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/partitionKeyRangeIdListMetricsSample.ts index 37d3b3cc6381..091a2619441f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/partitionKeyRangeIdListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/partitionKeyRangeIdListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given partition key range id. * * @summary Retrieves the metrics determined by the given filter for the given partition key range id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPKeyRangeIdGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/partitionKeyRangeIdRegionListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/partitionKeyRangeIdRegionListMetricsSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/partitionKeyRangeIdRegionListMetricsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/partitionKeyRangeIdRegionListMetricsSample.ts index 169e2c0adabf..d2967ae366e7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/partitionKeyRangeIdRegionListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/partitionKeyRangeIdRegionListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given partition key range id and region. * * @summary Retrieves the metrics determined by the given filter for the given partition key range id and region. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/percentileListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/percentileListMetricsSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/percentileListMetricsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/percentileListMetricsSample.ts index 10557e404259..d69d3e80ccdb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/percentileListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/percentileListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data * * @summary Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/percentileSourceTargetListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/percentileSourceTargetListMetricsSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/percentileSourceTargetListMetricsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/percentileSourceTargetListMetricsSample.ts index 474d44b70e61..410612c76e28 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/percentileSourceTargetListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/percentileSourceTargetListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data * * @summary Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/percentileTargetListMetricsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/percentileTargetListMetricsSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/percentileTargetListMetricsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/percentileTargetListMetricsSample.ts index 6abd63973e35..9fc6e89caba5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/percentileTargetListMetricsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/percentileTargetListMetricsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data * * @summary Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileTargetGetMetrics.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPercentileTargetGetMetrics.json */ async function cosmosDbDatabaseAccountRegionGetMetrics() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts index cabf6af6a3eb..1a77f6924db1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Approve or reject a private endpoint connection with a given name. * * @summary Approve or reject a private endpoint connection with a given name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json */ async function approveOrRejectAPrivateEndpointConnectionWithAGivenName() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsDeleteSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsDeleteSample.ts index aef3ab61ee32..4859ab59bcf3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a private endpoint connection with a given name. * * @summary Deletes a private endpoint connection with a given name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionDelete.json */ async function deletesAPrivateEndpointConnectionWithAGivenName() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsGetSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsGetSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsGetSample.ts index ecd8e27dd4c3..34db25222933 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a private endpoint connection. * * @summary Gets a private endpoint connection. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsListByDatabaseAccountSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsListByDatabaseAccountSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsListByDatabaseAccountSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsListByDatabaseAccountSample.ts index 063f8c65e229..182b7d280852 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsListByDatabaseAccountSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateEndpointConnectionsListByDatabaseAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all private endpoint connections on a Cosmos DB account. * * @summary List all private endpoint connections on a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateEndpointConnectionListGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateLinkResourcesGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateLinkResourcesGetSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateLinkResourcesGetSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateLinkResourcesGetSample.ts index ab3e8ce9ec2d..0570d1584c85 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateLinkResourcesGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateLinkResourcesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources that need to be created for a Cosmos DB account. * * @summary Gets the private link resources that need to be created for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateLinkResourceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateLinkResourceGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateLinkResourcesListByDatabaseAccountSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateLinkResourcesListByDatabaseAccountSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateLinkResourcesListByDatabaseAccountSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateLinkResourcesListByDatabaseAccountSample.ts index 978355243ef8..5052eaf5ed55 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateLinkResourcesListByDatabaseAccountSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/privateLinkResourcesListByDatabaseAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources that need to be created for a Cosmos DB account. * * @summary Gets the private link resources that need to be created for a Cosmos DB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateLinkResourceListGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBPrivateLinkResourceListGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableDatabaseAccountsGetByLocationSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableDatabaseAccountsGetByLocationSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableDatabaseAccountsGetByLocationSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableDatabaseAccountsGetByLocationSample.ts index 5ccc998a1168..0a5fa126b434 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableDatabaseAccountsGetByLocationSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableDatabaseAccountsGetByLocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission. * * @summary Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountGet.json */ async function cosmosDbRestorableDatabaseAccountGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableDatabaseAccountsListByLocationSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableDatabaseAccountsListByLocationSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableDatabaseAccountsListByLocationSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableDatabaseAccountsListByLocationSample.ts index 3901dcfee623..a817b37b4407 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableDatabaseAccountsListByLocationSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableDatabaseAccountsListByLocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. * * @summary Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountList.json */ async function cosmosDbRestorableDatabaseAccountList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableDatabaseAccountsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableDatabaseAccountsListSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableDatabaseAccountsListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableDatabaseAccountsListSample.ts index 2be696937c62..9143ce37a4a6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableDatabaseAccountsListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableDatabaseAccountsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. * * @summary Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json */ async function cosmosDbRestorableDatabaseAccountNoLocationList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableGremlinDatabasesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableGremlinDatabasesListSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableGremlinDatabasesListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableGremlinDatabasesListSample.ts index 42131c2c3ea7..5fe1b0512347 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableGremlinDatabasesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableGremlinDatabasesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinDatabaseList.json */ async function cosmosDbRestorableGremlinDatabaseList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableGremlinGraphsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableGremlinGraphsListSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableGremlinGraphsListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableGremlinGraphsListSample.ts index a07dc1bf76bf..d8cb724cbd2d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableGremlinGraphsListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableGremlinGraphsListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin graphs under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin graphs under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinGraphList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinGraphList.json */ async function cosmosDbRestorableGremlinGraphList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableGremlinResourcesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableGremlinResourcesListSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableGremlinResourcesListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableGremlinResourcesListSample.ts index 225300adf119..f725472179c5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableGremlinResourcesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableGremlinResourcesListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Return a list of gremlin database and graphs combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. * * @summary Return a list of gremlin database and graphs combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinResourceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableGremlinResourceList.json */ async function cosmosDbRestorableGremlinResourceList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableMongodbCollectionsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableMongodbCollectionsListSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableMongodbCollectionsListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableMongodbCollectionsListSample.ts index 53894f71146b..3a8481a19a17 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableMongodbCollectionsListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableMongodbCollectionsListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbCollectionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbCollectionList.json */ async function cosmosDbRestorableMongodbCollectionList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableMongodbDatabasesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableMongodbDatabasesListSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableMongodbDatabasesListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableMongodbDatabasesListSample.ts index 22566916f962..2d7f3518b028 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableMongodbDatabasesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableMongodbDatabasesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbDatabaseList.json */ async function cosmosDbRestorableMongodbDatabaseList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableMongodbResourcesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableMongodbResourcesListSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableMongodbResourcesListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableMongodbResourcesListSample.ts index 88f1a46af846..84a4189b2aa1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableMongodbResourcesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableMongodbResourcesListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. * * @summary Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbResourceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableMongodbResourceList.json */ async function cosmosDbRestorableMongodbResourceList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableSqlContainersListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableSqlContainersListSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableSqlContainersListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableSqlContainersListSample.ts index 8c7f2a20b415..6e910768f681 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableSqlContainersListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableSqlContainersListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlContainerList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlContainerList.json */ async function cosmosDbRestorableSqlContainerList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableSqlDatabasesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableSqlDatabasesListSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableSqlDatabasesListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableSqlDatabasesListSample.ts index 32de6c018044..d6ca881ff59f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableSqlDatabasesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableSqlDatabasesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlDatabaseList.json */ async function cosmosDbRestorableSqlDatabaseList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableSqlResourcesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableSqlResourcesListSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableSqlResourcesListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableSqlResourcesListSample.ts index 4aa140ae7045..743de4fc0c35 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableSqlResourcesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableSqlResourcesListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. * * @summary Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlResourceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableSqlResourceList.json */ async function cosmosDbRestorableSqlResourceList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableTableResourcesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableTableResourcesListSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableTableResourcesListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableTableResourcesListSample.ts index e61168ef358a..411ce12e0ae1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableTableResourcesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableTableResourcesListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Return a list of tables that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. * * @summary Return a list of tables that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableTableResourceList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableTableResourceList.json */ async function cosmosDbRestorableTableResourceList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableTablesListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableTablesListSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableTablesListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableTablesListSample.ts index 940d0a613a55..26c1f355dfbd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableTablesListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/restorableTablesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Show the event feed of all mutations done on all the Azure Cosmos DB Tables. This helps in scenario where table was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission * * @summary Show the event feed of all mutations done on all the Azure Cosmos DB Tables. This helps in scenario where table was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableTableList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBRestorableTableList.json */ async function cosmosDbRestorableTableList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceCreateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceCreateSample.ts similarity index 91% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceCreateSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceCreateSample.ts index cd2a495b1658..d1c053d2466c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceCreateSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a service. * * @summary Creates a service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceCreate.json */ async function dataTransferServiceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -50,7 +50,7 @@ async function dataTransferServiceCreate() { * This sample demonstrates how to Creates a service. * * @summary Creates a service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphAPIComputeServiceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGraphAPIComputeServiceCreate.json */ async function graphApiComputeServiceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -79,7 +79,7 @@ async function graphApiComputeServiceCreate() { * This sample demonstrates how to Creates a service. * * @summary Creates a service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMaterializedViewsBuilderServiceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMaterializedViewsBuilderServiceCreate.json */ async function materializedViewsBuilderServiceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -108,7 +108,7 @@ async function materializedViewsBuilderServiceCreate() { * This sample demonstrates how to Creates a service. * * @summary Creates a service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceCreate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceCreate.json */ async function sqlDedicatedGatewayServiceCreate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceDeleteSample.ts similarity index 89% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceDeleteSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceDeleteSample.ts index f45b1f5553e6..28833728c1ad 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceDeleteSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes service with the given serviceName. * * @summary Deletes service with the given serviceName. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceDelete.json */ async function dataTransferServiceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,7 @@ async function dataTransferServiceDelete() { * This sample demonstrates how to Deletes service with the given serviceName. * * @summary Deletes service with the given serviceName. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphAPIComputeServiceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGraphAPIComputeServiceDelete.json */ async function graphApiComputeServiceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -60,7 +60,7 @@ async function graphApiComputeServiceDelete() { * This sample demonstrates how to Deletes service with the given serviceName. * * @summary Deletes service with the given serviceName. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMaterializedViewsBuilderServiceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMaterializedViewsBuilderServiceDelete.json */ async function materializedViewsBuilderServiceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -81,7 +81,7 @@ async function materializedViewsBuilderServiceDelete() { * This sample demonstrates how to Deletes service with the given serviceName. * * @summary Deletes service with the given serviceName. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceDelete.json */ async function sqlDedicatedGatewayServiceDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceGetSample.ts similarity index 89% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceGetSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceGetSample.ts index 7c0fd04d44de..390e1ae433c0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceGetSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBDataTransferServiceGet.json */ async function dataTransferServiceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,7 @@ async function dataTransferServiceGet() { * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphAPIComputeServiceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBGraphAPIComputeServiceGet.json */ async function graphApiComputeServiceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -60,7 +60,7 @@ async function graphApiComputeServiceGet() { * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMaterializedViewsBuilderServiceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBMaterializedViewsBuilderServiceGet.json */ async function materializedViewsBuilderServiceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; @@ -81,7 +81,7 @@ async function materializedViewsBuilderServiceGet() { * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceGet.json */ async function sqlDedicatedGatewayServiceGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceListSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceListSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceListSample.ts index 3aaf97a2397d..5d37ae555d50 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceListSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/serviceListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the status of service. * * @summary Gets the status of service. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBServicesList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBServicesList.json */ async function cosmosDbServicesList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateClientEncryptionKeySample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateClientEncryptionKeySample.ts similarity index 86% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateClientEncryptionKeySample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateClientEncryptionKeySample.ts index d442fdcb34f9..4249a213b249 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateClientEncryptionKeySample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateClientEncryptionKeySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly). * * @summary Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly). - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json */ async function cosmosDbClientEncryptionKeyCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subId"; @@ -40,9 +40,7 @@ async function cosmosDbClientEncryptionKeyCreateUpdate() { algorithm: "RSA-OAEP", value: "AzureKeyVault Key URL", }, - wrappedDataEncryptionKey: Buffer.from( - "VGhpcyBpcyBhY3R1YWxseSBhbiBhcnJheSBvZiBieXRlcy4gVGhpcyByZXF1ZXN0L3Jlc3BvbnNlIGlzIGJlaW5nIHByZXNlbnRlZCBhcyBhIHN0cmluZyBmb3IgcmVhZGFiaWxpdHkgaW4gdGhlIGV4YW1wbGU=", - ), + wrappedDataEncryptionKey: Buffer.from("U3dhZ2dlciByb2Nrcw=="), }, }; const credential = new DefaultAzureCredential(); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlContainerSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlContainerSample.ts new file mode 100644 index 000000000000..387d67ec459f --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlContainerSample.ts @@ -0,0 +1,119 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + SqlContainerCreateUpdateParameters, + CosmosDBManagementClient, +} from "@azure/arm-cosmosdb"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update an Azure Cosmos DB SQL container + * + * @summary Create or update an Azure Cosmos DB SQL container + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerCreateUpdate.json + */ +async function cosmosDbSqlContainerCreateUpdate() { + const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; + const accountName = "ddb1"; + const databaseName = "databaseName"; + const containerName = "containerName"; + const createUpdateSqlContainerParameters: SqlContainerCreateUpdateParameters = + { + location: "West US", + options: {}, + resource: { + clientEncryptionPolicy: { + includedPaths: [ + { + path: "/path", + clientEncryptionKeyId: "keyId", + encryptionAlgorithm: "AEAD_AES_256_CBC_HMAC_SHA256", + encryptionType: "Deterministic", + }, + ], + policyFormatVersion: 2, + }, + computedProperties: [ + { name: "cp_lowerName", query: "SELECT VALUE LOWER(c.name) FROM c" }, + ], + conflictResolutionPolicy: { + conflictResolutionPath: "/path", + mode: "LastWriterWins", + }, + defaultTtl: 100, + id: "containerName", + indexingPolicy: { + automatic: true, + excludedPaths: [], + includedPaths: [ + { + path: "/*", + indexes: [ + { dataType: "String", kind: "Range", precision: -1 }, + { dataType: "Number", kind: "Range", precision: -1 }, + ], + }, + ], + indexingMode: "consistent", + vectorIndexes: [ + { type: "flat", path: "/vectorPath1" }, + { type: "quantizedFlat", path: "/vectorPath2" }, + { type: "diskANN", path: "/vectorPath3" }, + ], + }, + partitionKey: { kind: "Hash", paths: ["/AccountNumber"] }, + uniqueKeyPolicy: { uniqueKeys: [{ paths: ["/testPath"] }] }, + vectorEmbeddingPolicy: { + vectorEmbeddings: [ + { + path: "/vectorPath1", + dataType: "float32", + dimensions: 400, + distanceFunction: "euclidean", + }, + { + path: "/vectorPath2", + dataType: "uint8", + dimensions: 512, + distanceFunction: "cosine", + }, + { + path: "/vectorPath3", + dataType: "int8", + dimensions: 512, + distanceFunction: "dotproduct", + }, + ], + }, + }, + tags: {}, + }; + const credential = new DefaultAzureCredential(); + const client = new CosmosDBManagementClient(credential, subscriptionId); + const result = await client.sqlResources.beginCreateUpdateSqlContainerAndWait( + resourceGroupName, + accountName, + databaseName, + containerName, + createUpdateSqlContainerParameters, + ); + console.log(result); +} + +async function main() { + cosmosDbSqlContainerCreateUpdate(); +} + +main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesCreateUpdateGraphSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlDatabaseSample.ts similarity index 65% rename from sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesCreateUpdateGraphSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlDatabaseSample.ts index 9405dafc5da0..4468864647b2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples-dev/graphResourcesCreateUpdateGraphSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlDatabaseSample.ts @@ -9,7 +9,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - GraphResourceCreateUpdateParameters, + SqlDatabaseCreateUpdateParameters, CosmosDBManagementClient, } from "@azure/arm-cosmosdb"; import { DefaultAzureCredential } from "@azure/identity"; @@ -18,35 +18,35 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Create or update an Azure Cosmos DB Graph. + * This sample demonstrates how to Create or update an Azure Cosmos DB SQL database * - * @summary Create or update an Azure Cosmos DB Graph. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceCreateUpdate.json + * @summary Create or update an Azure Cosmos DB SQL database + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseCreateUpdate.json */ -async function cosmosDbGraphCreateUpdate() { +async function cosmosDbSqlDatabaseCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; const accountName = "ddb1"; - const graphName = "graphName"; - const createUpdateGraphParameters: GraphResourceCreateUpdateParameters = { + const databaseName = "databaseName"; + const createUpdateSqlDatabaseParameters: SqlDatabaseCreateUpdateParameters = { location: "West US", options: {}, - resource: { id: "graphName" }, + resource: { id: "databaseName" }, tags: {}, }; const credential = new DefaultAzureCredential(); const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.graphResources.beginCreateUpdateGraphAndWait( + const result = await client.sqlResources.beginCreateUpdateSqlDatabaseAndWait( resourceGroupName, accountName, - graphName, - createUpdateGraphParameters, + databaseName, + createUpdateSqlDatabaseParameters, ); console.log(result); } async function main() { - cosmosDbGraphCreateUpdate(); + cosmosDbSqlDatabaseCreateUpdate(); } main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts index f512fd9a37f1..644f2e5587ae 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB SQL Role Assignment. * * @summary Creates or updates an Azure Cosmos DB SQL Role Assignment. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json */ async function cosmosDbSqlRoleAssignmentCreateUpdate() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts index e1d95ebdf00d..011fe662c2ce 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an Azure Cosmos DB SQL Role Definition. * * @summary Creates or updates an Azure Cosmos DB SQL Role Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json */ async function cosmosDbSqlRoleDefinitionCreateUpdate() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlStoredProcedureSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlStoredProcedureSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlStoredProcedureSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlStoredProcedureSample.ts index faf35cce97e8..9edf562119a7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlStoredProcedureSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlStoredProcedureSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB SQL storedProcedure * * @summary Create or update an Azure Cosmos DB SQL storedProcedure - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json */ async function cosmosDbSqlStoredProcedureCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlTriggerSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlTriggerSample.ts similarity index 95% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlTriggerSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlTriggerSample.ts index cfe8ea1d7213..1e8055bfa4c3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlTriggerSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlTriggerSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB SQL trigger * * @summary Create or update an Azure Cosmos DB SQL trigger - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerCreateUpdate.json */ async function cosmosDbSqlTriggerCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts index 67c48557770c..af7f30a448d9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB SQL userDefinedFunction * * @summary Create or update an Azure Cosmos DB SQL userDefinedFunction - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json */ async function cosmosDbSqlUserDefinedFunctionCreateUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlContainerSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlContainerSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlContainerSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlContainerSample.ts index f05b69d4d1b7..9a72a925498f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlContainerSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlContainerSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL container. * * @summary Deletes an existing Azure Cosmos DB SQL container. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerDelete.json */ async function cosmosDbSqlContainerDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlDatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlDatabaseSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlDatabaseSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlDatabaseSample.ts index ef465c359cca..21d9aefcc03c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlDatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlDatabaseSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL database. * * @summary Deletes an existing Azure Cosmos DB SQL database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseDelete.json */ async function cosmosDbSqlDatabaseDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlRoleAssignmentSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlRoleAssignmentSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlRoleAssignmentSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlRoleAssignmentSample.ts index 074e161ccb22..f614dcffb3dc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlRoleAssignmentSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlRoleAssignmentSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL Role Assignment. * * @summary Deletes an existing Azure Cosmos DB SQL Role Assignment. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentDelete.json */ async function cosmosDbSqlRoleAssignmentDelete() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlRoleDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlRoleDefinitionSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlRoleDefinitionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlRoleDefinitionSample.ts index 34637f5a316b..5ae8e0f3f36e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlRoleDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlRoleDefinitionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL Role Definition. * * @summary Deletes an existing Azure Cosmos DB SQL Role Definition. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionDelete.json */ async function cosmosDbSqlRoleDefinitionDelete() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlStoredProcedureSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlStoredProcedureSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlStoredProcedureSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlStoredProcedureSample.ts index e3b80ee6901a..8fe9920e9a59 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlStoredProcedureSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlStoredProcedureSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL storedProcedure. * * @summary Deletes an existing Azure Cosmos DB SQL storedProcedure. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureDelete.json */ async function cosmosDbSqlStoredProcedureDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlTriggerSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlTriggerSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlTriggerSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlTriggerSample.ts index 1679fa182627..1038bf68a3bf 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlTriggerSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlTriggerSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL trigger. * * @summary Deletes an existing Azure Cosmos DB SQL trigger. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerDelete.json */ async function cosmosDbSqlTriggerDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlUserDefinedFunctionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlUserDefinedFunctionSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlUserDefinedFunctionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlUserDefinedFunctionSample.ts index ce2c34249023..ffa1ce204b3c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlUserDefinedFunctionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesDeleteSqlUserDefinedFunctionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB SQL userDefinedFunction. * * @summary Deletes an existing Azure Cosmos DB SQL userDefinedFunction. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json */ async function cosmosDbSqlUserDefinedFunctionDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetClientEncryptionKeySample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetClientEncryptionKeySample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetClientEncryptionKeySample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetClientEncryptionKeySample.ts index 57fc359a3c20..b9d252657856 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetClientEncryptionKeySample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetClientEncryptionKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. * * @summary Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeyGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeyGet.json */ async function cosmosDbClientEncryptionKeyGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlContainerSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlContainerSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlContainerSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlContainerSample.ts index 598f843c54b2..a10a556c43e1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlContainerSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlContainerSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the SQL container under an existing Azure Cosmos DB database account. * * @summary Gets the SQL container under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerGet.json */ async function cosmosDbSqlContainerGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlContainerThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlContainerThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlContainerThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlContainerThroughputSample.ts index 1deb90c2c58e..8c1ca6c9cd00 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlContainerThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlContainerThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account. * * @summary Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerThroughputGet.json */ async function cosmosDbSqlContainerThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlDatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlDatabaseSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlDatabaseSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlDatabaseSample.ts index a29311954235..773d81ac43fa 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlDatabaseSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlDatabaseSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the SQL database under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the SQL database under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseGet.json */ async function cosmosDbSqlDatabaseGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlDatabaseThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlDatabaseThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlDatabaseThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlDatabaseThroughputSample.ts index a875897385aa..99df276c5eb2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlDatabaseThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlDatabaseThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseThroughputGet.json */ async function cosmosDbSqlDatabaseThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlRoleAssignmentSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlRoleAssignmentSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlRoleAssignmentSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlRoleAssignmentSample.ts index 51a1c139ceeb..c3d3cedb1feb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlRoleAssignmentSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlRoleAssignmentSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. * * @summary Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentGet.json */ async function cosmosDbSqlRoleAssignmentGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlRoleDefinitionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlRoleDefinitionSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlRoleDefinitionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlRoleDefinitionSample.ts index aacfc95c5d3a..e2c888c6c160 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlRoleDefinitionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlRoleDefinitionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. * * @summary Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionGet.json */ async function cosmosDbSqlRoleDefinitionGet() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlStoredProcedureSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlStoredProcedureSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlStoredProcedureSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlStoredProcedureSample.ts index 048d55ec4a64..17a3fc0a13d9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlStoredProcedureSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlStoredProcedureSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. * * @summary Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureGet.json */ async function cosmosDbSqlStoredProcedureGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlTriggerSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlTriggerSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlTriggerSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlTriggerSample.ts index cb340288be40..0ada7798453f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlTriggerSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlTriggerSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the SQL trigger under an existing Azure Cosmos DB database account. * * @summary Gets the SQL trigger under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerGet.json */ async function cosmosDbSqlTriggerGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlUserDefinedFunctionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlUserDefinedFunctionSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlUserDefinedFunctionSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlUserDefinedFunctionSample.ts index cf6ecc993dfe..819b3cd55e1b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlUserDefinedFunctionSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesGetSqlUserDefinedFunctionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account. * * @summary Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionGet.json */ async function cosmosDbSqlUserDefinedFunctionGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListClientEncryptionKeysSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListClientEncryptionKeysSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListClientEncryptionKeysSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListClientEncryptionKeysSample.ts index 22937321beae..5386fc292734 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListClientEncryptionKeysSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListClientEncryptionKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. * * @summary Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeysList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlClientEncryptionKeysList.json */ async function cosmosDbClientEncryptionKeysList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subId"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlContainersSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlContainersSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlContainersSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlContainersSample.ts index 213ab7563a5a..c8b4e713a6c8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlContainersSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlContainersSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the SQL container under an existing Azure Cosmos DB database account. * * @summary Lists the SQL container under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerList.json */ async function cosmosDbSqlContainerList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlDatabasesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlDatabasesSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlDatabasesSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlDatabasesSample.ts index 08b997dc975a..8fdcbcd5420b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlDatabasesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlDatabasesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the SQL databases under an existing Azure Cosmos DB database account. * * @summary Lists the SQL databases under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseList.json */ async function cosmosDbSqlDatabaseList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlRoleAssignmentsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlRoleAssignmentsSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlRoleAssignmentsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlRoleAssignmentsSample.ts index 27756bcb1a4a..031f8528ffad 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlRoleAssignmentsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlRoleAssignmentsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the list of all Azure Cosmos DB SQL Role Assignments. * * @summary Retrieves the list of all Azure Cosmos DB SQL Role Assignments. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleAssignmentList.json */ async function cosmosDbSqlRoleAssignmentList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlRoleDefinitionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlRoleDefinitionsSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlRoleDefinitionsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlRoleDefinitionsSample.ts index 4467fbec51cd..60b680d26aef 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlRoleDefinitionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlRoleDefinitionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the list of all Azure Cosmos DB SQL Role Definitions. * * @summary Retrieves the list of all Azure Cosmos DB SQL Role Definitions. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlRoleDefinitionList.json */ async function cosmosDbSqlRoleDefinitionList() { const subscriptionId = diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlStoredProceduresSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlStoredProceduresSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlStoredProceduresSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlStoredProceduresSample.ts index c395babb1966..9eab0671efa6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlStoredProceduresSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlStoredProceduresSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. * * @summary Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlStoredProcedureList.json */ async function cosmosDbSqlStoredProcedureList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlTriggersSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlTriggersSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlTriggersSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlTriggersSample.ts index ae18201970df..135179faf833 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlTriggersSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlTriggersSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the SQL trigger under an existing Azure Cosmos DB database account. * * @summary Lists the SQL trigger under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlTriggerList.json */ async function cosmosDbSqlTriggerList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlUserDefinedFunctionsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlUserDefinedFunctionsSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlUserDefinedFunctionsSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlUserDefinedFunctionsSample.ts index 4d53bc04589e..7310f9cf4445 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlUserDefinedFunctionsSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesListSqlUserDefinedFunctionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account. * * @summary Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlUserDefinedFunctionList.json */ async function cosmosDbSqlUserDefinedFunctionList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlContainerToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlContainerToAutoscaleSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlContainerToAutoscaleSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlContainerToAutoscaleSample.ts index 254594e5e687..749db4702caf 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlContainerToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlContainerToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json */ async function cosmosDbSqlContainerMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlContainerToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlContainerToManualThroughputSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlContainerToManualThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlContainerToManualThroughputSample.ts index b493affa1288..e4d687a7ef15 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlContainerToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlContainerToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json */ async function cosmosDbSqlContainerMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts index 6c3753e2266f..288e57b80d14 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json */ async function cosmosDbSqlDatabaseMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts index fea6ded44f72..255c4027613b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json */ async function cosmosDbSqlDatabaseMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesRetrieveContinuousBackupInformationSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesRetrieveContinuousBackupInformationSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesRetrieveContinuousBackupInformationSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesRetrieveContinuousBackupInformationSample.ts index 5bf4653204aa..4ed7d80b2fee 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesRetrieveContinuousBackupInformationSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesRetrieveContinuousBackupInformationSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves continuous backup information for a container resource. * * @summary Retrieves continuous backup information for a container resource. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerBackupInformation.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerBackupInformation.json */ async function cosmosDbSqlContainerBackupInformation() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesUpdateSqlContainerThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesUpdateSqlContainerThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesUpdateSqlContainerThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesUpdateSqlContainerThroughputSample.ts index 136f846bf289..bf09b1bc5192 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesUpdateSqlContainerThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesUpdateSqlContainerThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB SQL container * * @summary Update RUs per second of an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlContainerThroughputUpdate.json */ async function cosmosDbSqlContainerThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesUpdateSqlDatabaseThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesUpdateSqlDatabaseThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesUpdateSqlDatabaseThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesUpdateSqlDatabaseThroughputSample.ts index 22dc7943d06c..f938c16ab62d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesUpdateSqlDatabaseThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/sqlResourcesUpdateSqlDatabaseThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB SQL database * * @summary Update RUs per second of an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json */ async function cosmosDbSqlDatabaseThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesCreateUpdateTableSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesCreateUpdateTableSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesCreateUpdateTableSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesCreateUpdateTableSample.ts index c8f4ceafc1e0..7995b7e1dda6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesCreateUpdateTableSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesCreateUpdateTableSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update an Azure Cosmos DB Table * * @summary Create or update an Azure Cosmos DB Table - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableCreateUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableCreateUpdate.json */ async function cosmosDbTableReplace() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesDeleteTableSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesDeleteTableSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesDeleteTableSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesDeleteTableSample.ts index e4932b868ea1..4b98a6e095f9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesDeleteTableSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesDeleteTableSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an existing Azure Cosmos DB Table. * * @summary Deletes an existing Azure Cosmos DB Table. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableDelete.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableDelete.json */ async function cosmosDbTableDelete() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesGetTableSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesGetTableSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesGetTableSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesGetTableSample.ts index 8b34b50c9623..a93f754dc1cc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesGetTableSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesGetTableSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Tables under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the Tables under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableGet.json */ async function cosmosDbTableGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesGetTableThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesGetTableThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesGetTableThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesGetTableThroughputSample.ts index 8d346e494760..b69ff7564131 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesGetTableThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesGetTableThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name. * * @summary Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableThroughputGet.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableThroughputGet.json */ async function cosmosDbTableThroughputGet() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesListTablesSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesListTablesSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesListTablesSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesListTablesSample.ts index 76028c8a2652..8cc3a8c536ed 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesListTablesSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesListTablesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the Tables under an existing Azure Cosmos DB database account. * * @summary Lists the Tables under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableList.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableList.json */ async function cosmosDbTableList() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesMigrateTableToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesMigrateTableToAutoscaleSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesMigrateTableToAutoscaleSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesMigrateTableToAutoscaleSample.ts index 0de4ca8c4edf..3351c3d2dacc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesMigrateTableToAutoscaleSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesMigrateTableToAutoscaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Table from manual throughput to autoscale * * @summary Migrate an Azure Cosmos DB Table from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableMigrateToAutoscale.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableMigrateToAutoscale.json */ async function cosmosDbTableMigrateToAutoscale() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesMigrateTableToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesMigrateTableToManualThroughputSample.ts similarity index 93% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesMigrateTableToManualThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesMigrateTableToManualThroughputSample.ts index 9fbda1172f97..2f953cc797fc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesMigrateTableToManualThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesMigrateTableToManualThroughputSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Migrate an Azure Cosmos DB Table from autoscale to manual throughput * * @summary Migrate an Azure Cosmos DB Table from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableMigrateToManualThroughput.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableMigrateToManualThroughput.json */ async function cosmosDbTableMigrateToManualThroughput() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesRetrieveContinuousBackupInformationSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesRetrieveContinuousBackupInformationSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesRetrieveContinuousBackupInformationSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesRetrieveContinuousBackupInformationSample.ts index 761843db371e..db5b04471043 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesRetrieveContinuousBackupInformationSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesRetrieveContinuousBackupInformationSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves continuous backup information for a table. * * @summary Retrieves continuous backup information for a table. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableBackupInformation.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableBackupInformation.json */ async function cosmosDbTableCollectionBackupInformation() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesUpdateTableThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesUpdateTableThroughputSample.ts similarity index 94% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesUpdateTableThroughputSample.ts rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesUpdateTableThroughputSample.ts index 3e400be53ff3..1ea2878e68e3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesUpdateTableThroughputSample.ts +++ b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/src/tableResourcesUpdateTableThroughputSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Table * * @summary Update RUs per second of an Azure Cosmos DB Table - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableThroughputUpdate.json + * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-11-15/examples/CosmosDBTableThroughputUpdate.json */ async function cosmosDbTableThroughputUpdate() { const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/tsconfig.json b/sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/tsconfig.json similarity index 100% rename from sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/tsconfig.json rename to sdk/cosmosdb/arm-cosmosdb/samples/v16/typescript/tsconfig.json diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/README.md b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/README.md deleted file mode 100644 index 55c456922e13..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/README.md +++ /dev/null @@ -1,532 +0,0 @@ -# client library samples for JavaScript (Beta) - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ----------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [cassandraClustersCreateUpdateSample.js][cassandraclusterscreateupdatesample] | Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterCreate.json | -| [cassandraClustersDeallocateSample.js][cassandraclustersdeallocatesample] | 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 already deallocated cluster. Use Start to restart the cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterDeallocate.json | -| [cassandraClustersDeleteSample.js][cassandraclustersdeletesample] | Deletes a managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterDelete.json | -| [cassandraClustersGetBackupSample.js][cassandraclustersgetbackupsample] | Get the properties of an individual backup of this cluster that is available to restore. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraBackup.json | -| [cassandraClustersGetCommandAsyncSample.js][cassandraclustersgetcommandasyncsample] | Get details about a specified command that was run asynchronously. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommandResult.json | -| [cassandraClustersGetSample.js][cassandraclustersgetsample] | Get the properties of a managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterGet.json | -| [cassandraClustersInvokeCommandAsyncSample.js][cassandraclustersinvokecommandasyncsample] | Invoke a command like nodetool for cassandra maintenance asynchronously x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommandAsync.json | -| [cassandraClustersInvokeCommandSample.js][cassandraclustersinvokecommandsample] | Invoke a command like nodetool for cassandra maintenance x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommand.json | -| [cassandraClustersListBackupsSample.js][cassandraclusterslistbackupssample] | List the backups of this cluster that are available to restore. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraBackupsList.json | -| [cassandraClustersListByResourceGroupSample.js][cassandraclusterslistbyresourcegroupsample] | List all managed Cassandra clusters in this resource group. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json | -| [cassandraClustersListBySubscriptionSample.js][cassandraclusterslistbysubscriptionsample] | List all managed Cassandra clusters in this subscription. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterListBySubscription.json | -| [cassandraClustersListCommandSample.js][cassandraclusterslistcommandsample] | List all commands currently running on ring info x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraListCommand.json | -| [cassandraClustersStartSample.js][cassandraclustersstartsample] | Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterStart.json | -| [cassandraClustersStatusSample.js][cassandraclustersstatussample] | Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraStatus.json | -| [cassandraClustersUpdateSample.js][cassandraclustersupdatesample] | Updates some of the properties of a managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterPatch.json | -| [cassandraDataCentersCreateUpdateSample.js][cassandradatacenterscreateupdatesample] | Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterCreate.json | -| [cassandraDataCentersDeleteSample.js][cassandradatacentersdeletesample] | Delete a managed Cassandra data center. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterDelete.json | -| [cassandraDataCentersGetSample.js][cassandradatacentersgetsample] | Get the properties of a managed Cassandra data center. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterGet.json | -| [cassandraDataCentersListSample.js][cassandradatacenterslistsample] | List all data centers in a particular managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterList.json | -| [cassandraDataCentersUpdateSample.js][cassandradatacentersupdatesample] | Update some of the properties of a managed Cassandra data center. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterPatch.json | -| [cassandraResourcesCreateUpdateCassandraKeyspaceSample.js][cassandraresourcescreateupdatecassandrakeyspacesample] | Create or update an Azure Cosmos DB Cassandra keyspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json | -| [cassandraResourcesCreateUpdateCassandraTableSample.js][cassandraresourcescreateupdatecassandratablesample] | Create or update an Azure Cosmos DB Cassandra Table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableCreateUpdate.json | -| [cassandraResourcesCreateUpdateCassandraViewSample.js][cassandraresourcescreateupdatecassandraviewsample] | Create or update an Azure Cosmos DB Cassandra View x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewCreateUpdate.json | -| [cassandraResourcesDeleteCassandraKeyspaceSample.js][cassandraresourcesdeletecassandrakeyspacesample] | Deletes an existing Azure Cosmos DB Cassandra keyspace. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceDelete.json | -| [cassandraResourcesDeleteCassandraTableSample.js][cassandraresourcesdeletecassandratablesample] | Deletes an existing Azure Cosmos DB Cassandra table. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableDelete.json | -| [cassandraResourcesDeleteCassandraViewSample.js][cassandraresourcesdeletecassandraviewsample] | Deletes an existing Azure Cosmos DB Cassandra view. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewDelete.json | -| [cassandraResourcesGetCassandraKeyspaceSample.js][cassandraresourcesgetcassandrakeyspacesample] | Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceGet.json | -| [cassandraResourcesGetCassandraKeyspaceThroughputSample.js][cassandraresourcesgetcassandrakeyspacethroughputsample] | Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json | -| [cassandraResourcesGetCassandraTableSample.js][cassandraresourcesgetcassandratablesample] | Gets the Cassandra table under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableGet.json | -| [cassandraResourcesGetCassandraTableThroughputSample.js][cassandraresourcesgetcassandratablethroughputsample] | Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableThroughputGet.json | -| [cassandraResourcesGetCassandraViewSample.js][cassandraresourcesgetcassandraviewsample] | Gets the Cassandra view under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewGet.json | -| [cassandraResourcesGetCassandraViewThroughputSample.js][cassandraresourcesgetcassandraviewthroughputsample] | Gets the RUs per second of the Cassandra view under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewThroughputGet.json | -| [cassandraResourcesListCassandraKeyspacesSample.js][cassandraresourceslistcassandrakeyspacessample] | Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceList.json | -| [cassandraResourcesListCassandraTablesSample.js][cassandraresourceslistcassandratablessample] | Lists the Cassandra table under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableList.json | -| [cassandraResourcesListCassandraViewsSample.js][cassandraresourceslistcassandraviewssample] | Lists the Cassandra materialized views under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewList.json | -| [cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.js][cassandraresourcesmigratecassandrakeyspacetoautoscalesample] | Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json | -| [cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.js][cassandraresourcesmigratecassandrakeyspacetomanualthroughputsample] | Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json | -| [cassandraResourcesMigrateCassandraTableToAutoscaleSample.js][cassandraresourcesmigratecassandratabletoautoscalesample] | Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json | -| [cassandraResourcesMigrateCassandraTableToManualThroughputSample.js][cassandraresourcesmigratecassandratabletomanualthroughputsample] | Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json | -| [cassandraResourcesMigrateCassandraViewToAutoscaleSample.js][cassandraresourcesmigratecassandraviewtoautoscalesample] | Migrate an Azure Cosmos DB Cassandra view from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewMigrateToAutoscale.json | -| [cassandraResourcesMigrateCassandraViewToManualThroughputSample.js][cassandraresourcesmigratecassandraviewtomanualthroughputsample] | Migrate an Azure Cosmos DB Cassandra view from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewMigrateToManualThroughput.json | -| [cassandraResourcesUpdateCassandraKeyspaceThroughputSample.js][cassandraresourcesupdatecassandrakeyspacethroughputsample] | Update RUs per second of an Azure Cosmos DB Cassandra Keyspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json | -| [cassandraResourcesUpdateCassandraTableThroughputSample.js][cassandraresourcesupdatecassandratablethroughputsample] | Update RUs per second of an Azure Cosmos DB Cassandra table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableThroughputUpdate.json | -| [cassandraResourcesUpdateCassandraViewThroughputSample.js][cassandraresourcesupdatecassandraviewthroughputsample] | Update RUs per second of an Azure Cosmos DB Cassandra view x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewThroughputUpdate.json | -| [chaosFaultEnableDisableSample.js][chaosfaultenabledisablesample] | Enable, disable Chaos Fault in a CosmosDB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultEnableDisable.json | -| [chaosFaultGetSample.js][chaosfaultgetsample] | Get Chaos Fault for a CosmosdB account for a particular Chaos Fault. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultGet.json | -| [chaosFaultListSample.js][chaosfaultlistsample] | List Chaos Faults for CosmosDB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultList.json | -| [collectionListMetricDefinitionsSample.js][collectionlistmetricdefinitionssample] | Retrieves metric definitions for the given collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetMetricDefinitions.json | -| [collectionListMetricsSample.js][collectionlistmetricssample] | Retrieves the metrics determined by the given filter for the given database account and collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetMetrics.json | -| [collectionListUsagesSample.js][collectionlistusagessample] | Retrieves the usages (most recent storage data) for the given collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetUsages.json | -| [collectionPartitionListMetricsSample.js][collectionpartitionlistmetricssample] | Retrieves the metrics determined by the given filter for the given collection, split by partition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionGetMetrics.json | -| [collectionPartitionListUsagesSample.js][collectionpartitionlistusagessample] | Retrieves the usages (most recent storage data) for the given collection, split by partition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionGetUsages.json | -| [collectionPartitionRegionListMetricsSample.js][collectionpartitionregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given collection and region, split by partition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json | -| [collectionRegionListMetricsSample.js][collectionregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given database account, collection and region. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRegionCollectionGetMetrics.json | -| [dataTransferJobsCancelSample.js][datatransferjobscancelsample] | Cancels a Data Transfer Job. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobCancel.json | -| [dataTransferJobsCompleteSample.js][datatransferjobscompletesample] | Completes a Data Transfer Online Job. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobComplete.json | -| [dataTransferJobsCreateSample.js][datatransferjobscreatesample] | Creates a Data Transfer Job. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobCreate.json | -| [dataTransferJobsGetSample.js][datatransferjobsgetsample] | Get a Data Transfer Job. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobGet.json | -| [dataTransferJobsListByDatabaseAccountSample.js][datatransferjobslistbydatabaseaccountsample] | Get a list of Data Transfer jobs. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobFeed.json | -| [dataTransferJobsPauseSample.js][datatransferjobspausesample] | Pause a Data Transfer Job. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobPause.json | -| [dataTransferJobsResumeSample.js][datatransferjobsresumesample] | Resumes a Data Transfer Job. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobResume.json | -| [databaseAccountRegionListMetricsSample.js][databaseaccountregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given database account and region. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json | -| [databaseAccountsCheckNameExistsSample.js][databaseaccountschecknameexistssample] | Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json | -| [databaseAccountsCreateOrUpdateSample.js][databaseaccountscreateorupdatesample] | Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json | -| [databaseAccountsDeleteSample.js][databaseaccountsdeletesample] | Deletes an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountDelete.json | -| [databaseAccountsFailoverPriorityChangeSample.js][databaseaccountsfailoverprioritychangesample] | Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json | -| [databaseAccountsGetReadOnlyKeysSample.js][databaseaccountsgetreadonlykeyssample] | Lists the read-only access keys for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json | -| [databaseAccountsGetSample.js][databaseaccountsgetsample] | Retrieves the properties of an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGet.json | -| [databaseAccountsListByResourceGroupSample.js][databaseaccountslistbyresourcegroupsample] | Lists all the Azure Cosmos DB database accounts available under the given resource group. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json | -| [databaseAccountsListConnectionStringsSample.js][databaseaccountslistconnectionstringssample] | Lists the connection strings for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json | -| [databaseAccountsListKeysSample.js][databaseaccountslistkeyssample] | Lists the access keys for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListKeys.json | -| [databaseAccountsListMetricDefinitionsSample.js][databaseaccountslistmetricdefinitionssample] | Retrieves metric definitions for the given database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json | -| [databaseAccountsListMetricsSample.js][databaseaccountslistmetricssample] | Retrieves the metrics determined by the given filter for the given database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetMetrics.json | -| [databaseAccountsListReadOnlyKeysSample.js][databaseaccountslistreadonlykeyssample] | Lists the read-only access keys for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json | -| [databaseAccountsListSample.js][databaseaccountslistsample] | Lists all the Azure Cosmos DB database accounts available under the subscription. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountList.json | -| [databaseAccountsListUsagesSample.js][databaseaccountslistusagessample] | Retrieves the usages (most recent data) for the given database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetUsages.json | -| [databaseAccountsOfflineRegionSample.js][databaseaccountsofflineregionsample] | Offline the specified region for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json | -| [databaseAccountsOnlineRegionSample.js][databaseaccountsonlineregionsample] | Online the specified region for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json | -| [databaseAccountsRegenerateKeySample.js][databaseaccountsregeneratekeysample] | Regenerates an access key for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json | -| [databaseAccountsUpdateSample.js][databaseaccountsupdatesample] | Updates the properties of an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountPatch.json | -| [databaseListMetricDefinitionsSample.js][databaselistmetricdefinitionssample] | Retrieves metric definitions for the given database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json | -| [databaseListMetricsSample.js][databaselistmetricssample] | Retrieves the metrics determined by the given filter for the given database account and database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetMetrics.json | -| [databaseListUsagesSample.js][databaselistusagessample] | Retrieves the usages (most recent data) for the given database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetUsages.json | -| [graphResourcesCreateUpdateGraphSample.js][graphresourcescreateupdategraphsample] | Create or update an Azure Cosmos DB Graph. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceCreateUpdate.json | -| [graphResourcesDeleteGraphResourceSample.js][graphresourcesdeletegraphresourcesample] | Deletes an existing Azure Cosmos DB Graph Resource. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceDelete.json | -| [graphResourcesGetGraphSample.js][graphresourcesgetgraphsample] | Gets the Graph resource under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceGet.json | -| [graphResourcesListGraphsSample.js][graphresourceslistgraphssample] | Lists the graphs under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceList.json | -| [gremlinResourcesCreateUpdateGremlinDatabaseSample.js][gremlinresourcescreateupdategremlindatabasesample] | Create or update an Azure Cosmos DB Gremlin database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json | -| [gremlinResourcesCreateUpdateGremlinGraphSample.js][gremlinresourcescreateupdategremlingraphsample] | Create or update an Azure Cosmos DB Gremlin graph x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphCreateUpdate.json | -| [gremlinResourcesDeleteGremlinDatabaseSample.js][gremlinresourcesdeletegremlindatabasesample] | Deletes an existing Azure Cosmos DB Gremlin database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseDelete.json | -| [gremlinResourcesDeleteGremlinGraphSample.js][gremlinresourcesdeletegremlingraphsample] | Deletes an existing Azure Cosmos DB Gremlin graph. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphDelete.json | -| [gremlinResourcesGetGremlinDatabaseSample.js][gremlinresourcesgetgremlindatabasesample] | Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseGet.json | -| [gremlinResourcesGetGremlinDatabaseThroughputSample.js][gremlinresourcesgetgremlindatabasethroughputsample] | Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json | -| [gremlinResourcesGetGremlinGraphSample.js][gremlinresourcesgetgremlingraphsample] | Gets the Gremlin graph under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphGet.json | -| [gremlinResourcesGetGremlinGraphThroughputSample.js][gremlinresourcesgetgremlingraphthroughputsample] | Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphThroughputGet.json | -| [gremlinResourcesListGremlinDatabasesSample.js][gremlinresourceslistgremlindatabasessample] | Lists the Gremlin databases under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseList.json | -| [gremlinResourcesListGremlinGraphsSample.js][gremlinresourceslistgremlingraphssample] | Lists the Gremlin graph under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphList.json | -| [gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.js][gremlinresourcesmigrategremlindatabasetoautoscalesample] | Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json | -| [gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.js][gremlinresourcesmigrategremlindatabasetomanualthroughputsample] | Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json | -| [gremlinResourcesMigrateGremlinGraphToAutoscaleSample.js][gremlinresourcesmigrategremlingraphtoautoscalesample] | Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json | -| [gremlinResourcesMigrateGremlinGraphToManualThroughputSample.js][gremlinresourcesmigrategremlingraphtomanualthroughputsample] | Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json | -| [gremlinResourcesRetrieveContinuousBackupInformationSample.js][gremlinresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a gremlin graph. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphBackupInformation.json | -| [gremlinResourcesUpdateGremlinDatabaseThroughputSample.js][gremlinresourcesupdategremlindatabasethroughputsample] | Update RUs per second of an Azure Cosmos DB Gremlin database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json | -| [gremlinResourcesUpdateGremlinGraphThroughputSample.js][gremlinresourcesupdategremlingraphthroughputsample] | Update RUs per second of an Azure Cosmos DB Gremlin graph x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json | -| [locationsGetSample.js][locationsgetsample] | Get the properties of an existing Cosmos DB location x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBLocationGet.json | -| [locationsListSample.js][locationslistsample] | List Cosmos DB locations and their properties x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBLocationList.json | -| [mongoDbResourcesCreateUpdateMongoDbcollectionSample.js][mongodbresourcescreateupdatemongodbcollectionsample] | Create or update an Azure Cosmos DB MongoDB Collection x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json | -| [mongoDbResourcesCreateUpdateMongoDbdatabaseSample.js][mongodbresourcescreateupdatemongodbdatabasesample] | Create or updates Azure Cosmos DB MongoDB database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json | -| [mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.js][mongodbresourcescreateupdatemongoroledefinitionsample] | Creates or updates an Azure Cosmos DB Mongo Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json | -| [mongoDbResourcesCreateUpdateMongoUserDefinitionSample.js][mongodbresourcescreateupdatemongouserdefinitionsample] | Creates or updates an Azure Cosmos DB Mongo User Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json | -| [mongoDbResourcesDeleteMongoDbcollectionSample.js][mongodbresourcesdeletemongodbcollectionsample] | Deletes an existing Azure Cosmos DB MongoDB Collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionDelete.json | -| [mongoDbResourcesDeleteMongoDbdatabaseSample.js][mongodbresourcesdeletemongodbdatabasesample] | Deletes an existing Azure Cosmos DB MongoDB database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseDelete.json | -| [mongoDbResourcesDeleteMongoRoleDefinitionSample.js][mongodbresourcesdeletemongoroledefinitionsample] | Deletes an existing Azure Cosmos DB Mongo Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionDelete.json | -| [mongoDbResourcesDeleteMongoUserDefinitionSample.js][mongodbresourcesdeletemongouserdefinitionsample] | Deletes an existing Azure Cosmos DB Mongo User Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json | -| [mongoDbResourcesGetMongoDbcollectionSample.js][mongodbresourcesgetmongodbcollectionsample] | Gets the MongoDB collection under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionGet.json | -| [mongoDbResourcesGetMongoDbcollectionThroughputSample.js][mongodbresourcesgetmongodbcollectionthroughputsample] | Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json | -| [mongoDbResourcesGetMongoDbdatabaseSample.js][mongodbresourcesgetmongodbdatabasesample] | Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseGet.json | -| [mongoDbResourcesGetMongoDbdatabaseThroughputSample.js][mongodbresourcesgetmongodbdatabasethroughputsample] | Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json | -| [mongoDbResourcesGetMongoRoleDefinitionSample.js][mongodbresourcesgetmongoroledefinitionsample] | Retrieves the properties of an existing Azure Cosmos DB Mongo Role Definition with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json | -| [mongoDbResourcesGetMongoUserDefinitionSample.js][mongodbresourcesgetmongouserdefinitionsample] | Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionGet.json | -| [mongoDbResourcesListMongoDbcollectionPartitionMergeSample.js][mongodbresourceslistmongodbcollectionpartitionmergesample] | Merges the partitions of a MongoDB Collection x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionPartitionMerge.json | -| [mongoDbResourcesListMongoDbcollectionsSample.js][mongodbresourceslistmongodbcollectionssample] | Lists the MongoDB collection under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionList.json | -| [mongoDbResourcesListMongoDbdatabasesSample.js][mongodbresourceslistmongodbdatabasessample] | Lists the MongoDB databases under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseList.json | -| [mongoDbResourcesListMongoRoleDefinitionsSample.js][mongodbresourceslistmongoroledefinitionssample] | Retrieves the list of all Azure Cosmos DB Mongo Role Definitions. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionList.json | -| [mongoDbResourcesListMongoUserDefinitionsSample.js][mongodbresourceslistmongouserdefinitionssample] | Retrieves the list of all Azure Cosmos DB Mongo User Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionList.json | -| [mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.js][mongodbresourcesmigratemongodbcollectiontoautoscalesample] | Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json | -| [mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.js][mongodbresourcesmigratemongodbcollectiontomanualthroughputsample] | Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json | -| [mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.js][mongodbresourcesmigratemongodbdatabasetoautoscalesample] | Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json | -| [mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.js][mongodbresourcesmigratemongodbdatabasetomanualthroughputsample] | Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json | -| [mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.js][mongodbresourcesmongodbcontainerredistributethroughputsample] | Redistribute throughput for an Azure Cosmos DB MongoDB container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionRedistributeThroughput.json | -| [mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.js][mongodbresourcesmongodbcontainerretrievethroughputdistributionsample] | Retrieve throughput distribution for an Azure Cosmos DB MongoDB container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionRetrieveThroughputDistribution.json | -| [mongoDbResourcesMongoDbdatabasePartitionMergeSample.js][mongodbresourcesmongodbdatabasepartitionmergesample] | Merges the partitions of a MongoDB database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabasePartitionMerge.json | -| [mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.js][mongodbresourcesmongodbdatabaseredistributethroughputsample] | Redistribute throughput for an Azure Cosmos DB MongoDB database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseRedistributeThroughput.json | -| [mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.js][mongodbresourcesmongodbdatabaseretrievethroughputdistributionsample] | Retrieve throughput distribution for an Azure Cosmos DB MongoDB database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseRetrieveThroughputDistribution.json | -| [mongoDbResourcesRetrieveContinuousBackupInformationSample.js][mongodbresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a Mongodb collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json | -| [mongoDbResourcesUpdateMongoDbcollectionThroughputSample.js][mongodbresourcesupdatemongodbcollectionthroughputsample] | Update the RUs per second of an Azure Cosmos DB MongoDB collection x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json | -| [mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.js][mongodbresourcesupdatemongodbdatabasethroughputsample] | Update RUs per second of the an Azure Cosmos DB MongoDB database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json | -| [networkSecurityPerimeterConfigurationsGetSample.js][networksecurityperimeterconfigurationsgetsample] | Gets effective Network Security Perimeter Configuration for association x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationGet.json | -| [networkSecurityPerimeterConfigurationsListSample.js][networksecurityperimeterconfigurationslistsample] | Gets list of effective Network Security Perimeter Configuration for cosmos db account x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationList.json | -| [networkSecurityPerimeterConfigurationsReconcileSample.js][networksecurityperimeterconfigurationsreconcilesample] | Refreshes any information about the association. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationReconcile.json | -| [notebookWorkspacesCreateOrUpdateSample.js][notebookworkspacescreateorupdatesample] | Creates the notebook workspace for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceCreate.json | -| [notebookWorkspacesDeleteSample.js][notebookworkspacesdeletesample] | Deletes the notebook workspace for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceDelete.json | -| [notebookWorkspacesGetSample.js][notebookworkspacesgetsample] | Gets the notebook workspace for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceGet.json | -| [notebookWorkspacesListByDatabaseAccountSample.js][notebookworkspaceslistbydatabaseaccountsample] | Gets the notebook workspace resources of an existing Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceList.json | -| [notebookWorkspacesListConnectionInfoSample.js][notebookworkspaceslistconnectioninfosample] | Retrieves the connection info for the notebook workspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json | -| [notebookWorkspacesRegenerateAuthTokenSample.js][notebookworkspacesregenerateauthtokensample] | Regenerates the auth token for the notebook workspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json | -| [notebookWorkspacesStartSample.js][notebookworkspacesstartsample] | Starts the notebook workspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceStart.json | -| [operationsListSample.js][operationslistsample] | Lists all of the available Cosmos DB Resource Provider operations. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBOperationsList.json | -| [partitionKeyRangeIdListMetricsSample.js][partitionkeyrangeidlistmetricssample] | Retrieves the metrics determined by the given filter for the given partition key range id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json | -| [partitionKeyRangeIdRegionListMetricsSample.js][partitionkeyrangeidregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given partition key range id and region. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json | -| [percentileListMetricsSample.js][percentilelistmetricssample] | Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileGetMetrics.json | -| [percentileSourceTargetListMetricsSample.js][percentilesourcetargetlistmetricssample] | Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json | -| [percentileTargetListMetricsSample.js][percentiletargetlistmetricssample] | Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileTargetGetMetrics.json | -| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection with a given name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json | -| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection with a given name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json | -| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets a private endpoint connection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionGet.json | -| [privateEndpointConnectionsListByDatabaseAccountSample.js][privateendpointconnectionslistbydatabaseaccountsample] | List all private endpoint connections on a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json | -| [privateLinkResourcesGetSample.js][privatelinkresourcesgetsample] | Gets the private link resources that need to be created for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateLinkResourceGet.json | -| [privateLinkResourcesListByDatabaseAccountSample.js][privatelinkresourceslistbydatabaseaccountsample] | Gets the private link resources that need to be created for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateLinkResourceListGet.json | -| [restorableDatabaseAccountsGetByLocationSample.js][restorabledatabaseaccountsgetbylocationsample] | Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/\*' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountGet.json | -| [restorableDatabaseAccountsListByLocationSample.js][restorabledatabaseaccountslistbylocationsample] | Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountList.json | -| [restorableDatabaseAccountsListSample.js][restorabledatabaseaccountslistsample] | Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json | -| [restorableGremlinDatabasesListSample.js][restorablegremlindatabaseslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinDatabaseList.json | -| [restorableGremlinGraphsListSample.js][restorablegremlingraphslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin graphs under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinGraphList.json | -| [restorableGremlinResourcesListSample.js][restorablegremlinresourceslistsample] | Return a list of gremlin database and graphs combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinResourceList.json | -| [restorableMongodbCollectionsListSample.js][restorablemongodbcollectionslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbCollectionList.json | -| [restorableMongodbDatabasesListSample.js][restorablemongodbdatabaseslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbDatabaseList.json | -| [restorableMongodbResourcesListSample.js][restorablemongodbresourceslistsample] | Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbResourceList.json | -| [restorableSqlContainersListSample.js][restorablesqlcontainerslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlContainerList.json | -| [restorableSqlDatabasesListSample.js][restorablesqldatabaseslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlDatabaseList.json | -| [restorableSqlResourcesListSample.js][restorablesqlresourceslistsample] | Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlResourceList.json | -| [restorableTableResourcesListSample.js][restorabletableresourceslistsample] | Return a list of tables that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableTableResourceList.json | -| [restorableTablesListSample.js][restorabletableslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB Tables. This helps in scenario where table was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableTableList.json | -| [serviceCreateSample.js][servicecreatesample] | Creates a service. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceCreate.json | -| [serviceDeleteSample.js][servicedeletesample] | Deletes service with the given serviceName. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceDelete.json | -| [serviceGetSample.js][servicegetsample] | Gets the status of service. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceGet.json | -| [serviceListSample.js][servicelistsample] | Gets the status of service. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBServicesList.json | -| [sqlResourcesCreateUpdateClientEncryptionKeySample.js][sqlresourcescreateupdateclientencryptionkeysample] | Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly). x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json | -| [sqlResourcesCreateUpdateSqlContainerSample.js][sqlresourcescreateupdatesqlcontainersample] | Create or update an Azure Cosmos DB SQL container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerCreateUpdate.json | -| [sqlResourcesCreateUpdateSqlDatabaseSample.js][sqlresourcescreateupdatesqldatabasesample] | Create or update an Azure Cosmos DB SQL database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json | -| [sqlResourcesCreateUpdateSqlRoleAssignmentSample.js][sqlresourcescreateupdatesqlroleassignmentsample] | Creates or updates an Azure Cosmos DB SQL Role Assignment. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json | -| [sqlResourcesCreateUpdateSqlRoleDefinitionSample.js][sqlresourcescreateupdatesqlroledefinitionsample] | Creates or updates an Azure Cosmos DB SQL Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json | -| [sqlResourcesCreateUpdateSqlStoredProcedureSample.js][sqlresourcescreateupdatesqlstoredproceduresample] | Create or update an Azure Cosmos DB SQL storedProcedure x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json | -| [sqlResourcesCreateUpdateSqlTriggerSample.js][sqlresourcescreateupdatesqltriggersample] | Create or update an Azure Cosmos DB SQL trigger x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerCreateUpdate.json | -| [sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.js][sqlresourcescreateupdatesqluserdefinedfunctionsample] | Create or update an Azure Cosmos DB SQL userDefinedFunction x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json | -| [sqlResourcesDeleteSqlContainerSample.js][sqlresourcesdeletesqlcontainersample] | Deletes an existing Azure Cosmos DB SQL container. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerDelete.json | -| [sqlResourcesDeleteSqlDatabaseSample.js][sqlresourcesdeletesqldatabasesample] | Deletes an existing Azure Cosmos DB SQL database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseDelete.json | -| [sqlResourcesDeleteSqlRoleAssignmentSample.js][sqlresourcesdeletesqlroleassignmentsample] | Deletes an existing Azure Cosmos DB SQL Role Assignment. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentDelete.json | -| [sqlResourcesDeleteSqlRoleDefinitionSample.js][sqlresourcesdeletesqlroledefinitionsample] | Deletes an existing Azure Cosmos DB SQL Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionDelete.json | -| [sqlResourcesDeleteSqlStoredProcedureSample.js][sqlresourcesdeletesqlstoredproceduresample] | Deletes an existing Azure Cosmos DB SQL storedProcedure. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureDelete.json | -| [sqlResourcesDeleteSqlTriggerSample.js][sqlresourcesdeletesqltriggersample] | Deletes an existing Azure Cosmos DB SQL trigger. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerDelete.json | -| [sqlResourcesDeleteSqlUserDefinedFunctionSample.js][sqlresourcesdeletesqluserdefinedfunctionsample] | Deletes an existing Azure Cosmos DB SQL userDefinedFunction. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json | -| [sqlResourcesGetClientEncryptionKeySample.js][sqlresourcesgetclientencryptionkeysample] | Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeyGet.json | -| [sqlResourcesGetSqlContainerSample.js][sqlresourcesgetsqlcontainersample] | Gets the SQL container under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerGet.json | -| [sqlResourcesGetSqlContainerThroughputSample.js][sqlresourcesgetsqlcontainerthroughputsample] | Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerThroughputGet.json | -| [sqlResourcesGetSqlDatabaseSample.js][sqlresourcesgetsqldatabasesample] | Gets the SQL database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseGet.json | -| [sqlResourcesGetSqlDatabaseThroughputSample.js][sqlresourcesgetsqldatabasethroughputsample] | Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseThroughputGet.json | -| [sqlResourcesGetSqlRoleAssignmentSample.js][sqlresourcesgetsqlroleassignmentsample] | Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentGet.json | -| [sqlResourcesGetSqlRoleDefinitionSample.js][sqlresourcesgetsqlroledefinitionsample] | Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionGet.json | -| [sqlResourcesGetSqlStoredProcedureSample.js][sqlresourcesgetsqlstoredproceduresample] | Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureGet.json | -| [sqlResourcesGetSqlTriggerSample.js][sqlresourcesgetsqltriggersample] | Gets the SQL trigger under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerGet.json | -| [sqlResourcesGetSqlUserDefinedFunctionSample.js][sqlresourcesgetsqluserdefinedfunctionsample] | Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json | -| [sqlResourcesListClientEncryptionKeysSample.js][sqlresourceslistclientencryptionkeyssample] | Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeysList.json | -| [sqlResourcesListSqlContainerPartitionMergeSample.js][sqlresourceslistsqlcontainerpartitionmergesample] | Merges the partitions of a SQL Container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerPartitionMerge.json | -| [sqlResourcesListSqlContainersSample.js][sqlresourceslistsqlcontainerssample] | Lists the SQL container under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerList.json | -| [sqlResourcesListSqlDatabasesSample.js][sqlresourceslistsqldatabasessample] | Lists the SQL databases under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseList.json | -| [sqlResourcesListSqlRoleAssignmentsSample.js][sqlresourceslistsqlroleassignmentssample] | Retrieves the list of all Azure Cosmos DB SQL Role Assignments. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentList.json | -| [sqlResourcesListSqlRoleDefinitionsSample.js][sqlresourceslistsqlroledefinitionssample] | Retrieves the list of all Azure Cosmos DB SQL Role Definitions. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionList.json | -| [sqlResourcesListSqlStoredProceduresSample.js][sqlresourceslistsqlstoredproceduressample] | Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureList.json | -| [sqlResourcesListSqlTriggersSample.js][sqlresourceslistsqltriggerssample] | Lists the SQL trigger under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerList.json | -| [sqlResourcesListSqlUserDefinedFunctionsSample.js][sqlresourceslistsqluserdefinedfunctionssample] | Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionList.json | -| [sqlResourcesMigrateSqlContainerToAutoscaleSample.js][sqlresourcesmigratesqlcontainertoautoscalesample] | Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json | -| [sqlResourcesMigrateSqlContainerToManualThroughputSample.js][sqlresourcesmigratesqlcontainertomanualthroughputsample] | Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json | -| [sqlResourcesMigrateSqlDatabaseToAutoscaleSample.js][sqlresourcesmigratesqldatabasetoautoscalesample] | Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json | -| [sqlResourcesMigrateSqlDatabaseToManualThroughputSample.js][sqlresourcesmigratesqldatabasetomanualthroughputsample] | Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json | -| [sqlResourcesRetrieveContinuousBackupInformationSample.js][sqlresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a container resource. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerBackupInformation.json | -| [sqlResourcesSqlContainerRedistributeThroughputSample.js][sqlresourcessqlcontainerredistributethroughputsample] | Redistribute throughput for an Azure Cosmos DB SQL container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerRedistributeThroughput.json | -| [sqlResourcesSqlContainerRetrieveThroughputDistributionSample.js][sqlresourcessqlcontainerretrievethroughputdistributionsample] | Retrieve throughput distribution for an Azure Cosmos DB SQL container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerRetrieveThroughputDistribution.json | -| [sqlResourcesSqlDatabasePartitionMergeSample.js][sqlresourcessqldatabasepartitionmergesample] | Merges the partitions of a SQL database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabasePartitionMerge.json | -| [sqlResourcesSqlDatabaseRedistributeThroughputSample.js][sqlresourcessqldatabaseredistributethroughputsample] | Redistribute throughput for an Azure Cosmos DB SQL database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseRedistributeThroughput.json | -| [sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.js][sqlresourcessqldatabaseretrievethroughputdistributionsample] | Retrieve throughput distribution for an Azure Cosmos DB SQL database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseRetrieveThroughputDistribution.json | -| [sqlResourcesUpdateSqlContainerThroughputSample.js][sqlresourcesupdatesqlcontainerthroughputsample] | Update RUs per second of an Azure Cosmos DB SQL container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerThroughputUpdate.json | -| [sqlResourcesUpdateSqlDatabaseThroughputSample.js][sqlresourcesupdatesqldatabasethroughputsample] | Update RUs per second of an Azure Cosmos DB SQL database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json | -| [tableResourcesCreateUpdateTableSample.js][tableresourcescreateupdatetablesample] | Create or update an Azure Cosmos DB Table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableCreateUpdate.json | -| [tableResourcesDeleteTableSample.js][tableresourcesdeletetablesample] | Deletes an existing Azure Cosmos DB Table. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableDelete.json | -| [tableResourcesGetTableSample.js][tableresourcesgettablesample] | Gets the Tables under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableGet.json | -| [tableResourcesGetTableThroughputSample.js][tableresourcesgettablethroughputsample] | Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableThroughputGet.json | -| [tableResourcesListTablesSample.js][tableresourceslisttablessample] | Lists the Tables under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableList.json | -| [tableResourcesMigrateTableToAutoscaleSample.js][tableresourcesmigratetabletoautoscalesample] | Migrate an Azure Cosmos DB Table from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableMigrateToAutoscale.json | -| [tableResourcesMigrateTableToManualThroughputSample.js][tableresourcesmigratetabletomanualthroughputsample] | Migrate an Azure Cosmos DB Table from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableMigrateToManualThroughput.json | -| [tableResourcesRetrieveContinuousBackupInformationSample.js][tableresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a table. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableBackupInformation.json | -| [tableResourcesUpdateTableThroughputSample.js][tableresourcesupdatetablethroughputsample] | Update RUs per second of an Azure Cosmos DB Table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableThroughputUpdate.json | -| [throughputPoolAccountCreateSample.js][throughputpoolaccountcreatesample] | Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountCreate.json | -| [throughputPoolAccountDeleteSample.js][throughputpoolaccountdeletesample] | Removes an existing Azure Cosmos DB database account from a throughput pool. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountDelete.json | -| [throughputPoolAccountGetSample.js][throughputpoolaccountgetsample] | Retrieves the properties of an existing Azure Cosmos DB Throughput Pool x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountGet.json | -| [throughputPoolAccountsListSample.js][throughputpoolaccountslistsample] | Lists all the Azure Cosmos DB accounts available under the subscription. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountsList.json | -| [throughputPoolCreateOrUpdateSample.js][throughputpoolcreateorupdatesample] | Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolCreate.json | -| [throughputPoolDeleteSample.js][throughputpooldeletesample] | Deletes an existing Azure Cosmos DB Throughput Pool. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolDelete.json | -| [throughputPoolGetSample.js][throughputpoolgetsample] | Retrieves the properties of an existing Azure Cosmos DB Throughput Pool x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolGet.json | -| [throughputPoolUpdateSample.js][throughputpoolupdatesample] | Updates the properties of an existing Azure Cosmos DB Throughput Pool. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolUpdate.json | -| [throughputPoolsListByResourceGroupSample.js][throughputpoolslistbyresourcegroupsample] | List all the ThroughputPools in a given resource group. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolList.json | -| [throughputPoolsListSample.js][throughputpoolslistsample] | Lists all the Azure Cosmos DB Throughput Pools available under the subscription. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolList.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node cassandraClustersCreateUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env COSMOSDB_SUBSCRIPTION_ID="" COSMOSDB_RESOURCE_GROUP="" node cassandraClustersCreateUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[cassandraclusterscreateupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersCreateUpdateSample.js -[cassandraclustersdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersDeallocateSample.js -[cassandraclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersDeleteSample.js -[cassandraclustersgetbackupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersGetBackupSample.js -[cassandraclustersgetcommandasyncsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersGetCommandAsyncSample.js -[cassandraclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersGetSample.js -[cassandraclustersinvokecommandasyncsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersInvokeCommandAsyncSample.js -[cassandraclustersinvokecommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersInvokeCommandSample.js -[cassandraclusterslistbackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListBackupsSample.js -[cassandraclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListByResourceGroupSample.js -[cassandraclusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListBySubscriptionSample.js -[cassandraclusterslistcommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListCommandSample.js -[cassandraclustersstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersStartSample.js -[cassandraclustersstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersStatusSample.js -[cassandraclustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersUpdateSample.js -[cassandradatacenterscreateupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersCreateUpdateSample.js -[cassandradatacentersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersDeleteSample.js -[cassandradatacentersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersGetSample.js -[cassandradatacenterslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersListSample.js -[cassandradatacentersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraDataCentersUpdateSample.js -[cassandraresourcescreateupdatecassandrakeyspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesCreateUpdateCassandraKeyspaceSample.js -[cassandraresourcescreateupdatecassandratablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesCreateUpdateCassandraTableSample.js -[cassandraresourcescreateupdatecassandraviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesCreateUpdateCassandraViewSample.js -[cassandraresourcesdeletecassandrakeyspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesDeleteCassandraKeyspaceSample.js -[cassandraresourcesdeletecassandratablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesDeleteCassandraTableSample.js -[cassandraresourcesdeletecassandraviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesDeleteCassandraViewSample.js -[cassandraresourcesgetcassandrakeyspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraKeyspaceSample.js -[cassandraresourcesgetcassandrakeyspacethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraKeyspaceThroughputSample.js -[cassandraresourcesgetcassandratablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraTableSample.js -[cassandraresourcesgetcassandratablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraTableThroughputSample.js -[cassandraresourcesgetcassandraviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraViewSample.js -[cassandraresourcesgetcassandraviewthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraViewThroughputSample.js -[cassandraresourceslistcassandrakeyspacessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesListCassandraKeyspacesSample.js -[cassandraresourceslistcassandratablessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesListCassandraTablesSample.js -[cassandraresourceslistcassandraviewssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesListCassandraViewsSample.js -[cassandraresourcesmigratecassandrakeyspacetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.js -[cassandraresourcesmigratecassandrakeyspacetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.js -[cassandraresourcesmigratecassandratabletoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraTableToAutoscaleSample.js -[cassandraresourcesmigratecassandratabletomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraTableToManualThroughputSample.js -[cassandraresourcesmigratecassandraviewtoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraViewToAutoscaleSample.js -[cassandraresourcesmigratecassandraviewtomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraViewToManualThroughputSample.js -[cassandraresourcesupdatecassandrakeyspacethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.js -[cassandraresourcesupdatecassandratablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesUpdateCassandraTableThroughputSample.js -[cassandraresourcesupdatecassandraviewthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesUpdateCassandraViewThroughputSample.js -[chaosfaultenabledisablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultEnableDisableSample.js -[chaosfaultgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultGetSample.js -[chaosfaultlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultListSample.js -[collectionlistmetricdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionListMetricDefinitionsSample.js -[collectionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionListMetricsSample.js -[collectionlistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionListUsagesSample.js -[collectionpartitionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionPartitionListMetricsSample.js -[collectionpartitionlistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionPartitionListUsagesSample.js -[collectionpartitionregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionPartitionRegionListMetricsSample.js -[collectionregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/collectionRegionListMetricsSample.js -[datatransferjobscancelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCancelSample.js -[datatransferjobscompletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCompleteSample.js -[datatransferjobscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCreateSample.js -[datatransferjobsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsGetSample.js -[datatransferjobslistbydatabaseaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsListByDatabaseAccountSample.js -[datatransferjobspausesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsPauseSample.js -[datatransferjobsresumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsResumeSample.js -[databaseaccountregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountRegionListMetricsSample.js -[databaseaccountschecknameexistssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsCheckNameExistsSample.js -[databaseaccountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsCreateOrUpdateSample.js -[databaseaccountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsDeleteSample.js -[databaseaccountsfailoverprioritychangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsFailoverPriorityChangeSample.js -[databaseaccountsgetreadonlykeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsGetReadOnlyKeysSample.js -[databaseaccountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsGetSample.js -[databaseaccountslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListByResourceGroupSample.js -[databaseaccountslistconnectionstringssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListConnectionStringsSample.js -[databaseaccountslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListKeysSample.js -[databaseaccountslistmetricdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListMetricDefinitionsSample.js -[databaseaccountslistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListMetricsSample.js -[databaseaccountslistreadonlykeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListReadOnlyKeysSample.js -[databaseaccountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListSample.js -[databaseaccountslistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsListUsagesSample.js -[databaseaccountsofflineregionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsOfflineRegionSample.js -[databaseaccountsonlineregionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsOnlineRegionSample.js -[databaseaccountsregeneratekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsRegenerateKeySample.js -[databaseaccountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseAccountsUpdateSample.js -[databaselistmetricdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseListMetricDefinitionsSample.js -[databaselistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseListMetricsSample.js -[databaselistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/databaseListUsagesSample.js -[graphresourcescreateupdategraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesCreateUpdateGraphSample.js -[graphresourcesdeletegraphresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesDeleteGraphResourceSample.js -[graphresourcesgetgraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesGetGraphSample.js -[graphresourceslistgraphssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesListGraphsSample.js -[gremlinresourcescreateupdategremlindatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesCreateUpdateGremlinDatabaseSample.js -[gremlinresourcescreateupdategremlingraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesCreateUpdateGremlinGraphSample.js -[gremlinresourcesdeletegremlindatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesDeleteGremlinDatabaseSample.js -[gremlinresourcesdeletegremlingraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesDeleteGremlinGraphSample.js -[gremlinresourcesgetgremlindatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinDatabaseSample.js -[gremlinresourcesgetgremlindatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinDatabaseThroughputSample.js -[gremlinresourcesgetgremlingraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinGraphSample.js -[gremlinresourcesgetgremlingraphthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesGetGremlinGraphThroughputSample.js -[gremlinresourceslistgremlindatabasessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesListGremlinDatabasesSample.js -[gremlinresourceslistgremlingraphssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesListGremlinGraphsSample.js -[gremlinresourcesmigrategremlindatabasetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.js -[gremlinresourcesmigrategremlindatabasetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.js -[gremlinresourcesmigrategremlingraphtoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.js -[gremlinresourcesmigrategremlingraphtomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.js -[gremlinresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesRetrieveContinuousBackupInformationSample.js -[gremlinresourcesupdategremlindatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesUpdateGremlinDatabaseThroughputSample.js -[gremlinresourcesupdategremlingraphthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/gremlinResourcesUpdateGremlinGraphThroughputSample.js -[locationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/locationsGetSample.js -[locationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/locationsListSample.js -[mongodbresourcescreateupdatemongodbcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoDbcollectionSample.js -[mongodbresourcescreateupdatemongodbdatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.js -[mongodbresourcescreateupdatemongoroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.js -[mongodbresourcescreateupdatemongouserdefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.js -[mongodbresourcesdeletemongodbcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoDbcollectionSample.js -[mongodbresourcesdeletemongodbdatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoDbdatabaseSample.js -[mongodbresourcesdeletemongoroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoRoleDefinitionSample.js -[mongodbresourcesdeletemongouserdefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesDeleteMongoUserDefinitionSample.js -[mongodbresourcesgetmongodbcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbcollectionSample.js -[mongodbresourcesgetmongodbcollectionthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbcollectionThroughputSample.js -[mongodbresourcesgetmongodbdatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbdatabaseSample.js -[mongodbresourcesgetmongodbdatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoDbdatabaseThroughputSample.js -[mongodbresourcesgetmongoroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoRoleDefinitionSample.js -[mongodbresourcesgetmongouserdefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesGetMongoUserDefinitionSample.js -[mongodbresourceslistmongodbcollectionpartitionmergesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoDbcollectionPartitionMergeSample.js -[mongodbresourceslistmongodbcollectionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoDbcollectionsSample.js -[mongodbresourceslistmongodbdatabasessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoDbdatabasesSample.js -[mongodbresourceslistmongoroledefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoRoleDefinitionsSample.js -[mongodbresourceslistmongouserdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoUserDefinitionsSample.js -[mongodbresourcesmigratemongodbcollectiontoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.js -[mongodbresourcesmigratemongodbcollectiontomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.js -[mongodbresourcesmigratemongodbdatabasetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.js -[mongodbresourcesmigratemongodbdatabasetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.js -[mongodbresourcesmongodbcontainerredistributethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.js -[mongodbresourcesmongodbcontainerretrievethroughputdistributionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.js -[mongodbresourcesmongodbdatabasepartitionmergesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabasePartitionMergeSample.js -[mongodbresourcesmongodbdatabaseredistributethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.js -[mongodbresourcesmongodbdatabaseretrievethroughputdistributionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.js -[mongodbresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesRetrieveContinuousBackupInformationSample.js -[mongodbresourcesupdatemongodbcollectionthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.js -[mongodbresourcesupdatemongodbdatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.js -[networksecurityperimeterconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsGetSample.js -[networksecurityperimeterconfigurationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsListSample.js -[networksecurityperimeterconfigurationsreconcilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsReconcileSample.js -[notebookworkspacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesCreateOrUpdateSample.js -[notebookworkspacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesDeleteSample.js -[notebookworkspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesGetSample.js -[notebookworkspaceslistbydatabaseaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesListByDatabaseAccountSample.js -[notebookworkspaceslistconnectioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesListConnectionInfoSample.js -[notebookworkspacesregenerateauthtokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesRegenerateAuthTokenSample.js -[notebookworkspacesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/notebookWorkspacesStartSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/operationsListSample.js -[partitionkeyrangeidlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/partitionKeyRangeIdListMetricsSample.js -[partitionkeyrangeidregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/partitionKeyRangeIdRegionListMetricsSample.js -[percentilelistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/percentileListMetricsSample.js -[percentilesourcetargetlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/percentileSourceTargetListMetricsSample.js -[percentiletargetlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/percentileTargetListMetricsSample.js -[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js -[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsDeleteSample.js -[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsGetSample.js -[privateendpointconnectionslistbydatabaseaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateEndpointConnectionsListByDatabaseAccountSample.js -[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateLinkResourcesGetSample.js -[privatelinkresourceslistbydatabaseaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/privateLinkResourcesListByDatabaseAccountSample.js -[restorabledatabaseaccountsgetbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableDatabaseAccountsGetByLocationSample.js -[restorabledatabaseaccountslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableDatabaseAccountsListByLocationSample.js -[restorabledatabaseaccountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableDatabaseAccountsListSample.js -[restorablegremlindatabaseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableGremlinDatabasesListSample.js -[restorablegremlingraphslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableGremlinGraphsListSample.js -[restorablegremlinresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableGremlinResourcesListSample.js -[restorablemongodbcollectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableMongodbCollectionsListSample.js -[restorablemongodbdatabaseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableMongodbDatabasesListSample.js -[restorablemongodbresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableMongodbResourcesListSample.js -[restorablesqlcontainerslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableSqlContainersListSample.js -[restorablesqldatabaseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableSqlDatabasesListSample.js -[restorablesqlresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableSqlResourcesListSample.js -[restorabletableresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableTableResourcesListSample.js -[restorabletableslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/restorableTablesListSample.js -[servicecreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceCreateSample.js -[servicedeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceDeleteSample.js -[servicegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceGetSample.js -[servicelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/serviceListSample.js -[sqlresourcescreateupdateclientencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateClientEncryptionKeySample.js -[sqlresourcescreateupdatesqlcontainersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlContainerSample.js -[sqlresourcescreateupdatesqldatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlDatabaseSample.js -[sqlresourcescreateupdatesqlroleassignmentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlRoleAssignmentSample.js -[sqlresourcescreateupdatesqlroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlRoleDefinitionSample.js -[sqlresourcescreateupdatesqlstoredproceduresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlStoredProcedureSample.js -[sqlresourcescreateupdatesqltriggersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlTriggerSample.js -[sqlresourcescreateupdatesqluserdefinedfunctionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.js -[sqlresourcesdeletesqlcontainersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlContainerSample.js -[sqlresourcesdeletesqldatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlDatabaseSample.js -[sqlresourcesdeletesqlroleassignmentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlRoleAssignmentSample.js -[sqlresourcesdeletesqlroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlRoleDefinitionSample.js -[sqlresourcesdeletesqlstoredproceduresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlStoredProcedureSample.js -[sqlresourcesdeletesqltriggersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlTriggerSample.js -[sqlresourcesdeletesqluserdefinedfunctionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesDeleteSqlUserDefinedFunctionSample.js -[sqlresourcesgetclientencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetClientEncryptionKeySample.js -[sqlresourcesgetsqlcontainersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlContainerSample.js -[sqlresourcesgetsqlcontainerthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlContainerThroughputSample.js -[sqlresourcesgetsqldatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlDatabaseSample.js -[sqlresourcesgetsqldatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlDatabaseThroughputSample.js -[sqlresourcesgetsqlroleassignmentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlRoleAssignmentSample.js -[sqlresourcesgetsqlroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlRoleDefinitionSample.js -[sqlresourcesgetsqlstoredproceduresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlStoredProcedureSample.js -[sqlresourcesgetsqltriggersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlTriggerSample.js -[sqlresourcesgetsqluserdefinedfunctionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesGetSqlUserDefinedFunctionSample.js -[sqlresourceslistclientencryptionkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListClientEncryptionKeysSample.js -[sqlresourceslistsqlcontainerpartitionmergesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlContainerPartitionMergeSample.js -[sqlresourceslistsqlcontainerssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlContainersSample.js -[sqlresourceslistsqldatabasessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlDatabasesSample.js -[sqlresourceslistsqlroleassignmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlRoleAssignmentsSample.js -[sqlresourceslistsqlroledefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlRoleDefinitionsSample.js -[sqlresourceslistsqlstoredproceduressample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlStoredProceduresSample.js -[sqlresourceslistsqltriggerssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlTriggersSample.js -[sqlresourceslistsqluserdefinedfunctionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesListSqlUserDefinedFunctionsSample.js -[sqlresourcesmigratesqlcontainertoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlContainerToAutoscaleSample.js -[sqlresourcesmigratesqlcontainertomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlContainerToManualThroughputSample.js -[sqlresourcesmigratesqldatabasetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.js -[sqlresourcesmigratesqldatabasetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.js -[sqlresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesRetrieveContinuousBackupInformationSample.js -[sqlresourcessqlcontainerredistributethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlContainerRedistributeThroughputSample.js -[sqlresourcessqlcontainerretrievethroughputdistributionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlContainerRetrieveThroughputDistributionSample.js -[sqlresourcessqldatabasepartitionmergesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabasePartitionMergeSample.js -[sqlresourcessqldatabaseredistributethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabaseRedistributeThroughputSample.js -[sqlresourcessqldatabaseretrievethroughputdistributionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.js -[sqlresourcesupdatesqlcontainerthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesUpdateSqlContainerThroughputSample.js -[sqlresourcesupdatesqldatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesUpdateSqlDatabaseThroughputSample.js -[tableresourcescreateupdatetablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesCreateUpdateTableSample.js -[tableresourcesdeletetablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesDeleteTableSample.js -[tableresourcesgettablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesGetTableSample.js -[tableresourcesgettablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesGetTableThroughputSample.js -[tableresourceslisttablessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesListTablesSample.js -[tableresourcesmigratetabletoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesMigrateTableToAutoscaleSample.js -[tableresourcesmigratetabletomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesMigrateTableToManualThroughputSample.js -[tableresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesRetrieveContinuousBackupInformationSample.js -[tableresourcesupdatetablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/tableResourcesUpdateTableThroughputSample.js -[throughputpoolaccountcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountCreateSample.js -[throughputpoolaccountdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountDeleteSample.js -[throughputpoolaccountgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountGetSample.js -[throughputpoolaccountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountsListSample.js -[throughputpoolcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolCreateOrUpdateSample.js -[throughputpooldeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolDeleteSample.js -[throughputpoolgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolGetSample.js -[throughputpoolupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolUpdateSample.js -[throughputpoolslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolsListByResourceGroupSample.js -[throughputpoolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolsListSample.js -[apiref]: https://learn.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb/README.md diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersGetBackupSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersGetBackupSample.js deleted file mode 100644 index ce2ba2492b0e..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersGetBackupSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the properties of an individual backup of this cluster that is available to restore. - * - * @summary Get the properties of an individual backup of this cluster that is available to restore. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraBackup.json - */ -async function cosmosDbManagedCassandraBackup() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const backupId = "1611250348"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraClusters.getBackup(resourceGroupName, clusterName, backupId); - console.log(result); -} - -async function main() { - cosmosDbManagedCassandraBackup(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersGetCommandAsyncSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersGetCommandAsyncSample.js deleted file mode 100644 index 112a953251ae..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersGetCommandAsyncSample.js +++ /dev/null @@ -1,41 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get details about a specified command that was run asynchronously. - * - * @summary Get details about a specified command that was run asynchronously. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommandResult.json - */ -async function cosmosDbManagedCassandraCommandResult() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const commandId = "318653d0-3da5-4814-b8f6-429f2af0b2a4"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraClusters.getCommandAsync( - resourceGroupName, - clusterName, - commandId, - ); - console.log(result); -} - -async function main() { - cosmosDbManagedCassandraCommandResult(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersInvokeCommandAsyncSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersInvokeCommandAsyncSample.js deleted file mode 100644 index 4d19b3eaa8d8..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersInvokeCommandAsyncSample.js +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Invoke a command like nodetool for cassandra maintenance asynchronously - * - * @summary Invoke a command like nodetool for cassandra maintenance asynchronously - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommandAsync.json - */ -async function cosmosDbManagedCassandraCommandAsync() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const body = { - arguments: { status: "" }, - command: "nodetool", - host: "10.0.1.12", - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraClusters.beginInvokeCommandAsyncAndWait( - resourceGroupName, - clusterName, - body, - ); - console.log(result); -} - -async function main() { - cosmosDbManagedCassandraCommandAsync(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListBackupsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListBackupsSample.js deleted file mode 100644 index a7d6382f4dd7..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListBackupsSample.js +++ /dev/null @@ -1,39 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List the backups of this cluster that are available to restore. - * - * @summary List the backups of this cluster that are available to restore. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraBackupsList.json - */ -async function cosmosDbManagedCassandraBackupsList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cassandraClusters.listBackups(resourceGroupName, clusterName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbManagedCassandraBackupsList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListCommandSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListCommandSample.js deleted file mode 100644 index fe53c9a5dbbf..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraClustersListCommandSample.js +++ /dev/null @@ -1,39 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all commands currently running on ring info - * - * @summary List all commands currently running on ring info - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraListCommand.json - */ -async function cosmosDbManagedCassandraListCommand() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cassandraClusters.listCommand(resourceGroupName, clusterName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbManagedCassandraListCommand(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesCreateUpdateCassandraViewSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesCreateUpdateCassandraViewSample.js deleted file mode 100644 index 9965c11773bd..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesCreateUpdateCassandraViewSample.js +++ /dev/null @@ -1,52 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB Cassandra View - * - * @summary Create or update an Azure Cosmos DB Cassandra View - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewCreateUpdate.json - */ -async function cosmosDbCassandraViewCreateUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const createUpdateCassandraViewParameters = { - options: {}, - resource: { - id: "viewname", - viewDefinition: - "SELECT columna, columnb, columnc FROM keyspacename.srctablename WHERE columna IS NOT NULL AND columnc IS NOT NULL PRIMARY (columnc, columna)", - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraResources.beginCreateUpdateCassandraViewAndWait( - resourceGroupName, - accountName, - keyspaceName, - viewName, - createUpdateCassandraViewParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewCreateUpdate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesDeleteCassandraViewSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesDeleteCassandraViewSample.js deleted file mode 100644 index 20a4cf5d71bc..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesDeleteCassandraViewSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes an existing Azure Cosmos DB Cassandra view. - * - * @summary Deletes an existing Azure Cosmos DB Cassandra view. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewDelete.json - */ -async function cosmosDbCassandraViewDelete() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraResources.beginDeleteCassandraViewAndWait( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewDelete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraViewSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraViewSample.js deleted file mode 100644 index 7bf2913e9d2a..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraViewSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the Cassandra view under an existing Azure Cosmos DB database account. - * - * @summary Gets the Cassandra view under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewGet.json - */ -async function cosmosDbCassandraViewGet() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraResources.getCassandraView( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraViewThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraViewThroughputSample.js deleted file mode 100644 index 2b2ebe0bbea0..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesGetCassandraViewThroughputSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the RUs per second of the Cassandra view under an existing Azure Cosmos DB database account with the provided name. - * - * @summary Gets the RUs per second of the Cassandra view under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewThroughputGet.json - */ -async function cosmosDbCassandraViewThroughputGet() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraResources.getCassandraViewThroughput( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewThroughputGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesListCassandraViewsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesListCassandraViewsSample.js deleted file mode 100644 index c19f8135f11e..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesListCassandraViewsSample.js +++ /dev/null @@ -1,43 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists the Cassandra materialized views under an existing Azure Cosmos DB database account. - * - * @summary Lists the Cassandra materialized views under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewList.json - */ -async function cosmosDbCassandraViewList() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cassandraResources.listCassandraViews( - resourceGroupName, - accountName, - keyspaceName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbCassandraViewList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraViewToAutoscaleSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraViewToAutoscaleSample.js deleted file mode 100644 index aaa7ee32f2cf..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraViewToAutoscaleSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra view from manual throughput to autoscale - * - * @summary Migrate an Azure Cosmos DB Cassandra view from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewMigrateToAutoscale.json - */ -async function cosmosDbCassandraViewMigrateToAutoscale() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraResources.beginMigrateCassandraViewToAutoscaleAndWait( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewMigrateToAutoscale(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraViewToManualThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraViewToManualThroughputSample.js deleted file mode 100644 index 7cccd7d2580a..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesMigrateCassandraViewToManualThroughputSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra view from autoscale to manual throughput - * - * @summary Migrate an Azure Cosmos DB Cassandra view from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewMigrateToManualThroughput.json - */ -async function cosmosDbCassandraViewMigrateToManualThroughput() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraResources.beginMigrateCassandraViewToManualThroughputAndWait( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewMigrateToManualThroughput(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesUpdateCassandraViewThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesUpdateCassandraViewThroughputSample.js deleted file mode 100644 index c883997aaf35..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/cassandraResourcesUpdateCassandraViewThroughputSample.js +++ /dev/null @@ -1,47 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Cassandra view - * - * @summary Update RUs per second of an Azure Cosmos DB Cassandra view - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewThroughputUpdate.json - */ -async function cosmosDbCassandraViewThroughputUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const updateThroughputParameters = { - resource: { throughput: 400 }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraResources.beginUpdateCassandraViewThroughputAndWait( - resourceGroupName, - accountName, - keyspaceName, - viewName, - updateThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewThroughputUpdate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultEnableDisableSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultEnableDisableSample.js deleted file mode 100644 index 2e3eaf9381aa..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultEnableDisableSample.js +++ /dev/null @@ -1,48 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Enable, disable Chaos Fault in a CosmosDB account. - * - * @summary Enable, disable Chaos Fault in a CosmosDB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultEnableDisable.json - */ -async function chaosFaultEnableDisable() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "myResourceGroupName"; - const accountName = "myAccountName"; - const chaosFault = "ServiceUnavailability"; - const chaosFaultRequest = { - action: "Enable", - containerName: "testCollection", - databaseName: "testDatabase", - region: "EastUS", - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.chaosFault.beginEnableDisableAndWait( - resourceGroupName, - accountName, - chaosFault, - chaosFaultRequest, - ); - console.log(result); -} - -async function main() { - chaosFaultEnableDisable(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultGetSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultGetSample.js deleted file mode 100644 index 82302c1f617f..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultGetSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get Chaos Fault for a CosmosdB account for a particular Chaos Fault. - * - * @summary Get Chaos Fault for a CosmosdB account for a particular Chaos Fault. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultGet.json - */ -async function chaosFaultGet() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const chaosFault = "ServiceUnavailability"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.chaosFault.get(resourceGroupName, accountName, chaosFault); - console.log(result); -} - -async function main() { - chaosFaultGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultListSample.js deleted file mode 100644 index e9bb00f5e231..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/chaosFaultListSample.js +++ /dev/null @@ -1,39 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List Chaos Faults for CosmosDB account. - * - * @summary List Chaos Faults for CosmosDB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultList.json - */ -async function chaosFaultList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.chaosFault.list(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - chaosFaultList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCancelSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCancelSample.js deleted file mode 100644 index 251d11d3d4ec..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCancelSample.js +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Cancels a Data Transfer Job. - * - * @summary Cancels a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobCancel.json - */ -async function cosmosDbDataTransferJobCancel() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.cancel(resourceGroupName, accountName, jobName); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobCancel(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCompleteSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCompleteSample.js deleted file mode 100644 index 7156f0bb98e8..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCompleteSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Completes a Data Transfer Online Job. - * - * @summary Completes a Data Transfer Online Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobComplete.json - */ -async function cosmosDbDataTransferJobComplete() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "e35cc6eb-c8e3-447b-8de6-b83328cd0098"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.complete(resourceGroupName, accountName, jobName); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobComplete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCreateSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCreateSample.js deleted file mode 100644 index 399775facf73..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsCreateSample.js +++ /dev/null @@ -1,55 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates a Data Transfer Job. - * - * @summary Creates a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobCreate.json - */ -async function cosmosDbDataTransferJobCreate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const jobCreateParameters = { - properties: { - destination: { - component: "AzureBlobStorage", - containerName: "blob_container", - endpointUrl: "https://blob.windows.net", - }, - source: { - component: "CosmosDBCassandra", - keyspaceName: "keyspace", - tableName: "table", - }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.create( - resourceGroupName, - accountName, - jobName, - jobCreateParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobCreate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsGetSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsGetSample.js deleted file mode 100644 index 815b93bae0b1..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsGetSample.js +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a Data Transfer Job. - * - * @summary Get a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobGet.json - */ -async function cosmosDbDataTransferJobGet() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.get(resourceGroupName, accountName, jobName); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsListByDatabaseAccountSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsListByDatabaseAccountSample.js deleted file mode 100644 index 61f7c42b37c7..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsListByDatabaseAccountSample.js +++ /dev/null @@ -1,41 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of Data Transfer jobs. - * - * @summary Get a list of Data Transfer jobs. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobFeed.json - */ -async function cosmosDbDataTransferJobFeed() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataTransferJobs.listByDatabaseAccount( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbDataTransferJobFeed(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsPauseSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsPauseSample.js deleted file mode 100644 index 6c90aadb340f..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsPauseSample.js +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Pause a Data Transfer Job. - * - * @summary Pause a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobPause.json - */ -async function cosmosDbDataTransferJobPause() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.pause(resourceGroupName, accountName, jobName); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobPause(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsResumeSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsResumeSample.js deleted file mode 100644 index 11c8100c6682..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/dataTransferJobsResumeSample.js +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Resumes a Data Transfer Job. - * - * @summary Resumes a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobResume.json - */ -async function cosmosDbDataTransferJobResume() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.resume(resourceGroupName, accountName, jobName); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobResume(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesDeleteGraphResourceSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesDeleteGraphResourceSample.js deleted file mode 100644 index bf00c23a9887..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesDeleteGraphResourceSample.js +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes an existing Azure Cosmos DB Graph Resource. - * - * @summary Deletes an existing Azure Cosmos DB Graph Resource. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceDelete.json - */ -async function cosmosDbSqlDatabaseDelete() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const graphName = "graphName"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.graphResources.beginDeleteGraphResourceAndWait( - resourceGroupName, - accountName, - graphName, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabaseDelete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesGetGraphSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesGetGraphSample.js deleted file mode 100644 index 5a8ca145dd8c..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesGetGraphSample.js +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the Graph resource under an existing Azure Cosmos DB database account with the provided name. - * - * @summary Gets the Graph resource under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceGet.json - */ -async function cosmosDbSqlDatabaseGet() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const graphName = "graphName"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.graphResources.getGraph(resourceGroupName, accountName, graphName); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabaseGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesListGraphsSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesListGraphsSample.js deleted file mode 100644 index f5767db0b2a4..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/graphResourcesListGraphsSample.js +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists the graphs under an existing Azure Cosmos DB database account. - * - * @summary Lists the graphs under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceList.json - */ -async function cosmosDbSqlDatabaseList() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.graphResources.listGraphs(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbSqlDatabaseList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoDbcollectionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoDbcollectionSample.js deleted file mode 100644 index c0c6703bc201..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoDbcollectionSample.js +++ /dev/null @@ -1,100 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB MongoDB Collection - * - * @summary Create or update an Azure Cosmos DB MongoDB Collection - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json - */ -async function cosmosDbMongoDbcollectionCreateUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const collectionName = "collectionName"; - const createUpdateMongoDBCollectionParameters = { - location: "West US", - options: {}, - resource: { - analyticalStorageTtl: 500, - id: "collectionName", - indexes: [ - { - key: { keys: ["_ts"] }, - options: { expireAfterSeconds: 100, unique: true }, - }, - { key: { keys: ["_id"] } }, - ], - shardKey: { testKey: "Hash" }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.mongoDBResources.beginCreateUpdateMongoDBCollectionAndWait( - resourceGroupName, - accountName, - databaseName, - collectionName, - createUpdateMongoDBCollectionParameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB MongoDB Collection - * - * @summary Create or update an Azure Cosmos DB MongoDB Collection - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionRestore.json - */ -async function cosmosDbMongoDbcollectionRestore() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const collectionName = "collectionName"; - const createUpdateMongoDBCollectionParameters = { - location: "West US", - options: {}, - resource: { - createMode: "Restore", - id: "collectionName", - restoreParameters: { - restoreSource: - "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId", - restoreTimestampInUtc: new Date("2022-07-20T18:28:00Z"), - restoreWithTtlDisabled: false, - }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.mongoDBResources.beginCreateUpdateMongoDBCollectionAndWait( - resourceGroupName, - accountName, - databaseName, - collectionName, - createUpdateMongoDBCollectionParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbcollectionCreateUpdate(); - cosmosDbMongoDbcollectionRestore(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.js deleted file mode 100644 index 02e544f9c326..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.js +++ /dev/null @@ -1,85 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or updates Azure Cosmos DB MongoDB database - * - * @summary Create or updates Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json - */ -async function cosmosDbMongoDbdatabaseCreateUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const createUpdateMongoDBDatabaseParameters = { - location: "West US", - options: {}, - resource: { id: "databaseName" }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.mongoDBResources.beginCreateUpdateMongoDBDatabaseAndWait( - resourceGroupName, - accountName, - databaseName, - createUpdateMongoDBDatabaseParameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or updates Azure Cosmos DB MongoDB database - * - * @summary Create or updates Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseRestore.json - */ -async function cosmosDbMongoDbdatabaseRestore() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const createUpdateMongoDBDatabaseParameters = { - location: "West US", - options: {}, - resource: { - createMode: "Restore", - id: "databaseName", - restoreParameters: { - restoreSource: - "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId", - restoreTimestampInUtc: new Date("2022-07-20T18:28:00Z"), - restoreWithTtlDisabled: false, - }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.mongoDBResources.beginCreateUpdateMongoDBDatabaseAndWait( - resourceGroupName, - accountName, - databaseName, - createUpdateMongoDBDatabaseParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbdatabaseCreateUpdate(); - cosmosDbMongoDbdatabaseRestore(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoDbcollectionPartitionMergeSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoDbcollectionPartitionMergeSample.js deleted file mode 100644 index cfece4175cb4..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesListMongoDbcollectionPartitionMergeSample.js +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Merges the partitions of a MongoDB Collection - * - * @summary Merges the partitions of a MongoDB Collection - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionPartitionMerge.json - */ -async function cosmosDbMongoDbcollectionPartitionMerge() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const collectionName = "collectionName"; - const mergeParameters = { isDryRun: false }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.mongoDBResources.beginListMongoDBCollectionPartitionMergeAndWait( - resourceGroupName, - accountName, - databaseName, - collectionName, - mergeParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbcollectionPartitionMerge(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.js deleted file mode 100644 index 9f3a9a71627a..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.js +++ /dev/null @@ -1,47 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve throughput distribution for an Azure Cosmos DB MongoDB container - * - * @summary Retrieve throughput distribution for an Azure Cosmos DB MongoDB container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionRetrieveThroughputDistribution.json - */ -async function cosmosDbMongoDbcollectionRetrieveThroughputDistribution() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const collectionName = "collectionName"; - const retrieveThroughputParameters = { - resource: { physicalPartitionIds: [{ id: "0" }, { id: "1" }] }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginMongoDBContainerRetrieveThroughputDistributionAndWait( - resourceGroupName, - accountName, - databaseName, - collectionName, - retrieveThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbcollectionRetrieveThroughputDistribution(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabasePartitionMergeSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabasePartitionMergeSample.js deleted file mode 100644 index a58c33f04de6..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabasePartitionMergeSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Merges the partitions of a MongoDB database - * - * @summary Merges the partitions of a MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabasePartitionMerge.json - */ -async function cosmosDbMongoDbdatabasePartitionMerge() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const mergeParameters = { isDryRun: false }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.mongoDBResources.beginMongoDBDatabasePartitionMergeAndWait( - resourceGroupName, - accountName, - databaseName, - mergeParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbdatabasePartitionMerge(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.js deleted file mode 100644 index fb1896274ab1..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.js +++ /dev/null @@ -1,51 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Redistribute throughput for an Azure Cosmos DB MongoDB database - * - * @summary Redistribute throughput for an Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseRedistributeThroughput.json - */ -async function cosmosDbMongoDbdatabaseRedistributeThroughput() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const redistributeThroughputParameters = { - resource: { - sourcePhysicalPartitionThroughputInfo: [{ id: "2", throughput: 5000 }, { id: "3" }], - targetPhysicalPartitionThroughputInfo: [ - { id: "0", throughput: 5000 }, - { id: "1", throughput: 5000 }, - ], - throughputPolicy: "custom", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.mongoDBResources.beginMongoDBDatabaseRedistributeThroughputAndWait( - resourceGroupName, - accountName, - databaseName, - redistributeThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbdatabaseRedistributeThroughput(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.js deleted file mode 100644 index 2f6934c78b4d..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.js +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve throughput distribution for an Azure Cosmos DB MongoDB database - * - * @summary Retrieve throughput distribution for an Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseRetrieveThroughputDistribution.json - */ -async function cosmosDbMongoDbdatabaseRetrieveThroughputDistribution() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const retrieveThroughputParameters = { - resource: { physicalPartitionIds: [{ id: "0" }, { id: "1" }] }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginMongoDBDatabaseRetrieveThroughputDistributionAndWait( - resourceGroupName, - accountName, - databaseName, - retrieveThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbdatabaseRetrieveThroughputDistribution(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsGetSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsGetSample.js deleted file mode 100644 index 032449b7bd27..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsGetSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets effective Network Security Perimeter Configuration for association - * - * @summary Gets effective Network Security Perimeter Configuration for association - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationGet.json - */ -async function namspaceNetworkSecurityPerimeterConfigurationList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "res4410"; - const accountName = "cosmosTest"; - const networkSecurityPerimeterConfigurationName = - "dbedb4e0-40e6-4145-81f3-f1314c150774.resourceAssociation1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.networkSecurityPerimeterConfigurations.get( - resourceGroupName, - accountName, - networkSecurityPerimeterConfigurationName, - ); - console.log(result); -} - -async function main() { - namspaceNetworkSecurityPerimeterConfigurationList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsListSample.js deleted file mode 100644 index f36d45d5c307..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsListSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets list of effective Network Security Perimeter Configuration for cosmos db account - * - * @summary Gets list of effective Network Security Perimeter Configuration for cosmos db account - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationList.json - */ -async function namspaceNetworkSecurityPerimeterConfigurationList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "res4410"; - const accountName = "cosmosTest"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkSecurityPerimeterConfigurations.list( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - namspaceNetworkSecurityPerimeterConfigurationList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsReconcileSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsReconcileSample.js deleted file mode 100644 index 1b268e3ecd2f..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/networkSecurityPerimeterConfigurationsReconcileSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Refreshes any information about the association. - * - * @summary Refreshes any information about the association. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationReconcile.json - */ -async function networkSecurityPerimeterConfigurationList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "res4410"; - const accountName = "sto8607"; - const networkSecurityPerimeterConfigurationName = - "dbedb4e0-40e6-4145-81f3-f1314c150774.resourceAssociation1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.networkSecurityPerimeterConfigurations.beginReconcileAndWait( - resourceGroupName, - accountName, - networkSecurityPerimeterConfigurationName, - ); - console.log(result); -} - -async function main() { - networkSecurityPerimeterConfigurationList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sample.env b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sample.env deleted file mode 100644 index efbc7787bd3b..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sample.env +++ /dev/null @@ -1 +0,0 @@ -# Feel free to add your own environment variables. diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlContainerSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlContainerSample.js deleted file mode 100644 index bfd012eebe13..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlContainerSample.js +++ /dev/null @@ -1,176 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB SQL container - * - * @summary Create or update an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerCreateUpdate.json - */ -async function cosmosDbSqlContainerCreateUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "containerName"; - const createUpdateSqlContainerParameters = { - location: "West US", - options: {}, - resource: { - clientEncryptionPolicy: { - includedPaths: [ - { - path: "/path", - clientEncryptionKeyId: "keyId", - encryptionAlgorithm: "AEAD_AES_256_CBC_HMAC_SHA256", - encryptionType: "Deterministic", - }, - ], - policyFormatVersion: 2, - }, - computedProperties: [{ name: "cp_lowerName", query: "SELECT VALUE LOWER(c.name) FROM c" }], - conflictResolutionPolicy: { - conflictResolutionPath: "/path", - mode: "LastWriterWins", - }, - defaultTtl: 100, - id: "containerName", - indexingPolicy: { - automatic: true, - excludedPaths: [], - includedPaths: [ - { - path: "/*", - indexes: [ - { dataType: "String", kind: "Range", precision: -1 }, - { dataType: "Number", kind: "Range", precision: -1 }, - ], - }, - ], - indexingMode: "consistent", - }, - partitionKey: { kind: "Hash", paths: ["/AccountNumber"] }, - uniqueKeyPolicy: { uniqueKeys: [{ paths: ["/testPath"] }] }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginCreateUpdateSqlContainerAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - createUpdateSqlContainerParameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB SQL container - * - * @summary Create or update an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerRestore.json - */ -async function cosmosDbSqlContainerRestore() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "containerName"; - const createUpdateSqlContainerParameters = { - location: "West US", - options: {}, - resource: { - createMode: "Restore", - id: "containerName", - restoreParameters: { - restoreSource: - "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId", - restoreTimestampInUtc: new Date("2022-07-20T18:28:00Z"), - restoreWithTtlDisabled: true, - }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginCreateUpdateSqlContainerAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - createUpdateSqlContainerParameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB SQL container - * - * @summary Create or update an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlMaterializedViewCreateUpdate.json - */ -async function cosmosDbSqlMaterializedViewCreateUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "mvContainerName"; - const createUpdateSqlContainerParameters = { - location: "West US", - options: {}, - resource: { - id: "mvContainerName", - indexingPolicy: { - automatic: true, - excludedPaths: [], - includedPaths: [ - { - path: "/*", - indexes: [ - { dataType: "String", kind: "Range", precision: -1 }, - { dataType: "Number", kind: "Range", precision: -1 }, - ], - }, - ], - indexingMode: "consistent", - }, - materializedViewDefinition: { - definition: "select * from ROOT", - sourceCollectionId: "sourceContainerName", - }, - partitionKey: { kind: "Hash", paths: ["/mvpk"] }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginCreateUpdateSqlContainerAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - createUpdateSqlContainerParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlContainerCreateUpdate(); - cosmosDbSqlContainerRestore(); - cosmosDbSqlMaterializedViewCreateUpdate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlDatabaseSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlDatabaseSample.js deleted file mode 100644 index 96557ce0192a..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesCreateUpdateSqlDatabaseSample.js +++ /dev/null @@ -1,85 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB SQL database - * - * @summary Create or update an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json - */ -async function cosmosDbSqlDatabaseCreateUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const createUpdateSqlDatabaseParameters = { - location: "West US", - options: {}, - resource: { id: "databaseName" }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginCreateUpdateSqlDatabaseAndWait( - resourceGroupName, - accountName, - databaseName, - createUpdateSqlDatabaseParameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB SQL database - * - * @summary Create or update an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseRestore.json - */ -async function cosmosDbSqlDatabaseRestore() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const createUpdateSqlDatabaseParameters = { - location: "West US", - options: {}, - resource: { - createMode: "Restore", - id: "databaseName", - restoreParameters: { - restoreSource: - "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId", - restoreTimestampInUtc: new Date("2022-07-20T18:28:00Z"), - restoreWithTtlDisabled: true, - }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginCreateUpdateSqlDatabaseAndWait( - resourceGroupName, - accountName, - databaseName, - createUpdateSqlDatabaseParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabaseCreateUpdate(); - cosmosDbSqlDatabaseRestore(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlContainerRedistributeThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlContainerRedistributeThroughputSample.js deleted file mode 100644 index 5d0480b0dd2a..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlContainerRedistributeThroughputSample.js +++ /dev/null @@ -1,53 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Redistribute throughput for an Azure Cosmos DB SQL container - * - * @summary Redistribute throughput for an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerRedistributeThroughput.json - */ -async function cosmosDbSqlContainerRedistributeThroughput() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "containerName"; - const redistributeThroughputParameters = { - resource: { - sourcePhysicalPartitionThroughputInfo: [{ id: "2", throughput: 5000 }, { id: "3" }], - targetPhysicalPartitionThroughputInfo: [ - { id: "0", throughput: 5000 }, - { id: "1", throughput: 5000 }, - ], - throughputPolicy: "custom", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginSqlContainerRedistributeThroughputAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - redistributeThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlContainerRedistributeThroughput(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlContainerRetrieveThroughputDistributionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlContainerRetrieveThroughputDistributionSample.js deleted file mode 100644 index ba7c523f94bc..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlContainerRetrieveThroughputDistributionSample.js +++ /dev/null @@ -1,46 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve throughput distribution for an Azure Cosmos DB SQL container - * - * @summary Retrieve throughput distribution for an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerRetrieveThroughputDistribution.json - */ -async function cosmosDbSqlContainerRetrieveThroughputDistribution() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "containerName"; - const retrieveThroughputParameters = { - resource: { physicalPartitionIds: [{ id: "0" }, { id: "1" }] }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginSqlContainerRetrieveThroughputDistributionAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - retrieveThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlContainerRetrieveThroughputDistribution(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabasePartitionMergeSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabasePartitionMergeSample.js deleted file mode 100644 index 90b8b62cdd48..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabasePartitionMergeSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Merges the partitions of a SQL database - * - * @summary Merges the partitions of a SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabasePartitionMerge.json - */ -async function cosmosDbSqlDatabasePartitionMerge() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const mergeParameters = { isDryRun: false }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginSqlDatabasePartitionMergeAndWait( - resourceGroupName, - accountName, - databaseName, - mergeParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabasePartitionMerge(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabaseRedistributeThroughputSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabaseRedistributeThroughputSample.js deleted file mode 100644 index 2592eca376d8..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabaseRedistributeThroughputSample.js +++ /dev/null @@ -1,51 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Redistribute throughput for an Azure Cosmos DB SQL database - * - * @summary Redistribute throughput for an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseRedistributeThroughput.json - */ -async function cosmosDbSqlDatabaseRedistributeThroughput() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const redistributeThroughputParameters = { - resource: { - sourcePhysicalPartitionThroughputInfo: [{ id: "2", throughput: 5000 }, { id: "3" }], - targetPhysicalPartitionThroughputInfo: [ - { id: "0", throughput: 5000 }, - { id: "1", throughput: 5000 }, - ], - throughputPolicy: "custom", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginSqlDatabaseRedistributeThroughputAndWait( - resourceGroupName, - accountName, - databaseName, - redistributeThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabaseRedistributeThroughput(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.js deleted file mode 100644 index 45db4523fd0a..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.js +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve throughput distribution for an Azure Cosmos DB SQL database - * - * @summary Retrieve throughput distribution for an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseRetrieveThroughputDistribution.json - */ -async function cosmosDbSqlDatabaseRetrieveThroughputDistribution() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const retrieveThroughputParameters = { - resource: { physicalPartitionIds: [{ id: "0" }, { id: "1" }] }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginSqlDatabaseRetrieveThroughputDistributionAndWait( - resourceGroupName, - accountName, - databaseName, - retrieveThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabaseRetrieveThroughputDistribution(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountCreateSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountCreateSample.js deleted file mode 100644 index 688de710843e..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountCreateSample.js +++ /dev/null @@ -1,47 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. - * - * @summary Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountCreate.json - */ -async function cosmosDbThroughputPoolAccountCreate() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const throughputPoolName = "tp1"; - const throughputPoolAccountName = "db1"; - const body = { - accountLocation: "West US", - accountResourceIdentifier: - "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DocumentDB/resourceGroup/rg1/databaseAccounts/db1/", - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPoolAccount.beginCreateAndWait( - resourceGroupName, - throughputPoolName, - throughputPoolAccountName, - body, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolAccountCreate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountDeleteSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountDeleteSample.js deleted file mode 100644 index 57ad96b2a912..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountDeleteSample.js +++ /dev/null @@ -1,41 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Removes an existing Azure Cosmos DB database account from a throughput pool. - * - * @summary Removes an existing Azure Cosmos DB database account from a throughput pool. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountDelete.json - */ -async function cosmosDbThroughputPoolAccountDelete() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const throughputPoolAccountName = "db1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPoolAccount.beginDeleteAndWait( - resourceGroupName, - throughputPoolName, - throughputPoolAccountName, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolAccountDelete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountGetSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountGetSample.js deleted file mode 100644 index 55f1d3e4457b..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountGetSample.js +++ /dev/null @@ -1,41 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * - * @summary Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountGet.json - */ -async function cosmosDbThroughputPoolAccountGet() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const throughputPoolAccountName = "db1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPoolAccount.get( - resourceGroupName, - throughputPoolName, - throughputPoolAccountName, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolAccountGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountsListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountsListSample.js deleted file mode 100644 index 7b4dadbabecd..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolAccountsListSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all the Azure Cosmos DB accounts available under the subscription. - * - * @summary Lists all the Azure Cosmos DB accounts available under the subscription. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountsList.json - */ -async function cosmosDbThroughputPoolAccountList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.throughputPoolAccounts.list( - resourceGroupName, - throughputPoolName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbThroughputPoolAccountList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolCreateOrUpdateSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolCreateOrUpdateSample.js deleted file mode 100644 index 7958fb0910bf..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolCreateOrUpdateSample.js +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. - * - * @summary Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolCreate.json - */ -async function cosmosDbThroughputPoolCreate() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const throughputPoolName = "tp1"; - const body = { - location: "westus2", - maxThroughput: 10000, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPool.beginCreateOrUpdateAndWait( - resourceGroupName, - throughputPoolName, - body, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolCreate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolDeleteSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolDeleteSample.js deleted file mode 100644 index cb254d7cb327..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolDeleteSample.js +++ /dev/null @@ -1,39 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes an existing Azure Cosmos DB Throughput Pool. - * - * @summary Deletes an existing Azure Cosmos DB Throughput Pool. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolDelete.json - */ -async function cosmosDbThroughputPoolDelete() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPool.beginDeleteAndWait( - resourceGroupName, - throughputPoolName, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolDelete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolGetSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolGetSample.js deleted file mode 100644 index 5cb4090cc0ec..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolGetSample.js +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * - * @summary Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolGet.json - */ -async function cosmosDbThroughputPoolGet() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPool.get(resourceGroupName, throughputPoolName); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolUpdateSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolUpdateSample.js deleted file mode 100644 index 2563d184bdd2..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolUpdateSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates the properties of an existing Azure Cosmos DB Throughput Pool. - * - * @summary Updates the properties of an existing Azure Cosmos DB Throughput Pool. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolUpdate.json - */ -async function cosmosDbThroughputPoolUpdate() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const throughputPoolName = "tp1"; - const body = { maxThroughput: 10000 }; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPool.beginUpdateAndWait( - resourceGroupName, - throughputPoolName, - options, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolUpdate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolsListByResourceGroupSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolsListByResourceGroupSample.js deleted file mode 100644 index 259758f08e32..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolsListByResourceGroupSample.js +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all the ThroughputPools in a given resource group. - * - * @summary List all the ThroughputPools in a given resource group. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolList.json - */ -async function cosmosDbThroughputPoolListByResourceGroup() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.throughputPools.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbThroughputPoolListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolsListSample.js b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolsListSample.js deleted file mode 100644 index eec61bd42fc2..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/javascript/throughputPoolsListSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all the Azure Cosmos DB Throughput Pools available under the subscription. - * - * @summary Lists all the Azure Cosmos DB Throughput Pools available under the subscription. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolList.json - */ -async function cosmosDbThroughputPoolList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.throughputPools.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbThroughputPoolList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/README.md b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/README.md deleted file mode 100644 index 1be7dd7bdad6..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/README.md +++ /dev/null @@ -1,545 +0,0 @@ -# client library samples for TypeScript (Beta) - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ----------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [cassandraClustersCreateUpdateSample.ts][cassandraclusterscreateupdatesample] | Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterCreate.json | -| [cassandraClustersDeallocateSample.ts][cassandraclustersdeallocatesample] | 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 already deallocated cluster. Use Start to restart the cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterDeallocate.json | -| [cassandraClustersDeleteSample.ts][cassandraclustersdeletesample] | Deletes a managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterDelete.json | -| [cassandraClustersGetBackupSample.ts][cassandraclustersgetbackupsample] | Get the properties of an individual backup of this cluster that is available to restore. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraBackup.json | -| [cassandraClustersGetCommandAsyncSample.ts][cassandraclustersgetcommandasyncsample] | Get details about a specified command that was run asynchronously. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommandResult.json | -| [cassandraClustersGetSample.ts][cassandraclustersgetsample] | Get the properties of a managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterGet.json | -| [cassandraClustersInvokeCommandAsyncSample.ts][cassandraclustersinvokecommandasyncsample] | Invoke a command like nodetool for cassandra maintenance asynchronously x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommandAsync.json | -| [cassandraClustersInvokeCommandSample.ts][cassandraclustersinvokecommandsample] | Invoke a command like nodetool for cassandra maintenance x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommand.json | -| [cassandraClustersListBackupsSample.ts][cassandraclusterslistbackupssample] | List the backups of this cluster that are available to restore. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraBackupsList.json | -| [cassandraClustersListByResourceGroupSample.ts][cassandraclusterslistbyresourcegroupsample] | List all managed Cassandra clusters in this resource group. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json | -| [cassandraClustersListBySubscriptionSample.ts][cassandraclusterslistbysubscriptionsample] | List all managed Cassandra clusters in this subscription. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterListBySubscription.json | -| [cassandraClustersListCommandSample.ts][cassandraclusterslistcommandsample] | List all commands currently running on ring info x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraListCommand.json | -| [cassandraClustersStartSample.ts][cassandraclustersstartsample] | Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterStart.json | -| [cassandraClustersStatusSample.ts][cassandraclustersstatussample] | Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraStatus.json | -| [cassandraClustersUpdateSample.ts][cassandraclustersupdatesample] | Updates some of the properties of a managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraClusterPatch.json | -| [cassandraDataCentersCreateUpdateSample.ts][cassandradatacenterscreateupdatesample] | Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterCreate.json | -| [cassandraDataCentersDeleteSample.ts][cassandradatacentersdeletesample] | Delete a managed Cassandra data center. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterDelete.json | -| [cassandraDataCentersGetSample.ts][cassandradatacentersgetsample] | Get the properties of a managed Cassandra data center. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterGet.json | -| [cassandraDataCentersListSample.ts][cassandradatacenterslistsample] | List all data centers in a particular managed Cassandra cluster. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterList.json | -| [cassandraDataCentersUpdateSample.ts][cassandradatacentersupdatesample] | Update some of the properties of a managed Cassandra data center. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraDataCenterPatch.json | -| [cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts][cassandraresourcescreateupdatecassandrakeyspacesample] | Create or update an Azure Cosmos DB Cassandra keyspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json | -| [cassandraResourcesCreateUpdateCassandraTableSample.ts][cassandraresourcescreateupdatecassandratablesample] | Create or update an Azure Cosmos DB Cassandra Table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableCreateUpdate.json | -| [cassandraResourcesCreateUpdateCassandraViewSample.ts][cassandraresourcescreateupdatecassandraviewsample] | Create or update an Azure Cosmos DB Cassandra View x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewCreateUpdate.json | -| [cassandraResourcesDeleteCassandraKeyspaceSample.ts][cassandraresourcesdeletecassandrakeyspacesample] | Deletes an existing Azure Cosmos DB Cassandra keyspace. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceDelete.json | -| [cassandraResourcesDeleteCassandraTableSample.ts][cassandraresourcesdeletecassandratablesample] | Deletes an existing Azure Cosmos DB Cassandra table. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableDelete.json | -| [cassandraResourcesDeleteCassandraViewSample.ts][cassandraresourcesdeletecassandraviewsample] | Deletes an existing Azure Cosmos DB Cassandra view. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewDelete.json | -| [cassandraResourcesGetCassandraKeyspaceSample.ts][cassandraresourcesgetcassandrakeyspacesample] | Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceGet.json | -| [cassandraResourcesGetCassandraKeyspaceThroughputSample.ts][cassandraresourcesgetcassandrakeyspacethroughputsample] | Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json | -| [cassandraResourcesGetCassandraTableSample.ts][cassandraresourcesgetcassandratablesample] | Gets the Cassandra table under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableGet.json | -| [cassandraResourcesGetCassandraTableThroughputSample.ts][cassandraresourcesgetcassandratablethroughputsample] | Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableThroughputGet.json | -| [cassandraResourcesGetCassandraViewSample.ts][cassandraresourcesgetcassandraviewsample] | Gets the Cassandra view under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewGet.json | -| [cassandraResourcesGetCassandraViewThroughputSample.ts][cassandraresourcesgetcassandraviewthroughputsample] | Gets the RUs per second of the Cassandra view under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewThroughputGet.json | -| [cassandraResourcesListCassandraKeyspacesSample.ts][cassandraresourceslistcassandrakeyspacessample] | Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceList.json | -| [cassandraResourcesListCassandraTablesSample.ts][cassandraresourceslistcassandratablessample] | Lists the Cassandra table under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableList.json | -| [cassandraResourcesListCassandraViewsSample.ts][cassandraresourceslistcassandraviewssample] | Lists the Cassandra materialized views under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewList.json | -| [cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts][cassandraresourcesmigratecassandrakeyspacetoautoscalesample] | Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json | -| [cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts][cassandraresourcesmigratecassandrakeyspacetomanualthroughputsample] | Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json | -| [cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts][cassandraresourcesmigratecassandratabletoautoscalesample] | Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json | -| [cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts][cassandraresourcesmigratecassandratabletomanualthroughputsample] | Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json | -| [cassandraResourcesMigrateCassandraViewToAutoscaleSample.ts][cassandraresourcesmigratecassandraviewtoautoscalesample] | Migrate an Azure Cosmos DB Cassandra view from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewMigrateToAutoscale.json | -| [cassandraResourcesMigrateCassandraViewToManualThroughputSample.ts][cassandraresourcesmigratecassandraviewtomanualthroughputsample] | Migrate an Azure Cosmos DB Cassandra view from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewMigrateToManualThroughput.json | -| [cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts][cassandraresourcesupdatecassandrakeyspacethroughputsample] | Update RUs per second of an Azure Cosmos DB Cassandra Keyspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json | -| [cassandraResourcesUpdateCassandraTableThroughputSample.ts][cassandraresourcesupdatecassandratablethroughputsample] | Update RUs per second of an Azure Cosmos DB Cassandra table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraTableThroughputUpdate.json | -| [cassandraResourcesUpdateCassandraViewThroughputSample.ts][cassandraresourcesupdatecassandraviewthroughputsample] | Update RUs per second of an Azure Cosmos DB Cassandra view x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewThroughputUpdate.json | -| [chaosFaultEnableDisableSample.ts][chaosfaultenabledisablesample] | Enable, disable Chaos Fault in a CosmosDB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultEnableDisable.json | -| [chaosFaultGetSample.ts][chaosfaultgetsample] | Get Chaos Fault for a CosmosdB account for a particular Chaos Fault. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultGet.json | -| [chaosFaultListSample.ts][chaosfaultlistsample] | List Chaos Faults for CosmosDB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultList.json | -| [collectionListMetricDefinitionsSample.ts][collectionlistmetricdefinitionssample] | Retrieves metric definitions for the given collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetMetricDefinitions.json | -| [collectionListMetricsSample.ts][collectionlistmetricssample] | Retrieves the metrics determined by the given filter for the given database account and collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetMetrics.json | -| [collectionListUsagesSample.ts][collectionlistusagessample] | Retrieves the usages (most recent storage data) for the given collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionGetUsages.json | -| [collectionPartitionListMetricsSample.ts][collectionpartitionlistmetricssample] | Retrieves the metrics determined by the given filter for the given collection, split by partition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionGetMetrics.json | -| [collectionPartitionListUsagesSample.ts][collectionpartitionlistusagessample] | Retrieves the usages (most recent storage data) for the given collection, split by partition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionGetUsages.json | -| [collectionPartitionRegionListMetricsSample.ts][collectionpartitionregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given collection and region, split by partition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json | -| [collectionRegionListMetricsSample.ts][collectionregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given database account, collection and region. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRegionCollectionGetMetrics.json | -| [dataTransferJobsCancelSample.ts][datatransferjobscancelsample] | Cancels a Data Transfer Job. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobCancel.json | -| [dataTransferJobsCompleteSample.ts][datatransferjobscompletesample] | Completes a Data Transfer Online Job. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobComplete.json | -| [dataTransferJobsCreateSample.ts][datatransferjobscreatesample] | Creates a Data Transfer Job. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobCreate.json | -| [dataTransferJobsGetSample.ts][datatransferjobsgetsample] | Get a Data Transfer Job. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobGet.json | -| [dataTransferJobsListByDatabaseAccountSample.ts][datatransferjobslistbydatabaseaccountsample] | Get a list of Data Transfer jobs. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobFeed.json | -| [dataTransferJobsPauseSample.ts][datatransferjobspausesample] | Pause a Data Transfer Job. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobPause.json | -| [dataTransferJobsResumeSample.ts][datatransferjobsresumesample] | Resumes a Data Transfer Job. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobResume.json | -| [databaseAccountRegionListMetricsSample.ts][databaseaccountregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given database account and region. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json | -| [databaseAccountsCheckNameExistsSample.ts][databaseaccountschecknameexistssample] | Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json | -| [databaseAccountsCreateOrUpdateSample.ts][databaseaccountscreateorupdatesample] | Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json | -| [databaseAccountsDeleteSample.ts][databaseaccountsdeletesample] | Deletes an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountDelete.json | -| [databaseAccountsFailoverPriorityChangeSample.ts][databaseaccountsfailoverprioritychangesample] | Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json | -| [databaseAccountsGetReadOnlyKeysSample.ts][databaseaccountsgetreadonlykeyssample] | Lists the read-only access keys for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json | -| [databaseAccountsGetSample.ts][databaseaccountsgetsample] | Retrieves the properties of an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGet.json | -| [databaseAccountsListByResourceGroupSample.ts][databaseaccountslistbyresourcegroupsample] | Lists all the Azure Cosmos DB database accounts available under the given resource group. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json | -| [databaseAccountsListConnectionStringsSample.ts][databaseaccountslistconnectionstringssample] | Lists the connection strings for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json | -| [databaseAccountsListKeysSample.ts][databaseaccountslistkeyssample] | Lists the access keys for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListKeys.json | -| [databaseAccountsListMetricDefinitionsSample.ts][databaseaccountslistmetricdefinitionssample] | Retrieves metric definitions for the given database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json | -| [databaseAccountsListMetricsSample.ts][databaseaccountslistmetricssample] | Retrieves the metrics determined by the given filter for the given database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetMetrics.json | -| [databaseAccountsListReadOnlyKeysSample.ts][databaseaccountslistreadonlykeyssample] | Lists the read-only access keys for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json | -| [databaseAccountsListSample.ts][databaseaccountslistsample] | Lists all the Azure Cosmos DB database accounts available under the subscription. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountList.json | -| [databaseAccountsListUsagesSample.ts][databaseaccountslistusagessample] | Retrieves the usages (most recent data) for the given database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountGetUsages.json | -| [databaseAccountsOfflineRegionSample.ts][databaseaccountsofflineregionsample] | Offline the specified region for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json | -| [databaseAccountsOnlineRegionSample.ts][databaseaccountsonlineregionsample] | Online the specified region for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json | -| [databaseAccountsRegenerateKeySample.ts][databaseaccountsregeneratekeysample] | Regenerates an access key for the specified Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json | -| [databaseAccountsUpdateSample.ts][databaseaccountsupdatesample] | Updates the properties of an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseAccountPatch.json | -| [databaseListMetricDefinitionsSample.ts][databaselistmetricdefinitionssample] | Retrieves metric definitions for the given database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json | -| [databaseListMetricsSample.ts][databaselistmetricssample] | Retrieves the metrics determined by the given filter for the given database account and database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetMetrics.json | -| [databaseListUsagesSample.ts][databaselistusagessample] | Retrieves the usages (most recent data) for the given database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDatabaseGetUsages.json | -| [graphResourcesCreateUpdateGraphSample.ts][graphresourcescreateupdategraphsample] | Create or update an Azure Cosmos DB Graph. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceCreateUpdate.json | -| [graphResourcesDeleteGraphResourceSample.ts][graphresourcesdeletegraphresourcesample] | Deletes an existing Azure Cosmos DB Graph Resource. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceDelete.json | -| [graphResourcesGetGraphSample.ts][graphresourcesgetgraphsample] | Gets the Graph resource under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceGet.json | -| [graphResourcesListGraphsSample.ts][graphresourceslistgraphssample] | Lists the graphs under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceList.json | -| [gremlinResourcesCreateUpdateGremlinDatabaseSample.ts][gremlinresourcescreateupdategremlindatabasesample] | Create or update an Azure Cosmos DB Gremlin database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json | -| [gremlinResourcesCreateUpdateGremlinGraphSample.ts][gremlinresourcescreateupdategremlingraphsample] | Create or update an Azure Cosmos DB Gremlin graph x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphCreateUpdate.json | -| [gremlinResourcesDeleteGremlinDatabaseSample.ts][gremlinresourcesdeletegremlindatabasesample] | Deletes an existing Azure Cosmos DB Gremlin database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseDelete.json | -| [gremlinResourcesDeleteGremlinGraphSample.ts][gremlinresourcesdeletegremlingraphsample] | Deletes an existing Azure Cosmos DB Gremlin graph. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphDelete.json | -| [gremlinResourcesGetGremlinDatabaseSample.ts][gremlinresourcesgetgremlindatabasesample] | Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseGet.json | -| [gremlinResourcesGetGremlinDatabaseThroughputSample.ts][gremlinresourcesgetgremlindatabasethroughputsample] | Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json | -| [gremlinResourcesGetGremlinGraphSample.ts][gremlinresourcesgetgremlingraphsample] | Gets the Gremlin graph under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphGet.json | -| [gremlinResourcesGetGremlinGraphThroughputSample.ts][gremlinresourcesgetgremlingraphthroughputsample] | Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphThroughputGet.json | -| [gremlinResourcesListGremlinDatabasesSample.ts][gremlinresourceslistgremlindatabasessample] | Lists the Gremlin databases under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseList.json | -| [gremlinResourcesListGremlinGraphsSample.ts][gremlinresourceslistgremlingraphssample] | Lists the Gremlin graph under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphList.json | -| [gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts][gremlinresourcesmigrategremlindatabasetoautoscalesample] | Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json | -| [gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts][gremlinresourcesmigrategremlindatabasetomanualthroughputsample] | Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json | -| [gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts][gremlinresourcesmigrategremlingraphtoautoscalesample] | Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json | -| [gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts][gremlinresourcesmigrategremlingraphtomanualthroughputsample] | Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json | -| [gremlinResourcesRetrieveContinuousBackupInformationSample.ts][gremlinresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a gremlin graph. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphBackupInformation.json | -| [gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts][gremlinresourcesupdategremlindatabasethroughputsample] | Update RUs per second of an Azure Cosmos DB Gremlin database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json | -| [gremlinResourcesUpdateGremlinGraphThroughputSample.ts][gremlinresourcesupdategremlingraphthroughputsample] | Update RUs per second of an Azure Cosmos DB Gremlin graph x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json | -| [locationsGetSample.ts][locationsgetsample] | Get the properties of an existing Cosmos DB location x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBLocationGet.json | -| [locationsListSample.ts][locationslistsample] | List Cosmos DB locations and their properties x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBLocationList.json | -| [mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts][mongodbresourcescreateupdatemongodbcollectionsample] | Create or update an Azure Cosmos DB MongoDB Collection x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json | -| [mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts][mongodbresourcescreateupdatemongodbdatabasesample] | Create or updates Azure Cosmos DB MongoDB database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json | -| [mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts][mongodbresourcescreateupdatemongoroledefinitionsample] | Creates or updates an Azure Cosmos DB Mongo Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json | -| [mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts][mongodbresourcescreateupdatemongouserdefinitionsample] | Creates or updates an Azure Cosmos DB Mongo User Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json | -| [mongoDbResourcesDeleteMongoDbcollectionSample.ts][mongodbresourcesdeletemongodbcollectionsample] | Deletes an existing Azure Cosmos DB MongoDB Collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionDelete.json | -| [mongoDbResourcesDeleteMongoDbdatabaseSample.ts][mongodbresourcesdeletemongodbdatabasesample] | Deletes an existing Azure Cosmos DB MongoDB database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseDelete.json | -| [mongoDbResourcesDeleteMongoRoleDefinitionSample.ts][mongodbresourcesdeletemongoroledefinitionsample] | Deletes an existing Azure Cosmos DB Mongo Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionDelete.json | -| [mongoDbResourcesDeleteMongoUserDefinitionSample.ts][mongodbresourcesdeletemongouserdefinitionsample] | Deletes an existing Azure Cosmos DB Mongo User Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json | -| [mongoDbResourcesGetMongoDbcollectionSample.ts][mongodbresourcesgetmongodbcollectionsample] | Gets the MongoDB collection under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionGet.json | -| [mongoDbResourcesGetMongoDbcollectionThroughputSample.ts][mongodbresourcesgetmongodbcollectionthroughputsample] | Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json | -| [mongoDbResourcesGetMongoDbdatabaseSample.ts][mongodbresourcesgetmongodbdatabasesample] | Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseGet.json | -| [mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts][mongodbresourcesgetmongodbdatabasethroughputsample] | Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json | -| [mongoDbResourcesGetMongoRoleDefinitionSample.ts][mongodbresourcesgetmongoroledefinitionsample] | Retrieves the properties of an existing Azure Cosmos DB Mongo Role Definition with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json | -| [mongoDbResourcesGetMongoUserDefinitionSample.ts][mongodbresourcesgetmongouserdefinitionsample] | Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionGet.json | -| [mongoDbResourcesListMongoDbcollectionPartitionMergeSample.ts][mongodbresourceslistmongodbcollectionpartitionmergesample] | Merges the partitions of a MongoDB Collection x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionPartitionMerge.json | -| [mongoDbResourcesListMongoDbcollectionsSample.ts][mongodbresourceslistmongodbcollectionssample] | Lists the MongoDB collection under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionList.json | -| [mongoDbResourcesListMongoDbdatabasesSample.ts][mongodbresourceslistmongodbdatabasessample] | Lists the MongoDB databases under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseList.json | -| [mongoDbResourcesListMongoRoleDefinitionsSample.ts][mongodbresourceslistmongoroledefinitionssample] | Retrieves the list of all Azure Cosmos DB Mongo Role Definitions. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBRoleDefinitionList.json | -| [mongoDbResourcesListMongoUserDefinitionsSample.ts][mongodbresourceslistmongouserdefinitionssample] | Retrieves the list of all Azure Cosmos DB Mongo User Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBUserDefinitionList.json | -| [mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts][mongodbresourcesmigratemongodbcollectiontoautoscalesample] | Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json | -| [mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts][mongodbresourcesmigratemongodbcollectiontomanualthroughputsample] | Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json | -| [mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts][mongodbresourcesmigratemongodbdatabasetoautoscalesample] | Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json | -| [mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts][mongodbresourcesmigratemongodbdatabasetomanualthroughputsample] | Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json | -| [mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.ts][mongodbresourcesmongodbcontainerredistributethroughputsample] | Redistribute throughput for an Azure Cosmos DB MongoDB container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionRedistributeThroughput.json | -| [mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.ts][mongodbresourcesmongodbcontainerretrievethroughputdistributionsample] | Retrieve throughput distribution for an Azure Cosmos DB MongoDB container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionRetrieveThroughputDistribution.json | -| [mongoDbResourcesMongoDbdatabasePartitionMergeSample.ts][mongodbresourcesmongodbdatabasepartitionmergesample] | Merges the partitions of a MongoDB database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabasePartitionMerge.json | -| [mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.ts][mongodbresourcesmongodbdatabaseredistributethroughputsample] | Redistribute throughput for an Azure Cosmos DB MongoDB database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseRedistributeThroughput.json | -| [mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.ts][mongodbresourcesmongodbdatabaseretrievethroughputdistributionsample] | Retrieve throughput distribution for an Azure Cosmos DB MongoDB database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseRetrieveThroughputDistribution.json | -| [mongoDbResourcesRetrieveContinuousBackupInformationSample.ts][mongodbresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a Mongodb collection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json | -| [mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts][mongodbresourcesupdatemongodbcollectionthroughputsample] | Update the RUs per second of an Azure Cosmos DB MongoDB collection x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json | -| [mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts][mongodbresourcesupdatemongodbdatabasethroughputsample] | Update RUs per second of the an Azure Cosmos DB MongoDB database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json | -| [networkSecurityPerimeterConfigurationsGetSample.ts][networksecurityperimeterconfigurationsgetsample] | Gets effective Network Security Perimeter Configuration for association x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationGet.json | -| [networkSecurityPerimeterConfigurationsListSample.ts][networksecurityperimeterconfigurationslistsample] | Gets list of effective Network Security Perimeter Configuration for cosmos db account x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationList.json | -| [networkSecurityPerimeterConfigurationsReconcileSample.ts][networksecurityperimeterconfigurationsreconcilesample] | Refreshes any information about the association. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationReconcile.json | -| [notebookWorkspacesCreateOrUpdateSample.ts][notebookworkspacescreateorupdatesample] | Creates the notebook workspace for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceCreate.json | -| [notebookWorkspacesDeleteSample.ts][notebookworkspacesdeletesample] | Deletes the notebook workspace for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceDelete.json | -| [notebookWorkspacesGetSample.ts][notebookworkspacesgetsample] | Gets the notebook workspace for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceGet.json | -| [notebookWorkspacesListByDatabaseAccountSample.ts][notebookworkspaceslistbydatabaseaccountsample] | Gets the notebook workspace resources of an existing Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceList.json | -| [notebookWorkspacesListConnectionInfoSample.ts][notebookworkspaceslistconnectioninfosample] | Retrieves the connection info for the notebook workspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json | -| [notebookWorkspacesRegenerateAuthTokenSample.ts][notebookworkspacesregenerateauthtokensample] | Regenerates the auth token for the notebook workspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json | -| [notebookWorkspacesStartSample.ts][notebookworkspacesstartsample] | Starts the notebook workspace x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBNotebookWorkspaceStart.json | -| [operationsListSample.ts][operationslistsample] | Lists all of the available Cosmos DB Resource Provider operations. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBOperationsList.json | -| [partitionKeyRangeIdListMetricsSample.ts][partitionkeyrangeidlistmetricssample] | Retrieves the metrics determined by the given filter for the given partition key range id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json | -| [partitionKeyRangeIdRegionListMetricsSample.ts][partitionkeyrangeidregionlistmetricssample] | Retrieves the metrics determined by the given filter for the given partition key range id and region. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json | -| [percentileListMetricsSample.ts][percentilelistmetricssample] | Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileGetMetrics.json | -| [percentileSourceTargetListMetricsSample.ts][percentilesourcetargetlistmetricssample] | Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json | -| [percentileTargetListMetricsSample.ts][percentiletargetlistmetricssample] | Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPercentileTargetGetMetrics.json | -| [privateEndpointConnectionsCreateOrUpdateSample.ts][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection with a given name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json | -| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection with a given name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json | -| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Gets a private endpoint connection. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionGet.json | -| [privateEndpointConnectionsListByDatabaseAccountSample.ts][privateendpointconnectionslistbydatabaseaccountsample] | List all private endpoint connections on a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json | -| [privateLinkResourcesGetSample.ts][privatelinkresourcesgetsample] | Gets the private link resources that need to be created for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateLinkResourceGet.json | -| [privateLinkResourcesListByDatabaseAccountSample.ts][privatelinkresourceslistbydatabaseaccountsample] | Gets the private link resources that need to be created for a Cosmos DB account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBPrivateLinkResourceListGet.json | -| [restorableDatabaseAccountsGetByLocationSample.ts][restorabledatabaseaccountsgetbylocationsample] | Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/\*' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountGet.json | -| [restorableDatabaseAccountsListByLocationSample.ts][restorabledatabaseaccountslistbylocationsample] | Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountList.json | -| [restorableDatabaseAccountsListSample.ts][restorabledatabaseaccountslistsample] | Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json | -| [restorableGremlinDatabasesListSample.ts][restorablegremlindatabaseslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinDatabaseList.json | -| [restorableGremlinGraphsListSample.ts][restorablegremlingraphslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin graphs under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinGraphList.json | -| [restorableGremlinResourcesListSample.ts][restorablegremlinresourceslistsample] | Return a list of gremlin database and graphs combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableGremlinResourceList.json | -| [restorableMongodbCollectionsListSample.ts][restorablemongodbcollectionslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbCollectionList.json | -| [restorableMongodbDatabasesListSample.ts][restorablemongodbdatabaseslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbDatabaseList.json | -| [restorableMongodbResourcesListSample.ts][restorablemongodbresourceslistsample] | Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableMongodbResourceList.json | -| [restorableSqlContainersListSample.ts][restorablesqlcontainerslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlContainerList.json | -| [restorableSqlDatabasesListSample.ts][restorablesqldatabaseslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlDatabaseList.json | -| [restorableSqlResourcesListSample.ts][restorablesqlresourceslistsample] | Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableSqlResourceList.json | -| [restorableTableResourcesListSample.ts][restorabletableresourceslistsample] | Return a list of tables that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableTableResourceList.json | -| [restorableTablesListSample.ts][restorabletableslistsample] | Show the event feed of all mutations done on all the Azure Cosmos DB Tables. This helps in scenario where table was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBRestorableTableList.json | -| [serviceCreateSample.ts][servicecreatesample] | Creates a service. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceCreate.json | -| [serviceDeleteSample.ts][servicedeletesample] | Deletes service with the given serviceName. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceDelete.json | -| [serviceGetSample.ts][servicegetsample] | Gets the status of service. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBDataTransferServiceGet.json | -| [serviceListSample.ts][servicelistsample] | Gets the status of service. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBServicesList.json | -| [sqlResourcesCreateUpdateClientEncryptionKeySample.ts][sqlresourcescreateupdateclientencryptionkeysample] | Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly). x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json | -| [sqlResourcesCreateUpdateSqlContainerSample.ts][sqlresourcescreateupdatesqlcontainersample] | Create or update an Azure Cosmos DB SQL container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerCreateUpdate.json | -| [sqlResourcesCreateUpdateSqlDatabaseSample.ts][sqlresourcescreateupdatesqldatabasesample] | Create or update an Azure Cosmos DB SQL database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json | -| [sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts][sqlresourcescreateupdatesqlroleassignmentsample] | Creates or updates an Azure Cosmos DB SQL Role Assignment. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json | -| [sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts][sqlresourcescreateupdatesqlroledefinitionsample] | Creates or updates an Azure Cosmos DB SQL Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json | -| [sqlResourcesCreateUpdateSqlStoredProcedureSample.ts][sqlresourcescreateupdatesqlstoredproceduresample] | Create or update an Azure Cosmos DB SQL storedProcedure x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json | -| [sqlResourcesCreateUpdateSqlTriggerSample.ts][sqlresourcescreateupdatesqltriggersample] | Create or update an Azure Cosmos DB SQL trigger x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerCreateUpdate.json | -| [sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts][sqlresourcescreateupdatesqluserdefinedfunctionsample] | Create or update an Azure Cosmos DB SQL userDefinedFunction x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json | -| [sqlResourcesDeleteSqlContainerSample.ts][sqlresourcesdeletesqlcontainersample] | Deletes an existing Azure Cosmos DB SQL container. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerDelete.json | -| [sqlResourcesDeleteSqlDatabaseSample.ts][sqlresourcesdeletesqldatabasesample] | Deletes an existing Azure Cosmos DB SQL database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseDelete.json | -| [sqlResourcesDeleteSqlRoleAssignmentSample.ts][sqlresourcesdeletesqlroleassignmentsample] | Deletes an existing Azure Cosmos DB SQL Role Assignment. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentDelete.json | -| [sqlResourcesDeleteSqlRoleDefinitionSample.ts][sqlresourcesdeletesqlroledefinitionsample] | Deletes an existing Azure Cosmos DB SQL Role Definition. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionDelete.json | -| [sqlResourcesDeleteSqlStoredProcedureSample.ts][sqlresourcesdeletesqlstoredproceduresample] | Deletes an existing Azure Cosmos DB SQL storedProcedure. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureDelete.json | -| [sqlResourcesDeleteSqlTriggerSample.ts][sqlresourcesdeletesqltriggersample] | Deletes an existing Azure Cosmos DB SQL trigger. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerDelete.json | -| [sqlResourcesDeleteSqlUserDefinedFunctionSample.ts][sqlresourcesdeletesqluserdefinedfunctionsample] | Deletes an existing Azure Cosmos DB SQL userDefinedFunction. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json | -| [sqlResourcesGetClientEncryptionKeySample.ts][sqlresourcesgetclientencryptionkeysample] | Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeyGet.json | -| [sqlResourcesGetSqlContainerSample.ts][sqlresourcesgetsqlcontainersample] | Gets the SQL container under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerGet.json | -| [sqlResourcesGetSqlContainerThroughputSample.ts][sqlresourcesgetsqlcontainerthroughputsample] | Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerThroughputGet.json | -| [sqlResourcesGetSqlDatabaseSample.ts][sqlresourcesgetsqldatabasesample] | Gets the SQL database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseGet.json | -| [sqlResourcesGetSqlDatabaseThroughputSample.ts][sqlresourcesgetsqldatabasethroughputsample] | Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseThroughputGet.json | -| [sqlResourcesGetSqlRoleAssignmentSample.ts][sqlresourcesgetsqlroleassignmentsample] | Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentGet.json | -| [sqlResourcesGetSqlRoleDefinitionSample.ts][sqlresourcesgetsqlroledefinitionsample] | Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionGet.json | -| [sqlResourcesGetSqlStoredProcedureSample.ts][sqlresourcesgetsqlstoredproceduresample] | Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureGet.json | -| [sqlResourcesGetSqlTriggerSample.ts][sqlresourcesgetsqltriggersample] | Gets the SQL trigger under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerGet.json | -| [sqlResourcesGetSqlUserDefinedFunctionSample.ts][sqlresourcesgetsqluserdefinedfunctionsample] | Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json | -| [sqlResourcesListClientEncryptionKeysSample.ts][sqlresourceslistclientencryptionkeyssample] | Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlClientEncryptionKeysList.json | -| [sqlResourcesListSqlContainerPartitionMergeSample.ts][sqlresourceslistsqlcontainerpartitionmergesample] | Merges the partitions of a SQL Container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerPartitionMerge.json | -| [sqlResourcesListSqlContainersSample.ts][sqlresourceslistsqlcontainerssample] | Lists the SQL container under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerList.json | -| [sqlResourcesListSqlDatabasesSample.ts][sqlresourceslistsqldatabasessample] | Lists the SQL databases under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseList.json | -| [sqlResourcesListSqlRoleAssignmentsSample.ts][sqlresourceslistsqlroleassignmentssample] | Retrieves the list of all Azure Cosmos DB SQL Role Assignments. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleAssignmentList.json | -| [sqlResourcesListSqlRoleDefinitionsSample.ts][sqlresourceslistsqlroledefinitionssample] | Retrieves the list of all Azure Cosmos DB SQL Role Definitions. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlRoleDefinitionList.json | -| [sqlResourcesListSqlStoredProceduresSample.ts][sqlresourceslistsqlstoredproceduressample] | Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlStoredProcedureList.json | -| [sqlResourcesListSqlTriggersSample.ts][sqlresourceslistsqltriggerssample] | Lists the SQL trigger under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlTriggerList.json | -| [sqlResourcesListSqlUserDefinedFunctionsSample.ts][sqlresourceslistsqluserdefinedfunctionssample] | Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlUserDefinedFunctionList.json | -| [sqlResourcesMigrateSqlContainerToAutoscaleSample.ts][sqlresourcesmigratesqlcontainertoautoscalesample] | Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json | -| [sqlResourcesMigrateSqlContainerToManualThroughputSample.ts][sqlresourcesmigratesqlcontainertomanualthroughputsample] | Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json | -| [sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts][sqlresourcesmigratesqldatabasetoautoscalesample] | Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json | -| [sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts][sqlresourcesmigratesqldatabasetomanualthroughputsample] | Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json | -| [sqlResourcesRetrieveContinuousBackupInformationSample.ts][sqlresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a container resource. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerBackupInformation.json | -| [sqlResourcesSqlContainerRedistributeThroughputSample.ts][sqlresourcessqlcontainerredistributethroughputsample] | Redistribute throughput for an Azure Cosmos DB SQL container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerRedistributeThroughput.json | -| [sqlResourcesSqlContainerRetrieveThroughputDistributionSample.ts][sqlresourcessqlcontainerretrievethroughputdistributionsample] | Retrieve throughput distribution for an Azure Cosmos DB SQL container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerRetrieveThroughputDistribution.json | -| [sqlResourcesSqlDatabasePartitionMergeSample.ts][sqlresourcessqldatabasepartitionmergesample] | Merges the partitions of a SQL database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabasePartitionMerge.json | -| [sqlResourcesSqlDatabaseRedistributeThroughputSample.ts][sqlresourcessqldatabaseredistributethroughputsample] | Redistribute throughput for an Azure Cosmos DB SQL database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseRedistributeThroughput.json | -| [sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.ts][sqlresourcessqldatabaseretrievethroughputdistributionsample] | Retrieve throughput distribution for an Azure Cosmos DB SQL database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseRetrieveThroughputDistribution.json | -| [sqlResourcesUpdateSqlContainerThroughputSample.ts][sqlresourcesupdatesqlcontainerthroughputsample] | Update RUs per second of an Azure Cosmos DB SQL container x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerThroughputUpdate.json | -| [sqlResourcesUpdateSqlDatabaseThroughputSample.ts][sqlresourcesupdatesqldatabasethroughputsample] | Update RUs per second of an Azure Cosmos DB SQL database x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json | -| [tableResourcesCreateUpdateTableSample.ts][tableresourcescreateupdatetablesample] | Create or update an Azure Cosmos DB Table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableCreateUpdate.json | -| [tableResourcesDeleteTableSample.ts][tableresourcesdeletetablesample] | Deletes an existing Azure Cosmos DB Table. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableDelete.json | -| [tableResourcesGetTableSample.ts][tableresourcesgettablesample] | Gets the Tables under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableGet.json | -| [tableResourcesGetTableThroughputSample.ts][tableresourcesgettablethroughputsample] | Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableThroughputGet.json | -| [tableResourcesListTablesSample.ts][tableresourceslisttablessample] | Lists the Tables under an existing Azure Cosmos DB database account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableList.json | -| [tableResourcesMigrateTableToAutoscaleSample.ts][tableresourcesmigratetabletoautoscalesample] | Migrate an Azure Cosmos DB Table from manual throughput to autoscale x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableMigrateToAutoscale.json | -| [tableResourcesMigrateTableToManualThroughputSample.ts][tableresourcesmigratetabletomanualthroughputsample] | Migrate an Azure Cosmos DB Table from autoscale to manual throughput x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableMigrateToManualThroughput.json | -| [tableResourcesRetrieveContinuousBackupInformationSample.ts][tableresourcesretrievecontinuousbackupinformationsample] | Retrieves continuous backup information for a table. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableBackupInformation.json | -| [tableResourcesUpdateTableThroughputSample.ts][tableresourcesupdatetablethroughputsample] | Update RUs per second of an Azure Cosmos DB Table x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBTableThroughputUpdate.json | -| [throughputPoolAccountCreateSample.ts][throughputpoolaccountcreatesample] | Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountCreate.json | -| [throughputPoolAccountDeleteSample.ts][throughputpoolaccountdeletesample] | Removes an existing Azure Cosmos DB database account from a throughput pool. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountDelete.json | -| [throughputPoolAccountGetSample.ts][throughputpoolaccountgetsample] | Retrieves the properties of an existing Azure Cosmos DB Throughput Pool x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountGet.json | -| [throughputPoolAccountsListSample.ts][throughputpoolaccountslistsample] | Lists all the Azure Cosmos DB accounts available under the subscription. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountsList.json | -| [throughputPoolCreateOrUpdateSample.ts][throughputpoolcreateorupdatesample] | Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolCreate.json | -| [throughputPoolDeleteSample.ts][throughputpooldeletesample] | Deletes an existing Azure Cosmos DB Throughput Pool. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolDelete.json | -| [throughputPoolGetSample.ts][throughputpoolgetsample] | Retrieves the properties of an existing Azure Cosmos DB Throughput Pool x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolGet.json | -| [throughputPoolUpdateSample.ts][throughputpoolupdatesample] | Updates the properties of an existing Azure Cosmos DB Throughput Pool. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolUpdate.json | -| [throughputPoolsListByResourceGroupSample.ts][throughputpoolslistbyresourcegroupsample] | List all the ThroughputPools in a given resource group. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolList.json | -| [throughputPoolsListSample.ts][throughputpoolslistsample] | Lists all the Azure Cosmos DB Throughput Pools available under the subscription. x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolList.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/cassandraClustersCreateUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env COSMOSDB_SUBSCRIPTION_ID="" COSMOSDB_RESOURCE_GROUP="" node dist/cassandraClustersCreateUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[cassandraclusterscreateupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersCreateUpdateSample.ts -[cassandraclustersdeallocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersDeallocateSample.ts -[cassandraclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersDeleteSample.ts -[cassandraclustersgetbackupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersGetBackupSample.ts -[cassandraclustersgetcommandasyncsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersGetCommandAsyncSample.ts -[cassandraclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersGetSample.ts -[cassandraclustersinvokecommandasyncsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersInvokeCommandAsyncSample.ts -[cassandraclustersinvokecommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersInvokeCommandSample.ts -[cassandraclusterslistbackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListBackupsSample.ts -[cassandraclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListByResourceGroupSample.ts -[cassandraclusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListBySubscriptionSample.ts -[cassandraclusterslistcommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListCommandSample.ts -[cassandraclustersstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersStartSample.ts -[cassandraclustersstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersStatusSample.ts -[cassandraclustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersUpdateSample.ts -[cassandradatacenterscreateupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersCreateUpdateSample.ts -[cassandradatacentersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersDeleteSample.ts -[cassandradatacentersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersGetSample.ts -[cassandradatacenterslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersListSample.ts -[cassandradatacentersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraDataCentersUpdateSample.ts -[cassandraresourcescreateupdatecassandrakeyspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesCreateUpdateCassandraKeyspaceSample.ts -[cassandraresourcescreateupdatecassandratablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesCreateUpdateCassandraTableSample.ts -[cassandraresourcescreateupdatecassandraviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesCreateUpdateCassandraViewSample.ts -[cassandraresourcesdeletecassandrakeyspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesDeleteCassandraKeyspaceSample.ts -[cassandraresourcesdeletecassandratablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesDeleteCassandraTableSample.ts -[cassandraresourcesdeletecassandraviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesDeleteCassandraViewSample.ts -[cassandraresourcesgetcassandrakeyspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraKeyspaceSample.ts -[cassandraresourcesgetcassandrakeyspacethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraKeyspaceThroughputSample.ts -[cassandraresourcesgetcassandratablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraTableSample.ts -[cassandraresourcesgetcassandratablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraTableThroughputSample.ts -[cassandraresourcesgetcassandraviewsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraViewSample.ts -[cassandraresourcesgetcassandraviewthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraViewThroughputSample.ts -[cassandraresourceslistcassandrakeyspacessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesListCassandraKeyspacesSample.ts -[cassandraresourceslistcassandratablessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesListCassandraTablesSample.ts -[cassandraresourceslistcassandraviewssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesListCassandraViewsSample.ts -[cassandraresourcesmigratecassandrakeyspacetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToAutoscaleSample.ts -[cassandraresourcesmigratecassandrakeyspacetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraKeyspaceToManualThroughputSample.ts -[cassandraresourcesmigratecassandratabletoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraTableToAutoscaleSample.ts -[cassandraresourcesmigratecassandratabletomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraTableToManualThroughputSample.ts -[cassandraresourcesmigratecassandraviewtoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraViewToAutoscaleSample.ts -[cassandraresourcesmigratecassandraviewtomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraViewToManualThroughputSample.ts -[cassandraresourcesupdatecassandrakeyspacethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesUpdateCassandraKeyspaceThroughputSample.ts -[cassandraresourcesupdatecassandratablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesUpdateCassandraTableThroughputSample.ts -[cassandraresourcesupdatecassandraviewthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesUpdateCassandraViewThroughputSample.ts -[chaosfaultenabledisablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultEnableDisableSample.ts -[chaosfaultgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultGetSample.ts -[chaosfaultlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultListSample.ts -[collectionlistmetricdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionListMetricDefinitionsSample.ts -[collectionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionListMetricsSample.ts -[collectionlistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionListUsagesSample.ts -[collectionpartitionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionPartitionListMetricsSample.ts -[collectionpartitionlistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionPartitionListUsagesSample.ts -[collectionpartitionregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionPartitionRegionListMetricsSample.ts -[collectionregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/collectionRegionListMetricsSample.ts -[datatransferjobscancelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCancelSample.ts -[datatransferjobscompletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCompleteSample.ts -[datatransferjobscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCreateSample.ts -[datatransferjobsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsGetSample.ts -[datatransferjobslistbydatabaseaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsListByDatabaseAccountSample.ts -[datatransferjobspausesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsPauseSample.ts -[datatransferjobsresumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsResumeSample.ts -[databaseaccountregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountRegionListMetricsSample.ts -[databaseaccountschecknameexistssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsCheckNameExistsSample.ts -[databaseaccountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsCreateOrUpdateSample.ts -[databaseaccountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsDeleteSample.ts -[databaseaccountsfailoverprioritychangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsFailoverPriorityChangeSample.ts -[databaseaccountsgetreadonlykeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsGetReadOnlyKeysSample.ts -[databaseaccountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsGetSample.ts -[databaseaccountslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListByResourceGroupSample.ts -[databaseaccountslistconnectionstringssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListConnectionStringsSample.ts -[databaseaccountslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListKeysSample.ts -[databaseaccountslistmetricdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListMetricDefinitionsSample.ts -[databaseaccountslistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListMetricsSample.ts -[databaseaccountslistreadonlykeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListReadOnlyKeysSample.ts -[databaseaccountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListSample.ts -[databaseaccountslistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsListUsagesSample.ts -[databaseaccountsofflineregionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsOfflineRegionSample.ts -[databaseaccountsonlineregionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsOnlineRegionSample.ts -[databaseaccountsregeneratekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsRegenerateKeySample.ts -[databaseaccountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseAccountsUpdateSample.ts -[databaselistmetricdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseListMetricDefinitionsSample.ts -[databaselistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseListMetricsSample.ts -[databaselistusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/databaseListUsagesSample.ts -[graphresourcescreateupdategraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesCreateUpdateGraphSample.ts -[graphresourcesdeletegraphresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesDeleteGraphResourceSample.ts -[graphresourcesgetgraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesGetGraphSample.ts -[graphresourceslistgraphssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesListGraphsSample.ts -[gremlinresourcescreateupdategremlindatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesCreateUpdateGremlinDatabaseSample.ts -[gremlinresourcescreateupdategremlingraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesCreateUpdateGremlinGraphSample.ts -[gremlinresourcesdeletegremlindatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesDeleteGremlinDatabaseSample.ts -[gremlinresourcesdeletegremlingraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesDeleteGremlinGraphSample.ts -[gremlinresourcesgetgremlindatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinDatabaseSample.ts -[gremlinresourcesgetgremlindatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinDatabaseThroughputSample.ts -[gremlinresourcesgetgremlingraphsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinGraphSample.ts -[gremlinresourcesgetgremlingraphthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesGetGremlinGraphThroughputSample.ts -[gremlinresourceslistgremlindatabasessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesListGremlinDatabasesSample.ts -[gremlinresourceslistgremlingraphssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesListGremlinGraphsSample.ts -[gremlinresourcesmigrategremlindatabasetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinDatabaseToAutoscaleSample.ts -[gremlinresourcesmigrategremlindatabasetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinDatabaseToManualThroughputSample.ts -[gremlinresourcesmigrategremlingraphtoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinGraphToAutoscaleSample.ts -[gremlinresourcesmigrategremlingraphtomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesMigrateGremlinGraphToManualThroughputSample.ts -[gremlinresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesRetrieveContinuousBackupInformationSample.ts -[gremlinresourcesupdategremlindatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesUpdateGremlinDatabaseThroughputSample.ts -[gremlinresourcesupdategremlingraphthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/gremlinResourcesUpdateGremlinGraphThroughputSample.ts -[locationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/locationsGetSample.ts -[locationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/locationsListSample.ts -[mongodbresourcescreateupdatemongodbcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts -[mongodbresourcescreateupdatemongodbdatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts -[mongodbresourcescreateupdatemongoroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoRoleDefinitionSample.ts -[mongodbresourcescreateupdatemongouserdefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoUserDefinitionSample.ts -[mongodbresourcesdeletemongodbcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoDbcollectionSample.ts -[mongodbresourcesdeletemongodbdatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoDbdatabaseSample.ts -[mongodbresourcesdeletemongoroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoRoleDefinitionSample.ts -[mongodbresourcesdeletemongouserdefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesDeleteMongoUserDefinitionSample.ts -[mongodbresourcesgetmongodbcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbcollectionSample.ts -[mongodbresourcesgetmongodbcollectionthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbcollectionThroughputSample.ts -[mongodbresourcesgetmongodbdatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbdatabaseSample.ts -[mongodbresourcesgetmongodbdatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoDbdatabaseThroughputSample.ts -[mongodbresourcesgetmongoroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoRoleDefinitionSample.ts -[mongodbresourcesgetmongouserdefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesGetMongoUserDefinitionSample.ts -[mongodbresourceslistmongodbcollectionpartitionmergesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoDbcollectionPartitionMergeSample.ts -[mongodbresourceslistmongodbcollectionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoDbcollectionsSample.ts -[mongodbresourceslistmongodbdatabasessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoDbdatabasesSample.ts -[mongodbresourceslistmongoroledefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoRoleDefinitionsSample.ts -[mongodbresourceslistmongouserdefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoUserDefinitionsSample.ts -[mongodbresourcesmigratemongodbcollectiontoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToAutoscaleSample.ts -[mongodbresourcesmigratemongodbcollectiontomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbcollectionToManualThroughputSample.ts -[mongodbresourcesmigratemongodbdatabasetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToAutoscaleSample.ts -[mongodbresourcesmigratemongodbdatabasetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMigrateMongoDbdatabaseToManualThroughputSample.ts -[mongodbresourcesmongodbcontainerredistributethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.ts -[mongodbresourcesmongodbcontainerretrievethroughputdistributionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.ts -[mongodbresourcesmongodbdatabasepartitionmergesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabasePartitionMergeSample.ts -[mongodbresourcesmongodbdatabaseredistributethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.ts -[mongodbresourcesmongodbdatabaseretrievethroughputdistributionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.ts -[mongodbresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesRetrieveContinuousBackupInformationSample.ts -[mongodbresourcesupdatemongodbcollectionthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesUpdateMongoDbcollectionThroughputSample.ts -[mongodbresourcesupdatemongodbdatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesUpdateMongoDbdatabaseThroughputSample.ts -[networksecurityperimeterconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsGetSample.ts -[networksecurityperimeterconfigurationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsListSample.ts -[networksecurityperimeterconfigurationsreconcilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileSample.ts -[notebookworkspacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesCreateOrUpdateSample.ts -[notebookworkspacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesDeleteSample.ts -[notebookworkspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesGetSample.ts -[notebookworkspaceslistbydatabaseaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesListByDatabaseAccountSample.ts -[notebookworkspaceslistconnectioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesListConnectionInfoSample.ts -[notebookworkspacesregenerateauthtokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesRegenerateAuthTokenSample.ts -[notebookworkspacesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/notebookWorkspacesStartSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/operationsListSample.ts -[partitionkeyrangeidlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/partitionKeyRangeIdListMetricsSample.ts -[partitionkeyrangeidregionlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/partitionKeyRangeIdRegionListMetricsSample.ts -[percentilelistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/percentileListMetricsSample.ts -[percentilesourcetargetlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/percentileSourceTargetListMetricsSample.ts -[percentiletargetlistmetricssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/percentileTargetListMetricsSample.ts -[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts -[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts -[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsGetSample.ts -[privateendpointconnectionslistbydatabaseaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateEndpointConnectionsListByDatabaseAccountSample.ts -[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateLinkResourcesGetSample.ts -[privatelinkresourceslistbydatabaseaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/privateLinkResourcesListByDatabaseAccountSample.ts -[restorabledatabaseaccountsgetbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableDatabaseAccountsGetByLocationSample.ts -[restorabledatabaseaccountslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableDatabaseAccountsListByLocationSample.ts -[restorabledatabaseaccountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableDatabaseAccountsListSample.ts -[restorablegremlindatabaseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableGremlinDatabasesListSample.ts -[restorablegremlingraphslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableGremlinGraphsListSample.ts -[restorablegremlinresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableGremlinResourcesListSample.ts -[restorablemongodbcollectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableMongodbCollectionsListSample.ts -[restorablemongodbdatabaseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableMongodbDatabasesListSample.ts -[restorablemongodbresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableMongodbResourcesListSample.ts -[restorablesqlcontainerslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableSqlContainersListSample.ts -[restorablesqldatabaseslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableSqlDatabasesListSample.ts -[restorablesqlresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableSqlResourcesListSample.ts -[restorabletableresourceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableTableResourcesListSample.ts -[restorabletableslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/restorableTablesListSample.ts -[servicecreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceCreateSample.ts -[servicedeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceDeleteSample.ts -[servicegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceGetSample.ts -[servicelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/serviceListSample.ts -[sqlresourcescreateupdateclientencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateClientEncryptionKeySample.ts -[sqlresourcescreateupdatesqlcontainersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlContainerSample.ts -[sqlresourcescreateupdatesqldatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlDatabaseSample.ts -[sqlresourcescreateupdatesqlroleassignmentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlRoleAssignmentSample.ts -[sqlresourcescreateupdatesqlroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlRoleDefinitionSample.ts -[sqlresourcescreateupdatesqlstoredproceduresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlStoredProcedureSample.ts -[sqlresourcescreateupdatesqltriggersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlTriggerSample.ts -[sqlresourcescreateupdatesqluserdefinedfunctionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlUserDefinedFunctionSample.ts -[sqlresourcesdeletesqlcontainersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlContainerSample.ts -[sqlresourcesdeletesqldatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlDatabaseSample.ts -[sqlresourcesdeletesqlroleassignmentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlRoleAssignmentSample.ts -[sqlresourcesdeletesqlroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlRoleDefinitionSample.ts -[sqlresourcesdeletesqlstoredproceduresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlStoredProcedureSample.ts -[sqlresourcesdeletesqltriggersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlTriggerSample.ts -[sqlresourcesdeletesqluserdefinedfunctionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesDeleteSqlUserDefinedFunctionSample.ts -[sqlresourcesgetclientencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetClientEncryptionKeySample.ts -[sqlresourcesgetsqlcontainersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlContainerSample.ts -[sqlresourcesgetsqlcontainerthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlContainerThroughputSample.ts -[sqlresourcesgetsqldatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlDatabaseSample.ts -[sqlresourcesgetsqldatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlDatabaseThroughputSample.ts -[sqlresourcesgetsqlroleassignmentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlRoleAssignmentSample.ts -[sqlresourcesgetsqlroledefinitionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlRoleDefinitionSample.ts -[sqlresourcesgetsqlstoredproceduresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlStoredProcedureSample.ts -[sqlresourcesgetsqltriggersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlTriggerSample.ts -[sqlresourcesgetsqluserdefinedfunctionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesGetSqlUserDefinedFunctionSample.ts -[sqlresourceslistclientencryptionkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListClientEncryptionKeysSample.ts -[sqlresourceslistsqlcontainerpartitionmergesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlContainerPartitionMergeSample.ts -[sqlresourceslistsqlcontainerssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlContainersSample.ts -[sqlresourceslistsqldatabasessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlDatabasesSample.ts -[sqlresourceslistsqlroleassignmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlRoleAssignmentsSample.ts -[sqlresourceslistsqlroledefinitionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlRoleDefinitionsSample.ts -[sqlresourceslistsqlstoredproceduressample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlStoredProceduresSample.ts -[sqlresourceslistsqltriggerssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlTriggersSample.ts -[sqlresourceslistsqluserdefinedfunctionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlUserDefinedFunctionsSample.ts -[sqlresourcesmigratesqlcontainertoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlContainerToAutoscaleSample.ts -[sqlresourcesmigratesqlcontainertomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlContainerToManualThroughputSample.ts -[sqlresourcesmigratesqldatabasetoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlDatabaseToAutoscaleSample.ts -[sqlresourcesmigratesqldatabasetomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesMigrateSqlDatabaseToManualThroughputSample.ts -[sqlresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesRetrieveContinuousBackupInformationSample.ts -[sqlresourcessqlcontainerredistributethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlContainerRedistributeThroughputSample.ts -[sqlresourcessqlcontainerretrievethroughputdistributionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlContainerRetrieveThroughputDistributionSample.ts -[sqlresourcessqldatabasepartitionmergesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabasePartitionMergeSample.ts -[sqlresourcessqldatabaseredistributethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabaseRedistributeThroughputSample.ts -[sqlresourcessqldatabaseretrievethroughputdistributionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.ts -[sqlresourcesupdatesqlcontainerthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesUpdateSqlContainerThroughputSample.ts -[sqlresourcesupdatesqldatabasethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesUpdateSqlDatabaseThroughputSample.ts -[tableresourcescreateupdatetablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesCreateUpdateTableSample.ts -[tableresourcesdeletetablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesDeleteTableSample.ts -[tableresourcesgettablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesGetTableSample.ts -[tableresourcesgettablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesGetTableThroughputSample.ts -[tableresourceslisttablessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesListTablesSample.ts -[tableresourcesmigratetabletoautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesMigrateTableToAutoscaleSample.ts -[tableresourcesmigratetabletomanualthroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesMigrateTableToManualThroughputSample.ts -[tableresourcesretrievecontinuousbackupinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesRetrieveContinuousBackupInformationSample.ts -[tableresourcesupdatetablethroughputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/tableResourcesUpdateTableThroughputSample.ts -[throughputpoolaccountcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountCreateSample.ts -[throughputpoolaccountdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountDeleteSample.ts -[throughputpoolaccountgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountGetSample.ts -[throughputpoolaccountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountsListSample.ts -[throughputpoolcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolCreateOrUpdateSample.ts -[throughputpooldeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolDeleteSample.ts -[throughputpoolgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolGetSample.ts -[throughputpoolupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolUpdateSample.ts -[throughputpoolslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolsListByResourceGroupSample.ts -[throughputpoolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolsListSample.ts -[apiref]: https://learn.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/sample.env b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/sample.env deleted file mode 100644 index efbc7787bd3b..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/sample.env +++ /dev/null @@ -1 +0,0 @@ -# Feel free to add your own environment variables. diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersGetBackupSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersGetBackupSample.ts deleted file mode 100644 index 567f8b0b0a09..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersGetBackupSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the properties of an individual backup of this cluster that is available to restore. - * - * @summary Get the properties of an individual backup of this cluster that is available to restore. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraBackup.json - */ -async function cosmosDbManagedCassandraBackup() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const backupId = "1611250348"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraClusters.getBackup( - resourceGroupName, - clusterName, - backupId, - ); - console.log(result); -} - -async function main() { - cosmosDbManagedCassandraBackup(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersGetCommandAsyncSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersGetCommandAsyncSample.ts deleted file mode 100644 index 0d4acaaa44d9..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersGetCommandAsyncSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get details about a specified command that was run asynchronously. - * - * @summary Get details about a specified command that was run asynchronously. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommandResult.json - */ -async function cosmosDbManagedCassandraCommandResult() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const commandId = "318653d0-3da5-4814-b8f6-429f2af0b2a4"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraClusters.getCommandAsync( - resourceGroupName, - clusterName, - commandId, - ); - console.log(result); -} - -async function main() { - cosmosDbManagedCassandraCommandResult(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersInvokeCommandAsyncSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersInvokeCommandAsyncSample.ts deleted file mode 100644 index 5e433ee5a55a..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersInvokeCommandAsyncSample.ts +++ /dev/null @@ -1,49 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CommandPostBody, CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Invoke a command like nodetool for cassandra maintenance asynchronously - * - * @summary Invoke a command like nodetool for cassandra maintenance asynchronously - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraCommandAsync.json - */ -async function cosmosDbManagedCassandraCommandAsync() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const body: CommandPostBody = { - arguments: { status: "" }, - command: "nodetool", - host: "10.0.1.12", - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraClusters.beginInvokeCommandAsyncAndWait( - resourceGroupName, - clusterName, - body, - ); - console.log(result); -} - -async function main() { - cosmosDbManagedCassandraCommandAsync(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListBackupsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListBackupsSample.ts deleted file mode 100644 index 767d0c80d2bf..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListBackupsSample.ts +++ /dev/null @@ -1,46 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the backups of this cluster that are available to restore. - * - * @summary List the backups of this cluster that are available to restore. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraBackupsList.json - */ -async function cosmosDbManagedCassandraBackupsList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cassandraClusters.listBackups( - resourceGroupName, - clusterName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbManagedCassandraBackupsList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListCommandSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListCommandSample.ts deleted file mode 100644 index 5d07ff4686e3..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraClustersListCommandSample.ts +++ /dev/null @@ -1,46 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all commands currently running on ring info - * - * @summary List all commands currently running on ring info - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBManagedCassandraListCommand.json - */ -async function cosmosDbManagedCassandraListCommand() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg"; - const clusterName = "cassandra-prod"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cassandraClusters.listCommand( - resourceGroupName, - clusterName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbManagedCassandraListCommand(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesDeleteCassandraViewSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesDeleteCassandraViewSample.ts deleted file mode 100644 index 8bf12ae0c334..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesDeleteCassandraViewSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes an existing Azure Cosmos DB Cassandra view. - * - * @summary Deletes an existing Azure Cosmos DB Cassandra view. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewDelete.json - */ -async function cosmosDbCassandraViewDelete() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.cassandraResources.beginDeleteCassandraViewAndWait( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewDelete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraViewSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraViewSample.ts deleted file mode 100644 index 8ccb916085ff..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraViewSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the Cassandra view under an existing Azure Cosmos DB database account. - * - * @summary Gets the Cassandra view under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewGet.json - */ -async function cosmosDbCassandraViewGet() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraResources.getCassandraView( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraViewThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraViewThroughputSample.ts deleted file mode 100644 index 19470501b35d..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesGetCassandraViewThroughputSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the RUs per second of the Cassandra view under an existing Azure Cosmos DB database account with the provided name. - * - * @summary Gets the RUs per second of the Cassandra view under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewThroughputGet.json - */ -async function cosmosDbCassandraViewThroughputGet() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.cassandraResources.getCassandraViewThroughput( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewThroughputGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesListCassandraViewsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesListCassandraViewsSample.ts deleted file mode 100644 index 8bab70f3ea29..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesListCassandraViewsSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the Cassandra materialized views under an existing Azure Cosmos DB database account. - * - * @summary Lists the Cassandra materialized views under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewList.json - */ -async function cosmosDbCassandraViewList() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cassandraResources.listCassandraViews( - resourceGroupName, - accountName, - keyspaceName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbCassandraViewList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraViewToAutoscaleSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraViewToAutoscaleSample.ts deleted file mode 100644 index 310209d729f3..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraViewToAutoscaleSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra view from manual throughput to autoscale - * - * @summary Migrate an Azure Cosmos DB Cassandra view from manual throughput to autoscale - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewMigrateToAutoscale.json - */ -async function cosmosDbCassandraViewMigrateToAutoscale() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.cassandraResources.beginMigrateCassandraViewToAutoscaleAndWait( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewMigrateToAutoscale(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraViewToManualThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraViewToManualThroughputSample.ts deleted file mode 100644 index 3e9388b7420a..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesMigrateCassandraViewToManualThroughputSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate an Azure Cosmos DB Cassandra view from autoscale to manual throughput - * - * @summary Migrate an Azure Cosmos DB Cassandra view from autoscale to manual throughput - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewMigrateToManualThroughput.json - */ -async function cosmosDbCassandraViewMigrateToManualThroughput() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.cassandraResources.beginMigrateCassandraViewToManualThroughputAndWait( - resourceGroupName, - accountName, - keyspaceName, - viewName, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewMigrateToManualThroughput(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesUpdateCassandraViewThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesUpdateCassandraViewThroughputSample.ts deleted file mode 100644 index 629fddb408d1..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/cassandraResourcesUpdateCassandraViewThroughputSample.ts +++ /dev/null @@ -1,53 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ThroughputSettingsUpdateParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update RUs per second of an Azure Cosmos DB Cassandra view - * - * @summary Update RUs per second of an Azure Cosmos DB Cassandra view - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBCassandraViewThroughputUpdate.json - */ -async function cosmosDbCassandraViewThroughputUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const keyspaceName = "keyspacename"; - const viewName = "viewname"; - const updateThroughputParameters: ThroughputSettingsUpdateParameters = { - resource: { throughput: 400 }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.cassandraResources.beginUpdateCassandraViewThroughputAndWait( - resourceGroupName, - accountName, - keyspaceName, - viewName, - updateThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbCassandraViewThroughputUpdate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultEnableDisableSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultEnableDisableSample.ts deleted file mode 100644 index a3a463b18f04..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultEnableDisableSample.ts +++ /dev/null @@ -1,55 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ChaosFaultResource, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Enable, disable Chaos Fault in a CosmosDB account. - * - * @summary Enable, disable Chaos Fault in a CosmosDB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultEnableDisable.json - */ -async function chaosFaultEnableDisable() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["COSMOSDB_RESOURCE_GROUP"] || "myResourceGroupName"; - const accountName = "myAccountName"; - const chaosFault = "ServiceUnavailability"; - const chaosFaultRequest: ChaosFaultResource = { - action: "Enable", - containerName: "testCollection", - databaseName: "testDatabase", - region: "EastUS", - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.chaosFault.beginEnableDisableAndWait( - resourceGroupName, - accountName, - chaosFault, - chaosFaultRequest, - ); - console.log(result); -} - -async function main() { - chaosFaultEnableDisable(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultGetSample.ts deleted file mode 100644 index ee07da6cb69f..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultGetSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get Chaos Fault for a CosmosdB account for a particular Chaos Fault. - * - * @summary Get Chaos Fault for a CosmosdB account for a particular Chaos Fault. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultGet.json - */ -async function chaosFaultGet() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const chaosFault = "ServiceUnavailability"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.chaosFault.get( - resourceGroupName, - accountName, - chaosFault, - ); - console.log(result); -} - -async function main() { - chaosFaultGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultListSample.ts deleted file mode 100644 index a151d0e184b0..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/chaosFaultListSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Chaos Faults for CosmosDB account. - * - * @summary List Chaos Faults for CosmosDB account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/ChaosFaultList.json - */ -async function chaosFaultList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.chaosFault.list( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - chaosFaultList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCancelSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCancelSample.ts deleted file mode 100644 index 5e69dfe5e400..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCancelSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Cancels a Data Transfer Job. - * - * @summary Cancels a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobCancel.json - */ -async function cosmosDbDataTransferJobCancel() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.cancel( - resourceGroupName, - accountName, - jobName, - ); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobCancel(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCompleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCompleteSample.ts deleted file mode 100644 index 5200db092b8f..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCompleteSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Completes a Data Transfer Online Job. - * - * @summary Completes a Data Transfer Online Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobComplete.json - */ -async function cosmosDbDataTransferJobComplete() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "e35cc6eb-c8e3-447b-8de6-b83328cd0098"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.complete( - resourceGroupName, - accountName, - jobName, - ); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobComplete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCreateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCreateSample.ts deleted file mode 100644 index 7587f099e38d..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsCreateSample.ts +++ /dev/null @@ -1,60 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CreateJobRequest, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates a Data Transfer Job. - * - * @summary Creates a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobCreate.json - */ -async function cosmosDbDataTransferJobCreate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const jobCreateParameters: CreateJobRequest = { - properties: { - destination: { - component: "AzureBlobStorage", - containerName: "blob_container", - endpointUrl: "https://blob.windows.net", - }, - source: { - component: "CosmosDBCassandra", - keyspaceName: "keyspace", - tableName: "table", - }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.create( - resourceGroupName, - accountName, - jobName, - jobCreateParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobCreate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsGetSample.ts deleted file mode 100644 index 3cb76e37cc19..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsGetSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a Data Transfer Job. - * - * @summary Get a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobGet.json - */ -async function cosmosDbDataTransferJobGet() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.get( - resourceGroupName, - accountName, - jobName, - ); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsListByDatabaseAccountSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsListByDatabaseAccountSample.ts deleted file mode 100644 index fa35f0adc533..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsListByDatabaseAccountSample.ts +++ /dev/null @@ -1,43 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of Data Transfer jobs. - * - * @summary Get a list of Data Transfer jobs. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobFeed.json - */ -async function cosmosDbDataTransferJobFeed() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataTransferJobs.listByDatabaseAccount( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbDataTransferJobFeed(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsPauseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsPauseSample.ts deleted file mode 100644 index dfcdb2933965..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsPauseSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Pause a Data Transfer Job. - * - * @summary Pause a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobPause.json - */ -async function cosmosDbDataTransferJobPause() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.pause( - resourceGroupName, - accountName, - jobName, - ); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobPause(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsResumeSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsResumeSample.ts deleted file mode 100644 index 574e720320b6..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/dataTransferJobsResumeSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Resumes a Data Transfer Job. - * - * @summary Resumes a Data Transfer Job. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/data-transfer-service/CosmosDBDataTransferJobResume.json - */ -async function cosmosDbDataTransferJobResume() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const jobName = "j1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.dataTransferJobs.resume( - resourceGroupName, - accountName, - jobName, - ); - console.log(result); -} - -async function main() { - cosmosDbDataTransferJobResume(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesCreateUpdateGraphSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesCreateUpdateGraphSample.ts deleted file mode 100644 index 9405dafc5da0..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesCreateUpdateGraphSample.ts +++ /dev/null @@ -1,52 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - GraphResourceCreateUpdateParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB Graph. - * - * @summary Create or update an Azure Cosmos DB Graph. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceCreateUpdate.json - */ -async function cosmosDbGraphCreateUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const graphName = "graphName"; - const createUpdateGraphParameters: GraphResourceCreateUpdateParameters = { - location: "West US", - options: {}, - resource: { id: "graphName" }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.graphResources.beginCreateUpdateGraphAndWait( - resourceGroupName, - accountName, - graphName, - createUpdateGraphParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbGraphCreateUpdate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesDeleteGraphResourceSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesDeleteGraphResourceSample.ts deleted file mode 100644 index 83efe2f3ade4..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesDeleteGraphResourceSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes an existing Azure Cosmos DB Graph Resource. - * - * @summary Deletes an existing Azure Cosmos DB Graph Resource. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceDelete.json - */ -async function cosmosDbSqlDatabaseDelete() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const graphName = "graphName"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.graphResources.beginDeleteGraphResourceAndWait( - resourceGroupName, - accountName, - graphName, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabaseDelete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesGetGraphSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesGetGraphSample.ts deleted file mode 100644 index 1a1cafdb55e2..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesGetGraphSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the Graph resource under an existing Azure Cosmos DB database account with the provided name. - * - * @summary Gets the Graph resource under an existing Azure Cosmos DB database account with the provided name. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceGet.json - */ -async function cosmosDbSqlDatabaseGet() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const graphName = "graphName"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.graphResources.getGraph( - resourceGroupName, - accountName, - graphName, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabaseGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesListGraphsSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesListGraphsSample.ts deleted file mode 100644 index 725d78bb6a99..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/graphResourcesListGraphsSample.ts +++ /dev/null @@ -1,43 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the graphs under an existing Azure Cosmos DB database account. - * - * @summary Lists the graphs under an existing Azure Cosmos DB database account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBGraphResourceList.json - */ -async function cosmosDbSqlDatabaseList() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.graphResources.listGraphs( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbSqlDatabaseList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts deleted file mode 100644 index b16ab963ba36..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoDbcollectionSample.ts +++ /dev/null @@ -1,109 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MongoDBCollectionCreateUpdateParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB MongoDB Collection - * - * @summary Create or update an Azure Cosmos DB MongoDB Collection - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json - */ -async function cosmosDbMongoDbcollectionCreateUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const collectionName = "collectionName"; - const createUpdateMongoDBCollectionParameters: MongoDBCollectionCreateUpdateParameters = - { - location: "West US", - options: {}, - resource: { - analyticalStorageTtl: 500, - id: "collectionName", - indexes: [ - { - key: { keys: ["_ts"] }, - options: { expireAfterSeconds: 100, unique: true }, - }, - { key: { keys: ["_id"] } }, - ], - shardKey: { testKey: "Hash" }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginCreateUpdateMongoDBCollectionAndWait( - resourceGroupName, - accountName, - databaseName, - collectionName, - createUpdateMongoDBCollectionParameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB MongoDB Collection - * - * @summary Create or update an Azure Cosmos DB MongoDB Collection - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionRestore.json - */ -async function cosmosDbMongoDbcollectionRestore() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const collectionName = "collectionName"; - const createUpdateMongoDBCollectionParameters: MongoDBCollectionCreateUpdateParameters = - { - location: "West US", - options: {}, - resource: { - createMode: "Restore", - id: "collectionName", - restoreParameters: { - restoreSource: - "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId", - restoreTimestampInUtc: new Date("2022-07-20T18:28:00Z"), - restoreWithTtlDisabled: false, - }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginCreateUpdateMongoDBCollectionAndWait( - resourceGroupName, - accountName, - databaseName, - collectionName, - createUpdateMongoDBCollectionParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbcollectionCreateUpdate(); - cosmosDbMongoDbcollectionRestore(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts deleted file mode 100644 index 728911f3db89..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesCreateUpdateMongoDbdatabaseSample.ts +++ /dev/null @@ -1,94 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MongoDBDatabaseCreateUpdateParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or updates Azure Cosmos DB MongoDB database - * - * @summary Create or updates Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json - */ -async function cosmosDbMongoDbdatabaseCreateUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const createUpdateMongoDBDatabaseParameters: MongoDBDatabaseCreateUpdateParameters = - { - location: "West US", - options: {}, - resource: { id: "databaseName" }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginCreateUpdateMongoDBDatabaseAndWait( - resourceGroupName, - accountName, - databaseName, - createUpdateMongoDBDatabaseParameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or updates Azure Cosmos DB MongoDB database - * - * @summary Create or updates Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseRestore.json - */ -async function cosmosDbMongoDbdatabaseRestore() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const createUpdateMongoDBDatabaseParameters: MongoDBDatabaseCreateUpdateParameters = - { - location: "West US", - options: {}, - resource: { - createMode: "Restore", - id: "databaseName", - restoreParameters: { - restoreSource: - "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId", - restoreTimestampInUtc: new Date("2022-07-20T18:28:00Z"), - restoreWithTtlDisabled: false, - }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginCreateUpdateMongoDBDatabaseAndWait( - resourceGroupName, - accountName, - databaseName, - createUpdateMongoDBDatabaseParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbdatabaseCreateUpdate(); - cosmosDbMongoDbdatabaseRestore(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoDbcollectionPartitionMergeSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoDbcollectionPartitionMergeSample.ts deleted file mode 100644 index bca86d6534e8..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesListMongoDbcollectionPartitionMergeSample.ts +++ /dev/null @@ -1,47 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MergeParameters, CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Merges the partitions of a MongoDB Collection - * - * @summary Merges the partitions of a MongoDB Collection - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionPartitionMerge.json - */ -async function cosmosDbMongoDbcollectionPartitionMerge() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const collectionName = "collectionName"; - const mergeParameters: MergeParameters = { isDryRun: false }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginListMongoDBCollectionPartitionMergeAndWait( - resourceGroupName, - accountName, - databaseName, - collectionName, - mergeParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbcollectionPartitionMerge(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.ts deleted file mode 100644 index 3bcc8e0a3bb9..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbcontainerRedistributeThroughputSample.ts +++ /dev/null @@ -1,62 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RedistributeThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Redistribute throughput for an Azure Cosmos DB MongoDB container - * - * @summary Redistribute throughput for an Azure Cosmos DB MongoDB container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionRedistributeThroughput.json - */ -async function cosmosDbMongoDbcollectionRedistributeThroughput() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const collectionName = "collectionName"; - const redistributeThroughputParameters: RedistributeThroughputParameters = { - resource: { - sourcePhysicalPartitionThroughputInfo: [ - { id: "2", throughput: 5000 }, - { id: "3" }, - ], - targetPhysicalPartitionThroughputInfo: [ - { id: "0", throughput: 5000 }, - { id: "1", throughput: 5000 }, - ], - throughputPolicy: "custom", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginMongoDBContainerRedistributeThroughputAndWait( - resourceGroupName, - accountName, - databaseName, - collectionName, - redistributeThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbcollectionRedistributeThroughput(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.ts deleted file mode 100644 index 555d8b346600..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbcontainerRetrieveThroughputDistributionSample.ts +++ /dev/null @@ -1,52 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RetrieveThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve throughput distribution for an Azure Cosmos DB MongoDB container - * - * @summary Retrieve throughput distribution for an Azure Cosmos DB MongoDB container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBCollectionRetrieveThroughputDistribution.json - */ -async function cosmosDbMongoDbcollectionRetrieveThroughputDistribution() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const collectionName = "collectionName"; - const retrieveThroughputParameters: RetrieveThroughputParameters = { - resource: { physicalPartitionIds: [{ id: "0" }, { id: "1" }] }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginMongoDBContainerRetrieveThroughputDistributionAndWait( - resourceGroupName, - accountName, - databaseName, - collectionName, - retrieveThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbcollectionRetrieveThroughputDistribution(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabasePartitionMergeSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabasePartitionMergeSample.ts deleted file mode 100644 index 7ae866933fe7..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabasePartitionMergeSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MergeParameters, CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Merges the partitions of a MongoDB database - * - * @summary Merges the partitions of a MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabasePartitionMerge.json - */ -async function cosmosDbMongoDbdatabasePartitionMerge() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const mergeParameters: MergeParameters = { isDryRun: false }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginMongoDBDatabasePartitionMergeAndWait( - resourceGroupName, - accountName, - databaseName, - mergeParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbdatabasePartitionMerge(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.ts deleted file mode 100644 index a3e2667a31a7..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabaseRedistributeThroughputSample.ts +++ /dev/null @@ -1,60 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RedistributeThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Redistribute throughput for an Azure Cosmos DB MongoDB database - * - * @summary Redistribute throughput for an Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseRedistributeThroughput.json - */ -async function cosmosDbMongoDbdatabaseRedistributeThroughput() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const redistributeThroughputParameters: RedistributeThroughputParameters = { - resource: { - sourcePhysicalPartitionThroughputInfo: [ - { id: "2", throughput: 5000 }, - { id: "3" }, - ], - targetPhysicalPartitionThroughputInfo: [ - { id: "0", throughput: 5000 }, - { id: "1", throughput: 5000 }, - ], - throughputPolicy: "custom", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginMongoDBDatabaseRedistributeThroughputAndWait( - resourceGroupName, - accountName, - databaseName, - redistributeThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbdatabaseRedistributeThroughput(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.ts deleted file mode 100644 index 0b12fd29aef2..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/mongoDbResourcesMongoDbdatabaseRetrieveThroughputDistributionSample.ts +++ /dev/null @@ -1,50 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RetrieveThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve throughput distribution for an Azure Cosmos DB MongoDB database - * - * @summary Retrieve throughput distribution for an Azure Cosmos DB MongoDB database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBMongoDBDatabaseRetrieveThroughputDistribution.json - */ -async function cosmosDbMongoDbdatabaseRetrieveThroughputDistribution() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const retrieveThroughputParameters: RetrieveThroughputParameters = { - resource: { physicalPartitionIds: [{ id: "0" }, { id: "1" }] }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.mongoDBResources.beginMongoDBDatabaseRetrieveThroughputDistributionAndWait( - resourceGroupName, - accountName, - databaseName, - retrieveThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbMongoDbdatabaseRetrieveThroughputDistribution(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsGetSample.ts deleted file mode 100644 index d73c328622ca..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsGetSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets effective Network Security Perimeter Configuration for association - * - * @summary Gets effective Network Security Perimeter Configuration for association - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationGet.json - */ -async function namspaceNetworkSecurityPerimeterConfigurationList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "res4410"; - const accountName = "cosmosTest"; - const networkSecurityPerimeterConfigurationName = - "dbedb4e0-40e6-4145-81f3-f1314c150774.resourceAssociation1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.networkSecurityPerimeterConfigurations.get( - resourceGroupName, - accountName, - networkSecurityPerimeterConfigurationName, - ); - console.log(result); -} - -async function main() { - namspaceNetworkSecurityPerimeterConfigurationList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsListSample.ts deleted file mode 100644 index eeb2b31ea195..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsListSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets list of effective Network Security Perimeter Configuration for cosmos db account - * - * @summary Gets list of effective Network Security Perimeter Configuration for cosmos db account - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationList.json - */ -async function namspaceNetworkSecurityPerimeterConfigurationList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "res4410"; - const accountName = "cosmosTest"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkSecurityPerimeterConfigurations.list( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - namspaceNetworkSecurityPerimeterConfigurationList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileSample.ts deleted file mode 100644 index ef15d1dccab7..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileSample.ts +++ /dev/null @@ -1,46 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Refreshes any information about the association. - * - * @summary Refreshes any information about the association. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/NetworkSecurityPerimeterConfigurationReconcile.json - */ -async function networkSecurityPerimeterConfigurationList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "res4410"; - const accountName = "sto8607"; - const networkSecurityPerimeterConfigurationName = - "dbedb4e0-40e6-4145-81f3-f1314c150774.resourceAssociation1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.networkSecurityPerimeterConfigurations.beginReconcileAndWait( - resourceGroupName, - accountName, - networkSecurityPerimeterConfigurationName, - ); - console.log(result); -} - -async function main() { - networkSecurityPerimeterConfigurationList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlContainerSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlContainerSample.ts deleted file mode 100644 index 680b0323f882..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlContainerSample.ts +++ /dev/null @@ -1,186 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SqlContainerCreateUpdateParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB SQL container - * - * @summary Create or update an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerCreateUpdate.json - */ -async function cosmosDbSqlContainerCreateUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "containerName"; - const createUpdateSqlContainerParameters: SqlContainerCreateUpdateParameters = - { - location: "West US", - options: {}, - resource: { - clientEncryptionPolicy: { - includedPaths: [ - { - path: "/path", - clientEncryptionKeyId: "keyId", - encryptionAlgorithm: "AEAD_AES_256_CBC_HMAC_SHA256", - encryptionType: "Deterministic", - }, - ], - policyFormatVersion: 2, - }, - computedProperties: [ - { name: "cp_lowerName", query: "SELECT VALUE LOWER(c.name) FROM c" }, - ], - conflictResolutionPolicy: { - conflictResolutionPath: "/path", - mode: "LastWriterWins", - }, - defaultTtl: 100, - id: "containerName", - indexingPolicy: { - automatic: true, - excludedPaths: [], - includedPaths: [ - { - path: "/*", - indexes: [ - { dataType: "String", kind: "Range", precision: -1 }, - { dataType: "Number", kind: "Range", precision: -1 }, - ], - }, - ], - indexingMode: "consistent", - }, - partitionKey: { kind: "Hash", paths: ["/AccountNumber"] }, - uniqueKeyPolicy: { uniqueKeys: [{ paths: ["/testPath"] }] }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginCreateUpdateSqlContainerAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - createUpdateSqlContainerParameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB SQL container - * - * @summary Create or update an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerRestore.json - */ -async function cosmosDbSqlContainerRestore() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "containerName"; - const createUpdateSqlContainerParameters: SqlContainerCreateUpdateParameters = - { - location: "West US", - options: {}, - resource: { - createMode: "Restore", - id: "containerName", - restoreParameters: { - restoreSource: - "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId", - restoreTimestampInUtc: new Date("2022-07-20T18:28:00Z"), - restoreWithTtlDisabled: true, - }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginCreateUpdateSqlContainerAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - createUpdateSqlContainerParameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB SQL container - * - * @summary Create or update an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlMaterializedViewCreateUpdate.json - */ -async function cosmosDbSqlMaterializedViewCreateUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "mvContainerName"; - const createUpdateSqlContainerParameters: SqlContainerCreateUpdateParameters = - { - location: "West US", - options: {}, - resource: { - id: "mvContainerName", - indexingPolicy: { - automatic: true, - excludedPaths: [], - includedPaths: [ - { - path: "/*", - indexes: [ - { dataType: "String", kind: "Range", precision: -1 }, - { dataType: "Number", kind: "Range", precision: -1 }, - ], - }, - ], - indexingMode: "consistent", - }, - materializedViewDefinition: { - definition: "select * from ROOT", - sourceCollectionId: "sourceContainerName", - }, - partitionKey: { kind: "Hash", paths: ["/mvpk"] }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginCreateUpdateSqlContainerAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - createUpdateSqlContainerParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlContainerCreateUpdate(); - cosmosDbSqlContainerRestore(); - cosmosDbSqlMaterializedViewCreateUpdate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlDatabaseSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlDatabaseSample.ts deleted file mode 100644 index 84b0925b8f87..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesCreateUpdateSqlDatabaseSample.ts +++ /dev/null @@ -1,90 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SqlDatabaseCreateUpdateParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB SQL database - * - * @summary Create or update an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json - */ -async function cosmosDbSqlDatabaseCreateUpdate() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const createUpdateSqlDatabaseParameters: SqlDatabaseCreateUpdateParameters = { - location: "West US", - options: {}, - resource: { id: "databaseName" }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginCreateUpdateSqlDatabaseAndWait( - resourceGroupName, - accountName, - databaseName, - createUpdateSqlDatabaseParameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an Azure Cosmos DB SQL database - * - * @summary Create or update an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseRestore.json - */ -async function cosmosDbSqlDatabaseRestore() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const createUpdateSqlDatabaseParameters: SqlDatabaseCreateUpdateParameters = { - location: "West US", - options: {}, - resource: { - createMode: "Restore", - id: "databaseName", - restoreParameters: { - restoreSource: - "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId", - restoreTimestampInUtc: new Date("2022-07-20T18:28:00Z"), - restoreWithTtlDisabled: true, - }, - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.sqlResources.beginCreateUpdateSqlDatabaseAndWait( - resourceGroupName, - accountName, - databaseName, - createUpdateSqlDatabaseParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabaseCreateUpdate(); - cosmosDbSqlDatabaseRestore(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlContainerPartitionMergeSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlContainerPartitionMergeSample.ts deleted file mode 100644 index fa0a12bfde0c..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesListSqlContainerPartitionMergeSample.ts +++ /dev/null @@ -1,47 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MergeParameters, CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Merges the partitions of a SQL Container - * - * @summary Merges the partitions of a SQL Container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerPartitionMerge.json - */ -async function cosmosDbSqlContainerPartitionMerge() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "containerName"; - const mergeParameters: MergeParameters = { isDryRun: false }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.sqlResources.beginListSqlContainerPartitionMergeAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - mergeParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlContainerPartitionMerge(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlContainerRedistributeThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlContainerRedistributeThroughputSample.ts deleted file mode 100644 index 90e5ac16ae30..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlContainerRedistributeThroughputSample.ts +++ /dev/null @@ -1,62 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RedistributeThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Redistribute throughput for an Azure Cosmos DB SQL container - * - * @summary Redistribute throughput for an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerRedistributeThroughput.json - */ -async function cosmosDbSqlContainerRedistributeThroughput() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "containerName"; - const redistributeThroughputParameters: RedistributeThroughputParameters = { - resource: { - sourcePhysicalPartitionThroughputInfo: [ - { id: "2", throughput: 5000 }, - { id: "3" }, - ], - targetPhysicalPartitionThroughputInfo: [ - { id: "0", throughput: 5000 }, - { id: "1", throughput: 5000 }, - ], - throughputPolicy: "custom", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.sqlResources.beginSqlContainerRedistributeThroughputAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - redistributeThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlContainerRedistributeThroughput(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlContainerRetrieveThroughputDistributionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlContainerRetrieveThroughputDistributionSample.ts deleted file mode 100644 index d18926628447..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlContainerRetrieveThroughputDistributionSample.ts +++ /dev/null @@ -1,52 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RetrieveThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve throughput distribution for an Azure Cosmos DB SQL container - * - * @summary Retrieve throughput distribution for an Azure Cosmos DB SQL container - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlContainerRetrieveThroughputDistribution.json - */ -async function cosmosDbSqlContainerRetrieveThroughputDistribution() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const containerName = "containerName"; - const retrieveThroughputParameters: RetrieveThroughputParameters = { - resource: { physicalPartitionIds: [{ id: "0" }, { id: "1" }] }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.sqlResources.beginSqlContainerRetrieveThroughputDistributionAndWait( - resourceGroupName, - accountName, - databaseName, - containerName, - retrieveThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlContainerRetrieveThroughputDistribution(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabasePartitionMergeSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabasePartitionMergeSample.ts deleted file mode 100644 index 27ab42d99d0d..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabasePartitionMergeSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MergeParameters, CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Merges the partitions of a SQL database - * - * @summary Merges the partitions of a SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabasePartitionMerge.json - */ -async function cosmosDbSqlDatabasePartitionMerge() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const mergeParameters: MergeParameters = { isDryRun: false }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.sqlResources.beginSqlDatabasePartitionMergeAndWait( - resourceGroupName, - accountName, - databaseName, - mergeParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabasePartitionMerge(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabaseRedistributeThroughputSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabaseRedistributeThroughputSample.ts deleted file mode 100644 index 8ab64bc362a5..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabaseRedistributeThroughputSample.ts +++ /dev/null @@ -1,60 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RedistributeThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Redistribute throughput for an Azure Cosmos DB SQL database - * - * @summary Redistribute throughput for an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseRedistributeThroughput.json - */ -async function cosmosDbSqlDatabaseRedistributeThroughput() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const redistributeThroughputParameters: RedistributeThroughputParameters = { - resource: { - sourcePhysicalPartitionThroughputInfo: [ - { id: "2", throughput: 5000 }, - { id: "3" }, - ], - targetPhysicalPartitionThroughputInfo: [ - { id: "0", throughput: 5000 }, - { id: "1", throughput: 5000 }, - ], - throughputPolicy: "custom", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.sqlResources.beginSqlDatabaseRedistributeThroughputAndWait( - resourceGroupName, - accountName, - databaseName, - redistributeThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabaseRedistributeThroughput(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.ts deleted file mode 100644 index d6f1d65e2af1..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/sqlResourcesSqlDatabaseRetrieveThroughputDistributionSample.ts +++ /dev/null @@ -1,50 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RetrieveThroughputParameters, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve throughput distribution for an Azure Cosmos DB SQL database - * - * @summary Retrieve throughput distribution for an Azure Cosmos DB SQL database - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/CosmosDBSqlDatabaseRetrieveThroughputDistribution.json - */ -async function cosmosDbSqlDatabaseRetrieveThroughputDistribution() { - const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const accountName = "ddb1"; - const databaseName = "databaseName"; - const retrieveThroughputParameters: RetrieveThroughputParameters = { - resource: { physicalPartitionIds: [{ id: "0" }, { id: "1" }] }, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = - await client.sqlResources.beginSqlDatabaseRetrieveThroughputDistributionAndWait( - resourceGroupName, - accountName, - databaseName, - retrieveThroughputParameters, - ); - console.log(result); -} - -async function main() { - cosmosDbSqlDatabaseRetrieveThroughputDistribution(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountCreateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountCreateSample.ts deleted file mode 100644 index 0f6a73101b78..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountCreateSample.ts +++ /dev/null @@ -1,53 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ThroughputPoolAccountResource, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. - * - * @summary Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountCreate.json - */ -async function cosmosDbThroughputPoolAccountCreate() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const throughputPoolName = "tp1"; - const throughputPoolAccountName = "db1"; - const body: ThroughputPoolAccountResource = { - accountLocation: "West US", - accountResourceIdentifier: - "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DocumentDB/resourceGroup/rg1/databaseAccounts/db1/", - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPoolAccount.beginCreateAndWait( - resourceGroupName, - throughputPoolName, - throughputPoolAccountName, - body, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolAccountCreate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountDeleteSample.ts deleted file mode 100644 index d7738d40d40d..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountDeleteSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Removes an existing Azure Cosmos DB database account from a throughput pool. - * - * @summary Removes an existing Azure Cosmos DB database account from a throughput pool. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountDelete.json - */ -async function cosmosDbThroughputPoolAccountDelete() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const throughputPoolAccountName = "db1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPoolAccount.beginDeleteAndWait( - resourceGroupName, - throughputPoolName, - throughputPoolAccountName, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolAccountDelete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountGetSample.ts deleted file mode 100644 index d40f9284ba00..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountGetSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * - * @summary Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountGet.json - */ -async function cosmosDbThroughputPoolAccountGet() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const throughputPoolAccountName = "db1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPoolAccount.get( - resourceGroupName, - throughputPoolName, - throughputPoolAccountName, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolAccountGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountsListSample.ts deleted file mode 100644 index 8e8e44522456..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolAccountsListSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the Azure Cosmos DB accounts available under the subscription. - * - * @summary Lists all the Azure Cosmos DB accounts available under the subscription. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolAccountsList.json - */ -async function cosmosDbThroughputPoolAccountList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.throughputPoolAccounts.list( - resourceGroupName, - throughputPoolName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbThroughputPoolAccountList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolCreateOrUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolCreateOrUpdateSample.ts deleted file mode 100644 index ca1861a74f69..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolCreateOrUpdateSample.ts +++ /dev/null @@ -1,51 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ThroughputPoolResource, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. - * - * @summary Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when performing updates on an account. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolCreate.json - */ -async function cosmosDbThroughputPoolCreate() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const throughputPoolName = "tp1"; - const body: ThroughputPoolResource = { - location: "westus2", - maxThroughput: 10000, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPool.beginCreateOrUpdateAndWait( - resourceGroupName, - throughputPoolName, - body, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolCreate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolDeleteSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolDeleteSample.ts deleted file mode 100644 index d9a7fbf2ed62..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolDeleteSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes an existing Azure Cosmos DB Throughput Pool. - * - * @summary Deletes an existing Azure Cosmos DB Throughput Pool. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolDelete.json - */ -async function cosmosDbThroughputPoolDelete() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPool.beginDeleteAndWait( - resourceGroupName, - throughputPoolName, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolDelete(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolGetSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolGetSample.ts deleted file mode 100644 index 8a0dd614b60c..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolGetSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * - * @summary Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolGet.json - */ -async function cosmosDbThroughputPoolGet() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const throughputPoolName = "tp1"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPool.get( - resourceGroupName, - throughputPoolName, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolGet(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolUpdateSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolUpdateSample.ts deleted file mode 100644 index fe48ed4ce37e..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolUpdateSample.ts +++ /dev/null @@ -1,49 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ThroughputPoolUpdate, - ThroughputPoolUpdateOptionalParams, - CosmosDBManagementClient, -} from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates the properties of an existing Azure Cosmos DB Throughput Pool. - * - * @summary Updates the properties of an existing Azure Cosmos DB Throughput Pool. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolUpdate.json - */ -async function cosmosDbThroughputPoolUpdate() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rg1"; - const throughputPoolName = "tp1"; - const body: ThroughputPoolUpdate = { maxThroughput: 10000 }; - const options: ThroughputPoolUpdateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const result = await client.throughputPool.beginUpdateAndWait( - resourceGroupName, - throughputPoolName, - options, - ); - console.log(result); -} - -async function main() { - cosmosDbThroughputPoolUpdate(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolsListByResourceGroupSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolsListByResourceGroupSample.ts deleted file mode 100644 index 80c78b8a7259..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolsListByResourceGroupSample.ts +++ /dev/null @@ -1,43 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all the ThroughputPools in a given resource group. - * - * @summary List all the ThroughputPools in a given resource group. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolList.json - */ -async function cosmosDbThroughputPoolListByResourceGroup() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const resourceGroupName = process.env["COSMOSDB_RESOURCE_GROUP"] || "rgName"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.throughputPools.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbThroughputPoolListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolsListSample.ts b/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolsListSample.ts deleted file mode 100644 index 30e6d15d6e90..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/samples/v17-beta/typescript/src/throughputPoolsListSample.ts +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CosmosDBManagementClient } from "@azure/arm-cosmosdb"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the Azure Cosmos DB Throughput Pools available under the subscription. - * - * @summary Lists all the Azure Cosmos DB Throughput Pools available under the subscription. - * x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-09-01-preview/examples/throughputPool/CosmosDBThroughputPoolList.json - */ -async function cosmosDbThroughputPoolList() { - const subscriptionId = - process.env["COSMOSDB_SUBSCRIPTION_ID"] || - "ffffffff-ffff-ffff-ffff-ffffffffffff"; - const credential = new DefaultAzureCredential(); - const client = new CosmosDBManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.throughputPools.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - cosmosDbThroughputPoolList(); -} - -main().catch(console.error); diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts index 98d5eb6f800a..e3a6c1e8d423 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts @@ -28,17 +28,14 @@ import { CollectionPartitionImpl, PartitionKeyRangeIdImpl, PartitionKeyRangeIdRegionImpl, - GraphResourcesImpl, SqlResourcesImpl, MongoDBResourcesImpl, TableResourcesImpl, CassandraResourcesImpl, GremlinResourcesImpl, LocationsImpl, - DataTransferJobsImpl, CassandraClustersImpl, CassandraDataCentersImpl, - NetworkSecurityPerimeterConfigurationsImpl, NotebookWorkspacesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, @@ -55,11 +52,6 @@ import { RestorableTablesImpl, RestorableTableResourcesImpl, ServiceImpl, - ThroughputPoolsImpl, - ThroughputPoolImpl, - ThroughputPoolAccountsImpl, - ThroughputPoolAccountImpl, - ChaosFaultImpl, } from "./operations"; import { DatabaseAccounts, @@ -75,17 +67,14 @@ import { CollectionPartition, PartitionKeyRangeId, PartitionKeyRangeIdRegion, - GraphResources, SqlResources, MongoDBResources, TableResources, CassandraResources, GremlinResources, Locations, - DataTransferJobs, CassandraClusters, CassandraDataCenters, - NetworkSecurityPerimeterConfigurations, NotebookWorkspaces, PrivateEndpointConnections, PrivateLinkResources, @@ -102,11 +91,6 @@ import { RestorableTables, RestorableTableResources, Service, - ThroughputPools, - ThroughputPool, - ThroughputPoolAccounts, - ThroughputPoolAccount, - ChaosFault, } from "./operationsInterfaces"; import { CosmosDBManagementClientOptionalParams } from "./models"; @@ -142,7 +126,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-cosmosdb/17.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-cosmosdb/16.2.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -196,7 +180,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2024-09-01-preview"; + this.apiVersion = options.apiVersion || "2024-11-15"; this.databaseAccounts = new DatabaseAccountsImpl(this); this.operations = new OperationsImpl(this); this.database = new DatabaseImpl(this); @@ -210,18 +194,14 @@ 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.networkSecurityPerimeterConfigurations = - new NetworkSecurityPerimeterConfigurationsImpl(this); this.notebookWorkspaces = new NotebookWorkspacesImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); @@ -240,11 +220,6 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { this.restorableTables = new RestorableTablesImpl(this); this.restorableTableResources = new RestorableTableResourcesImpl(this); this.service = new ServiceImpl(this); - this.throughputPools = new ThroughputPoolsImpl(this); - this.throughputPool = new ThroughputPoolImpl(this); - this.throughputPoolAccounts = new ThroughputPoolAccountsImpl(this); - this.throughputPoolAccount = new ThroughputPoolAccountImpl(this); - this.chaosFault = new ChaosFaultImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -289,17 +264,14 @@ 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; - networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; notebookWorkspaces: NotebookWorkspaces; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; @@ -316,9 +288,4 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { restorableTables: RestorableTables; restorableTableResources: RestorableTableResources; service: Service; - throughputPools: ThroughputPools; - throughputPool: ThroughputPool; - throughputPoolAccounts: ThroughputPoolAccounts; - throughputPoolAccount: ThroughputPoolAccount; - chaosFault: ChaosFault; } diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts index faf7062586db..2f59ae1aa644 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 - | BaseCosmosDataTransferDataSourceSinkUnion - | CosmosMongoVCoreDataTransferDataSourceSink - | AzureBlobDataTransferDataSourceSink; export type ServiceResourcePropertiesUnion = | ServiceResourceProperties | DataTransferServiceResourceProperties @@ -29,11 +24,41 @@ export type ServiceResourceCreateUpdatePropertiesUnion = | SqlDedicatedGatewayServiceResourceCreateUpdateProperties | GraphAPIComputeServiceResourceCreateUpdateProperties | MaterializedViewsBuilderServiceResourceCreateUpdateProperties; -export type BaseCosmosDataTransferDataSourceSinkUnion = - | BaseCosmosDataTransferDataSourceSink - | CosmosCassandraDataTransferDataSourceSink - | CosmosMongoDataTransferDataSourceSink - | CosmosSqlDataTransferDataSourceSink; + +/** 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 { @@ -125,7 +150,7 @@ export interface PrivateLinkServiceConnectionStateProperty { /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** - * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; @@ -139,27 +164,6 @@ export interface Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; } export interface ApiProperties { @@ -231,43 +235,12 @@ 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. */ totalThroughputLimit?: number; } -/** The transition state information related capacity mode change with update request. */ -export interface CapacityModeChangeTransitionState { - /** The transition status of capacity mode. */ - capacityModeTransitionStatus?: CapacityModeTransitionStatus; - /** Indicates the current capacity mode of the account. */ - currentCapacityMode?: CapacityMode; - /** Indicates the previous capacity mode of the account before successful transition. */ - previousCapacityMode?: CapacityMode; - /** - * Begin time in UTC of the capacity mode change. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly capacityModeTransitionBeginTimestamp?: Date; - /** - * End time in UTC of the capacity mode change. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly capacityModeTransitionEndTimestamp?: Date; - /** - * End time in UTC of the last successful capacity mode change. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly capacityModeLastSuccessfulTransitionEndTimestamp?: Date; -} - /** The metadata related to each access key for the given Cosmos DB database account. */ export interface DatabaseAccountKeysMetadata { /** @@ -301,6 +274,22 @@ export interface AccountKeyMetadata { readonly generationTime?: Date; } +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + /** The core properties of ARM resources. */ export interface ARMResourceProperties { /** @@ -322,43 +311,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. */ @@ -413,16 +365,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; - /** Indicates the capacityMode of the Cosmos DB account. */ - capacityMode?: CapacityMode; - /** 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. @@ -430,17 +376,13 @@ 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. */ + /** Indicates the minimum allowed Tls version. The default value is Tls 1.2. Cassandra and Mongo APIs only work with Tls 1.2. */ minimalTlsVersion?: MinimalTlsVersion; + /** Flag to indicate enabling/disabling of Burst Capacity feature on the account */ + enableBurstCapacity?: boolean; /** Indicates the status of the Customer Managed Key feature on the account. In case there are errors, the property provides troubleshooting guidance. */ customerManagedKeyStatus?: string; - /** Flag to indicate enabling/disabling of Priority Based Execution Preview feature on the account */ - enablePriorityBasedExecution?: boolean; - /** Enum to indicate default Priority Level of request for Priority Based Execution. */ - defaultPriorityLevel?: DefaultPriorityLevel; - /** Flag to indicate enabling/disabling of Per-Region Per-partition autoscale Preview feature on the account */ + /** Flag to indicate enabling/disabling of PerRegionPerPartitionAutoscale feature on the account */ enablePerRegionPerPartitionAutoscale?: boolean; } @@ -834,42 +776,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. Note: Either throughput or autoscaleSettings is required, but not both. */ - autoscaleSettings?: AutoscaleSettings; -} - /** The List operation response, that contains the SQL databases and their properties. */ export interface SqlDatabaseListResult { /** @@ -908,6 +814,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. Note: Either throughput or autoscaleSettings is required, but not both. */ + 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. */ @@ -963,64 +890,6 @@ export interface ThroughputPolicyResource { incrementPercent?: number; } -/** 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 { /** @@ -1052,10 +921,10 @@ export interface SqlContainerResource { restoreParameters?: ResourceRestoreParameters; /** Enum to indicate the mode of resource creation. */ createMode?: CreateMode; - /** The configuration for defining Materialized Views. This must be specified only for creating a Materialized View container. */ - materializedViewDefinition?: MaterializedViewDefinition; /** List of computed properties */ computedProperties?: ComputedProperty[]; + /** The vector embedding policy for the container. */ + vectorEmbeddingPolicy?: VectorEmbeddingPolicy; } /** Cosmos DB indexing policy */ @@ -1072,6 +941,8 @@ export interface IndexingPolicy { compositeIndexes?: CompositePath[][]; /** List of spatial specifics */ spatialIndexes?: SpatialSpec[]; + /** List of paths to include in the vector indexing */ + vectorIndexes?: VectorIndex[]; } /** The paths that are included in indexing */ @@ -1111,6 +982,13 @@ export interface SpatialSpec { types?: SpatialType[]; } +export interface VectorIndex { + /** The path to the vector field in the document. */ + path: string; + /** The index type of the vector. Currently, flat, diskANN, and quantizedFlat are supported. */ + type: VectorIndexType; +} + /** The configuration of the partition key to be used for partitioning data into multiple partitions */ export interface ContainerPartitionKey { /** List of paths using which data within the container can be partitioned */ @@ -1168,19 +1046,6 @@ export interface ClientEncryptionIncludedPath { encryptionAlgorithm: string; } -/** Materialized View definition for the container. */ -export interface MaterializedViewDefinition { - /** - * An unique identifier for the source collection. This is a system generated property. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sourceCollectionRid?: string; - /** The name of the source container on which the Materialized View will be created. */ - sourceCollectionId: string; - /** The definition should be an SQL query which would be used to fetch data from the source container to populate into the Materialized View container. */ - definition: string; -} - /** The definition of a computed property */ export interface ComputedProperty { /** The name of a computed property, for example - "cp_lowerName" */ @@ -1189,69 +1054,80 @@ export interface ComputedProperty { query?: 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; +/** Cosmos DB Vector Embedding Policy */ +export interface VectorEmbeddingPolicy { + /** List of vector embeddings */ + vectorEmbeddings?: VectorEmbedding[]; } -/** List of physical partitions and their properties returned by a merge operation. */ -export interface PhysicalPartitionStorageInfoCollection { - /** - * List of physical partitions and their properties. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly physicalPartitionStorageInfoCollection?: PhysicalPartitionStorageInfo[]; +/** Represents a vector embedding. A vector embedding is used to define a vector field in the documents. */ +export interface VectorEmbedding { + /** The path to the vector field in the document. */ + path: string; + /** Indicates the data type of vector. */ + dataType: VectorDataType; + /** The distance function to use for distance calculation in between vectors. */ + distanceFunction: DistanceFunction; + /** The number of dimensions in the vector. */ + dimensions: number; } -/** The storage of a physical partition */ -export interface PhysicalPartitionStorageInfo { - /** - * The unique identifier of the partition. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; +/** The List operation response, that contains the client encryption keys and their properties. */ +export interface ClientEncryptionKeysListResult { /** - * The storage in KB for the physical partition. + * List of client encryption keys and their properties. * 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; + readonly value?: ClientEncryptionKeyGetResults[]; } -/** The properties of an Azure Cosmos DB PhysicalPartitionThroughputInfoProperties object */ -export interface PhysicalPartitionThroughputInfoProperties { - /** Array of physical partition throughput info objects */ - physicalPartitionThroughputInfo?: PhysicalPartitionThroughputInfoResource[]; +/** 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; } -/** PhysicalPartitionThroughputInfo object */ -export interface PhysicalPartitionThroughputInfoResource { - /** Id of a physical partition */ - id: string; - /** Throughput of a physical partition */ - throughput?: number; +/** 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; } -/** 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. */ @@ -1555,96 +1431,6 @@ export interface LocationProperties { readonly status?: Status; } -/** 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. - * 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; - /** - * Total Duration of Job - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly duration?: string; - /** Mode of job execution */ - mode?: DataTransferJobMode; -} - -/** Base class for all DataTransfer source/sink */ -export interface DataTransferDataSourceSink { - /** Polymorphic discriminator, which specifies the different types this object can be */ - component: - | "BaseCosmosDataTransferDataSourceSink" - | "CosmosDBCassandra" - | "CosmosDBMongo" - | "CosmosDBMongoVCore" - | "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; -} - /** List of managed Cassandra clusters. */ export interface ListClusters { /** Container for the array of clusters. */ @@ -1671,8 +1457,6 @@ export interface ClusterResourceProperties { prometheusEndpoint?: SeedNode; /** Should automatic repairs run on this cluster? If omitted, this is true, and should stay true unless you are running a hybrid cluster where you are already doing your own repairs. */ repairEnabled?: boolean; - /** The form of AutoReplicate that is being used by this cluster. */ - autoReplicate?: AutoReplicate; /** List of TLS certificates used to authorize clients connecting to the cluster. All connections are TLS encrypted whether clientCertificates is set or not, but if clientCertificates is set, the managed Cassandra cluster will reject all connections not bearing a TLS client certificate that can be validated from one or more of the public certificates in this property. */ clientCertificates?: Certificate[]; /** List of TLS certificates used to authorize gossip from unmanaged data centers. The TLS certificates of all nodes in unmanaged data centers must be verifiable using one of the certificates provided in this property. */ @@ -1689,28 +1473,18 @@ export interface ClusterResourceProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly seedNodes?: SeedNode[]; - /** List of the data center names for unmanaged data centers in this cluster to be included in auto-replication. */ - externalDataCenters?: string[]; /** (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; - /** Type of the cluster. If set to Production, some operations might not be permitted on cluster. */ - clusterType?: ClusterType; /** Error related to resource provisioning. */ provisionError?: CassandraError; - /** Extensions to be added or updated on cluster. */ - extensions?: string[]; - /** List of backup schedules that define when you want to back up your data. */ - backupSchedules?: BackupSchedule[]; - /** How the nodes in the cluster react to scheduled events */ - scheduledEventStrategy?: ScheduledEventStrategy; /** How to connect to the azure services needed for running the cluster */ azureConnectionMethod?: AzureConnectionType; /** - * If the Connection Method is Vpn, this is the Id of the private link resource that the datacenters need to connect to. + * If the Connection Method is VPN, this is the Id of the private link resource that the datacenters need to connect to. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateLinkResourceId?: string; @@ -1737,15 +1511,6 @@ export interface CassandraError { additionalErrorInfo?: string; } -export interface BackupSchedule { - /** The unique identifier of backup schedule. */ - scheduleName?: string; - /** The cron expression that defines when you want to back up your data. */ - cronExpression?: string; - /** The retention period (hours) of the backups. If you want to retain data forever, set retention to 0. */ - retentionInHours?: number; -} - /** The core properties of ARM resources. */ export interface ManagedCassandraARMResourceProperties { /** @@ -1792,13 +1557,13 @@ export interface CommandPostBody { /** The command which should be run */ command: string; /** The arguments for the command to be run */ - arguments?: Record; + arguments?: { [propertyName: string]: string }; /** IP address of the cassandra host to run the command on */ host: string; /** If true, stops cassandra before executing the command and then start it again */ cassandraStopStart?: boolean; /** If true, allows the command to *write* to the cassandra directory, otherwise read-only. */ - readWrite?: boolean; + readwrite?: boolean; } /** Response of /command api */ @@ -1807,62 +1572,6 @@ export interface CommandOutput { commandOutput?: string; } -/** resource representing a command */ -export interface CommandPublicResource { - /** The command which should be run */ - command?: string; - /** The unique id of command */ - commandId?: string; - /** The arguments for the command to be run */ - arguments?: Record; - /** IP address of the cassandra host to run the command on */ - host?: string; - /** Whether command has admin privileges */ - isAdmin?: boolean; - /** If true, stops cassandra before executing the command and then start it again */ - cassandraStopStart?: boolean; - /** If true, allows the command to *write* to the cassandra directory, otherwise read-only. */ - readWrite?: boolean; - /** Result output of the command. */ - result?: string; - /** Status of the command. */ - status?: CommandStatus; - /** The name of the file where the result is written. */ - outputFile?: string; -} - -/** List of commands for cluster. */ -export interface ListCommands { - /** - * Container for array of commands. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: CommandPublicResource[]; -} - -/** 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[]; -} - -/** A restorable backup of a Cassandra cluster. */ -export interface BackupResource { - /** The unique identifier of backup. */ - backupId?: string; - /** The current state of the backup. */ - backupState?: BackupState; - /** The time at which the backup process begins. */ - backupStartTimestamp?: Date; - /** The time at which the backup process ends. */ - backupStopTimestamp?: Date; - /** The time at which the backup will expire. */ - backupExpiryTimestamp?: Date; -} - /** List of managed Cassandra data centers and their properties. */ export interface ListDataCenters { /** @@ -2004,8 +1713,6 @@ export interface ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDa memoryTotalKB?: number; /** A float representing the current system-wide CPU utilization as a percentage. */ cpuUsage?: number; - /** If node has been updated to latest model */ - isLatestModel?: boolean; } /** The set of data plane operations permitted through this Role Definition. */ @@ -2080,141 +1787,6 @@ export interface MongoUserDefinitionListResult { readonly value?: MongoUserDefinitionGetResults[]; } -/** Result of a list NSP (network security perimeter) configurations request. */ -export interface NetworkSecurityPerimeterConfigurationListResult { - /** Array of network security perimeter results. */ - value?: NetworkSecurityPerimeterConfiguration[]; - /** The link used to get the next page of results. */ - nextLink?: string; -} - -/** Network security configuration properties. */ -export interface NetworkSecurityPerimeterConfigurationProperties { - /** - * Provisioning state of a network security perimeter configuration that is being created or updated. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: NetworkSecurityPerimeterConfigurationProvisioningState; - /** - * List of provisioning issues, if any - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningIssues?: ProvisioningIssue[]; - /** Information about a network security perimeter (NSP) */ - networkSecurityPerimeter?: NetworkSecurityPerimeter; - /** Information about resource association */ - resourceAssociation?: ResourceAssociation; - /** Network security perimeter configuration profile */ - profile?: NetworkSecurityProfile; -} - -/** Describes a provisioning issue for a network security perimeter configuration */ -export interface ProvisioningIssue { - /** - * Name of the issue - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Details of a provisioning issue for a network security perimeter (NSP) configuration. Resource providers should generate separate provisioning issue elements for each separate issue detected, and include a meaningful and distinctive description, as well as any appropriate suggestedResourceIds and suggestedAccessRules - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly properties?: ProvisioningIssueProperties; -} - -/** Details of a provisioning issue for a network security perimeter (NSP) configuration. Resource providers should generate separate provisioning issue elements for each separate issue detected, and include a meaningful and distinctive description, as well as any appropriate suggestedResourceIds and suggestedAccessRules */ -export interface ProvisioningIssueProperties { - /** - * Type of issue - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly issueType?: IssueType; - /** - * Severity of the issue. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly severity?: Severity; - /** - * Description of the issue - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; - /** - * Fully qualified resource IDs of suggested resources that can be associated to the network security perimeter (NSP) to remediate the issue. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly suggestedResourceIds?: string[]; - /** - * Access rules that can be added to the network security profile (NSP) to remediate the issue. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly suggestedAccessRules?: AccessRule[]; -} - -/** Access rule in a network security perimeter configuration profile */ -export interface AccessRule { - /** Name of the access rule */ - name?: string; - /** Properties of Access Rule */ - properties?: AccessRuleProperties; -} - -/** Properties of Access Rule */ -export interface AccessRuleProperties { - /** Direction of Access Rule */ - direction?: AccessRuleDirection; - /** Address prefixes in the CIDR format for inbound rules */ - addressPrefixes?: string[]; - /** Subscriptions for inbound rules */ - subscriptions?: AccessRulePropertiesSubscriptionsItem[]; - /** Network security perimeters for inbound rules */ - networkSecurityPerimeters?: NetworkSecurityPerimeter[]; - /** Fully qualified domain names (FQDN) for outbound rules */ - fullyQualifiedDomainNames?: string[]; - /** Email addresses for outbound rules */ - emailAddresses?: string[]; - /** Phone numbers for outbound rules */ - phoneNumbers?: string[]; -} - -/** Subscription identifiers */ -export interface AccessRulePropertiesSubscriptionsItem { - /** The fully qualified Azure resource ID of the subscription e.g. ('/subscriptions/00000000-0000-0000-0000-000000000000') */ - id?: string; -} - -/** Information about a network security perimeter (NSP) */ -export interface NetworkSecurityPerimeter { - /** Fully qualified Azure resource ID of the NSP resource */ - id?: string; - /** Universal unique ID (UUID) of the network security perimeter */ - perimeterGuid?: string; - /** Location of the network security perimeter */ - location?: string; -} - -/** Information about resource association */ -export interface ResourceAssociation { - /** Name of the resource association */ - name?: string; - /** Access mode of the resource association */ - accessMode?: ResourceAssociationAccessMode; -} - -/** Network security perimeter configuration profile */ -export interface NetworkSecurityProfile { - /** Name of the profile */ - name?: string; - /** Current access rules version */ - accessRulesVersion?: number; - /** List of Access Rules */ - accessRules?: AccessRule[]; - /** Current diagnostic settings version */ - diagnosticSettingsVersion?: number; - /** List of log categories that are enabled */ - enabledLogCategories?: string[]; -} - /** A list of notebook workspace resources */ export interface NotebookWorkspaceListResult { /** Array of notebook workspace resources */ @@ -2327,10 +1899,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. @@ -3054,56 +2626,6 @@ export interface ServiceResourceCreateUpdateProperties { instanceCount?: number; } -/** The List operation response, that contains the throughput pools and their properties. */ -export interface ThroughputPoolsListResult { - /** - * List of throughput pools and their properties. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ThroughputPoolResource[]; - /** - * The link used to get the next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** Represents a throughput pool resource for updates. */ -export interface ThroughputPoolUpdate { - /** A provisioning state of the ThroughputPool. */ - provisioningState?: Status; - /** Value for throughput to be shared among CosmosDB resources in the pool. */ - maxThroughput?: number; -} - -/** The List operation response, that contains the global database accounts and their properties. */ -export interface ThroughputPoolAccountsListResult { - /** - * List of global database accounts in a throughput pool and their properties. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ThroughputPoolAccountResource[]; - /** - * The link used to get the next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** Chaos Fault List Response. */ -export interface ChaosFaultListResponse { - /** - * List of Chaos Faults. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: ChaosFaultResource[]; - /** - * The link used to get the next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - /** Configuration values for periodic mode backup */ export interface PeriodicModeProperties { /** An integer representing the interval in minutes between two backups */ @@ -3116,7 +2638,7 @@ export interface PeriodicModeProperties { /** Configuration values for periodic mode backup */ export interface ContinuousModeProperties { - /** Enum to indicate type of Continuos backup mode */ + /** Enum to indicate type of Continuous backup mode */ tier?: ContinuousTier; } @@ -3163,27 +2685,9 @@ export interface MaterializedViewsBuilderServiceResource { properties?: MaterializedViewsBuilderServiceResourceProperties; } -/** Parameters for creating a Azure Cosmos DB throughput pool account. */ -export interface ThroughputPoolAccountCreateParameters { - /** 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 }; - /** The resource identifier of global database account in the throughputPool. */ - accountResourceIdentifier?: string; - /** The location of global database account in the throughputPool. */ - accountLocation?: string; -} - /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export interface ProxyResource extends Resource {} -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The geo-location where the resource lives */ - location: string; -} - /** Parameters to indicate the information about the restore. */ export interface RestoreParameters extends RestoreParametersBase { /** Describes the mode of the restore. */ @@ -3194,8 +2698,6 @@ export interface RestoreParameters extends RestoreParametersBase { 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. */ @@ -3221,6 +2723,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. @@ -3317,18 +2821,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; - /** Indicates the capacityMode of the Cosmos DB account. */ - capacityMode?: CapacityMode; - /** The object that represents the migration state for the CapacityMode of the Cosmos DB account. */ - capacityModeChangeTransitionState?: CapacityModeChangeTransitionState; - /** 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. @@ -3336,17 +2832,13 @@ 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. */ + /** Indicates the minimum allowed Tls version. The default value is Tls 1.2. Cassandra and Mongo APIs only work with Tls 1.2. */ minimalTlsVersion?: MinimalTlsVersion; + /** Flag to indicate enabling/disabling of Burst Capacity feature on the account */ + enableBurstCapacity?: boolean; /** Indicates the status of the Customer Managed Key feature on the account. In case there are errors, the property provides troubleshooting guidance. */ customerManagedKeyStatus?: string; - /** Flag to indicate enabling/disabling of Priority Based Execution Preview feature on the account */ - enablePriorityBasedExecution?: boolean; - /** Enum to indicate default Priority Level of request for Priority Based Execution. */ - defaultPriorityLevel?: DefaultPriorityLevel; - /** Flag to indicate enabling/disabling of Per-Region Per-partition autoscale Preview feature on the account */ + /** Flag to indicate enabling/disabling of PerRegionPerPartitionAutoscale feature on the account */ enablePerRegionPerPartitionAutoscale?: boolean; } @@ -3355,6 +2847,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. */ @@ -3403,18 +2897,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; - /** Indicates the capacityMode of the Cosmos DB account. */ - capacityMode?: CapacityMode; - /** 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. @@ -3422,35 +2910,16 @@ 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. */ + /** Indicates the minimum allowed Tls version. The default value is Tls 1.2. Cassandra and Mongo APIs only work with Tls 1.2. */ minimalTlsVersion?: MinimalTlsVersion; + /** Flag to indicate enabling/disabling of Burst Capacity feature on the account */ + enableBurstCapacity?: boolean; /** Indicates the status of the Customer Managed Key feature on the account. In case there are errors, the property provides troubleshooting guidance. */ customerManagedKeyStatus?: string; - /** Flag to indicate enabling/disabling of Priority Based Execution Preview feature on the account */ - enablePriorityBasedExecution?: boolean; - /** Enum to indicate default Priority Level of request for Priority Based Execution. */ - defaultPriorityLevel?: DefaultPriorityLevel; - /** Flag to indicate enabling/disabling of Per-Region Per-partition autoscale Preview feature on the account */ + /** Flag to indicate enabling/disabling of PerRegionPerPartitionAutoscale feature on the account */ enablePerRegionPerPartitionAutoscale?: boolean; } -/** 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; -} - /** An Azure Cosmos DB SQL database. */ export interface SqlDatabaseGetResults extends ARMResourceProperties { resource?: SqlDatabaseGetPropertiesResource; @@ -3493,26 +2962,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; @@ -3660,21 +3109,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 { @@ -3757,32 +3191,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 { @@ -3817,14 +3225,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 {} @@ -3865,10 +3273,6 @@ export interface GremlinGraphGetPropertiesResource extends GremlinGraphResource, ExtendedResourceProperties {} -export interface CassandraViewGetPropertiesResource - extends CassandraViewResource, - ExtendedResourceProperties {} - /** Cosmos DB SQL container resource object */ export interface RestorableSqlContainerPropertiesResourceContainer extends SqlContainerResource, @@ -3880,6 +3284,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; @@ -3891,59 +3315,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; - /** - * Total Duration of Job - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly duration?: string; - /** Mode of job execution */ - mode?: DataTransferJobMode; -} - /** A managed Cassandra data center. */ export interface DataCenterResource extends ARMProxyResource { /** Properties of a managed Cassandra data center. */ @@ -4045,42 +3416,6 @@ export interface ServiceResource extends ARMProxyResource { properties?: ServiceResourcePropertiesUnion; } -/** properties of physical partition throughput info */ -export interface PhysicalPartitionThroughputInfoResultPropertiesResource - extends PhysicalPartitionThroughputInfoProperties {} - -/** A base CosmosDB data source/sink */ -export interface BaseCosmosDataTransferDataSourceSink - extends DataTransferDataSourceSink { - /** Polymorphic discriminator, which specifies the different types this object can be */ - component: - | "BaseCosmosDataTransferDataSourceSink" - | "CosmosDBCassandra" - | "CosmosDBMongo" - | "CosmosDBSql"; - remoteAccountName?: string; -} - -/** A CosmosDB Mongo vCore API data source/sink */ -export interface CosmosMongoVCoreDataTransferDataSourceSink - extends DataTransferDataSourceSink { - /** Polymorphic discriminator, which specifies the different types this object can be */ - component: "CosmosDBMongoVCore"; - databaseName: string; - collectionName: string; - hostName?: string; - connectionStringKeyVaultUri?: 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. */ @@ -4211,79 +3546,6 @@ export interface PrivateEndpointConnection extends ProxyResource { provisioningState?: string; } -/** Network security perimeter (NSP) configuration resource */ -export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { - /** Network security configuration properties. */ - properties?: NetworkSecurityPerimeterConfigurationProperties; -} - -/** An Azure Cosmos DB Throughputpool Account */ -export interface ThroughputPoolAccountResource extends ProxyResource { - /** A provisioning state of the ThroughputPool Account. */ - provisioningState?: Status; - /** The resource identifier of global database account in the throughputPool. */ - accountResourceIdentifier?: string; - /** The location of global database account in the throughputPool. */ - accountLocation?: string; - /** - * The instance id of global database account in the throughputPool. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly accountInstanceId?: string; -} - -/** A request object to enable/disable the chaos fault */ -export interface ChaosFaultResource extends ProxyResource { - /** Indicates whether what action to take for the Chaos Fault. */ - action?: SupportedActions; - /** Region of the account where the Chaos Fault is to be enabled/disabled. */ - region?: string; - /** Database name. */ - databaseName?: string; - /** Container name. */ - containerName?: string; - /** - * A provisioning state of the Chaos Fault. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; -} - -/** An Azure Cosmos DB Throughputpool. */ -export interface ThroughputPoolResource extends TrackedResource { - /** A provisioning state of the ThroughputPool. */ - provisioningState?: Status; - /** Value for throughput to be shared among CosmosDB resources in the pool. */ - maxThroughput?: number; -} - -/** A CosmosDB Cassandra API data source/sink */ -export interface CosmosCassandraDataTransferDataSourceSink - extends BaseCosmosDataTransferDataSourceSink { - /** Polymorphic discriminator, which specifies the different types this object can be */ - component: "CosmosDBCassandra"; - keyspaceName: string; - tableName: string; -} - -/** A CosmosDB Mongo API data source/sink */ -export interface CosmosMongoDataTransferDataSourceSink - extends BaseCosmosDataTransferDataSourceSink { - /** Polymorphic discriminator, which specifies the different types this object can be */ - component: "CosmosDBMongo"; - databaseName: string; - collectionName: string; -} - -/** A CosmosDB No Sql API data source/sink */ -export interface CosmosSqlDataTransferDataSourceSink - extends BaseCosmosDataTransferDataSourceSink { - /** Polymorphic discriminator, which specifies the different types this object can be */ - component: "CosmosDBSql"; - databaseName: string; - containerName: string; -} - /** Defines headers for DatabaseAccounts_delete operation. */ export interface DatabaseAccountsDeleteHeaders { /** URI to poll for completion status. */ @@ -4324,22 +3586,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. */ @@ -4380,14 +3626,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. */ @@ -4404,22 +3642,6 @@ export interface SqlResourcesDeleteSqlContainerHeaders { location?: string; } -/** Defines headers for SqlResources_sqlDatabasePartitionMerge operation. */ -export interface SqlResourcesSqlDatabasePartitionMergeHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - 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. */ @@ -4444,32 +3666,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. */ @@ -4564,38 +3762,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. */ @@ -4612,22 +3778,6 @@ export interface MongoDBResourcesDeleteMongoDBCollectionHeaders { location?: string; } -/** Defines headers for MongoDBResources_mongoDBDatabasePartitionMerge operation. */ -export interface MongoDBResourcesMongoDBDatabasePartitionMergeHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - 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. */ @@ -4772,46 +3922,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. */ @@ -4892,19 +4002,14 @@ export interface GremlinResourcesMigrateGremlinGraphToManualThroughputHeaders { location?: string; } -/** Defines headers for CassandraClusters_invokeCommandAsync operation. */ -export interface CassandraClustersInvokeCommandAsyncHeaders { +/** 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 NetworkSecurityPerimeterConfigurations_reconcile operation. */ -export interface NetworkSecurityPerimeterConfigurationsReconcileHeaders { - location?: string; -} - /** Defines headers for Service_delete operation. */ export interface ServiceDeleteHeaders { /** URI to poll for completion status. */ @@ -4913,30 +4018,6 @@ export interface ServiceDeleteHeaders { location?: string; } -/** Defines headers for ThroughputPool_update operation. */ -export interface ThroughputPoolUpdateHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - -/** Defines headers for ThroughputPool_delete operation. */ -export interface ThroughputPoolDeleteHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - -/** Defines headers for ThroughputPoolAccount_delete operation. */ -export interface ThroughputPoolAccountDeleteHeaders { - /** URI to poll for completion status. */ - azureAsyncOperation?: string; - /** URI to poll for completion status. */ - location?: string; -} - /** Known values of {@link DatabaseAccountKind} that the service accepts. */ export enum KnownDatabaseAccountKind { /** GlobalDocumentDB */ @@ -4958,30 +4039,6 @@ export enum KnownDatabaseAccountKind { */ export type DatabaseAccountKind = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key", -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - /** Known values of {@link ConnectorOffer} that the service accepts. */ export enum KnownConnectorOffer { /** Small */ @@ -5144,54 +4201,6 @@ export enum KnownBackupPolicyMigrationStatus { */ export type BackupPolicyMigrationStatus = string; -/** Known values of {@link CapacityMode} that the service accepts. */ -export enum KnownCapacityMode { - /** None */ - None = "None", - /** Provisioned */ - Provisioned = "Provisioned", - /** Serverless */ - Serverless = "Serverless", -} - -/** - * Defines values for CapacityMode. \ - * {@link KnownCapacityMode} can be used interchangeably with CapacityMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **Provisioned** \ - * **Serverless** - */ -export type CapacityMode = string; - -/** Known values of {@link CapacityModeTransitionStatus} that the service accepts. */ -export enum KnownCapacityModeTransitionStatus { - /** Invalid */ - Invalid = "Invalid", - /** Initialized */ - Initialized = "Initialized", - /** InProgress */ - InProgress = "InProgress", - /** Completed */ - Completed = "Completed", - /** Failed */ - Failed = "Failed", -} - -/** - * Defines values for CapacityModeTransitionStatus. \ - * {@link KnownCapacityModeTransitionStatus} can be used interchangeably with CapacityModeTransitionStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Invalid** \ - * **Initialized** \ - * **InProgress** \ - * **Completed** \ - * **Failed** - */ -export type CapacityModeTransitionStatus = string; - /** Known values of {@link MinimalTlsVersion} that the service accepts. */ export enum KnownMinimalTlsVersion { /** Tls */ @@ -5213,23 +4222,29 @@ export enum KnownMinimalTlsVersion { */ export type MinimalTlsVersion = string; -/** Known values of {@link DefaultPriorityLevel} that the service accepts. */ -export enum KnownDefaultPriorityLevel { - /** High */ - High = "High", - /** Low */ - Low = "Low", +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key", } /** - * Defines values for DefaultPriorityLevel. \ - * {@link KnownDefaultPriorityLevel} can be used interchangeably with DefaultPriorityLevel, + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **High** \ - * **Low** + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export type DefaultPriorityLevel = string; +export type CreatedByType = string; /** Known values of {@link Kind} that the service accepts. */ export enum KnownKind { @@ -5495,6 +4510,27 @@ export enum KnownSpatialType { */ export type SpatialType = string; +/** Known values of {@link VectorIndexType} that the service accepts. */ +export enum KnownVectorIndexType { + /** Flat */ + Flat = "flat", + /** DiskANN */ + DiskANN = "diskANN", + /** QuantizedFlat */ + QuantizedFlat = "quantizedFlat", +} + +/** + * Defines values for VectorIndexType. \ + * {@link KnownVectorIndexType} can be used interchangeably with VectorIndexType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **flat** \ + * **diskANN** \ + * **quantizedFlat** + */ +export type VectorIndexType = string; + /** Known values of {@link PartitionKind} that the service accepts. */ export enum KnownPartitionKind { /** Hash */ @@ -5534,26 +4570,47 @@ 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", +/** Known values of {@link VectorDataType} that the service accepts. */ +export enum KnownVectorDataType { + /** Float32 */ + Float32 = "float32", + /** Uint8 */ + Uint8 = "uint8", + /** Int8 */ + Int8 = "int8", +} + +/** + * Defines values for VectorDataType. \ + * {@link KnownVectorDataType} can be used interchangeably with VectorDataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **float32** \ + * **uint8** \ + * **int8** + */ +export type VectorDataType = string; + +/** Known values of {@link DistanceFunction} that the service accepts. */ +export enum KnownDistanceFunction { + /** Euclidean */ + Euclidean = "euclidean", + /** Cosine */ + Cosine = "cosine", + /** Dotproduct */ + Dotproduct = "dotproduct", } /** - * Defines values for ThroughputPolicyType. \ - * {@link KnownThroughputPolicyType} can be used interchangeably with ThroughputPolicyType, + * Defines values for DistanceFunction. \ + * {@link KnownDistanceFunction} can be used interchangeably with DistanceFunction, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **none** \ - * **equal** \ - * **custom** + * **euclidean** \ + * **cosine** \ + * **dotproduct** */ -export type ThroughputPolicyType = string; +export type DistanceFunction = string; /** Known values of {@link TriggerType} that the service accepts. */ export enum KnownTriggerType { @@ -5633,14 +4690,6 @@ export enum KnownStatus { Online = "Online", /** Deleting */ Deleting = "Deleting", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled", - /** Updating */ - Updating = "Updating", } /** @@ -5652,59 +4701,10 @@ export enum KnownStatus { * **Initializing** \ * **InternallyReady** \ * **Online** \ - * **Deleting** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** \ - * **Updating** + * **Deleting** */ export type Status = string; -/** Known values of {@link DataTransferComponent} that the service accepts. */ -export enum KnownDataTransferComponent { - /** CosmosDBCassandra */ - CosmosDBCassandra = "CosmosDBCassandra", - /** CosmosDBMongo */ - CosmosDBMongo = "CosmosDBMongo", - /** CosmosDBMongoVCore */ - CosmosDBMongoVCore = "CosmosDBMongoVCore", - /** CosmosDBSql */ - CosmosDBSql = "CosmosDBSql", - /** AzureBlobStorage */ - AzureBlobStorage = "AzureBlobStorage", -} - -/** - * Defines values for DataTransferComponent. \ - * {@link KnownDataTransferComponent} can be used interchangeably with DataTransferComponent, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **CosmosDBCassandra** \ - * **CosmosDBMongo** \ - * **CosmosDBMongoVCore** \ - * **CosmosDBSql** \ - * **AzureBlobStorage** - */ -export type DataTransferComponent = string; - -/** Known values of {@link DataTransferJobMode} that the service accepts. */ -export enum KnownDataTransferJobMode { - /** Offline */ - Offline = "Offline", - /** Online */ - Online = "Online", -} - -/** - * Defines values for DataTransferJobMode. \ - * {@link KnownDataTransferJobMode} can be used interchangeably with DataTransferJobMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Offline** \ - * **Online** - */ -export type DataTransferJobMode = string; - /** Known values of {@link ManagedCassandraProvisioningState} that the service accepts. */ export enum KnownManagedCassandraProvisioningState { /** Creating */ @@ -5756,66 +4756,6 @@ export enum KnownAuthenticationMethod { */ export type AuthenticationMethod = string; -/** Known values of {@link AutoReplicate} that the service accepts. */ -export enum KnownAutoReplicate { - /** None */ - None = "None", - /** SystemKeyspaces */ - SystemKeyspaces = "SystemKeyspaces", - /** AllKeyspaces */ - AllKeyspaces = "AllKeyspaces", -} - -/** - * Defines values for AutoReplicate. \ - * {@link KnownAutoReplicate} can be used interchangeably with AutoReplicate, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **SystemKeyspaces** \ - * **AllKeyspaces** - */ -export type AutoReplicate = string; - -/** Known values of {@link ClusterType} that the service accepts. */ -export enum KnownClusterType { - /** Production */ - Production = "Production", - /** NonProduction */ - NonProduction = "NonProduction", -} - -/** - * Defines values for ClusterType. \ - * {@link KnownClusterType} can be used interchangeably with ClusterType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Production** \ - * **NonProduction** - */ -export type ClusterType = string; - -/** Known values of {@link ScheduledEventStrategy} that the service accepts. */ -export enum KnownScheduledEventStrategy { - /** Ignore */ - Ignore = "Ignore", - /** StopAny */ - StopAny = "StopAny", - /** StopByRack */ - StopByRack = "StopByRack", -} - -/** - * Defines values for ScheduledEventStrategy. \ - * {@link KnownScheduledEventStrategy} can be used interchangeably with ScheduledEventStrategy, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Ignore** \ - * **StopAny** \ - * **StopByRack** - */ -export type ScheduledEventStrategy = string; - /** Known values of {@link AzureConnectionType} that the service accepts. */ export enum KnownAzureConnectionType { /** None */ @@ -5852,60 +4792,6 @@ export enum KnownManagedCassandraResourceIdentityType { */ export type ManagedCassandraResourceIdentityType = string; -/** Known values of {@link CommandStatus} that the service accepts. */ -export enum KnownCommandStatus { - /** Done */ - Done = "Done", - /** Running */ - Running = "Running", - /** Enqueue */ - Enqueue = "Enqueue", - /** Processing */ - Processing = "Processing", - /** Finished */ - Finished = "Finished", - /** Failed */ - Failed = "Failed", -} - -/** - * Defines values for CommandStatus. \ - * {@link KnownCommandStatus} can be used interchangeably with CommandStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Done** \ - * **Running** \ - * **Enqueue** \ - * **Processing** \ - * **Finished** \ - * **Failed** - */ -export type CommandStatus = string; - -/** Known values of {@link BackupState} that the service accepts. */ -export enum KnownBackupState { - /** Initiated */ - Initiated = "Initiated", - /** InProgress */ - InProgress = "InProgress", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", -} - -/** - * Defines values for BackupState. \ - * {@link KnownBackupState} can be used interchangeably with BackupState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Initiated** \ - * **InProgress** \ - * **Succeeded** \ - * **Failed** - */ -export type BackupState = string; - /** Known values of {@link ConnectionState} that the service accepts. */ export enum KnownConnectionState { /** Unknown */ @@ -5963,120 +4849,6 @@ export enum KnownNodeState { */ export type NodeState = string; -/** Known values of {@link NetworkSecurityPerimeterConfigurationProvisioningState} that the service accepts. */ -export enum KnownNetworkSecurityPerimeterConfigurationProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Creating */ - Creating = "Creating", - /** Updating */ - Updating = "Updating", - /** Deleting */ - Deleting = "Deleting", - /** Accepted */ - Accepted = "Accepted", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled", -} - -/** - * Defines values for NetworkSecurityPerimeterConfigurationProvisioningState. \ - * {@link KnownNetworkSecurityPerimeterConfigurationProvisioningState} can be used interchangeably with NetworkSecurityPerimeterConfigurationProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded** \ - * **Creating** \ - * **Updating** \ - * **Deleting** \ - * **Accepted** \ - * **Failed** \ - * **Canceled** - */ -export type NetworkSecurityPerimeterConfigurationProvisioningState = string; - -/** Known values of {@link IssueType} that the service accepts. */ -export enum KnownIssueType { - /** Unknown issue type */ - Unknown = "Unknown", - /** An error occurred while applying the network security perimeter (NSP) configuration. */ - ConfigurationPropagationFailure = "ConfigurationPropagationFailure", - /** A network connectivity issue is happening on the resource which could be addressed either by adding new resources to the network security perimeter (NSP) or by modifying access rules. */ - MissingPerimeterConfiguration = "MissingPerimeterConfiguration", - /** An managed identity hasn't been associated with the resource. The resource will still be able to validate inbound traffic from the network security perimeter (NSP) or matching inbound access rules, but it won't be able to perform outbound access as a member of the NSP. */ - MissingIdentityConfiguration = "MissingIdentityConfiguration", -} - -/** - * Defines values for IssueType. \ - * {@link KnownIssueType} can be used interchangeably with IssueType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unknown**: Unknown issue type \ - * **ConfigurationPropagationFailure**: An error occurred while applying the network security perimeter (NSP) configuration. \ - * **MissingPerimeterConfiguration**: A network connectivity issue is happening on the resource which could be addressed either by adding new resources to the network security perimeter (NSP) or by modifying access rules. \ - * **MissingIdentityConfiguration**: An managed identity hasn't been associated with the resource. The resource will still be able to validate inbound traffic from the network security perimeter (NSP) or matching inbound access rules, but it won't be able to perform outbound access as a member of the NSP. - */ -export type IssueType = string; - -/** Known values of {@link Severity} that the service accepts. */ -export enum KnownSeverity { - /** Warning */ - Warning = "Warning", - /** Error */ - Error = "Error", -} - -/** - * Defines values for Severity. \ - * {@link KnownSeverity} can be used interchangeably with Severity, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Warning** \ - * **Error** - */ -export type Severity = string; - -/** Known values of {@link AccessRuleDirection} that the service accepts. */ -export enum KnownAccessRuleDirection { - /** Applies to inbound network traffic to the secured resources. */ - Inbound = "Inbound", - /** Applies to outbound network traffic from the secured resources */ - Outbound = "Outbound", -} - -/** - * Defines values for AccessRuleDirection. \ - * {@link KnownAccessRuleDirection} can be used interchangeably with AccessRuleDirection, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Inbound**: Applies to inbound network traffic to the secured resources. \ - * **Outbound**: Applies to outbound network traffic from the secured resources - */ -export type AccessRuleDirection = string; - -/** Known values of {@link ResourceAssociationAccessMode} that the service accepts. */ -export enum KnownResourceAssociationAccessMode { - /** Enforced access mode - traffic to the resource that failed access checks is blocked */ - Enforced = "Enforced", - /** Learning access mode - traffic to the resource is enabled for analysis but not blocked */ - Learning = "Learning", - /** Audit access mode - traffic to the resource that fails access checks is logged but not blocked */ - Audit = "Audit", -} - -/** - * Defines values for ResourceAssociationAccessMode. \ - * {@link KnownResourceAssociationAccessMode} can be used interchangeably with ResourceAssociationAccessMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enforced**: Enforced access mode - traffic to the resource that failed access checks is blocked \ - * **Learning**: Learning access mode - traffic to the resource is enabled for analysis but not blocked \ - * **Audit**: Audit access mode - traffic to the resource that fails access checks is logged but not blocked - */ -export type ResourceAssociationAccessMode = string; - /** Known values of {@link NotebookWorkspaceName} that the service accepts. */ export enum KnownNotebookWorkspaceName { /** Default */ @@ -6277,6 +5049,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" @@ -6286,20 +5064,10 @@ 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. */ export type RoleDefinitionType = "BuiltInRole" | "CustomRole"; -/** Defines values for SupportedActions. */ -export type SupportedActions = "Enable" | "Disable"; /** Optional parameters. */ export interface DatabaseAccountsGetOptionalParams @@ -6603,41 +5371,6 @@ export interface PartitionKeyRangeIdRegionListMetricsOptionalParams 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 {} @@ -6725,23 +5458,21 @@ export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults; /** Optional parameters. */ -export interface SqlResourcesListClientEncryptionKeysOptionalParams +export interface SqlResourcesListSqlContainersOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listClientEncryptionKeys operation. */ -export type SqlResourcesListClientEncryptionKeysResponse = - ClientEncryptionKeysListResult; +/** Contains response data for the listSqlContainers operation. */ +export type SqlResourcesListSqlContainersResponse = SqlContainerListResult; /** Optional parameters. */ -export interface SqlResourcesGetClientEncryptionKeyOptionalParams +export interface SqlResourcesGetSqlContainerOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getClientEncryptionKey operation. */ -export type SqlResourcesGetClientEncryptionKeyResponse = - ClientEncryptionKeyGetResults; +/** Contains response data for the getSqlContainer operation. */ +export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults; /** Optional parameters. */ -export interface SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams +export interface SqlResourcesCreateUpdateSqlContainerOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -6749,36 +5480,9 @@ export interface SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams resumeFrom?: string; } -/** Contains response data for the createUpdateClientEncryptionKey operation. */ -export type SqlResourcesCreateUpdateClientEncryptionKeyResponse = - ClientEncryptionKeyGetResults; - -/** Optional parameters. */ -export interface SqlResourcesListSqlContainersOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listSqlContainers operation. */ -export type SqlResourcesListSqlContainersResponse = SqlContainerListResult; - -/** Optional parameters. */ -export interface SqlResourcesGetSqlContainerOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getSqlContainer operation. */ -export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults; - -/** Optional parameters. */ -export interface SqlResourcesCreateUpdateSqlContainerOptionalParams - 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 createUpdateSqlContainer operation. */ -export type SqlResourcesCreateUpdateSqlContainerResponse = - SqlContainerGetResults; +/** Contains response data for the createUpdateSqlContainer operation. */ +export type SqlResourcesCreateUpdateSqlContainerResponse = + SqlContainerGetResults; /** Optional parameters. */ export interface SqlResourcesDeleteSqlContainerOptionalParams @@ -6793,32 +5497,6 @@ export interface SqlResourcesDeleteSqlContainerOptionalParams export type SqlResourcesDeleteSqlContainerResponse = SqlResourcesDeleteSqlContainerHeaders; -/** Optional parameters. */ -export interface SqlResourcesSqlDatabasePartitionMergeOptionalParams - 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 sqlDatabasePartitionMerge operation. */ -export type SqlResourcesSqlDatabasePartitionMergeResponse = - PhysicalPartitionStorageInfoCollection; - -/** 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 {} @@ -6867,46 +5545,23 @@ 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; @@ -6914,9 +5569,9 @@ 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 @@ -7219,58 +5874,6 @@ export interface MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputOptiona 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 {} @@ -7313,32 +5916,6 @@ export interface MongoDBResourcesDeleteMongoDBCollectionOptionalParams export type MongoDBResourcesDeleteMongoDBCollectionResponse = MongoDBResourcesDeleteMongoDBCollectionHeaders; -/** Optional parameters. */ -export interface MongoDBResourcesMongoDBDatabasePartitionMergeOptionalParams - 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 mongoDBDatabasePartitionMerge operation. */ -export type MongoDBResourcesMongoDBDatabasePartitionMergeResponse = - PhysicalPartitionStorageInfoCollection; - -/** 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 {} @@ -7752,91 +6329,6 @@ export interface CassandraResourcesMigrateCassandraTableToManualThroughputOption 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 {} @@ -8040,64 +6532,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 DataTransferJobsCompleteOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the complete operation. */ -export type DataTransferJobsCompleteResponse = 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 {} @@ -8164,51 +6598,9 @@ export interface CassandraClustersInvokeCommandOptionalParams /** Contains response data for the invokeCommand operation. */ export type CassandraClustersInvokeCommandResponse = CommandOutput; -/** Optional parameters. */ -export interface CassandraClustersInvokeCommandAsyncOptionalParams - 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 invokeCommandAsync operation. */ -export type CassandraClustersInvokeCommandAsyncResponse = CommandPublicResource; - -/** Optional parameters. */ -export interface CassandraClustersListCommandOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listCommand operation. */ -export type CassandraClustersListCommandResponse = ListCommands; - -/** Optional parameters. */ -export interface CassandraClustersGetCommandAsyncOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getCommandAsync operation. */ -export type CassandraClustersGetCommandAsyncResponse = ListCommands; - -/** 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 { - /** Force to deallocate a cluster of Cluster Type Production. Force to deallocate a cluster of Cluster Type Production might cause data loss */ - xMsForceDeallocate?: string; /** 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. */ @@ -8278,43 +6670,6 @@ export interface CassandraDataCentersUpdateOptionalParams /** Contains response data for the update operation. */ export type CassandraDataCentersUpdateResponse = DataCenterResource; -/** Optional parameters. */ -export interface NetworkSecurityPerimeterConfigurationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type NetworkSecurityPerimeterConfigurationsListResponse = - NetworkSecurityPerimeterConfigurationListResult; - -/** Optional parameters. */ -export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type NetworkSecurityPerimeterConfigurationsGetResponse = - NetworkSecurityPerimeterConfiguration; - -/** Optional parameters. */ -export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams - 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 reconcile operation. */ -export type NetworkSecurityPerimeterConfigurationsReconcileResponse = - NetworkSecurityPerimeterConfigurationsReconcileHeaders; - -/** Optional parameters. */ -export interface NetworkSecurityPerimeterConfigurationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type NetworkSecurityPerimeterConfigurationsListNextResponse = - NetworkSecurityPerimeterConfigurationListResult; - /** Optional parameters. */ export interface NotebookWorkspacesListByDatabaseAccountOptionalParams extends coreClient.OperationOptions {} @@ -8620,162 +6975,6 @@ export interface ServiceDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface ThroughputPoolsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ThroughputPoolsListResponse = ThroughputPoolsListResult; - -/** Optional parameters. */ -export interface ThroughputPoolsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type ThroughputPoolsListByResourceGroupResponse = - ThroughputPoolsListResult; - -/** Optional parameters. */ -export interface ThroughputPoolsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ThroughputPoolsListNextResponse = ThroughputPoolsListResult; - -/** Optional parameters. */ -export interface ThroughputPoolsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type ThroughputPoolsListByResourceGroupNextResponse = - ThroughputPoolsListResult; - -/** Optional parameters. */ -export interface ThroughputPoolGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ThroughputPoolGetResponse = ThroughputPoolResource; - -/** Optional parameters. */ -export interface ThroughputPoolCreateOrUpdateOptionalParams - 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 createOrUpdate operation. */ -export type ThroughputPoolCreateOrUpdateResponse = ThroughputPoolResource; - -/** Optional parameters. */ -export interface ThroughputPoolUpdateOptionalParams - extends coreClient.OperationOptions { - /** The parameters to provide for the current Throughput Pool. */ - body?: ThroughputPoolUpdate; - /** 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 update operation. */ -export type ThroughputPoolUpdateResponse = ThroughputPoolResource; - -/** Optional parameters. */ -export interface ThroughputPoolDeleteOptionalParams - 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 delete operation. */ -export type ThroughputPoolDeleteResponse = ThroughputPoolDeleteHeaders; - -/** Optional parameters. */ -export interface ThroughputPoolAccountsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ThroughputPoolAccountsListResponse = - ThroughputPoolAccountsListResult; - -/** Optional parameters. */ -export interface ThroughputPoolAccountsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ThroughputPoolAccountsListNextResponse = - ThroughputPoolAccountsListResult; - -/** Optional parameters. */ -export interface ThroughputPoolAccountGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ThroughputPoolAccountGetResponse = ThroughputPoolAccountResource; - -/** Optional parameters. */ -export interface ThroughputPoolAccountCreateOptionalParams - 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 create operation. */ -export type ThroughputPoolAccountCreateResponse = ThroughputPoolAccountResource; - -/** Optional parameters. */ -export interface ThroughputPoolAccountDeleteOptionalParams - 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 delete operation. */ -export type ThroughputPoolAccountDeleteResponse = - ThroughputPoolAccountDeleteHeaders; - -/** Optional parameters. */ -export interface ChaosFaultListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ChaosFaultListOperationResponse = ChaosFaultListResponse; - -/** Optional parameters. */ -export interface ChaosFaultEnableDisableOptionalParams - 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 enableDisable operation. */ -export type ChaosFaultEnableDisableResponse = ChaosFaultResource; - -/** Optional parameters. */ -export interface ChaosFaultGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ChaosFaultGetResponse = ChaosFaultResource; - -/** Optional parameters. */ -export interface ChaosFaultListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ChaosFaultListNextResponse = ChaosFaultListResponse; - /** Optional parameters. */ export interface CosmosDBManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts index 50d17e59b887..81db239e449a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts @@ -8,6 +8,79 @@ 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", @@ -254,58 +327,6 @@ export const Resource: coreClient.CompositeMapper = { name: "String", }, }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData", - }, - }, - }, - }, -}; - -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String", - }, - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String", - }, - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime", - }, - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String", - }, - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String", - }, - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime", - }, - }, }, }, }; @@ -518,22 +539,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", @@ -552,54 +557,6 @@ export const Capacity: coreClient.CompositeMapper = { }, }; -export const CapacityModeChangeTransitionState: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityModeChangeTransitionState", - modelProperties: { - capacityModeTransitionStatus: { - serializedName: "capacityModeTransitionStatus", - type: { - name: "String", - }, - }, - currentCapacityMode: { - serializedName: "currentCapacityMode", - type: { - name: "String", - }, - }, - previousCapacityMode: { - serializedName: "previousCapacityMode", - type: { - name: "String", - }, - }, - capacityModeTransitionBeginTimestamp: { - serializedName: "capacityModeTransitionBeginTimestamp", - readOnly: true, - type: { - name: "DateTime", - }, - }, - capacityModeTransitionEndTimestamp: { - serializedName: "capacityModeTransitionEndTimestamp", - readOnly: true, - type: { - name: "DateTime", - }, - }, - capacityModeLastSuccessfulTransitionEndTimestamp: { - serializedName: "capacityModeLastSuccessfulTransitionEndTimestamp", - readOnly: true, - type: { - name: "DateTime", - }, - }, - }, - }, -}; - export const DatabaseAccountKeysMetadata: coreClient.CompositeMapper = { type: { name: "Composite", @@ -653,6 +610,51 @@ export const AccountKeyMetadata: coreClient.CompositeMapper = { }, }; +export const SystemData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String", + }, + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String", + }, + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime", + }, + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String", + }, + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String", + }, + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime", + }, + }, + }, + }, +}; + export const ARMResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -692,117 +694,37 @@ export const ARMResourceProperties: coreClient.CompositeMapper = { value: { type: { name: "String" } }, }, }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity", - }, - }, }, }, }; -export const ManagedServiceIdentity: coreClient.CompositeMapper = { +export const DatabaseAccountUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedServiceIdentity", + className: "DatabaseAccountUpdateParameters", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + location: { + serializedName: "location", type: { name: "String", }, }, - type: { - serializedName: "type", + identity: { + serializedName: "identity", type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned,UserAssigned", - "None", - ], + name: "Composite", + className: "ManagedServiceIdentity", }, }, - 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 DatabaseAccountUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabaseAccountUpdateParameters", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity", - }, - }, - consistencyPolicy: { - serializedName: "properties.consistencyPolicy", + consistencyPolicy: { + serializedName: "properties.consistencyPolicy", type: { name: "Composite", className: "ConsistencyPolicy", @@ -973,13 +895,6 @@ export const DatabaseAccountUpdateParameters: coreClient.CompositeMapper = { }, }, }, - diagnosticLogSettings: { - serializedName: "properties.diagnosticLogSettings", - type: { - name: "Composite", - className: "DiagnosticLogSettings", - }, - }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", type: { @@ -993,18 +908,6 @@ export const DatabaseAccountUpdateParameters: coreClient.CompositeMapper = { className: "Capacity", }, }, - capacityMode: { - serializedName: "properties.capacityMode", - type: { - name: "String", - }, - }, - enableMaterializedViews: { - serializedName: "properties.enableMaterializedViews", - type: { - name: "Boolean", - }, - }, keysMetadata: { serializedName: "properties.keysMetadata", type: { @@ -1018,32 +921,20 @@ export const DatabaseAccountUpdateParameters: coreClient.CompositeMapper = { name: "Boolean", }, }, - enableBurstCapacity: { - serializedName: "properties.enableBurstCapacity", - type: { - name: "Boolean", - }, - }, minimalTlsVersion: { serializedName: "properties.minimalTlsVersion", type: { name: "String", }, }, - customerManagedKeyStatus: { - serializedName: "properties.customerManagedKeyStatus", - type: { - name: "String", - }, - }, - enablePriorityBasedExecution: { - serializedName: "properties.enablePriorityBasedExecution", + enableBurstCapacity: { + serializedName: "properties.enableBurstCapacity", type: { name: "Boolean", }, }, - defaultPriorityLevel: { - serializedName: "properties.defaultPriorityLevel", + customerManagedKeyStatus: { + serializedName: "properties.customerManagedKeyStatus", type: { name: "String", }, @@ -1833,10 +1724,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", @@ -1846,7 +1737,7 @@ export const GraphResourcesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GraphResourceGetResults", + className: "SqlDatabaseGetResults", }, }, }, @@ -1855,10 +1746,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", @@ -1867,51 +1758,58 @@ export const GraphResource: coreClient.CompositeMapper = { name: "String", }, }, - }, - }, -}; - -export const OptionsResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OptionsResource", - modelProperties: { - throughput: { - serializedName: "throughput", + restoreParameters: { + serializedName: "restoreParameters", type: { - name: "Number", + name: "Composite", + className: "ResourceRestoreParameters", }, }, - autoscaleSettings: { - serializedName: "autoscaleSettings", + createMode: { + defaultValue: "Default", + serializedName: "createMode", type: { - name: "Composite", - className: "AutoscaleSettings", + name: "String", }, }, }, }, }; -export const AutoscaleSettings: coreClient.CompositeMapper = { +export const ExtendedResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoscaleSettings", + className: "ExtendedResourceProperties", modelProperties: { - maxThroughput: { - serializedName: "maxThroughput", + rid: { + serializedName: "_rid", + readOnly: true, + type: { + name: "String", + }, + }, + ts: { + serializedName: "_ts", + readOnly: true, type: { name: "Number", }, }, + etag: { + serializedName: "_etag", + readOnly: true, + type: { + name: "String", + }, + }, }, }, }; -export const CreateUpdateOptions: coreClient.CompositeMapper = { +export const OptionsResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CreateUpdateOptions", + className: "OptionsResource", modelProperties: { throughput: { serializedName: "throughput", @@ -1930,82 +1828,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", }, }, }, @@ -2129,10 +1982,10 @@ export const ThroughputPolicyResource: coreClient.CompositeMapper = { }, }; -export const ClientEncryptionKeysListResult: coreClient.CompositeMapper = { +export const SqlContainerListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClientEncryptionKeysListResult", + className: "SqlContainerListResult", modelProperties: { value: { serializedName: "value", @@ -2142,7 +1995,7 @@ export const ClientEncryptionKeysListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ClientEncryptionKeyGetResults", + className: "SqlContainerGetResults", }, }, }, @@ -2151,172 +2004,36 @@ 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", - }, - }, - }, - }, -}; - -export const KeyWrapMetadata: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KeyWrapMetadata", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - type: { - name: "String", - }, - }, - value: { - serializedName: "value", - type: { - name: "String", - }, - }, - algorithm: { - serializedName: "algorithm", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ARMProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ARMProxyResource", - modelProperties: { - id: { - serializedName: "id", - 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 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", + name: "Number", }, }, uniqueKeyPolicy: { @@ -2360,13 +2077,6 @@ export const SqlContainerResource: coreClient.CompositeMapper = { name: "String", }, }, - materializedViewDefinition: { - serializedName: "materializedViewDefinition", - type: { - name: "Composite", - className: "MaterializedViewDefinition", - }, - }, computedProperties: { serializedName: "computedProperties", type: { @@ -2379,6 +2089,13 @@ export const SqlContainerResource: coreClient.CompositeMapper = { }, }, }, + vectorEmbeddingPolicy: { + serializedName: "vectorEmbeddingPolicy", + type: { + name: "Composite", + className: "VectorEmbeddingPolicy", + }, + }, }, }, }; @@ -2454,6 +2171,18 @@ export const IndexingPolicy: coreClient.CompositeMapper = { }, }, }, + vectorIndexes: { + serializedName: "vectorIndexes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VectorIndex", + }, + }, + }, + }, }, }, }; @@ -2576,6 +2305,29 @@ export const SpatialSpec: coreClient.CompositeMapper = { }, }; +export const VectorIndex: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VectorIndex", + modelProperties: { + path: { + serializedName: "path", + required: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + export const ContainerPartitionKey: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2759,239 +2511,215 @@ export const ClientEncryptionIncludedPath: coreClient.CompositeMapper = { }, }; -export const MaterializedViewDefinition: coreClient.CompositeMapper = { +export const ComputedProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaterializedViewDefinition", + className: "ComputedProperty", modelProperties: { - sourceCollectionRid: { - serializedName: "sourceCollectionRid", - readOnly: true, + name: { + serializedName: "name", type: { name: "String", }, }, - sourceCollectionId: { - serializedName: "sourceCollectionId", - required: true, + query: { + serializedName: "query", type: { name: "String", }, }, - definition: { - serializedName: "definition", - required: true, + }, + }, +}; + +export const VectorEmbeddingPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VectorEmbeddingPolicy", + modelProperties: { + vectorEmbeddings: { + serializedName: "vectorEmbeddings", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VectorEmbedding", + }, + }, }, }, }, }, }; -export const ComputedProperty: coreClient.CompositeMapper = { +export const VectorEmbedding: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputedProperty", + className: "VectorEmbedding", modelProperties: { - name: { - serializedName: "name", + path: { + serializedName: "path", + required: true, type: { name: "String", }, }, - query: { - serializedName: "query", + dataType: { + serializedName: "dataType", + required: true, + type: { + name: "String", + }, + }, + distanceFunction: { + serializedName: "distanceFunction", + required: true, type: { name: "String", }, }, + dimensions: { + serializedName: "dimensions", + required: true, + type: { + name: "Number", + }, + }, }, }, }; -export const MergeParameters: coreClient.CompositeMapper = { +export const ClientEncryptionKeysListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MergeParameters", + className: "ClientEncryptionKeysListResult", modelProperties: { - isDryRun: { - serializedName: "isDryRun", + value: { + serializedName: "value", + readOnly: true, type: { - name: "Boolean", - }, - }, - }, - }, -}; - -export const PhysicalPartitionStorageInfoCollection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "PhysicalPartitionStorageInfoCollection", - modelProperties: { - physicalPartitionStorageInfoCollection: { - serializedName: "physicalPartitionStorageInfoCollection", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PhysicalPartitionStorageInfo", - }, + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ClientEncryptionKeyGetResults", }, }, }, }, }, - }; + }, +}; -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 = - { - type: { - name: "Composite", - className: "RetrieveThroughputPropertiesResource", - modelProperties: { - physicalPartitionIds: { - serializedName: "physicalPartitionIds", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PhysicalPartitionId", - }, - }, - }, +export const KeyWrapMetadata: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyWrapMetadata", + modelProperties: { + name: { + serializedName: "name", + type: { + 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", }, }, - }, - }, -}; - -export const PhysicalPartitionThroughputInfoProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "PhysicalPartitionThroughputInfoProperties", - modelProperties: { - physicalPartitionThroughputInfo: { - serializedName: "physicalPartitionThroughputInfo", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PhysicalPartitionThroughputInfoResource", - }, - }, - }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", }, }, - }, - }; - -export const PhysicalPartitionThroughputInfoResource: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "PhysicalPartitionThroughputInfoResource", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String", - }, - }, - throughput: { - serializedName: "throughput", - type: { - name: "Number", - }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const RedistributeThroughputPropertiesResource: coreClient.CompositeMapper = +export const ClientEncryptionKeyCreateUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RedistributeThroughputPropertiesResource", + className: "ClientEncryptionKeyCreateUpdateParameters", 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, + resource: { + serializedName: "properties.resource", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PhysicalPartitionThroughputInfoResource", - }, - }, + name: "Composite", + className: "ClientEncryptionKeyResource", }, }, }, @@ -3806,20 +3534,19 @@ export const LocationProperties: coreClient.CompositeMapper = { }, }; -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", }, }, }, @@ -3828,293 +3555,105 @@ 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, + restoreFromBackupId: { + serializedName: "restoreFromBackupId", type: { name: "String", }, }, - }, - }, -}; - -export const DataTransferJobProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataTransferJobProperties", - modelProperties: { - jobName: { - serializedName: "jobName", - readOnly: true, + delegatedManagementSubnetId: { + serializedName: "delegatedManagementSubnetId", type: { name: "String", }, }, - source: { - serializedName: "source", - type: { - name: "Composite", - className: "DataTransferDataSourceSink", - }, - }, - destination: { - serializedName: "destination", - type: { - name: "Composite", - className: "DataTransferDataSourceSink", - }, - }, - status: { - serializedName: "status", - readOnly: true, + cassandraVersion: { + serializedName: "cassandraVersion", type: { name: "String", }, }, - processedCount: { - serializedName: "processedCount", - readOnly: true, - type: { - name: "Number", - }, - }, - totalCount: { - serializedName: "totalCount", - readOnly: true, + clusterNameOverride: { + serializedName: "clusterNameOverride", type: { - name: "Number", + name: "String", }, }, - lastUpdatedUtcTime: { - serializedName: "lastUpdatedUtcTime", - readOnly: true, + authenticationMethod: { + serializedName: "authenticationMethod", type: { - name: "DateTime", + name: "String", }, }, - workerCount: { - constraints: { - InclusiveMinimum: 0, - }, - serializedName: "workerCount", + initialCassandraAdminPassword: { + serializedName: "initialCassandraAdminPassword", type: { - name: "Number", + name: "String", }, }, - error: { - serializedName: "error", + prometheusEndpoint: { + serializedName: "prometheusEndpoint", type: { name: "Composite", - className: "ErrorResponse", + className: "SeedNode", }, }, - duration: { - serializedName: "duration", - readOnly: true, + repairEnabled: { + serializedName: "repairEnabled", type: { - name: "String", + name: "Boolean", }, }, - mode: { - serializedName: "mode", + clientCertificates: { + serializedName: "clientCertificates", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Certificate", + }, + }, }, }, - }, - }, -}; - -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, + externalGossipCertificates: { + serializedName: "externalGossipCertificates", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Certificate", + }, + }, }, }, - }, - }, -}; - -export const DataTransferJobFeedResults: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataTransferJobFeedResults", - modelProperties: { - value: { - serializedName: "value", + gossipCertificates: { + serializedName: "gossipCertificates", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DataTransferJobGetResults", + className: "Certificate", }, }, }, }, - 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", - }, - }, - autoReplicate: { - serializedName: "autoReplicate", - type: { - name: "String", - }, - }, - clientCertificates: { - serializedName: "clientCertificates", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Certificate", - }, - }, - }, - }, - externalGossipCertificates: { - serializedName: "externalGossipCertificates", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Certificate", - }, - }, - }, - }, - gossipCertificates: { - serializedName: "gossipCertificates", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Certificate", - }, - }, - }, - }, - externalSeedNodes: { - serializedName: "externalSeedNodes", + externalSeedNodes: { + serializedName: "externalSeedNodes", type: { name: "Sequence", element: { @@ -4138,17 +3677,6 @@ export const ClusterResourceProperties: coreClient.CompositeMapper = { }, }, }, - externalDataCenters: { - serializedName: "externalDataCenters", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, hoursBetweenBackups: { serializedName: "hoursBetweenBackups", type: { @@ -4167,12 +3695,6 @@ export const ClusterResourceProperties: coreClient.CompositeMapper = { name: "Boolean", }, }, - clusterType: { - serializedName: "clusterType", - type: { - name: "String", - }, - }, provisionError: { serializedName: "provisionError", type: { @@ -4180,35 +3702,6 @@ export const ClusterResourceProperties: coreClient.CompositeMapper = { className: "CassandraError", }, }, - extensions: { - serializedName: "extensions", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - backupSchedules: { - serializedName: "backupSchedules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BackupSchedule", - }, - }, - }, - }, - scheduledEventStrategy: { - serializedName: "scheduledEventStrategy", - type: { - name: "String", - }, - }, azureConnectionMethod: { serializedName: "azureConnectionMethod", type: { @@ -4289,33 +3782,6 @@ export const CassandraError: coreClient.CompositeMapper = { }, }; -export const BackupSchedule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupSchedule", - modelProperties: { - scheduleName: { - serializedName: "scheduleName", - type: { - name: "String", - }, - }, - cronExpression: { - serializedName: "cronExpression", - type: { - name: "String", - }, - }, - retentionInHours: { - serializedName: "retentionInHours", - type: { - name: "Number", - }, - }, - }, - }, -}; - export const ManagedCassandraARMResourceProperties: coreClient.CompositeMapper = { type: { @@ -4413,7 +3879,7 @@ export const CommandPostBody: coreClient.CompositeMapper = { serializedName: "arguments", type: { name: "Dictionary", - value: { type: { name: "any" } }, + value: { type: { name: "String" } }, }, }, host: { @@ -4429,8 +3895,8 @@ export const CommandPostBody: coreClient.CompositeMapper = { name: "Boolean", }, }, - readWrite: { - serializedName: "readWrite", + readwrite: { + serializedName: "readwrite", type: { name: "Boolean", }, @@ -4454,243 +3920,90 @@ export const CommandOutput: coreClient.CompositeMapper = { }, }; -export const CommandPublicResource: coreClient.CompositeMapper = { +export const ListDataCenters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CommandPublicResource", + className: "ListDataCenters", modelProperties: { - command: { - serializedName: "command", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataCenterResource", + }, + }, }, }, - commandId: { - serializedName: "commandId", + }, + }, +}; + +export const DataCenterResourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataCenterResourceProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", type: { name: "String", }, }, - arguments: { - serializedName: "arguments", + dataCenterLocation: { + serializedName: "dataCenterLocation", type: { - name: "Dictionary", - value: { type: { name: "any" } }, + name: "String", }, }, - host: { - serializedName: "host", + delegatedSubnetId: { + serializedName: "delegatedSubnetId", type: { name: "String", }, }, - isAdmin: { - serializedName: "isAdmin", + nodeCount: { + serializedName: "nodeCount", type: { - name: "Boolean", + name: "Number", }, }, - cassandraStopStart: { - serializedName: "cassandraStopStart", + seedNodes: { + serializedName: "seedNodes", + readOnly: true, type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SeedNode", + }, + }, }, }, - readWrite: { - serializedName: "readWrite", + base64EncodedCassandraYamlFragment: { + serializedName: "base64EncodedCassandraYamlFragment", type: { - name: "Boolean", + name: "String", }, }, - result: { - serializedName: "result", + managedDiskCustomerKeyUri: { + serializedName: "managedDiskCustomerKeyUri", type: { name: "String", }, }, - status: { - serializedName: "status", + backupStorageCustomerKeyUri: { + serializedName: "backupStorageCustomerKeyUri", type: { name: "String", }, }, - outputFile: { - serializedName: "outputFile", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ListCommands: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListCommands", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CommandPublicResource", - }, - }, - }, - }, - }, - }, -}; - -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 BackupResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupResource", - modelProperties: { - backupId: { - serializedName: "backupId", - type: { - name: "String", - }, - }, - backupState: { - serializedName: "backupState", - type: { - name: "String", - }, - }, - backupStartTimestamp: { - serializedName: "backupStartTimestamp", - type: { - name: "DateTime", - }, - }, - backupStopTimestamp: { - serializedName: "backupStopTimestamp", - type: { - name: "DateTime", - }, - }, - backupExpiryTimestamp: { - serializedName: "backupExpiryTimestamp", - type: { - name: "DateTime", - }, - }, - }, - }, -}; - -export const ListDataCenters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListDataCenters", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataCenterResource", - }, - }, - }, - }, - }, - }, -}; - -export const DataCenterResourceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataCenterResourceProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - type: { - name: "String", - }, - }, - dataCenterLocation: { - serializedName: "dataCenterLocation", - type: { - name: "String", - }, - }, - delegatedSubnetId: { - serializedName: "delegatedSubnetId", - type: { - name: "String", - }, - }, - nodeCount: { - serializedName: "nodeCount", - type: { - name: "Number", - }, - }, - seedNodes: { - serializedName: "seedNodes", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SeedNode", - }, - }, - }, - }, - base64EncodedCassandraYamlFragment: { - serializedName: "base64EncodedCassandraYamlFragment", - type: { - name: "String", - }, - }, - managedDiskCustomerKeyUri: { - serializedName: "managedDiskCustomerKeyUri", - type: { - name: "String", - }, - }, - backupStorageCustomerKeyUri: { - serializedName: "backupStorageCustomerKeyUri", - type: { - name: "String", - }, - }, - sku: { - serializedName: "sku", + sku: { + serializedName: "sku", type: { name: "String", }, @@ -5086,12 +4399,6 @@ export const ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatace name: "Number", }, }, - isLatestModel: { - serializedName: "isLatestModel", - type: { - name: "Boolean", - }, - }, }, }, }; @@ -5314,155 +4621,85 @@ export const MongoUserDefinitionListResult: coreClient.CompositeMapper = { }, }; -export const NetworkSecurityPerimeterConfigurationListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "NetworkSecurityPerimeterConfigurationListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkSecurityPerimeterConfiguration", - }, +export const NotebookWorkspaceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotebookWorkspaceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NotebookWorkspace", }, }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, }, }, - }; + }, +}; -export const NetworkSecurityPerimeterConfigurationProperties: coreClient.CompositeMapper = +export const NotebookWorkspaceConnectionInfoResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkSecurityPerimeterConfigurationProperties", + className: "NotebookWorkspaceConnectionInfoResult", modelProperties: { - provisioningState: { - serializedName: "provisioningState", + authToken: { + serializedName: "authToken", readOnly: true, type: { name: "String", }, }, - provisioningIssues: { - serializedName: "provisioningIssues", + notebookServerEndpoint: { + serializedName: "notebookServerEndpoint", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ProvisioningIssue", - }, - }, - }, - }, - networkSecurityPerimeter: { - serializedName: "networkSecurityPerimeter", - type: { - name: "Composite", - className: "NetworkSecurityPerimeter", - }, - }, - resourceAssociation: { - serializedName: "resourceAssociation", - type: { - name: "Composite", - className: "ResourceAssociation", - }, - }, - profile: { - serializedName: "profile", - type: { - name: "Composite", - className: "NetworkSecurityProfile", + name: "String", }, }, }, }, }; -export const ProvisioningIssue: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProvisioningIssue", + className: "PrivateEndpointConnectionListResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - properties: { - serializedName: "properties", + value: { + serializedName: "value", type: { - name: "Composite", - className: "ProvisioningIssueProperties", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + }, + }, }, }, }, }, }; -export const ProvisioningIssueProperties: coreClient.CompositeMapper = { +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProvisioningIssueProperties", + className: "PrivateLinkResourceListResult", modelProperties: { - issueType: { - serializedName: "issueType", - readOnly: true, - type: { - name: "String", - }, - }, - severity: { - serializedName: "severity", - readOnly: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String", - }, - }, - suggestedResourceIds: { - serializedName: "suggestedResourceIds", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - suggestedAccessRules: { - serializedName: "suggestedAccessRules", - readOnly: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AccessRule", + className: "PrivateLinkResource", }, }, }, @@ -5471,41 +4708,13 @@ export const ProvisioningIssueProperties: coreClient.CompositeMapper = { }, }; -export const AccessRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessRule", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "AccessRuleProperties", - }, - }, - }, - }, -}; - -export const AccessRuleProperties: coreClient.CompositeMapper = { +export const Permission: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessRuleProperties", + className: "Permission", modelProperties: { - direction: { - serializedName: "direction", - type: { - name: "String", - }, - }, - addressPrefixes: { - serializedName: "addressPrefixes", + dataActions: { + serializedName: "dataActions", type: { name: "Sequence", element: { @@ -5515,59 +4724,131 @@ export const AccessRuleProperties: coreClient.CompositeMapper = { }, }, }, - subscriptions: { - serializedName: "subscriptions", + notDataActions: { + serializedName: "notDataActions", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AccessRulePropertiesSubscriptionsItem", + name: "String", }, }, }, }, - networkSecurityPerimeters: { - serializedName: "networkSecurityPerimeters", + }, + }, +}; + +export const SqlRoleDefinitionCreateUpdateParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SqlRoleDefinitionCreateUpdateParameters", + modelProperties: { + roleName: { + serializedName: "properties.roleName", + type: { + name: "String", + }, + }, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkSecurityPerimeter", + serializedName: "properties.type", + type: { + name: "Enum", + allowedValues: ["BuiltInRole", "CustomRole"], + }, + }, + assignableScopes: { + serializedName: "properties.assignableScopes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, }, }, }, - }, - fullyQualifiedDomainNames: { - serializedName: "fullyQualifiedDomainNames", - type: { - name: "Sequence", - element: { - type: { - name: "String", + permissions: { + serializedName: "properties.permissions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Permission", + }, }, }, }, }, - emailAddresses: { - serializedName: "emailAddresses", + }, + }; + +export const SqlRoleDefinitionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlRoleDefinitionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "SqlRoleDefinitionGetResults", }, }, }, }, - phoneNumbers: { - serializedName: "phoneNumbers", + }, + }, +}; + +export const SqlRoleAssignmentCreateUpdateParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SqlRoleAssignmentCreateUpdateParameters", + modelProperties: { + roleDefinitionId: { + serializedName: "properties.roleDefinitionId", + type: { + name: "String", + }, + }, + scope: { + serializedName: "properties.scope", + type: { + name: "String", + }, + }, + principalId: { + serializedName: "properties.principalId", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const SqlRoleAssignmentListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlRoleAssignmentListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "SqlRoleAssignmentGetResults", }, }, }, @@ -5576,112 +4857,101 @@ export const AccessRuleProperties: coreClient.CompositeMapper = { }, }; -export const AccessRulePropertiesSubscriptionsItem: coreClient.CompositeMapper = +export const RestorableDatabaseAccountsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessRulePropertiesSubscriptionsItem", + className: "RestorableDatabaseAccountsListResult", modelProperties: { - id: { - serializedName: "id", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableDatabaseAccountGetResult", + }, + }, }, }, }, }, }; -export const NetworkSecurityPerimeter: coreClient.CompositeMapper = { +export const RestorableDatabaseAccountGetResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkSecurityPerimeter", + className: "RestorableDatabaseAccountGetResult", modelProperties: { id: { serializedName: "id", + readOnly: true, type: { name: "String", }, }, - perimeterGuid: { - serializedName: "perimeterGuid", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Uuid", + name: "String", }, }, - location: { - serializedName: "location", + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const ResourceAssociation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceAssociation", - modelProperties: { - name: { - serializedName: "name", + location: { + serializedName: "location", type: { name: "String", }, }, - accessMode: { - serializedName: "accessMode", + accountName: { + serializedName: "properties.accountName", type: { name: "String", }, }, - }, - }, -}; - -export const NetworkSecurityProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkSecurityProfile", - modelProperties: { - name: { - serializedName: "name", + creationTime: { + serializedName: "properties.creationTime", type: { - name: "String", + name: "DateTime", }, }, - accessRulesVersion: { - serializedName: "accessRulesVersion", + deletionTime: { + serializedName: "properties.deletionTime", type: { - name: "Number", + name: "DateTime", }, }, - accessRules: { - serializedName: "accessRules", + oldestRestorableTime: { + serializedName: "properties.oldestRestorableTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessRule", - }, - }, + name: "DateTime", }, }, - diagnosticSettingsVersion: { - serializedName: "diagnosticSettingsVersion", + apiType: { + serializedName: "properties.apiType", + readOnly: true, type: { - name: "Number", + name: "String", }, }, - enabledLogCategories: { - serializedName: "enabledLogCategories", + restorableLocations: { + serializedName: "properties.restorableLocations", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "RestorableLocationResource", }, }, }, @@ -5690,85 +4960,103 @@ export const NetworkSecurityProfile: coreClient.CompositeMapper = { }, }; -export const NotebookWorkspaceListResult: coreClient.CompositeMapper = { +export const RestorableLocationResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookWorkspaceListResult", + className: "RestorableLocationResource", modelProperties: { - value: { - serializedName: "value", + locationName: { + serializedName: "locationName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NotebookWorkspace", - }, - }, + name: "String", }, }, - }, - }, -}; - -export const NotebookWorkspaceConnectionInfoResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "NotebookWorkspaceConnectionInfoResult", - modelProperties: { - authToken: { - serializedName: "authToken", - readOnly: true, - type: { - name: "String", - }, + regionalDatabaseAccountInstanceId: { + serializedName: "regionalDatabaseAccountInstanceId", + readOnly: true, + type: { + name: "String", }, - notebookServerEndpoint: { - serializedName: "notebookServerEndpoint", - readOnly: true, - type: { - name: "String", - }, + }, + creationTime: { + serializedName: "creationTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + deletionTime: { + serializedName: "deletionTime", + readOnly: true, + type: { + name: "DateTime", }, }, }, - }; + }, +}; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const ContinuousBackupRestoreLocation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "ContinuousBackupRestoreLocation", modelProperties: { - value: { - serializedName: "value", + location: { + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - }, - }, + name: "String", }, }, }, }, }; -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { +export const BackupInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "BackupInformation", + modelProperties: { + continuousBackupInformation: { + serializedName: "continuousBackupInformation", + type: { + name: "Composite", + className: "ContinuousBackupInformation", + }, + }, + }, + }, +}; + +export const ContinuousBackupInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContinuousBackupInformation", + modelProperties: { + latestRestorableTimestamp: { + serializedName: "latestRestorableTimestamp", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const RestorableSqlDatabasesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableSqlDatabasesListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkResource", + className: "RestorableSqlDatabaseGetResult", }, }, }, @@ -5777,137 +5065,113 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { }, }; -export const Permission: coreClient.CompositeMapper = { +export const RestorableSqlDatabaseGetResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Permission", + className: "RestorableSqlDatabaseGetResult", modelProperties: { - dataActions: { - serializedName: "dataActions", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - notDataActions: { - serializedName: "notDataActions", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + resource: { + serializedName: "properties.resource", + type: { + name: "Composite", + className: "RestorableSqlDatabasePropertiesResource", }, }, }, }, }; -export const SqlRoleDefinitionCreateUpdateParameters: coreClient.CompositeMapper = +export const RestorableSqlDatabasePropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlRoleDefinitionCreateUpdateParameters", + className: "RestorableSqlDatabasePropertiesResource", modelProperties: { - roleName: { - serializedName: "properties.roleName", + rid: { + serializedName: "_rid", + readOnly: true, type: { name: "String", }, }, - type: { - serializedName: "properties.type", + operationType: { + serializedName: "operationType", + readOnly: true, type: { - name: "Enum", - allowedValues: ["BuiltInRole", "CustomRole"], + name: "String", }, }, - assignableScopes: { - serializedName: "properties.assignableScopes", + canUndelete: { + serializedName: "canUndelete", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - permissions: { - serializedName: "properties.permissions", + canUndeleteReason: { + serializedName: "canUndeleteReason", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Permission", - }, - }, + name: "String", }, }, - }, - }, - }; - -export const SqlRoleDefinitionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlRoleDefinitionListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlRoleDefinitionGetResults", - }, + eventTimestamp: { + serializedName: "eventTimestamp", + readOnly: true, + type: { + name: "String", }, }, - }, - }, - }, -}; - -export const SqlRoleAssignmentCreateUpdateParameters: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SqlRoleAssignmentCreateUpdateParameters", - modelProperties: { - roleDefinitionId: { - serializedName: "properties.roleDefinitionId", + ownerId: { + serializedName: "ownerId", + readOnly: true, type: { name: "String", }, }, - scope: { - serializedName: "properties.scope", + ownerResourceId: { + serializedName: "ownerResourceId", + readOnly: true, type: { name: "String", }, }, - principalId: { - serializedName: "properties.principalId", + database: { + serializedName: "database", type: { - name: "String", + name: "Composite", + className: "RestorableSqlDatabasePropertiesResourceDatabase", }, }, }, }, }; -export const SqlRoleAssignmentListResult: coreClient.CompositeMapper = { +export const RestorableSqlContainersListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlRoleAssignmentListResult", + className: "RestorableSqlContainersListResult", modelProperties: { value: { serializedName: "value", @@ -5917,7 +5181,7 @@ export const SqlRoleAssignmentListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SqlRoleAssignmentGetResults", + className: "RestorableSqlContainerGetResult", }, }, }, @@ -5926,33 +5190,10 @@ export const SqlRoleAssignmentListResult: coreClient.CompositeMapper = { }, }; -export const RestorableDatabaseAccountsListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RestorableDatabaseAccountsListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableDatabaseAccountGetResult", - }, - }, - }, - }, - }, - }, - }; - -export const RestorableDatabaseAccountGetResult: coreClient.CompositeMapper = { +export const RestorableSqlContainerGetResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDatabaseAccountGetResult", + className: "RestorableSqlContainerGetResult", modelProperties: { id: { serializedName: "id", @@ -5975,52 +5216,97 @@ export const RestorableDatabaseAccountGetResult: coreClient.CompositeMapper = { name: "String", }, }, - location: { - serializedName: "location", + resource: { + serializedName: "properties.resource", type: { - name: "String", + name: "Composite", + className: "RestorableSqlContainerPropertiesResource", }, }, - accountName: { - serializedName: "properties.accountName", - type: { - name: "String", + }, + }, +}; + +export const RestorableSqlContainerPropertiesResource: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RestorableSqlContainerPropertiesResource", + modelProperties: { + rid: { + serializedName: "_rid", + readOnly: true, + type: { + name: "String", + }, }, - }, - creationTime: { - serializedName: "properties.creationTime", - type: { - name: "DateTime", + operationType: { + serializedName: "operationType", + readOnly: true, + type: { + name: "String", + }, }, - }, - oldestRestorableTime: { - serializedName: "properties.oldestRestorableTime", - type: { - name: "DateTime", + canUndelete: { + serializedName: "canUndelete", + readOnly: true, + type: { + name: "String", + }, }, - }, - deletionTime: { - serializedName: "properties.deletionTime", - type: { - name: "DateTime", + canUndeleteReason: { + serializedName: "canUndeleteReason", + readOnly: true, + type: { + name: "String", + }, }, - }, - apiType: { - serializedName: "properties.apiType", - readOnly: true, - type: { - name: "String", + eventTimestamp: { + serializedName: "eventTimestamp", + readOnly: true, + type: { + name: "String", + }, + }, + ownerId: { + serializedName: "ownerId", + readOnly: true, + type: { + name: "String", + }, + }, + ownerResourceId: { + serializedName: "ownerResourceId", + readOnly: true, + type: { + name: "String", + }, + }, + container: { + serializedName: "container", + type: { + name: "Composite", + className: "RestorableSqlContainerPropertiesResourceContainer", + }, }, }, - restorableLocations: { - serializedName: "properties.restorableLocations", + }, + }; + +export const RestorableSqlResourcesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableSqlResourcesListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RestorableLocationResource", + className: "RestorableSqlResourcesGetResult", }, }, }, @@ -6029,103 +5315,45 @@ export const RestorableDatabaseAccountGetResult: coreClient.CompositeMapper = { }, }; -export const RestorableLocationResource: coreClient.CompositeMapper = { +export const RestorableSqlResourcesGetResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableLocationResource", + className: "RestorableSqlResourcesGetResult", modelProperties: { - locationName: { - serializedName: "locationName", + id: { + serializedName: "id", readOnly: true, type: { name: "String", }, }, - regionalDatabaseAccountInstanceId: { - serializedName: "regionalDatabaseAccountInstanceId", + name: { + serializedName: "name", readOnly: true, type: { name: "String", }, }, - creationTime: { - serializedName: "creationTime", - readOnly: true, - type: { - name: "DateTime", - }, - }, - deletionTime: { - serializedName: "deletionTime", + type: { + serializedName: "type", readOnly: true, - type: { - name: "DateTime", - }, - }, - }, - }, -}; - -export const ContinuousBackupRestoreLocation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ContinuousBackupRestoreLocation", - modelProperties: { - location: { - serializedName: "location", type: { name: "String", }, }, - }, - }, -}; - -export const BackupInformation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupInformation", - modelProperties: { - continuousBackupInformation: { - serializedName: "continuousBackupInformation", - type: { - name: "Composite", - className: "ContinuousBackupInformation", - }, - }, - }, - }, -}; - -export const ContinuousBackupInformation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ContinuousBackupInformation", - modelProperties: { - latestRestorableTimestamp: { - serializedName: "latestRestorableTimestamp", + databaseName: { + serializedName: "databaseName", type: { name: "String", }, }, - }, - }, -}; - -export const RestorableSqlDatabasesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorableSqlDatabasesListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + collectionNames: { + serializedName: "collectionNames", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RestorableSqlDatabaseGetResult", + name: "String", }, }, }, @@ -6134,10 +5362,33 @@ export const RestorableSqlDatabasesListResult: coreClient.CompositeMapper = { }, }; -export const RestorableSqlDatabaseGetResult: coreClient.CompositeMapper = { +export const RestorableMongodbDatabasesListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RestorableMongodbDatabasesListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableMongodbDatabaseGetResult", + }, + }, + }, + }, + }, + }, + }; + +export const RestorableMongodbDatabaseGetResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableSqlDatabaseGetResult", + className: "RestorableMongodbDatabaseGetResult", modelProperties: { id: { serializedName: "id", @@ -6164,18 +5415,18 @@ export const RestorableSqlDatabaseGetResult: coreClient.CompositeMapper = { serializedName: "properties.resource", type: { name: "Composite", - className: "RestorableSqlDatabasePropertiesResource", + className: "RestorableMongodbDatabasePropertiesResource", }, }, }, }, }; -export const RestorableSqlDatabasePropertiesResource: coreClient.CompositeMapper = +export const RestorableMongodbDatabasePropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableSqlDatabasePropertiesResource", + className: "RestorableMongodbDatabasePropertiesResource", modelProperties: { rid: { serializedName: "_rid", @@ -6226,81 +5477,76 @@ export const RestorableSqlDatabasePropertiesResource: coreClient.CompositeMapper name: "String", }, }, - database: { - serializedName: "database", + }, + }, + }; + +export const RestorableMongodbCollectionsListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RestorableMongodbCollectionsListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "Composite", - className: "RestorableSqlDatabasePropertiesResourceDatabase", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableMongodbCollectionGetResult", + }, + }, }, }, }, }, }; -export const RestorableSqlContainersListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorableSqlContainersListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableSqlContainerGetResult", - }, +export const RestorableMongodbCollectionGetResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RestorableMongodbCollectionGetResult", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", }, }, - }, - }, - }, -}; - -export const RestorableSqlContainerGetResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorableSqlContainerGetResult", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, }, - }, - type: { - serializedName: "type", - readOnly: true, type: { - name: "String", + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, }, - }, - resource: { - serializedName: "properties.resource", - type: { - name: "Composite", - className: "RestorableSqlContainerPropertiesResource", + resource: { + serializedName: "properties.resource", + type: { + name: "Composite", + className: "RestorableMongodbCollectionPropertiesResource", + }, }, }, }, - }, -}; + }; -export const RestorableSqlContainerPropertiesResource: coreClient.CompositeMapper = +export const RestorableMongodbCollectionPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableSqlContainerPropertiesResource", + className: "RestorableMongodbCollectionPropertiesResource", modelProperties: { rid: { serializedName: "_rid", @@ -6351,43 +5597,37 @@ export const RestorableSqlContainerPropertiesResource: coreClient.CompositeMappe name: "String", }, }, - container: { - serializedName: "container", - type: { - name: "Composite", - className: "RestorableSqlContainerPropertiesResourceContainer", - }, - }, }, }, }; -export const RestorableSqlResourcesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorableSqlResourcesListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableSqlResourcesGetResult", +export const RestorableMongodbResourcesListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RestorableMongodbResourcesListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableMongodbResourcesGetResult", + }, }, }, }, }, }, - }, -}; + }; -export const RestorableSqlResourcesGetResult: coreClient.CompositeMapper = { +export const RestorableMongodbResourcesGetResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableSqlResourcesGetResult", + className: "RestorableMongodbResourcesGetResult", modelProperties: { id: { serializedName: "id", @@ -6431,11 +5671,11 @@ export const RestorableSqlResourcesGetResult: coreClient.CompositeMapper = { }, }; -export const RestorableMongodbDatabasesListResult: coreClient.CompositeMapper = +export const RestorableGremlinDatabasesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableMongodbDatabasesListResult", + className: "RestorableGremlinDatabasesListResult", modelProperties: { value: { serializedName: "value", @@ -6445,7 +5685,7 @@ export const RestorableMongodbDatabasesListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "RestorableMongodbDatabaseGetResult", + className: "RestorableGremlinDatabaseGetResult", }, }, }, @@ -6454,10 +5694,10 @@ export const RestorableMongodbDatabasesListResult: coreClient.CompositeMapper = }, }; -export const RestorableMongodbDatabaseGetResult: coreClient.CompositeMapper = { +export const RestorableGremlinDatabaseGetResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableMongodbDatabaseGetResult", + className: "RestorableGremlinDatabaseGetResult", modelProperties: { id: { serializedName: "id", @@ -6484,18 +5724,18 @@ export const RestorableMongodbDatabaseGetResult: coreClient.CompositeMapper = { serializedName: "properties.resource", type: { name: "Composite", - className: "RestorableMongodbDatabasePropertiesResource", + className: "RestorableGremlinDatabasePropertiesResource", }, }, }, }, }; -export const RestorableMongodbDatabasePropertiesResource: coreClient.CompositeMapper = +export const RestorableGremlinDatabasePropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableMongodbDatabasePropertiesResource", + className: "RestorableGremlinDatabasePropertiesResource", modelProperties: { rid: { serializedName: "_rid", @@ -6550,72 +5790,70 @@ export const RestorableMongodbDatabasePropertiesResource: coreClient.CompositeMa }, }; -export const RestorableMongodbCollectionsListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RestorableMongodbCollectionsListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableMongodbCollectionGetResult", - }, +export const RestorableGremlinGraphsListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableGremlinGraphsListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableGremlinGraphGetResult", }, }, }, }, }, - }; + }, +}; -export const RestorableMongodbCollectionGetResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RestorableMongodbCollectionGetResult", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, +export const RestorableGremlinGraphGetResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableGremlinGraphGetResult", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", }, + }, + type: { + serializedName: "type", + readOnly: true, type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, + name: "String", }, - resource: { - serializedName: "properties.resource", - type: { - name: "Composite", - className: "RestorableMongodbCollectionPropertiesResource", - }, + }, + resource: { + serializedName: "properties.resource", + type: { + name: "Composite", + className: "RestorableGremlinGraphPropertiesResource", }, }, }, - }; + }, +}; -export const RestorableMongodbCollectionPropertiesResource: coreClient.CompositeMapper = +export const RestorableGremlinGraphPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableMongodbCollectionPropertiesResource", + className: "RestorableGremlinGraphPropertiesResource", modelProperties: { rid: { serializedName: "_rid", @@ -6670,11 +5908,11 @@ export const RestorableMongodbCollectionPropertiesResource: coreClient.Composite }, }; -export const RestorableMongodbResourcesListResult: coreClient.CompositeMapper = +export const RestorableGremlinResourcesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableMongodbResourcesListResult", + className: "RestorableGremlinResourcesListResult", modelProperties: { value: { serializedName: "value", @@ -6684,7 +5922,7 @@ export const RestorableMongodbResourcesListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "RestorableMongodbResourcesGetResult", + className: "RestorableGremlinResourcesGetResult", }, }, }, @@ -6693,10 +5931,10 @@ export const RestorableMongodbResourcesListResult: coreClient.CompositeMapper = }, }; -export const RestorableMongodbResourcesGetResult: coreClient.CompositeMapper = { +export const RestorableGremlinResourcesGetResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableMongodbResourcesGetResult", + className: "RestorableGremlinResourcesGetResult", modelProperties: { id: { serializedName: "id", @@ -6725,8 +5963,8 @@ export const RestorableMongodbResourcesGetResult: coreClient.CompositeMapper = { name: "String", }, }, - collectionNames: { - serializedName: "collectionNames", + graphNames: { + serializedName: "graphNames", type: { name: "Sequence", element: { @@ -6740,129 +5978,10 @@ export const RestorableMongodbResourcesGetResult: coreClient.CompositeMapper = { }, }; -export const RestorableGremlinDatabasesListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RestorableGremlinDatabasesListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableGremlinDatabaseGetResult", - }, - }, - }, - }, - }, - }, - }; - -export const RestorableGremlinDatabaseGetResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorableGremlinDatabaseGetResult", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - resource: { - serializedName: "properties.resource", - type: { - name: "Composite", - className: "RestorableGremlinDatabasePropertiesResource", - }, - }, - }, - }, -}; - -export const RestorableGremlinDatabasePropertiesResource: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RestorableGremlinDatabasePropertiesResource", - modelProperties: { - rid: { - serializedName: "_rid", - readOnly: true, - type: { - name: "String", - }, - }, - operationType: { - serializedName: "operationType", - readOnly: true, - type: { - name: "String", - }, - }, - canUndelete: { - serializedName: "canUndelete", - readOnly: true, - type: { - name: "String", - }, - }, - canUndeleteReason: { - serializedName: "canUndeleteReason", - readOnly: true, - type: { - name: "String", - }, - }, - eventTimestamp: { - serializedName: "eventTimestamp", - readOnly: true, - type: { - name: "String", - }, - }, - ownerId: { - serializedName: "ownerId", - readOnly: true, - type: { - name: "String", - }, - }, - ownerResourceId: { - serializedName: "ownerResourceId", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const RestorableGremlinGraphsListResult: coreClient.CompositeMapper = { +export const RestorableTablesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableGremlinGraphsListResult", + className: "RestorableTablesListResult", modelProperties: { value: { serializedName: "value", @@ -6872,7 +5991,7 @@ export const RestorableGremlinGraphsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorableGremlinGraphGetResult", + className: "RestorableTableGetResult", }, }, }, @@ -6881,10 +6000,10 @@ export const RestorableGremlinGraphsListResult: coreClient.CompositeMapper = { }, }; -export const RestorableGremlinGraphGetResult: coreClient.CompositeMapper = { +export const RestorableTableGetResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableGremlinGraphGetResult", + className: "RestorableTableGetResult", modelProperties: { id: { serializedName: "id", @@ -6911,146 +6030,75 @@ export const RestorableGremlinGraphGetResult: coreClient.CompositeMapper = { serializedName: "properties.resource", type: { name: "Composite", - className: "RestorableGremlinGraphPropertiesResource", + className: "RestorableTablePropertiesResource", }, }, }, }, }; -export const RestorableGremlinGraphPropertiesResource: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RestorableGremlinGraphPropertiesResource", - modelProperties: { - rid: { - serializedName: "_rid", - readOnly: true, - type: { - name: "String", - }, - }, - operationType: { - serializedName: "operationType", - readOnly: true, - type: { - name: "String", - }, - }, - canUndelete: { - serializedName: "canUndelete", - readOnly: true, - type: { - name: "String", - }, - }, - canUndeleteReason: { - serializedName: "canUndeleteReason", - readOnly: true, - type: { - name: "String", - }, - }, - eventTimestamp: { - serializedName: "eventTimestamp", - readOnly: true, - type: { - name: "String", - }, - }, - ownerId: { - serializedName: "ownerId", - readOnly: true, - type: { - name: "String", - }, - }, - ownerResourceId: { - serializedName: "ownerResourceId", - readOnly: true, - type: { - name: "String", - }, +export const RestorableTablePropertiesResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableTablePropertiesResource", + modelProperties: { + rid: { + serializedName: "_rid", + readOnly: true, + type: { + name: "String", }, }, - }, - }; - -export const RestorableGremlinResourcesListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RestorableGremlinResourcesListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableGremlinResourcesGetResult", - }, - }, - }, + operationType: { + serializedName: "operationType", + readOnly: true, + type: { + name: "String", }, }, - }, - }; - -export const RestorableGremlinResourcesGetResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorableGremlinResourcesGetResult", - modelProperties: { - id: { - serializedName: "id", + canUndelete: { + serializedName: "canUndelete", readOnly: true, type: { name: "String", }, }, - name: { - serializedName: "name", + canUndeleteReason: { + serializedName: "canUndeleteReason", readOnly: true, type: { name: "String", }, }, - type: { - serializedName: "type", + eventTimestamp: { + serializedName: "eventTimestamp", readOnly: true, type: { name: "String", }, }, - databaseName: { - serializedName: "databaseName", + ownerId: { + serializedName: "ownerId", + readOnly: true, type: { name: "String", }, }, - graphNames: { - serializedName: "graphNames", + ownerResourceId: { + serializedName: "ownerResourceId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, }, }, }; -export const RestorableTablesListResult: coreClient.CompositeMapper = { +export const RestorableTableResourcesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableTablesListResult", + className: "RestorableTableResourcesListResult", modelProperties: { value: { serializedName: "value", @@ -7060,7 +6108,7 @@ export const RestorableTablesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorableTableGetResult", + className: "RestorableTableResourcesGetResult", }, }, }, @@ -7069,127 +6117,10 @@ export const RestorableTablesListResult: coreClient.CompositeMapper = { }, }; -export const RestorableTableGetResult: coreClient.CompositeMapper = { +export const RestorableTableResourcesGetResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableTableGetResult", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - resource: { - serializedName: "properties.resource", - type: { - name: "Composite", - className: "RestorableTablePropertiesResource", - }, - }, - }, - }, -}; - -export const RestorableTablePropertiesResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorableTablePropertiesResource", - modelProperties: { - rid: { - serializedName: "_rid", - readOnly: true, - type: { - name: "String", - }, - }, - operationType: { - serializedName: "operationType", - readOnly: true, - type: { - name: "String", - }, - }, - canUndelete: { - serializedName: "canUndelete", - readOnly: true, - type: { - name: "String", - }, - }, - canUndeleteReason: { - serializedName: "canUndeleteReason", - readOnly: true, - type: { - name: "String", - }, - }, - eventTimestamp: { - serializedName: "eventTimestamp", - readOnly: true, - type: { - name: "String", - }, - }, - ownerId: { - serializedName: "ownerId", - readOnly: true, - type: { - name: "String", - }, - }, - ownerResourceId: { - serializedName: "ownerResourceId", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const RestorableTableResourcesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorableTableResourcesListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableTableResourcesGetResult", - }, - }, - }, - }, - }, - }, -}; - -export const RestorableTableResourcesGetResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorableTableResourcesGetResult", + className: "RestorableTableResourcesGetResult", modelProperties: { id: { serializedName: "id", @@ -7344,114 +6275,6 @@ export const ServiceResourceCreateUpdateProperties: coreClient.CompositeMapper = }, }; -export const ThroughputPoolsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ThroughputPoolsListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ThroughputPoolResource", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ThroughputPoolUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ThroughputPoolUpdate", - modelProperties: { - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String", - }, - }, - maxThroughput: { - serializedName: "properties.maxThroughput", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const ThroughputPoolAccountsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ThroughputPoolAccountsListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ThroughputPoolAccountResource", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ChaosFaultListResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ChaosFaultListResponse", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ChaosFaultResource", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - export const PeriodicModeProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7595,35 +6418,6 @@ export const MaterializedViewsBuilderServiceResource: coreClient.CompositeMapper }, }; -export const ThroughputPoolAccountCreateParameters: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ThroughputPoolAccountCreateParameters", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - accountResourceIdentifier: { - serializedName: "properties.accountResourceIdentifier", - type: { - name: "String", - }, - }, - accountLocation: { - serializedName: "properties.accountLocation", - type: { - name: "String", - }, - }, - }, - }, - }; - export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7634,30 +6428,6 @@ export const ProxyResource: coreClient.CompositeMapper = { }, }; -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - export const RestoreParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7705,12 +6475,6 @@ export const RestoreParameters: coreClient.CompositeMapper = { }, }, }, - sourceBackupLocation: { - serializedName: "sourceBackupLocation", - type: { - name: "String", - }, - }, }, }, }; @@ -7777,6 +6541,13 @@ export const DatabaseAccountGetResults: coreClient.CompositeMapper = { name: "String", }, }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity", + }, + }, systemData: { serializedName: "systemData", type: { @@ -8052,13 +6823,6 @@ export const DatabaseAccountGetResults: coreClient.CompositeMapper = { }, }, }, - diagnosticLogSettings: { - serializedName: "properties.diagnosticLogSettings", - type: { - name: "Composite", - className: "DiagnosticLogSettings", - }, - }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", type: { @@ -8072,25 +6836,6 @@ export const DatabaseAccountGetResults: coreClient.CompositeMapper = { className: "Capacity", }, }, - capacityMode: { - serializedName: "properties.capacityMode", - type: { - name: "String", - }, - }, - capacityModeChangeTransitionState: { - serializedName: "properties.capacityModeChangeTransitionState", - type: { - name: "Composite", - className: "CapacityModeChangeTransitionState", - }, - }, - enableMaterializedViews: { - serializedName: "properties.enableMaterializedViews", - type: { - name: "Boolean", - }, - }, keysMetadata: { serializedName: "properties.keysMetadata", type: { @@ -8104,32 +6849,20 @@ export const DatabaseAccountGetResults: coreClient.CompositeMapper = { name: "Boolean", }, }, - enableBurstCapacity: { - serializedName: "properties.enableBurstCapacity", - type: { - name: "Boolean", - }, - }, minimalTlsVersion: { serializedName: "properties.minimalTlsVersion", type: { name: "String", }, }, - customerManagedKeyStatus: { - serializedName: "properties.customerManagedKeyStatus", - type: { - name: "String", - }, - }, - enablePriorityBasedExecution: { - serializedName: "properties.enablePriorityBasedExecution", + enableBurstCapacity: { + serializedName: "properties.enableBurstCapacity", type: { name: "Boolean", }, }, - defaultPriorityLevel: { - serializedName: "properties.defaultPriorityLevel", + customerManagedKeyStatus: { + serializedName: "properties.customerManagedKeyStatus", type: { name: "String", }, @@ -8157,6 +6890,13 @@ export const DatabaseAccountCreateUpdateParameters: coreClient.CompositeMapper = name: "String", }, }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity", + }, + }, consistencyPolicy: { serializedName: "properties.consistencyPolicy", type: { @@ -8345,13 +7085,6 @@ export const DatabaseAccountCreateUpdateParameters: coreClient.CompositeMapper = }, }, }, - diagnosticLogSettings: { - serializedName: "properties.diagnosticLogSettings", - type: { - name: "Composite", - className: "DiagnosticLogSettings", - }, - }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", type: { @@ -8372,18 +7105,6 @@ export const DatabaseAccountCreateUpdateParameters: coreClient.CompositeMapper = className: "Capacity", }, }, - capacityMode: { - serializedName: "properties.capacityMode", - type: { - name: "String", - }, - }, - enableMaterializedViews: { - serializedName: "properties.enableMaterializedViews", - type: { - name: "Boolean", - }, - }, keysMetadata: { serializedName: "properties.keysMetadata", type: { @@ -8397,32 +7118,20 @@ export const DatabaseAccountCreateUpdateParameters: coreClient.CompositeMapper = name: "Boolean", }, }, - enableBurstCapacity: { - serializedName: "properties.enableBurstCapacity", - type: { - name: "Boolean", - }, - }, minimalTlsVersion: { serializedName: "properties.minimalTlsVersion", type: { name: "String", }, }, - customerManagedKeyStatus: { - serializedName: "properties.customerManagedKeyStatus", - type: { - name: "String", - }, - }, - enablePriorityBasedExecution: { - serializedName: "properties.enablePriorityBasedExecution", + enableBurstCapacity: { + serializedName: "properties.enableBurstCapacity", type: { name: "Boolean", }, }, - defaultPriorityLevel: { - serializedName: "properties.defaultPriorityLevel", + customerManagedKeyStatus: { + serializedName: "properties.customerManagedKeyStatus", type: { name: "String", }, @@ -8437,54 +7146,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", @@ -8615,59 +7276,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", @@ -9134,54 +7742,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", @@ -9313,196 +7873,85 @@ 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 = { - type: { - name: "Composite", - className: "GraphResourceGetPropertiesOptions", - modelProperties: { - ...OptionsResource.type.modelProperties, +export const RestorableSqlDatabasePropertiesResourceDatabase: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RestorableSqlDatabasePropertiesResourceDatabase", + 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 = { - type: { - name: "Composite", - className: "SqlDatabaseGetPropertiesOptions", - modelProperties: { - ...OptionsResource.type.modelProperties, - }, - }, -}; - -export const SqlContainerGetPropertiesOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlContainerGetPropertiesOptions", - modelProperties: { - ...OptionsResource.type.modelProperties, - }, - }, -}; - -export const MongoDBDatabaseGetPropertiesOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MongoDBDatabaseGetPropertiesOptions", - modelProperties: { - ...OptionsResource.type.modelProperties, - }, - }, -}; - -export const MongoDBCollectionGetPropertiesOptions: 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 = +export const ThroughputSettingsGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraKeyspaceGetPropertiesOptions", + className: "ThroughputSettingsGetPropertiesResource", modelProperties: { - ...OptionsResource.type.modelProperties, + ...ThroughputSettingsResource.type.modelProperties, + ...ExtendedResourceProperties.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", - modelProperties: { - ...OptionsResource.type.modelProperties, - }, - }, -}; - -export const GremlinGraphGetPropertiesOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GremlinGraphGetPropertiesOptions", - modelProperties: { - ...OptionsResource.type.modelProperties, - }, - }, -}; - -export const CassandraViewGetPropertiesOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CassandraViewGetPropertiesOptions", - modelProperties: { - ...OptionsResource.type.modelProperties, - }, - }, -}; - -export const SqlDatabaseGetPropertiesResource: coreClient.CompositeMapper = { +export const SqlContainerGetPropertiesResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlDatabaseGetPropertiesResource", + className: "SqlContainerGetPropertiesResource", modelProperties: { - ...SqlDatabaseResource.type.modelProperties, + ...SqlContainerResource.type.modelProperties, ...ExtendedResourceProperties.type.modelProperties, - colls: { - serializedName: "_colls", - type: { - name: "String", - }, - }, - users: { - serializedName: "_users", - type: { - name: "String", - }, - }, }, }, }; -export const RestorableSqlDatabasePropertiesResourceDatabase: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RestorableSqlDatabasePropertiesResourceDatabase", - 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 ThroughputSettingsGetPropertiesResource: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ThroughputSettingsGetPropertiesResource", - modelProperties: { - ...ThroughputSettingsResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties, - }, - }, - }; - export const ClientEncryptionKeyGetPropertiesResource: coreClient.CompositeMapper = { type: { @@ -9515,17 +7964,6 @@ export const ClientEncryptionKeyGetPropertiesResource: coreClient.CompositeMappe }, }; -export const SqlContainerGetPropertiesResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlContainerGetPropertiesResource", - modelProperties: { - ...SqlContainerResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties, - }, - }, -}; - export const SqlStoredProcedureGetPropertiesResource: coreClient.CompositeMapper = { type: { @@ -9642,17 +8080,6 @@ export const GremlinGraphGetPropertiesResource: coreClient.CompositeMapper = { }, }; -export const CassandraViewGetPropertiesResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CassandraViewGetPropertiesResource", - modelProperties: { - ...CassandraViewResource.type.modelProperties, - ...ExtendedResourceProperties.type.modelProperties, - }, - }, -}; - export const RestorableSqlContainerPropertiesResourceContainer: coreClient.CompositeMapper = { type: { @@ -9672,139 +8099,126 @@ export const RestorableSqlContainerPropertiesResourceContainer: coreClient.Compo }, }; -export const ClientEncryptionKeyGetResults: coreClient.CompositeMapper = { +export const SqlDatabaseGetPropertiesOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClientEncryptionKeyGetResults", + className: "SqlDatabaseGetPropertiesOptions", modelProperties: { - ...ARMProxyResource.type.modelProperties, - resource: { - serializedName: "properties.resource", - type: { - name: "Composite", - className: "ClientEncryptionKeyGetPropertiesResource", - }, - }, + ...OptionsResource.type.modelProperties, }, }, }; -export const LocationGetResult: coreClient.CompositeMapper = { +export const SqlContainerGetPropertiesOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LocationGetResult", + className: "SqlContainerGetPropertiesOptions", modelProperties: { - ...ARMProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "LocationProperties", - }, - }, + ...OptionsResource.type.modelProperties, }, }, }; -export const CreateJobRequest: coreClient.CompositeMapper = { +export const MongoDBDatabaseGetPropertiesOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CreateJobRequest", + className: "MongoDBDatabaseGetPropertiesOptions", modelProperties: { - ...ARMProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DataTransferJobProperties", - }, - }, + ...OptionsResource.type.modelProperties, }, }, }; -export const DataTransferJobGetResults: coreClient.CompositeMapper = { +export const MongoDBCollectionGetPropertiesOptions: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "MongoDBCollectionGetPropertiesOptions", + modelProperties: { + ...OptionsResource.type.modelProperties, + }, + }, + }; + +export const TableGetPropertiesOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataTransferJobGetResults", + className: "TableGetPropertiesOptions", modelProperties: { - ...ARMProxyResource.type.modelProperties, - jobName: { - serializedName: "properties.jobName", - readOnly: true, - type: { - name: "String", - }, - }, - source: { - serializedName: "properties.source", - type: { - name: "Composite", - className: "DataTransferDataSourceSink", - }, - }, - destination: { - serializedName: "properties.destination", - type: { - name: "Composite", - className: "DataTransferDataSourceSink", - }, + ...OptionsResource.type.modelProperties, + }, + }, +}; + +export const CassandraKeyspaceGetPropertiesOptions: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CassandraKeyspaceGetPropertiesOptions", + modelProperties: { + ...OptionsResource.type.modelProperties, }, - status: { - serializedName: "properties.status", - readOnly: true, - type: { - name: "String", - }, - }, - processedCount: { - serializedName: "properties.processedCount", - readOnly: true, - type: { - name: "Number", - }, - }, - 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", + }, + }; + +export const CassandraTableGetPropertiesOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CassandraTableGetPropertiesOptions", + modelProperties: { + ...OptionsResource.type.modelProperties, + }, + }, +}; + +export const GremlinDatabaseGetPropertiesOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GremlinDatabaseGetPropertiesOptions", + modelProperties: { + ...OptionsResource.type.modelProperties, + }, + }, +}; + +export const GremlinGraphGetPropertiesOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GremlinGraphGetPropertiesOptions", + modelProperties: { + ...OptionsResource.type.modelProperties, + }, + }, +}; + +export const ClientEncryptionKeyGetResults: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClientEncryptionKeyGetResults", + modelProperties: { + ...ARMProxyResource.type.modelProperties, + resource: { + serializedName: "properties.resource", type: { name: "Composite", - className: "ErrorResponse", - }, - }, - duration: { - serializedName: "properties.duration", - readOnly: true, - type: { - name: "String", + className: "ClientEncryptionKeyGetPropertiesResource", }, }, - mode: { - serializedName: "properties.mode", + }, + }, +}; + +export const LocationGetResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LocationGetResult", + modelProperties: { + ...ARMProxyResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String", + name: "Composite", + className: "LocationProperties", }, }, }, @@ -10100,108 +8514,6 @@ export const ServiceResource: coreClient.CompositeMapper = { }, }; -export const PhysicalPartitionThroughputInfoResultPropertiesResource: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "PhysicalPartitionThroughputInfoResultPropertiesResource", - modelProperties: { - ...PhysicalPartitionThroughputInfoProperties.type.modelProperties, - }, - }, - }; - -export const BaseCosmosDataTransferDataSourceSink: coreClient.CompositeMapper = - { - serializedName: "BaseCosmosDataTransferDataSourceSink", - type: { - name: "Composite", - className: "BaseCosmosDataTransferDataSourceSink", - uberParent: "DataTransferDataSourceSink", - polymorphicDiscriminator: { - serializedName: "component", - clientName: "component", - }, - modelProperties: { - ...DataTransferDataSourceSink.type.modelProperties, - remoteAccountName: { - serializedName: "remoteAccountName", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const CosmosMongoVCoreDataTransferDataSourceSink: coreClient.CompositeMapper = - { - serializedName: "CosmosDBMongoVCore", - type: { - name: "Composite", - className: "CosmosMongoVCoreDataTransferDataSourceSink", - uberParent: "DataTransferDataSourceSink", - polymorphicDiscriminator: - DataTransferDataSourceSink.type.polymorphicDiscriminator, - modelProperties: { - ...DataTransferDataSourceSink.type.modelProperties, - databaseName: { - serializedName: "databaseName", - required: true, - type: { - name: "String", - }, - }, - collectionName: { - serializedName: "collectionName", - required: true, - type: { - name: "String", - }, - }, - hostName: { - serializedName: "hostName", - type: { - name: "String", - }, - }, - connectionStringKeyVaultUri: { - serializedName: "connectionStringKeyVaultUri", - 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", @@ -10376,644 +8688,11 @@ export const SqlDedicatedGatewayServiceResourceCreateUpdateProperties: coreClien className: "SqlDedicatedGatewayServiceResourceCreateUpdateProperties", uberParent: "ServiceResourceCreateUpdateProperties", polymorphicDiscriminator: - ServiceResourceCreateUpdateProperties.type.polymorphicDiscriminator, - modelProperties: { - ...ServiceResourceCreateUpdateProperties.type.modelProperties, - dedicatedGatewayType: { - serializedName: "dedicatedGatewayType", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const GraphAPIComputeServiceResourceCreateUpdateProperties: coreClient.CompositeMapper = - { - serializedName: "GraphAPICompute", - type: { - name: "Composite", - className: "GraphAPIComputeServiceResourceCreateUpdateProperties", - uberParent: "ServiceResourceCreateUpdateProperties", - polymorphicDiscriminator: - ServiceResourceCreateUpdateProperties.type.polymorphicDiscriminator, - modelProperties: { - ...ServiceResourceCreateUpdateProperties.type.modelProperties, - }, - }, - }; - -export const MaterializedViewsBuilderServiceResourceCreateUpdateProperties: coreClient.CompositeMapper = - { - serializedName: "MaterializedViewsBuilder", - type: { - name: "Composite", - className: - "MaterializedViewsBuilderServiceResourceCreateUpdateProperties", - uberParent: "ServiceResourceCreateUpdateProperties", - polymorphicDiscriminator: - ServiceResourceCreateUpdateProperties.type.polymorphicDiscriminator, - modelProperties: { - ...ServiceResourceCreateUpdateProperties.type.modelProperties, - }, - }, - }; - -export const DataTransferRegionalServiceResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataTransferRegionalServiceResource", - modelProperties: { - ...RegionalServiceResource.type.modelProperties, - }, - }, -}; - -export const SqlDedicatedGatewayRegionalServiceResource: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SqlDedicatedGatewayRegionalServiceResource", - modelProperties: { - ...RegionalServiceResource.type.modelProperties, - sqlDedicatedGatewayEndpoint: { - serializedName: "sqlDedicatedGatewayEndpoint", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const GraphAPIComputeRegionalServiceResource: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GraphAPIComputeRegionalServiceResource", - modelProperties: { - ...RegionalServiceResource.type.modelProperties, - graphApiComputeEndpoint: { - serializedName: "graphApiComputeEndpoint", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -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 NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "NetworkSecurityPerimeterConfiguration", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "NetworkSecurityPerimeterConfigurationProperties", - }, - }, - }, - }, - }; - -export const ThroughputPoolAccountResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ThroughputPoolAccountResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String", - }, - }, - accountResourceIdentifier: { - serializedName: "properties.accountResourceIdentifier", - type: { - name: "String", - }, - }, - accountLocation: { - serializedName: "properties.accountLocation", - type: { - name: "String", - }, - }, - accountInstanceId: { - serializedName: "properties.accountInstanceId", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ChaosFaultResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ChaosFaultResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - action: { - serializedName: "properties.action", - type: { - name: "Enum", - allowedValues: ["Enable", "Disable"], - }, - }, - region: { - serializedName: "properties.region", - type: { - name: "String", - }, - }, - databaseName: { - serializedName: "properties.databaseName", - type: { - name: "String", - }, - }, - containerName: { - serializedName: "properties.containerName", - type: { - name: "String", - }, - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ThroughputPoolResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ThroughputPoolResource", - modelProperties: { - ...TrackedResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String", - }, - }, - maxThroughput: { - serializedName: "properties.maxThroughput", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const CosmosCassandraDataTransferDataSourceSink: coreClient.CompositeMapper = - { - serializedName: "CosmosDBCassandra", - type: { - name: "Composite", - className: "CosmosCassandraDataTransferDataSourceSink", - uberParent: "BaseCosmosDataTransferDataSourceSink", - polymorphicDiscriminator: - BaseCosmosDataTransferDataSourceSink.type.polymorphicDiscriminator, - modelProperties: { - ...BaseCosmosDataTransferDataSourceSink.type.modelProperties, - keyspaceName: { - serializedName: "keyspaceName", - required: true, - type: { - name: "String", - }, - }, - tableName: { - serializedName: "tableName", - required: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const CosmosMongoDataTransferDataSourceSink: coreClient.CompositeMapper = - { - serializedName: "CosmosDBMongo", - type: { - name: "Composite", - className: "CosmosMongoDataTransferDataSourceSink", - uberParent: "BaseCosmosDataTransferDataSourceSink", - polymorphicDiscriminator: - BaseCosmosDataTransferDataSourceSink.type.polymorphicDiscriminator, - modelProperties: { - ...BaseCosmosDataTransferDataSourceSink.type.modelProperties, - databaseName: { - serializedName: "databaseName", - required: true, - type: { - name: "String", - }, - }, - collectionName: { - serializedName: "collectionName", - required: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const CosmosSqlDataTransferDataSourceSink: coreClient.CompositeMapper = { - serializedName: "CosmosDBSql", - type: { - name: "Composite", - className: "CosmosSqlDataTransferDataSourceSink", - uberParent: "BaseCosmosDataTransferDataSourceSink", - polymorphicDiscriminator: - BaseCosmosDataTransferDataSourceSink.type.polymorphicDiscriminator, - modelProperties: { - ...BaseCosmosDataTransferDataSourceSink.type.modelProperties, - databaseName: { - serializedName: "databaseName", - required: true, - type: { - name: "String", - }, - }, - containerName: { - serializedName: "containerName", - required: true, - 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", - }, - }, - }, - }, - }; - -export const SqlResourcesMigrateSqlDatabaseToAutoscaleHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SqlResourcesMigrateSqlDatabaseToAutoscaleHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const SqlResourcesMigrateSqlDatabaseToManualThroughputHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SqlResourcesMigrateSqlDatabaseToManualThroughputHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const SqlResourcesCreateUpdateClientEncryptionKeyHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SqlResourcesCreateUpdateClientEncryptionKeyHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const SqlResourcesCreateUpdateSqlContainerHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SqlResourcesCreateUpdateSqlContainerHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - location: { - serializedName: "location", + ServiceResourceCreateUpdateProperties.type.polymorphicDiscriminator, + modelProperties: { + ...ServiceResourceCreateUpdateProperties.type.modelProperties, + dedicatedGatewayType: { + serializedName: "dedicatedGatewayType", type: { name: "String", }, @@ -11022,64 +8701,57 @@ export const SqlResourcesCreateUpdateSqlContainerHeaders: coreClient.CompositeMa }, }; -export const SqlResourcesDeleteSqlContainerHeaders: coreClient.CompositeMapper = +export const GraphAPIComputeServiceResourceCreateUpdateProperties: coreClient.CompositeMapper = { + serializedName: "GraphAPICompute", type: { name: "Composite", - className: "SqlResourcesDeleteSqlContainerHeaders", + className: "GraphAPIComputeServiceResourceCreateUpdateProperties", + uberParent: "ServiceResourceCreateUpdateProperties", + polymorphicDiscriminator: + ServiceResourceCreateUpdateProperties.type.polymorphicDiscriminator, modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - location: { - serializedName: "location", - type: { - name: "String", - }, - }, + ...ServiceResourceCreateUpdateProperties.type.modelProperties, }, }, }; -export const SqlResourcesSqlDatabasePartitionMergeHeaders: coreClient.CompositeMapper = +export const MaterializedViewsBuilderServiceResourceCreateUpdateProperties: coreClient.CompositeMapper = { + serializedName: "MaterializedViewsBuilder", type: { name: "Composite", - className: "SqlResourcesSqlDatabasePartitionMergeHeaders", + className: + "MaterializedViewsBuilderServiceResourceCreateUpdateProperties", + uberParent: "ServiceResourceCreateUpdateProperties", + polymorphicDiscriminator: + ServiceResourceCreateUpdateProperties.type.polymorphicDiscriminator, modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - location: { - serializedName: "location", - type: { - name: "String", - }, - }, + ...ServiceResourceCreateUpdateProperties.type.modelProperties, }, }, }; -export const SqlResourcesListSqlContainerPartitionMergeHeaders: coreClient.CompositeMapper = +export const DataTransferRegionalServiceResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataTransferRegionalServiceResource", + modelProperties: { + ...RegionalServiceResource.type.modelProperties, + }, + }, +}; + +export const SqlDedicatedGatewayRegionalServiceResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesListSqlContainerPartitionMergeHeaders", + className: "SqlDedicatedGatewayRegionalServiceResource", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - location: { - serializedName: "location", + ...RegionalServiceResource.type.modelProperties, + sqlDedicatedGatewayEndpoint: { + serializedName: "sqlDedicatedGatewayEndpoint", + readOnly: true, type: { name: "String", }, @@ -11088,20 +8760,16 @@ export const SqlResourcesListSqlContainerPartitionMergeHeaders: coreClient.Compo }, }; -export const SqlResourcesUpdateSqlContainerThroughputHeaders: coreClient.CompositeMapper = +export const GraphAPIComputeRegionalServiceResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesUpdateSqlContainerThroughputHeaders", + className: "GraphAPIComputeRegionalServiceResource", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - location: { - serializedName: "location", + ...RegionalServiceResource.type.modelProperties, + graphApiComputeEndpoint: { + serializedName: "graphApiComputeEndpoint", + readOnly: true, type: { name: "String", }, @@ -11110,55 +8778,79 @@ export const SqlResourcesUpdateSqlContainerThroughputHeaders: coreClient.Composi }, }; -export const SqlResourcesMigrateSqlContainerToAutoscaleHeaders: coreClient.CompositeMapper = +export const MaterializedViewsBuilderRegionalServiceResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesMigrateSqlContainerToAutoscaleHeaders", + className: "MaterializedViewsBuilderRegionalServiceResource", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, + ...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", }, - location: { - serializedName: "location", - type: { - name: "String", - }, + }, + 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 SqlResourcesMigrateSqlContainerToManualThroughputHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SqlResourcesMigrateSqlContainerToManualThroughputHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - 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", - }, + }, + location: { + serializedName: "location", + type: { + name: "String", }, }, }, - }; + }, +}; -export const SqlResourcesSqlDatabaseRetrieveThroughputDistributionHeaders: coreClient.CompositeMapper = +export const DatabaseAccountsFailoverPriorityChangeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesSqlDatabaseRetrieveThroughputDistributionHeaders", + className: "DatabaseAccountsFailoverPriorityChangeHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11176,11 +8868,11 @@ export const SqlResourcesSqlDatabaseRetrieveThroughputDistributionHeaders: coreC }, }; -export const SqlResourcesSqlDatabaseRedistributeThroughputHeaders: coreClient.CompositeMapper = +export const DatabaseAccountsOfflineRegionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesSqlDatabaseRedistributeThroughputHeaders", + className: "DatabaseAccountsOfflineRegionHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11198,34 +8890,32 @@ export const SqlResourcesSqlDatabaseRedistributeThroughputHeaders: coreClient.Co }, }; -export const SqlResourcesSqlContainerRetrieveThroughputDistributionHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "SqlResourcesSqlContainerRetrieveThroughputDistributionHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - 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", - }, + }, + location: { + serializedName: "location", + type: { + name: "String", }, }, }, - }; + }, +}; -export const SqlResourcesSqlContainerRedistributeThroughputHeaders: coreClient.CompositeMapper = +export const DatabaseAccountsRegenerateKeyHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesSqlContainerRedistributeThroughputHeaders", + className: "DatabaseAccountsRegenerateKeyHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11243,11 +8933,11 @@ export const SqlResourcesSqlContainerRedistributeThroughputHeaders: coreClient.C }, }; -export const SqlResourcesCreateUpdateSqlStoredProcedureHeaders: coreClient.CompositeMapper = +export const SqlResourcesCreateUpdateSqlDatabaseHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesCreateUpdateSqlStoredProcedureHeaders", + className: "SqlResourcesCreateUpdateSqlDatabaseHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11265,11 +8955,11 @@ export const SqlResourcesCreateUpdateSqlStoredProcedureHeaders: coreClient.Compo }, }; -export const SqlResourcesDeleteSqlStoredProcedureHeaders: coreClient.CompositeMapper = +export const SqlResourcesDeleteSqlDatabaseHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesDeleteSqlStoredProcedureHeaders", + className: "SqlResourcesDeleteSqlDatabaseHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11287,11 +8977,11 @@ export const SqlResourcesDeleteSqlStoredProcedureHeaders: coreClient.CompositeMa }, }; -export const SqlResourcesCreateUpdateSqlUserDefinedFunctionHeaders: coreClient.CompositeMapper = +export const SqlResourcesUpdateSqlDatabaseThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesCreateUpdateSqlUserDefinedFunctionHeaders", + className: "SqlResourcesUpdateSqlDatabaseThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11309,11 +8999,11 @@ export const SqlResourcesCreateUpdateSqlUserDefinedFunctionHeaders: coreClient.C }, }; -export const SqlResourcesDeleteSqlUserDefinedFunctionHeaders: coreClient.CompositeMapper = +export const SqlResourcesMigrateSqlDatabaseToAutoscaleHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesDeleteSqlUserDefinedFunctionHeaders", + className: "SqlResourcesMigrateSqlDatabaseToAutoscaleHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11331,11 +9021,11 @@ export const SqlResourcesDeleteSqlUserDefinedFunctionHeaders: coreClient.Composi }, }; -export const SqlResourcesCreateUpdateSqlTriggerHeaders: coreClient.CompositeMapper = +export const SqlResourcesMigrateSqlDatabaseToManualThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlResourcesCreateUpdateSqlTriggerHeaders", + className: "SqlResourcesMigrateSqlDatabaseToManualThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11353,32 +9043,11 @@ export const SqlResourcesCreateUpdateSqlTriggerHeaders: coreClient.CompositeMapp }, }; -export const SqlResourcesDeleteSqlTriggerHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SqlResourcesDeleteSqlTriggerHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const MongoDBResourcesCreateUpdateMongoDBDatabaseHeaders: coreClient.CompositeMapper = +export const SqlResourcesCreateUpdateSqlContainerHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesCreateUpdateMongoDBDatabaseHeaders", + className: "SqlResourcesCreateUpdateSqlContainerHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11396,11 +9065,11 @@ export const MongoDBResourcesCreateUpdateMongoDBDatabaseHeaders: coreClient.Comp }, }; -export const MongoDBResourcesDeleteMongoDBDatabaseHeaders: coreClient.CompositeMapper = +export const SqlResourcesDeleteSqlContainerHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesDeleteMongoDBDatabaseHeaders", + className: "SqlResourcesDeleteSqlContainerHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11418,11 +9087,11 @@ export const MongoDBResourcesDeleteMongoDBDatabaseHeaders: coreClient.CompositeM }, }; -export const MongoDBResourcesUpdateMongoDBDatabaseThroughputHeaders: coreClient.CompositeMapper = +export const SqlResourcesUpdateSqlContainerThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesUpdateMongoDBDatabaseThroughputHeaders", + className: "SqlResourcesUpdateSqlContainerThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11440,11 +9109,11 @@ export const MongoDBResourcesUpdateMongoDBDatabaseThroughputHeaders: coreClient. }, }; -export const MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleHeaders: coreClient.CompositeMapper = +export const SqlResourcesMigrateSqlContainerToAutoscaleHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleHeaders", + className: "SqlResourcesMigrateSqlContainerToAutoscaleHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11462,12 +9131,11 @@ export const MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleHeaders: coreClien }, }; -export const MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputHeaders: coreClient.CompositeMapper = +export const SqlResourcesMigrateSqlContainerToManualThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputHeaders", + className: "SqlResourcesMigrateSqlContainerToManualThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11485,12 +9153,11 @@ export const MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputHeaders: co }, }; -export const MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionHeaders: coreClient.CompositeMapper = +export const SqlResourcesCreateUpdateClientEncryptionKeyHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionHeaders", + className: "SqlResourcesCreateUpdateClientEncryptionKeyHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11508,11 +9175,11 @@ export const MongoDBResourcesMongoDBDatabaseRetrieveThroughputDistributionHeader }, }; -export const MongoDBResourcesMongoDBDatabaseRedistributeThroughputHeaders: coreClient.CompositeMapper = +export const SqlResourcesCreateUpdateSqlStoredProcedureHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesMongoDBDatabaseRedistributeThroughputHeaders", + className: "SqlResourcesCreateUpdateSqlStoredProcedureHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11530,12 +9197,11 @@ export const MongoDBResourcesMongoDBDatabaseRedistributeThroughputHeaders: coreC }, }; -export const MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionHeaders: coreClient.CompositeMapper = +export const SqlResourcesDeleteSqlStoredProcedureHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionHeaders", + className: "SqlResourcesDeleteSqlStoredProcedureHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11553,12 +9219,11 @@ export const MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionHeade }, }; -export const MongoDBResourcesMongoDBContainerRedistributeThroughputHeaders: coreClient.CompositeMapper = +export const SqlResourcesCreateUpdateSqlUserDefinedFunctionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "MongoDBResourcesMongoDBContainerRedistributeThroughputHeaders", + className: "SqlResourcesCreateUpdateSqlUserDefinedFunctionHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11576,11 +9241,11 @@ export const MongoDBResourcesMongoDBContainerRedistributeThroughputHeaders: core }, }; -export const MongoDBResourcesCreateUpdateMongoDBCollectionHeaders: coreClient.CompositeMapper = +export const SqlResourcesDeleteSqlUserDefinedFunctionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesCreateUpdateMongoDBCollectionHeaders", + className: "SqlResourcesDeleteSqlUserDefinedFunctionHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11598,11 +9263,11 @@ export const MongoDBResourcesCreateUpdateMongoDBCollectionHeaders: coreClient.Co }, }; -export const MongoDBResourcesDeleteMongoDBCollectionHeaders: coreClient.CompositeMapper = +export const SqlResourcesCreateUpdateSqlTriggerHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesDeleteMongoDBCollectionHeaders", + className: "SqlResourcesCreateUpdateSqlTriggerHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11620,11 +9285,32 @@ export const MongoDBResourcesDeleteMongoDBCollectionHeaders: coreClient.Composit }, }; -export const MongoDBResourcesMongoDBDatabasePartitionMergeHeaders: coreClient.CompositeMapper = +export const SqlResourcesDeleteSqlTriggerHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlResourcesDeleteSqlTriggerHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const MongoDBResourcesCreateUpdateMongoDBDatabaseHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesMongoDBDatabasePartitionMergeHeaders", + className: "MongoDBResourcesCreateUpdateMongoDBDatabaseHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11642,11 +9328,11 @@ export const MongoDBResourcesMongoDBDatabasePartitionMergeHeaders: coreClient.Co }, }; -export const MongoDBResourcesListMongoDBCollectionPartitionMergeHeaders: coreClient.CompositeMapper = +export const MongoDBResourcesDeleteMongoDBDatabaseHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesListMongoDBCollectionPartitionMergeHeaders", + className: "MongoDBResourcesDeleteMongoDBDatabaseHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11664,11 +9350,11 @@ export const MongoDBResourcesListMongoDBCollectionPartitionMergeHeaders: coreCli }, }; -export const MongoDBResourcesUpdateMongoDBCollectionThroughputHeaders: coreClient.CompositeMapper = +export const MongoDBResourcesUpdateMongoDBDatabaseThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesUpdateMongoDBCollectionThroughputHeaders", + className: "MongoDBResourcesUpdateMongoDBDatabaseThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11686,11 +9372,11 @@ export const MongoDBResourcesUpdateMongoDBCollectionThroughputHeaders: coreClien }, }; -export const MongoDBResourcesMigrateMongoDBCollectionToAutoscaleHeaders: coreClient.CompositeMapper = +export const MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MongoDBResourcesMigrateMongoDBCollectionToAutoscaleHeaders", + className: "MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11708,12 +9394,12 @@ export const MongoDBResourcesMigrateMongoDBCollectionToAutoscaleHeaders: coreCli }, }; -export const MongoDBResourcesMigrateMongoDBCollectionToManualThroughputHeaders: coreClient.CompositeMapper = +export const MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", className: - "MongoDBResourcesMigrateMongoDBCollectionToManualThroughputHeaders", + "MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11731,11 +9417,11 @@ export const MongoDBResourcesMigrateMongoDBCollectionToManualThroughputHeaders: }, }; -export const TableResourcesCreateUpdateTableHeaders: coreClient.CompositeMapper = +export const MongoDBResourcesCreateUpdateMongoDBCollectionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TableResourcesCreateUpdateTableHeaders", + className: "MongoDBResourcesCreateUpdateMongoDBCollectionHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11753,32 +9439,11 @@ export const TableResourcesCreateUpdateTableHeaders: coreClient.CompositeMapper }, }; -export const TableResourcesDeleteTableHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TableResourcesDeleteTableHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const TableResourcesUpdateTableThroughputHeaders: coreClient.CompositeMapper = +export const MongoDBResourcesDeleteMongoDBCollectionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TableResourcesUpdateTableThroughputHeaders", + className: "MongoDBResourcesDeleteMongoDBCollectionHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11796,11 +9461,11 @@ export const TableResourcesUpdateTableThroughputHeaders: coreClient.CompositeMap }, }; -export const TableResourcesMigrateTableToAutoscaleHeaders: coreClient.CompositeMapper = +export const MongoDBResourcesUpdateMongoDBCollectionThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TableResourcesMigrateTableToAutoscaleHeaders", + className: "MongoDBResourcesUpdateMongoDBCollectionThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11818,11 +9483,11 @@ export const TableResourcesMigrateTableToAutoscaleHeaders: coreClient.CompositeM }, }; -export const TableResourcesMigrateTableToManualThroughputHeaders: coreClient.CompositeMapper = +export const MongoDBResourcesMigrateMongoDBCollectionToAutoscaleHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TableResourcesMigrateTableToManualThroughputHeaders", + className: "MongoDBResourcesMigrateMongoDBCollectionToAutoscaleHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11840,11 +9505,12 @@ export const TableResourcesMigrateTableToManualThroughputHeaders: coreClient.Com }, }; -export const CassandraResourcesCreateUpdateCassandraKeyspaceHeaders: coreClient.CompositeMapper = +export const MongoDBResourcesMigrateMongoDBCollectionToManualThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraResourcesCreateUpdateCassandraKeyspaceHeaders", + className: + "MongoDBResourcesMigrateMongoDBCollectionToManualThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11862,11 +9528,11 @@ export const CassandraResourcesCreateUpdateCassandraKeyspaceHeaders: coreClient. }, }; -export const CassandraResourcesDeleteCassandraKeyspaceHeaders: coreClient.CompositeMapper = +export const TableResourcesCreateUpdateTableHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraResourcesDeleteCassandraKeyspaceHeaders", + className: "TableResourcesCreateUpdateTableHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11884,11 +9550,32 @@ export const CassandraResourcesDeleteCassandraKeyspaceHeaders: coreClient.Compos }, }; -export const CassandraResourcesUpdateCassandraKeyspaceThroughputHeaders: coreClient.CompositeMapper = +export const TableResourcesDeleteTableHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TableResourcesDeleteTableHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const TableResourcesUpdateTableThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraResourcesUpdateCassandraKeyspaceThroughputHeaders", + className: "TableResourcesUpdateTableThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11906,11 +9593,11 @@ export const CassandraResourcesUpdateCassandraKeyspaceThroughputHeaders: coreCli }, }; -export const CassandraResourcesMigrateCassandraKeyspaceToAutoscaleHeaders: coreClient.CompositeMapper = +export const TableResourcesMigrateTableToAutoscaleHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraResourcesMigrateCassandraKeyspaceToAutoscaleHeaders", + className: "TableResourcesMigrateTableToAutoscaleHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11928,12 +9615,11 @@ export const CassandraResourcesMigrateCassandraKeyspaceToAutoscaleHeaders: coreC }, }; -export const CassandraResourcesMigrateCassandraKeyspaceToManualThroughputHeaders: coreClient.CompositeMapper = +export const TableResourcesMigrateTableToManualThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "CassandraResourcesMigrateCassandraKeyspaceToManualThroughputHeaders", + className: "TableResourcesMigrateTableToManualThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11951,11 +9637,11 @@ export const CassandraResourcesMigrateCassandraKeyspaceToManualThroughputHeaders }, }; -export const CassandraResourcesCreateUpdateCassandraTableHeaders: coreClient.CompositeMapper = +export const CassandraResourcesCreateUpdateCassandraKeyspaceHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraResourcesCreateUpdateCassandraTableHeaders", + className: "CassandraResourcesCreateUpdateCassandraKeyspaceHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11973,11 +9659,11 @@ export const CassandraResourcesCreateUpdateCassandraTableHeaders: coreClient.Com }, }; -export const CassandraResourcesDeleteCassandraTableHeaders: coreClient.CompositeMapper = +export const CassandraResourcesDeleteCassandraKeyspaceHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraResourcesDeleteCassandraTableHeaders", + className: "CassandraResourcesDeleteCassandraKeyspaceHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -11995,11 +9681,11 @@ export const CassandraResourcesDeleteCassandraTableHeaders: coreClient.Composite }, }; -export const CassandraResourcesUpdateCassandraTableThroughputHeaders: coreClient.CompositeMapper = +export const CassandraResourcesUpdateCassandraKeyspaceThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraResourcesUpdateCassandraTableThroughputHeaders", + className: "CassandraResourcesUpdateCassandraKeyspaceThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -12017,11 +9703,11 @@ export const CassandraResourcesUpdateCassandraTableThroughputHeaders: coreClient }, }; -export const CassandraResourcesMigrateCassandraTableToAutoscaleHeaders: coreClient.CompositeMapper = +export const CassandraResourcesMigrateCassandraKeyspaceToAutoscaleHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraResourcesMigrateCassandraTableToAutoscaleHeaders", + className: "CassandraResourcesMigrateCassandraKeyspaceToAutoscaleHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -12039,12 +9725,12 @@ export const CassandraResourcesMigrateCassandraTableToAutoscaleHeaders: coreClie }, }; -export const CassandraResourcesMigrateCassandraTableToManualThroughputHeaders: coreClient.CompositeMapper = +export const CassandraResourcesMigrateCassandraKeyspaceToManualThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", className: - "CassandraResourcesMigrateCassandraTableToManualThroughputHeaders", + "CassandraResourcesMigrateCassandraKeyspaceToManualThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -12062,11 +9748,11 @@ export const CassandraResourcesMigrateCassandraTableToManualThroughputHeaders: c }, }; -export const CassandraResourcesCreateUpdateCassandraViewHeaders: coreClient.CompositeMapper = +export const CassandraResourcesCreateUpdateCassandraTableHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraResourcesCreateUpdateCassandraViewHeaders", + className: "CassandraResourcesCreateUpdateCassandraTableHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -12084,11 +9770,11 @@ export const CassandraResourcesCreateUpdateCassandraViewHeaders: coreClient.Comp }, }; -export const CassandraResourcesDeleteCassandraViewHeaders: coreClient.CompositeMapper = +export const CassandraResourcesDeleteCassandraTableHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraResourcesDeleteCassandraViewHeaders", + className: "CassandraResourcesDeleteCassandraTableHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -12106,11 +9792,11 @@ export const CassandraResourcesDeleteCassandraViewHeaders: coreClient.CompositeM }, }; -export const CassandraResourcesUpdateCassandraViewThroughputHeaders: coreClient.CompositeMapper = +export const CassandraResourcesUpdateCassandraTableThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraResourcesUpdateCassandraViewThroughputHeaders", + className: "CassandraResourcesUpdateCassandraTableThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -12128,11 +9814,11 @@ export const CassandraResourcesUpdateCassandraViewThroughputHeaders: coreClient. }, }; -export const CassandraResourcesMigrateCassandraViewToAutoscaleHeaders: coreClient.CompositeMapper = +export const CassandraResourcesMigrateCassandraTableToAutoscaleHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CassandraResourcesMigrateCassandraViewToAutoscaleHeaders", + className: "CassandraResourcesMigrateCassandraTableToAutoscaleHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -12150,12 +9836,12 @@ export const CassandraResourcesMigrateCassandraViewToAutoscaleHeaders: coreClien }, }; -export const CassandraResourcesMigrateCassandraViewToManualThroughputHeaders: coreClient.CompositeMapper = +export const CassandraResourcesMigrateCassandraTableToManualThroughputHeaders: coreClient.CompositeMapper = { type: { name: "Composite", className: - "CassandraResourcesMigrateCassandraViewToManualThroughputHeaders", + "CassandraResourcesMigrateCassandraTableToManualThroughputHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -12394,90 +10080,10 @@ export const GremlinResourcesMigrateGremlinGraphToManualThroughputHeaders: coreC }, }; -export const CassandraClustersInvokeCommandAsyncHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CassandraClustersInvokeCommandAsyncHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const NetworkSecurityPerimeterConfigurationsReconcileHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "NetworkSecurityPerimeterConfigurationsReconcileHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const ServiceDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceDeleteHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ThroughputPoolUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ThroughputPoolUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ThroughputPoolDeleteHeaders: coreClient.CompositeMapper = { +export const ServiceCreateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ThroughputPoolDeleteHeaders", + className: "ServiceCreateHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -12495,10 +10101,10 @@ export const ThroughputPoolDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const ThroughputPoolAccountDeleteHeaders: coreClient.CompositeMapper = { +export const ServiceDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ThroughputPoolAccountDeleteHeaders", + className: "ServiceDeleteHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -12518,17 +10124,10 @@ export const ThroughputPoolAccountDeleteHeaders: coreClient.CompositeMapper = { export let discriminators = { BackupPolicy: BackupPolicy, - DataTransferDataSourceSink: DataTransferDataSourceSink, ServiceResourceProperties: ServiceResourceProperties, ServiceResourceCreateUpdateProperties: ServiceResourceCreateUpdateProperties, "BackupPolicy.Periodic": PeriodicModeBackupPolicy, "BackupPolicy.Continuous": ContinuousModeBackupPolicy, - "DataTransferDataSourceSink.BaseCosmosDataTransferDataSourceSink": - BaseCosmosDataTransferDataSourceSink, - "DataTransferDataSourceSink.CosmosDBMongoVCore": - CosmosMongoVCoreDataTransferDataSourceSink, - "DataTransferDataSourceSink.AzureBlobStorage": - AzureBlobDataTransferDataSourceSink, "ServiceResourceProperties.DataTransfer": DataTransferServiceResourceProperties, "ServiceResourceProperties.SqlDedicatedGateway": @@ -12545,10 +10144,4 @@ export let discriminators = { GraphAPIComputeServiceResourceCreateUpdateProperties, "ServiceResourceCreateUpdateProperties.MaterializedViewsBuilder": MaterializedViewsBuilderServiceResourceCreateUpdateProperties, - "BaseCosmosDataTransferDataSourceSink.CosmosDBCassandra": - CosmosCassandraDataTransferDataSourceSink, - "BaseCosmosDataTransferDataSourceSink.CosmosDBMongo": - CosmosMongoDataTransferDataSourceSink, - "BaseCosmosDataTransferDataSourceSink.CosmosDBSql": - CosmosSqlDataTransferDataSourceSink, }; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts index 5c4c2eafd00b..206c48236b51 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,20 +34,14 @@ 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, NotebookWorkspaceCreateUpdateParameters as NotebookWorkspaceCreateUpdateParametersMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, ServiceResourceCreateUpdateParameters as ServiceResourceCreateUpdateParametersMapper, - ThroughputPoolResource as ThroughputPoolResourceMapper, - ThroughputPoolUpdate as ThroughputPoolUpdateMapper, - ThroughputPoolAccountResource as ThroughputPoolAccountResourceMapper, - ChaosFaultResource as ChaosFaultResourceMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -126,7 +116,7 @@ export const accountName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2024-09-01-preview", + defaultValue: "2024-11-15", isConstant: true, serializedName: "api-version", type: { @@ -276,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: { @@ -313,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: { @@ -345,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 = { @@ -536,10 +495,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", @@ -547,16 +511,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, @@ -573,22 +527,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: { @@ -615,48 +553,6 @@ export const body1: OperationParameter = { mapper: CommandPostBodyMapper, }; -export const commandId: OperationURLParameter = { - parameterPath: "commandId", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$"), - MaxLength: 100, - MinLength: 1, - }, - serializedName: "commandId", - required: true, - type: { - name: "String", - }, - }, -}; - -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 xMsForceDeallocate: OperationParameter = { - parameterPath: ["options", "xMsForceDeallocate"], - mapper: { - serializedName: "x-ms-force-deallocate", - type: { - name: "String", - }, - }, -}; - export const dataCenterName: OperationURLParameter = { parameterPath: "dataCenterName", mapper: { @@ -678,21 +574,6 @@ export const body2: OperationParameter = { mapper: DataCenterResourceMapper, }; -export const networkSecurityPerimeterConfigurationName: OperationURLParameter = - { - parameterPath: "networkSecurityPerimeterConfigurationName", - mapper: { - constraints: { - Pattern: new RegExp("^.*$"), - }, - serializedName: "networkSecurityPerimeterConfigurationName", - required: true, - type: { - name: "String", - }, - }, - }; - export const notebookWorkspaceName: OperationURLParameter = { parameterPath: "notebookWorkspaceName", mapper: { @@ -836,66 +717,3 @@ export const serviceName: OperationURLParameter = { }, }, }; - -export const throughputPoolName: OperationURLParameter = { - parameterPath: "throughputPoolName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-z0-9]+(-[a-z0-9]+)*"), - MaxLength: 50, - MinLength: 3, - }, - serializedName: "throughputPoolName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const body3: OperationParameter = { - parameterPath: "body", - mapper: ThroughputPoolResourceMapper, -}; - -export const body4: OperationParameter = { - parameterPath: ["options", "body"], - mapper: ThroughputPoolUpdateMapper, -}; - -export const throughputPoolAccountName: OperationURLParameter = { - parameterPath: "throughputPoolAccountName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-z0-9]+(-[a-z0-9]+)*"), - MaxLength: 50, - MinLength: 3, - }, - serializedName: "throughputPoolAccountName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const body5: OperationParameter = { - parameterPath: "body", - mapper: ThroughputPoolAccountResourceMapper, -}; - -export const chaosFaultRequest: OperationParameter = { - parameterPath: "chaosFaultRequest", - mapper: ChaosFaultResourceMapper, -}; - -export const chaosFault: OperationURLParameter = { - parameterPath: "chaosFault", - mapper: { - serializedName: "chaosFault", - required: true, - type: { - name: "String", - }, - }, -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts index 41f66ca87d49..4b3062258ec8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts @@ -24,12 +24,6 @@ import { CassandraClustersListBySubscriptionResponse, CassandraClustersListByResourceGroupOptionalParams, CassandraClustersListByResourceGroupResponse, - CommandPublicResource, - CassandraClustersListCommandOptionalParams, - CassandraClustersListCommandResponse, - BackupResource, - CassandraClustersListBackupsOptionalParams, - CassandraClustersListBackupsResponse, CassandraClustersGetOptionalParams, CassandraClustersGetResponse, CassandraClustersDeleteOptionalParams, @@ -40,12 +34,6 @@ import { CommandPostBody, CassandraClustersInvokeCommandOptionalParams, CassandraClustersInvokeCommandResponse, - CassandraClustersInvokeCommandAsyncOptionalParams, - CassandraClustersInvokeCommandAsyncResponse, - CassandraClustersGetCommandAsyncOptionalParams, - CassandraClustersGetCommandAsyncResponse, - CassandraClustersGetBackupOptionalParams, - CassandraClustersGetBackupResponse, CassandraClustersDeallocateOptionalParams, CassandraClustersStartOptionalParams, CassandraClustersStatusOptionalParams, @@ -158,130 +146,6 @@ export class CassandraClustersImpl implements CassandraClusters { } } - /** - * List all commands currently running on ring info - * @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 listCommand( - resourceGroupName: string, - clusterName: string, - options?: CassandraClustersListCommandOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listCommandPagingAll( - 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.listCommandPagingPage( - resourceGroupName, - clusterName, - options, - settings, - ); - }, - }; - } - - private async *listCommandPagingPage( - resourceGroupName: string, - clusterName: string, - options?: CassandraClustersListCommandOptionalParams, - _settings?: PageSettings, - ): AsyncIterableIterator { - let result: CassandraClustersListCommandResponse; - result = await this._listCommand(resourceGroupName, clusterName, options); - yield result.value || []; - } - - private async *listCommandPagingAll( - resourceGroupName: string, - clusterName: string, - options?: CassandraClustersListCommandOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listCommandPagingPage( - resourceGroupName, - clusterName, - options, - )) { - yield* page; - } - } - - /** - * 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. @@ -692,172 +556,6 @@ export class CassandraClustersImpl implements CassandraClusters { return poller.pollUntilDone(); } - /** - * Invoke a command like nodetool for cassandra maintenance asynchronously - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body Specification which command to run where - * @param options The options parameters. - */ - async beginInvokeCommandAsync( - resourceGroupName: string, - clusterName: string, - body: CommandPostBody, - options?: CassandraClustersInvokeCommandAsyncOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CassandraClustersInvokeCommandAsyncResponse - > - > { - 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, clusterName, body, options }, - spec: invokeCommandAsyncOperationSpec, - }); - const poller = await createHttpPoller< - CassandraClustersInvokeCommandAsyncResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Invoke a command like nodetool for cassandra maintenance asynchronously - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body Specification which command to run where - * @param options The options parameters. - */ - async beginInvokeCommandAsyncAndWait( - resourceGroupName: string, - clusterName: string, - body: CommandPostBody, - options?: CassandraClustersInvokeCommandAsyncOptionalParams, - ): Promise { - const poller = await this.beginInvokeCommandAsync( - resourceGroupName, - clusterName, - body, - options, - ); - return poller.pollUntilDone(); - } - - /** - * List all commands currently running on ring info - * @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 _listCommand( - resourceGroupName: string, - clusterName: string, - options?: CassandraClustersListCommandOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, clusterName, options }, - listCommandOperationSpec, - ); - } - - /** - * Get details about a specified command that was run asynchronously. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param commandId Managed Cassandra cluster command id. - * @param options The options parameters. - */ - getCommandAsync( - resourceGroupName: string, - clusterName: string, - commandId: string, - options?: CassandraClustersGetCommandAsyncOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, clusterName, commandId, options }, - getCommandAsyncOperationSpec, - ); - } - - /** - * 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 @@ -1223,124 +921,6 @@ const invokeCommandOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer, }; -const invokeCommandAsyncOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/invokeCommandAsync", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CommandPublicResource, - }, - 201: { - bodyMapper: Mappers.CommandPublicResource, - }, - 202: { - bodyMapper: Mappers.CommandPublicResource, - }, - 204: { - bodyMapper: Mappers.CommandPublicResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.body1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const listCommandOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/commands", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ListCommands, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getCommandAsyncOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/commands/{commandId}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ListCommands, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - Parameters.commandId, - ], - headerParameters: [Parameters.accept], - 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.ErrorResponse, - }, - }, - 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.ErrorResponse, - }, - }, - 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", httpMethod: "POST", @@ -1360,7 +940,7 @@ const deallocateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName, ], - headerParameters: [Parameters.accept, Parameters.xMsForceDeallocate], + headerParameters: [Parameters.accept], serializer, }; const startOperationSpec: coreClient.OperationSpec = { diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts index 9676946a6d1c..c3cb5c29a452 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, @@ -59,20 +56,6 @@ import { CassandraResourcesMigrateCassandraTableToAutoscaleResponse, CassandraResourcesMigrateCassandraTableToManualThroughputOptionalParams, CassandraResourcesMigrateCassandraTableToManualThroughputResponse, - CassandraResourcesGetCassandraViewOptionalParams, - CassandraResourcesGetCassandraViewResponse, - CassandraViewCreateUpdateParameters, - CassandraResourcesCreateUpdateCassandraViewOptionalParams, - CassandraResourcesCreateUpdateCassandraViewResponse, - CassandraResourcesDeleteCassandraViewOptionalParams, - CassandraResourcesGetCassandraViewThroughputOptionalParams, - CassandraResourcesGetCassandraViewThroughputResponse, - CassandraResourcesUpdateCassandraViewThroughputOptionalParams, - CassandraResourcesUpdateCassandraViewThroughputResponse, - CassandraResourcesMigrateCassandraViewToAutoscaleOptionalParams, - CassandraResourcesMigrateCassandraViewToAutoscaleResponse, - CassandraResourcesMigrateCassandraViewToManualThroughputOptionalParams, - CassandraResourcesMigrateCassandraViewToManualThroughputResponse, } 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. @@ -1457,584 +1366,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 - > - > { - 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 - >(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: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces", @@ -2459,204 +1793,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.ErrorResponse, - }, - }, - 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.ErrorResponse, - }, - }, - 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/chaosFault.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/chaosFault.ts deleted file mode 100644 index 6727df6ba163..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/chaosFault.ts +++ /dev/null @@ -1,383 +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 { ChaosFault } 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 { - ChaosFaultResource, - ChaosFaultListNextOptionalParams, - ChaosFaultListOptionalParams, - ChaosFaultListOperationResponse, - ChaosFaultEnableDisableOptionalParams, - ChaosFaultEnableDisableResponse, - ChaosFaultGetOptionalParams, - ChaosFaultGetResponse, - ChaosFaultListNextResponse, -} from "../models"; - -/// -/** Class containing ChaosFault operations. */ -export class ChaosFaultImpl implements ChaosFault { - private readonly client: CosmosDBManagementClient; - - /** - * Initialize a new instance of the class ChaosFault class. - * @param client Reference to the service client - */ - constructor(client: CosmosDBManagementClient) { - this.client = client; - } - - /** - * List Chaos Faults for CosmosDB 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 list( - resourceGroupName: string, - accountName: string, - options?: ChaosFaultListOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(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.listPagingPage( - resourceGroupName, - accountName, - options, - settings, - ); - }, - }; - } - - private async *listPagingPage( - resourceGroupName: string, - accountName: string, - options?: ChaosFaultListOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: ChaosFaultListOperationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(resourceGroupName, accountName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - accountName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceGroupName: string, - accountName: string, - options?: ChaosFaultListOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - accountName, - options, - )) { - yield* page; - } - } - - /** - * List Chaos Faults for CosmosDB 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 _list( - resourceGroupName: string, - accountName: string, - options?: ChaosFaultListOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, options }, - listOperationSpec, - ); - } - - /** - * Enable, disable Chaos Fault in a CosmosDB account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param chaosFault The name of the ChaosFault. - * @param chaosFaultRequest A request object to enable/disable the chaos fault. - * @param options The options parameters. - */ - async beginEnableDisable( - resourceGroupName: string, - accountName: string, - chaosFault: string, - chaosFaultRequest: ChaosFaultResource, - options?: ChaosFaultEnableDisableOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ChaosFaultEnableDisableResponse - > - > { - 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, - chaosFault, - chaosFaultRequest, - options, - }, - spec: enableDisableOperationSpec, - }); - const poller = await createHttpPoller< - ChaosFaultEnableDisableResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Enable, disable Chaos Fault in a CosmosDB account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param chaosFault The name of the ChaosFault. - * @param chaosFaultRequest A request object to enable/disable the chaos fault. - * @param options The options parameters. - */ - async beginEnableDisableAndWait( - resourceGroupName: string, - accountName: string, - chaosFault: string, - chaosFaultRequest: ChaosFaultResource, - options?: ChaosFaultEnableDisableOptionalParams, - ): Promise { - const poller = await this.beginEnableDisable( - resourceGroupName, - accountName, - chaosFault, - chaosFaultRequest, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Get Chaos Fault for a CosmosdB account for a particular Chaos Fault. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param chaosFault The name of the ChaosFault. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - chaosFault: string, - options?: ChaosFaultGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, chaosFault, options }, - getOperationSpec, - ); - } - - /** - * ListNext - * @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 List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - accountName: string, - nextLink: string, - options?: ChaosFaultListNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, nextLink, options }, - listNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/chaosFaults", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ChaosFaultListResponse, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const enableDisableOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/chaosFaults/{chaosFault}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.ChaosFaultResource, - }, - 201: { - bodyMapper: Mappers.ChaosFaultResource, - }, - 202: { - bodyMapper: Mappers.ChaosFaultResource, - }, - 204: { - bodyMapper: Mappers.ChaosFaultResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.chaosFaultRequest, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.chaosFault, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/chaosFaults/{chaosFault}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ChaosFaultResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.chaosFault, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ChaosFaultListResponse, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.nextLink, - ], - 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 a4654168a471..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/dataTransferJobs.ts +++ /dev/null @@ -1,464 +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, - DataTransferJobsCompleteOptionalParams, - DataTransferJobsCompleteResponse, - 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, - ); - } - - /** - * Completes a Data Transfer Online 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. - */ - complete( - resourceGroupName: string, - accountName: string, - jobName: string, - options?: DataTransferJobsCompleteOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, jobName, options }, - completeOperationSpec, - ); - } - - /** - * 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.ErrorResponse, - }, - }, - 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.ErrorResponse, - }, - }, - 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.ErrorResponse, - }, - }, - 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.ErrorResponse, - }, - }, - 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.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.jobName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const completeOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs/{jobName}/complete", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.DataTransferJobGetResults, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - 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.ErrorResponse, - }, - }, - 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.ErrorResponse, - }, - }, - 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 4301f7bb7777..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/graphResources.ts +++ /dev/null @@ -1,418 +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 09f71b2beea3..9b77aec8a3ca 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts @@ -1723,8 +1723,8 @@ const getGremlinGraphOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, Parameters.databaseName, + Parameters.graphName, ], headerParameters: [Parameters.accept], serializer, @@ -1753,8 +1753,8 @@ const createUpdateGremlinGraphOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, Parameters.databaseName, + Parameters.graphName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -1783,8 +1783,8 @@ const deleteGremlinGraphOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, Parameters.databaseName, + Parameters.graphName, ], serializer, }; @@ -1802,8 +1802,8 @@ const getGremlinGraphThroughputOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, Parameters.databaseName, + Parameters.graphName, ], headerParameters: [Parameters.accept], serializer, @@ -1832,8 +1832,8 @@ const updateGremlinGraphThroughputOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, Parameters.databaseName, + Parameters.graphName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -1865,8 +1865,8 @@ const migrateGremlinGraphToAutoscaleOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, Parameters.databaseName, + Parameters.graphName, ], headerParameters: [Parameters.accept], serializer, @@ -1898,8 +1898,8 @@ const migrateGremlinGraphToManualThroughputOperationSpec: coreClient.OperationSp Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, Parameters.databaseName, + Parameters.graphName, ], headerParameters: [Parameters.accept], serializer, @@ -1932,8 +1932,8 @@ const retrieveContinuousBackupInformationOperationSpec: coreClient.OperationSpec Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.graphName, 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 dbc6e7d2c843..96531b8c1b96 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts @@ -19,17 +19,14 @@ 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 "./networkSecurityPerimeterConfigurations"; export * from "./notebookWorkspaces"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; @@ -46,8 +43,3 @@ export * from "./restorableGremlinResources"; export * from "./restorableTables"; export * from "./restorableTableResources"; export * from "./service"; -export * from "./throughputPools"; -export * from "./throughputPool"; -export * from "./throughputPoolAccounts"; -export * from "./throughputPoolAccount"; -export * from "./chaosFault"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts index 72c80c5a4595..c300057bce97 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,11 +54,6 @@ import { MongoDBResourcesCreateUpdateMongoDBCollectionResponse, MongoDBResourcesDeleteMongoDBCollectionOptionalParams, MongoDBResourcesDeleteMongoDBCollectionResponse, - MergeParameters, - MongoDBResourcesMongoDBDatabasePartitionMergeOptionalParams, - MongoDBResourcesMongoDBDatabasePartitionMergeResponse, - MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams, - MongoDBResourcesListMongoDBCollectionPartitionMergeResponse, MongoDBResourcesGetMongoDBCollectionThroughputOptionalParams, MongoDBResourcesGetMongoDBCollectionThroughputResponse, MongoDBResourcesUpdateMongoDBCollectionThroughputOptionalParams, @@ -933,733 +918,72 @@ export class MongoDBResourcesImpl implements MongoDBResources { } /** - * 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 - > - > { - 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 - >(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 { - 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 - > - > { - 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 - >(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 - > - > { - 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 - >(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 { - 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 - > - > { - 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 - >(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. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param options The options parameters. - */ - private _listMongoDBCollections( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: MongoDBResourcesListMongoDBCollectionsOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, databaseName, options }, - listMongoDBCollectionsOperationSpec, - ); - } - - /** - * 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. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param collectionName Cosmos DB collection name. - * @param options The options parameters. - */ - getMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: MongoDBResourcesGetMongoDBCollectionOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, databaseName, collectionName, options }, - getMongoDBCollectionOperationSpec, - ); - } - - /** - * Create or update an Azure Cosmos DB 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 createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB - * Collection. - * @param options The options parameters. - */ - async beginCreateUpdateMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - createUpdateMongoDBCollectionParameters: MongoDBCollectionCreateUpdateParameters, - options?: MongoDBResourcesCreateUpdateMongoDBCollectionOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - MongoDBResourcesCreateUpdateMongoDBCollectionResponse - > - > { - 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, - createUpdateMongoDBCollectionParameters, - options, - }, - spec: createUpdateMongoDBCollectionOperationSpec, - }); - const poller = await createHttpPoller< - MongoDBResourcesCreateUpdateMongoDBCollectionResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Create or update an Azure Cosmos DB 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 createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB - * Collection. - * @param options The options parameters. - */ - async beginCreateUpdateMongoDBCollectionAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - createUpdateMongoDBCollectionParameters: MongoDBCollectionCreateUpdateParameters, - options?: MongoDBResourcesCreateUpdateMongoDBCollectionOptionalParams, - ): Promise { - const poller = await this.beginCreateUpdateMongoDBCollection( - resourceGroupName, - accountName, - databaseName, - collectionName, - createUpdateMongoDBCollectionParameters, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Deletes an existing Azure Cosmos DB 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 options The options parameters. - */ - async beginDeleteMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: MongoDBResourcesDeleteMongoDBCollectionOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - MongoDBResourcesDeleteMongoDBCollectionResponse - > - > { - 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, - options, - }, - spec: deleteMongoDBCollectionOperationSpec, - }); - const poller = await createHttpPoller< - MongoDBResourcesDeleteMongoDBCollectionResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; + * 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. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param options The options parameters. + */ + private _listMongoDBCollections( + resourceGroupName: string, + accountName: string, + databaseName: string, + options?: MongoDBResourcesListMongoDBCollectionsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, accountName, databaseName, options }, + listMongoDBCollectionsOperationSpec, + ); } /** - * Deletes an existing Azure Cosmos DB MongoDB Collection. + * 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. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param collectionName Cosmos DB collection name. * @param options The options parameters. */ - async beginDeleteMongoDBCollectionAndWait( + getMongoDBCollection( resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, - options?: MongoDBResourcesDeleteMongoDBCollectionOptionalParams, - ): Promise { - const poller = await this.beginDeleteMongoDBCollection( - resourceGroupName, - accountName, - databaseName, - collectionName, - options, + options?: MongoDBResourcesGetMongoDBCollectionOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, accountName, databaseName, collectionName, options }, + getMongoDBCollectionOperationSpec, ); - return poller.pollUntilDone(); } /** - * Merges the partitions of a MongoDB database + * Create or update an Azure Cosmos DB 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 mergeParameters The parameters for the merge operation. + * @param collectionName Cosmos DB collection name. + * @param createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB + * Collection. * @param options The options parameters. */ - async beginMongoDBDatabasePartitionMerge( + async beginCreateUpdateMongoDBCollection( resourceGroupName: string, accountName: string, databaseName: string, - mergeParameters: MergeParameters, - options?: MongoDBResourcesMongoDBDatabasePartitionMergeOptionalParams, + collectionName: string, + createUpdateMongoDBCollectionParameters: MongoDBCollectionCreateUpdateParameters, + options?: MongoDBResourcesCreateUpdateMongoDBCollectionOptionalParams, ): Promise< SimplePollerLike< - OperationState, - MongoDBResourcesMongoDBDatabasePartitionMergeResponse + OperationState, + MongoDBResourcesCreateUpdateMongoDBCollectionResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1700,74 +1024,76 @@ export class MongoDBResourcesImpl implements MongoDBResources { resourceGroupName, accountName, databaseName, - mergeParameters, + collectionName, + createUpdateMongoDBCollectionParameters, options, }, - spec: mongoDBDatabasePartitionMergeOperationSpec, + spec: createUpdateMongoDBCollectionOperationSpec, }); const poller = await createHttpPoller< - MongoDBResourcesMongoDBDatabasePartitionMergeResponse, - OperationState + MongoDBResourcesCreateUpdateMongoDBCollectionResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", }); await poller.poll(); return poller; } /** - * Merges the partitions of a MongoDB database + * Create or update an Azure Cosmos DB 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 mergeParameters The parameters for the merge operation. + * @param collectionName Cosmos DB collection name. + * @param createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB + * Collection. * @param options The options parameters. */ - async beginMongoDBDatabasePartitionMergeAndWait( + async beginCreateUpdateMongoDBCollectionAndWait( resourceGroupName: string, accountName: string, databaseName: string, - mergeParameters: MergeParameters, - options?: MongoDBResourcesMongoDBDatabasePartitionMergeOptionalParams, - ): Promise { - const poller = await this.beginMongoDBDatabasePartitionMerge( + collectionName: string, + createUpdateMongoDBCollectionParameters: MongoDBCollectionCreateUpdateParameters, + options?: MongoDBResourcesCreateUpdateMongoDBCollectionOptionalParams, + ): Promise { + const poller = await this.beginCreateUpdateMongoDBCollection( resourceGroupName, accountName, databaseName, - mergeParameters, + collectionName, + createUpdateMongoDBCollectionParameters, options, ); return poller.pollUntilDone(); } /** - * Merges the partitions of a MongoDB Collection + * Deletes an existing Azure Cosmos DB 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( + async beginDeleteMongoDBCollection( resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, - mergeParameters: MergeParameters, - options?: MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams, + options?: MongoDBResourcesDeleteMongoDBCollectionOptionalParams, ): Promise< SimplePollerLike< - OperationState, - MongoDBResourcesListMongoDBCollectionPartitionMergeResponse + OperationState, + MongoDBResourcesDeleteMongoDBCollectionResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1809,46 +1135,41 @@ export class MongoDBResourcesImpl implements MongoDBResources { accountName, databaseName, collectionName, - mergeParameters, options, }, - spec: listMongoDBCollectionPartitionMergeOperationSpec, + spec: deleteMongoDBCollectionOperationSpec, }); const poller = await createHttpPoller< - MongoDBResourcesListMongoDBCollectionPartitionMergeResponse, - OperationState + MongoDBResourcesDeleteMongoDBCollectionResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", }); await poller.poll(); return poller; } /** - * Merges the partitions of a MongoDB Collection + * Deletes an existing Azure Cosmos DB 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( + async beginDeleteMongoDBCollectionAndWait( resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, - mergeParameters: MergeParameters, - options?: MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams, - ): Promise { - const poller = await this.beginListMongoDBCollectionPartitionMerge( + options?: MongoDBResourcesDeleteMongoDBCollectionOptionalParams, + ): Promise { + const poller = await this.beginDeleteMongoDBCollection( resourceGroupName, accountName, databaseName, collectionName, - mergeParameters, options, ); return poller.pollUntilDone(); @@ -2982,144 +2303,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.ErrorResponse, - }, - }, - 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.ErrorResponse, - }, - }, - 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.ErrorResponse, - }, - }, - 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.ErrorResponse, - }, - }, - 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", httpMethod: "GET", @@ -3218,74 +2401,6 @@ const deleteMongoDBCollectionOperationSpec: coreClient.OperationSpec = { ], serializer, }; -const mongoDBDatabasePartitionMergeOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/partitionMerge", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection, - }, - 201: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection, - }, - 202: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection, - }, - 204: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.mergeParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - 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.ErrorResponse, - }, - }, - 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", httpMethod: "GET", diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/networkSecurityPerimeterConfigurations.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/networkSecurityPerimeterConfigurations.ts deleted file mode 100644 index 98546a9f3d75..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/networkSecurityPerimeterConfigurations.ts +++ /dev/null @@ -1,389 +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 { NetworkSecurityPerimeterConfigurations } 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 { - NetworkSecurityPerimeterConfiguration, - NetworkSecurityPerimeterConfigurationsListNextOptionalParams, - NetworkSecurityPerimeterConfigurationsListOptionalParams, - NetworkSecurityPerimeterConfigurationsListResponse, - NetworkSecurityPerimeterConfigurationsGetOptionalParams, - NetworkSecurityPerimeterConfigurationsGetResponse, - NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, - NetworkSecurityPerimeterConfigurationsReconcileResponse, - NetworkSecurityPerimeterConfigurationsListNextResponse, -} from "../models"; - -/// -/** Class containing NetworkSecurityPerimeterConfigurations operations. */ -export class NetworkSecurityPerimeterConfigurationsImpl - implements NetworkSecurityPerimeterConfigurations -{ - private readonly client: CosmosDBManagementClient; - - /** - * Initialize a new instance of the class NetworkSecurityPerimeterConfigurations class. - * @param client Reference to the service client - */ - constructor(client: CosmosDBManagementClient) { - this.client = client; - } - - /** - * Gets list of effective Network Security Perimeter Configuration for cosmos db 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 list( - resourceGroupName: string, - accountName: string, - options?: NetworkSecurityPerimeterConfigurationsListOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(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.listPagingPage( - resourceGroupName, - accountName, - options, - settings, - ); - }, - }; - } - - private async *listPagingPage( - resourceGroupName: string, - accountName: string, - options?: NetworkSecurityPerimeterConfigurationsListOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: NetworkSecurityPerimeterConfigurationsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(resourceGroupName, accountName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - accountName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceGroupName: string, - accountName: string, - options?: NetworkSecurityPerimeterConfigurationsListOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - accountName, - options, - )) { - yield* page; - } - } - - /** - * Gets list of effective Network Security Perimeter Configuration for cosmos db 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 _list( - resourceGroupName: string, - accountName: string, - options?: NetworkSecurityPerimeterConfigurationsListOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, options }, - listOperationSpec, - ); - } - - /** - * Gets effective Network Security Perimeter Configuration for association - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter - * configuration - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - networkSecurityPerimeterConfigurationName: string, - options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - accountName, - networkSecurityPerimeterConfigurationName, - options, - }, - getOperationSpec, - ); - } - - /** - * Refreshes any information about the association. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter - * configuration - * @param options The options parameters. - */ - async beginReconcile( - resourceGroupName: string, - accountName: string, - networkSecurityPerimeterConfigurationName: string, - options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - NetworkSecurityPerimeterConfigurationsReconcileResponse - > - > { - 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, - networkSecurityPerimeterConfigurationName, - options, - }, - spec: reconcileOperationSpec, - }); - const poller = await createHttpPoller< - NetworkSecurityPerimeterConfigurationsReconcileResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Refreshes any information about the association. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter - * configuration - * @param options The options parameters. - */ - async beginReconcileAndWait( - resourceGroupName: string, - accountName: string, - networkSecurityPerimeterConfigurationName: string, - options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, - ): Promise { - const poller = await this.beginReconcile( - resourceGroupName, - accountName, - networkSecurityPerimeterConfigurationName, - options, - ); - return poller.pollUntilDone(); - } - - /** - * ListNext - * @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 List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - accountName: string, - nextLink: string, - options?: NetworkSecurityPerimeterConfigurationsListNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, nextLink, options }, - listNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/networkSecurityPerimeterConfigurations", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.networkSecurityPerimeterConfigurationName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const reconcileOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}/reconcile", - httpMethod: "POST", - responses: { - 200: { - headersMapper: - Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders, - }, - 201: { - headersMapper: - Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders, - }, - 202: { - headersMapper: - Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders, - }, - 204: { - headersMapper: - Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.networkSecurityPerimeterConfigurationName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.nextLink, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts index c83359d4fb21..014f07fa1589 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,11 +66,6 @@ import { SqlResourcesCreateUpdateSqlContainerResponse, SqlResourcesDeleteSqlContainerOptionalParams, SqlResourcesDeleteSqlContainerResponse, - MergeParameters, - SqlResourcesSqlDatabasePartitionMergeOptionalParams, - SqlResourcesSqlDatabasePartitionMergeResponse, - SqlResourcesListSqlContainerPartitionMergeOptionalParams, - SqlResourcesListSqlContainerPartitionMergeResponse, SqlResourcesGetSqlContainerThroughputOptionalParams, SqlResourcesGetSqlContainerThroughputResponse, SqlResourcesUpdateSqlContainerThroughputOptionalParams, @@ -84,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, @@ -212,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, @@ -241,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, @@ -252,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, @@ -269,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, @@ -286,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, @@ -315,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, @@ -326,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, @@ -343,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, @@ -1287,167 +1272,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. @@ -1705,232 +1529,14 @@ export class SqlResourcesImpl implements SqlResources { } /** - * Merges the partitions of a SQL database + * 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 mergeParameters The parameters for the merge operation. + * @param containerName Cosmos DB container name. * @param options The options parameters. */ - async beginSqlDatabasePartitionMerge( - resourceGroupName: string, - accountName: string, - databaseName: string, - mergeParameters: MergeParameters, - options?: SqlResourcesSqlDatabasePartitionMergeOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - SqlResourcesSqlDatabasePartitionMergeResponse - > - > { - 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, - mergeParameters, - options, - }, - spec: sqlDatabasePartitionMergeOperationSpec, - }); - const poller = await createHttpPoller< - SqlResourcesSqlDatabasePartitionMergeResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Merges the partitions of a 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 mergeParameters The parameters for the merge operation. - * @param options The options parameters. - */ - async beginSqlDatabasePartitionMergeAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - mergeParameters: MergeParameters, - options?: SqlResourcesSqlDatabasePartitionMergeOptionalParams, - ): Promise { - const poller = await this.beginSqlDatabasePartitionMerge( - resourceGroupName, - accountName, - databaseName, - mergeParameters, - options, - ); - return poller.pollUntilDone(); - } - - /** - * 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 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, @@ -2267,30 +1873,79 @@ export class SqlResourcesImpl implements SqlResources { } /** - * Retrieve throughput distribution for an Azure Cosmos DB SQL database + * 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 retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current SQL database. + * @param clientEncryptionKeyName Cosmos DB ClientEncryptionKey name. + * @param createUpdateClientEncryptionKeyParameters The parameters to provide for the client encryption + * key. * @param options The options parameters. */ - async beginSqlDatabaseRetrieveThroughputDistribution( + async beginCreateUpdateClientEncryptionKey( resourceGroupName: string, accountName: string, databaseName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: SqlResourcesSqlDatabaseRetrieveThroughputDistributionOptionalParams, + clientEncryptionKeyName: string, + createUpdateClientEncryptionKeyParameters: ClientEncryptionKeyCreateUpdateParameters, + options?: SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams, ): Promise< SimplePollerLike< - OperationState, - SqlResourcesSqlDatabaseRetrieveThroughputDistributionResponse + OperationState, + SqlResourcesCreateUpdateClientEncryptionKeyResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -2331,184 +1986,133 @@ export class SqlResourcesImpl implements SqlResources { resourceGroupName, accountName, databaseName, - retrieveThroughputParameters, + clientEncryptionKeyName, + createUpdateClientEncryptionKeyParameters, options, }, - spec: sqlDatabaseRetrieveThroughputDistributionOperationSpec, + spec: createUpdateClientEncryptionKeyOperationSpec, }); const poller = await createHttpPoller< - SqlResourcesSqlDatabaseRetrieveThroughputDistributionResponse, - OperationState + SqlResourcesCreateUpdateClientEncryptionKeyResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", }); await poller.poll(); return poller; } /** - * Retrieve throughput distribution for an Azure Cosmos DB SQL database + * 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 retrieveThroughputParameters The parameters to provide for retrieving throughput distribution - * for the current SQL database. + * @param clientEncryptionKeyName Cosmos DB ClientEncryptionKey name. + * @param createUpdateClientEncryptionKeyParameters The parameters to provide for the client encryption + * key. * @param options The options parameters. */ - async beginSqlDatabaseRetrieveThroughputDistributionAndWait( + async beginCreateUpdateClientEncryptionKeyAndWait( resourceGroupName: string, accountName: string, databaseName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: SqlResourcesSqlDatabaseRetrieveThroughputDistributionOptionalParams, - ): Promise { - const poller = await this.beginSqlDatabaseRetrieveThroughputDistribution( + clientEncryptionKeyName: string, + createUpdateClientEncryptionKeyParameters: ClientEncryptionKeyCreateUpdateParameters, + options?: SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams, + ): Promise { + const poller = await this.beginCreateUpdateClientEncryptionKey( resourceGroupName, accountName, databaseName, - retrieveThroughputParameters, + clientEncryptionKeyName, + createUpdateClientEncryptionKeyParameters, options, ); return poller.pollUntilDone(); } /** - * Redistribute throughput for an Azure Cosmos DB SQL database + * 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. * @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 containerName Cosmos DB container name. * @param options The options parameters. */ - async beginSqlDatabaseRedistributeThroughput( + private _listSqlStoredProcedures( 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; + containerName: string, + options?: SqlResourcesListSqlStoredProceduresOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, accountName, databaseName, containerName, options }, + listSqlStoredProceduresOperationSpec, + ); } /** - * Redistribute throughput for an Azure Cosmos DB SQL database + * 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. * @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 containerName Cosmos DB container name. + * @param storedProcedureName Cosmos DB storedProcedure name. * @param options The options parameters. */ - async beginSqlDatabaseRedistributeThroughputAndWait( + getSqlStoredProcedure( resourceGroupName: string, accountName: string, databaseName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: SqlResourcesSqlDatabaseRedistributeThroughputOptionalParams, - ): Promise { - const poller = await this.beginSqlDatabaseRedistributeThroughput( - resourceGroupName, - accountName, - databaseName, - redistributeThroughputParameters, - options, + containerName: string, + storedProcedureName: string, + options?: SqlResourcesGetSqlStoredProcedureOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + databaseName, + containerName, + storedProcedureName, + options, + }, + getSqlStoredProcedureOperationSpec, ); - return poller.pollUntilDone(); } /** - * Retrieve throughput distribution for an Azure Cosmos DB SQL container + * Create or update an Azure Cosmos DB SQL storedProcedure * @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 storedProcedureName Cosmos DB storedProcedure name. + * @param createUpdateSqlStoredProcedureParameters The parameters to provide for the current SQL + * storedProcedure. * @param options The options parameters. */ - async beginSqlContainerRetrieveThroughputDistribution( + async beginCreateUpdateSqlStoredProcedure( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: SqlResourcesSqlContainerRetrieveThroughputDistributionOptionalParams, + storedProcedureName: string, + createUpdateSqlStoredProcedureParameters: SqlStoredProcedureCreateUpdateParameters, + options?: SqlResourcesCreateUpdateSqlStoredProcedureOptionalParams, ): Promise< SimplePollerLike< - OperationState, - SqlResourcesSqlContainerRetrieveThroughputDistributionResponse + OperationState, + SqlResourcesCreateUpdateSqlStoredProcedureResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -2550,79 +2154,81 @@ export class SqlResourcesImpl implements SqlResources { accountName, databaseName, containerName, - retrieveThroughputParameters, + storedProcedureName, + createUpdateSqlStoredProcedureParameters, options, }, - spec: sqlContainerRetrieveThroughputDistributionOperationSpec, + spec: createUpdateSqlStoredProcedureOperationSpec, }); const poller = await createHttpPoller< - SqlResourcesSqlContainerRetrieveThroughputDistributionResponse, - OperationState + SqlResourcesCreateUpdateSqlStoredProcedureResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", }); await poller.poll(); return poller; } /** - * Retrieve throughput distribution for an Azure Cosmos DB SQL container + * Create or update an Azure Cosmos DB SQL storedProcedure * @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 storedProcedureName Cosmos DB storedProcedure name. + * @param createUpdateSqlStoredProcedureParameters The parameters to provide for the current SQL + * storedProcedure. * @param options The options parameters. */ - async beginSqlContainerRetrieveThroughputDistributionAndWait( + async beginCreateUpdateSqlStoredProcedureAndWait( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - retrieveThroughputParameters: RetrieveThroughputParameters, - options?: SqlResourcesSqlContainerRetrieveThroughputDistributionOptionalParams, - ): Promise { - const poller = await this.beginSqlContainerRetrieveThroughputDistribution( + storedProcedureName: string, + createUpdateSqlStoredProcedureParameters: SqlStoredProcedureCreateUpdateParameters, + options?: SqlResourcesCreateUpdateSqlStoredProcedureOptionalParams, + ): Promise { + const poller = await this.beginCreateUpdateSqlStoredProcedure( resourceGroupName, accountName, databaseName, containerName, - retrieveThroughputParameters, + storedProcedureName, + createUpdateSqlStoredProcedureParameters, options, ); return poller.pollUntilDone(); } /** - * Redistribute throughput for an Azure Cosmos DB SQL container + * Deletes an existing Azure Cosmos DB SQL storedProcedure. * @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 storedProcedureName Cosmos DB storedProcedure name. * @param options The options parameters. */ - async beginSqlContainerRedistributeThroughput( + async beginDeleteSqlStoredProcedure( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: SqlResourcesSqlContainerRedistributeThroughputOptionalParams, + storedProcedureName: string, + options?: SqlResourcesDeleteSqlStoredProcedureOptionalParams, ): Promise< SimplePollerLike< - OperationState, - SqlResourcesSqlContainerRedistributeThroughputResponse + OperationState, + SqlResourcesDeleteSqlStoredProcedureResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -2664,132 +2270,130 @@ export class SqlResourcesImpl implements SqlResources { accountName, databaseName, containerName, - redistributeThroughputParameters, + storedProcedureName, options, }, - spec: sqlContainerRedistributeThroughputOperationSpec, + spec: deleteSqlStoredProcedureOperationSpec, }); const poller = await createHttpPoller< - SqlResourcesSqlContainerRedistributeThroughputResponse, - OperationState + SqlResourcesDeleteSqlStoredProcedureResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", }); await poller.poll(); return poller; } /** - * Redistribute throughput for an Azure Cosmos DB SQL container + * Deletes an existing Azure Cosmos DB SQL storedProcedure. * @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 storedProcedureName Cosmos DB storedProcedure name. * @param options The options parameters. */ - async beginSqlContainerRedistributeThroughputAndWait( + async beginDeleteSqlStoredProcedureAndWait( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - redistributeThroughputParameters: RedistributeThroughputParameters, - options?: SqlResourcesSqlContainerRedistributeThroughputOptionalParams, - ): Promise { - const poller = await this.beginSqlContainerRedistributeThroughput( + storedProcedureName: string, + options?: SqlResourcesDeleteSqlStoredProcedureOptionalParams, + ): Promise { + const poller = await this.beginDeleteSqlStoredProcedure( resourceGroupName, accountName, databaseName, containerName, - redistributeThroughputParameters, + storedProcedureName, options, ); return poller.pollUntilDone(); } /** - * Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. + * Lists the SQL userDefinedFunction 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. */ - private _listSqlStoredProcedures( + private _listSqlUserDefinedFunctions( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - options?: SqlResourcesListSqlStoredProceduresOptionalParams, - ): Promise { + options?: SqlResourcesListSqlUserDefinedFunctionsOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, databaseName, containerName, options }, - listSqlStoredProceduresOperationSpec, + listSqlUserDefinedFunctionsOperationSpec, ); } /** - * Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. + * Gets the SQL userDefinedFunction 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 storedProcedureName Cosmos DB storedProcedure name. + * @param userDefinedFunctionName Cosmos DB userDefinedFunction name. * @param options The options parameters. */ - getSqlStoredProcedure( + getSqlUserDefinedFunction( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - storedProcedureName: string, - options?: SqlResourcesGetSqlStoredProcedureOptionalParams, - ): Promise { + userDefinedFunctionName: string, + options?: SqlResourcesGetSqlUserDefinedFunctionOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, databaseName, containerName, - storedProcedureName, + userDefinedFunctionName, options, }, - getSqlStoredProcedureOperationSpec, + getSqlUserDefinedFunctionOperationSpec, ); } /** - * Create or update an Azure Cosmos DB SQL storedProcedure + * Create or update an Azure Cosmos DB SQL userDefinedFunction * @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 storedProcedureName Cosmos DB storedProcedure name. - * @param createUpdateSqlStoredProcedureParameters The parameters to provide for the current SQL - * storedProcedure. + * @param userDefinedFunctionName Cosmos DB userDefinedFunction name. + * @param createUpdateSqlUserDefinedFunctionParameters The parameters to provide for the current SQL + * userDefinedFunction. * @param options The options parameters. */ - async beginCreateUpdateSqlStoredProcedure( + async beginCreateUpdateSqlUserDefinedFunction( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - storedProcedureName: string, - createUpdateSqlStoredProcedureParameters: SqlStoredProcedureCreateUpdateParameters, - options?: SqlResourcesCreateUpdateSqlStoredProcedureOptionalParams, + userDefinedFunctionName: string, + createUpdateSqlUserDefinedFunctionParameters: SqlUserDefinedFunctionCreateUpdateParameters, + options?: SqlResourcesCreateUpdateSqlUserDefinedFunctionOptionalParams, ): Promise< SimplePollerLike< - OperationState, - SqlResourcesCreateUpdateSqlStoredProcedureResponse + OperationState, + SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -2831,15 +2435,15 @@ export class SqlResourcesImpl implements SqlResources { accountName, databaseName, containerName, - storedProcedureName, - createUpdateSqlStoredProcedureParameters, + userDefinedFunctionName, + createUpdateSqlUserDefinedFunctionParameters, options, }, - spec: createUpdateSqlStoredProcedureOperationSpec, + spec: createUpdateSqlUserDefinedFunctionOperationSpec, }); const poller = await createHttpPoller< - SqlResourcesCreateUpdateSqlStoredProcedureResponse, - OperationState + SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -2849,63 +2453,63 @@ export class SqlResourcesImpl implements SqlResources { } /** - * Create or update an Azure Cosmos DB SQL storedProcedure + * Create or update an Azure Cosmos DB SQL userDefinedFunction * @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 storedProcedureName Cosmos DB storedProcedure name. - * @param createUpdateSqlStoredProcedureParameters The parameters to provide for the current SQL - * storedProcedure. + * @param userDefinedFunctionName Cosmos DB userDefinedFunction name. + * @param createUpdateSqlUserDefinedFunctionParameters The parameters to provide for the current SQL + * userDefinedFunction. * @param options The options parameters. */ - async beginCreateUpdateSqlStoredProcedureAndWait( + async beginCreateUpdateSqlUserDefinedFunctionAndWait( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - storedProcedureName: string, - createUpdateSqlStoredProcedureParameters: SqlStoredProcedureCreateUpdateParameters, - options?: SqlResourcesCreateUpdateSqlStoredProcedureOptionalParams, - ): Promise { - const poller = await this.beginCreateUpdateSqlStoredProcedure( + userDefinedFunctionName: string, + createUpdateSqlUserDefinedFunctionParameters: SqlUserDefinedFunctionCreateUpdateParameters, + options?: SqlResourcesCreateUpdateSqlUserDefinedFunctionOptionalParams, + ): Promise { + const poller = await this.beginCreateUpdateSqlUserDefinedFunction( resourceGroupName, accountName, databaseName, containerName, - storedProcedureName, - createUpdateSqlStoredProcedureParameters, + userDefinedFunctionName, + createUpdateSqlUserDefinedFunctionParameters, options, ); return poller.pollUntilDone(); } /** - * Deletes an existing Azure Cosmos DB SQL storedProcedure. + * Deletes an existing Azure Cosmos DB SQL userDefinedFunction. * @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 storedProcedureName Cosmos DB storedProcedure name. + * @param userDefinedFunctionName Cosmos DB userDefinedFunction name. * @param options The options parameters. */ - async beginDeleteSqlStoredProcedure( + async beginDeleteSqlUserDefinedFunction( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - storedProcedureName: string, - options?: SqlResourcesDeleteSqlStoredProcedureOptionalParams, + userDefinedFunctionName: string, + options?: SqlResourcesDeleteSqlUserDefinedFunctionOptionalParams, ): Promise< SimplePollerLike< - OperationState, - SqlResourcesDeleteSqlStoredProcedureResponse + OperationState, + SqlResourcesDeleteSqlUserDefinedFunctionResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -2947,14 +2551,14 @@ export class SqlResourcesImpl implements SqlResources { accountName, databaseName, containerName, - storedProcedureName, + userDefinedFunctionName, options, }, - spec: deleteSqlStoredProcedureOperationSpec, + spec: deleteSqlUserDefinedFunctionOperationSpec, }); const poller = await createHttpPoller< - SqlResourcesDeleteSqlStoredProcedureResponse, - OperationState + SqlResourcesDeleteSqlUserDefinedFunctionResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -2964,113 +2568,112 @@ export class SqlResourcesImpl implements SqlResources { } /** - * Deletes an existing Azure Cosmos DB SQL storedProcedure. + * Deletes an existing Azure Cosmos DB SQL userDefinedFunction. * @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 storedProcedureName Cosmos DB storedProcedure name. + * @param userDefinedFunctionName Cosmos DB userDefinedFunction name. * @param options The options parameters. */ - async beginDeleteSqlStoredProcedureAndWait( + async beginDeleteSqlUserDefinedFunctionAndWait( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - storedProcedureName: string, - options?: SqlResourcesDeleteSqlStoredProcedureOptionalParams, - ): Promise { - const poller = await this.beginDeleteSqlStoredProcedure( + userDefinedFunctionName: string, + options?: SqlResourcesDeleteSqlUserDefinedFunctionOptionalParams, + ): Promise { + const poller = await this.beginDeleteSqlUserDefinedFunction( resourceGroupName, accountName, databaseName, containerName, - storedProcedureName, + userDefinedFunctionName, options, ); return poller.pollUntilDone(); } /** - * Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account. + * Lists the SQL trigger 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. */ - private _listSqlUserDefinedFunctions( + private _listSqlTriggers( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - options?: SqlResourcesListSqlUserDefinedFunctionsOptionalParams, - ): Promise { - return this.client.sendOperationRequest( + options?: SqlResourcesListSqlTriggersOptionalParams, + ): Promise { + return this.client.sendOperationRequest( { resourceGroupName, accountName, databaseName, containerName, options }, - listSqlUserDefinedFunctionsOperationSpec, + listSqlTriggersOperationSpec, ); } /** - * Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account. + * Gets the SQL trigger 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 userDefinedFunctionName Cosmos DB userDefinedFunction name. + * @param triggerName Cosmos DB trigger name. * @param options The options parameters. */ - getSqlUserDefinedFunction( + getSqlTrigger( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - userDefinedFunctionName: string, - options?: SqlResourcesGetSqlUserDefinedFunctionOptionalParams, - ): Promise { + triggerName: string, + options?: SqlResourcesGetSqlTriggerOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, databaseName, containerName, - userDefinedFunctionName, + triggerName, options, }, - getSqlUserDefinedFunctionOperationSpec, + getSqlTriggerOperationSpec, ); } /** - * Create or update an Azure Cosmos DB SQL userDefinedFunction + * Create or update an Azure Cosmos DB SQL trigger * @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 userDefinedFunctionName Cosmos DB userDefinedFunction name. - * @param createUpdateSqlUserDefinedFunctionParameters The parameters to provide for the current SQL - * userDefinedFunction. + * @param triggerName Cosmos DB trigger name. + * @param createUpdateSqlTriggerParameters The parameters to provide for the current SQL trigger. * @param options The options parameters. */ - async beginCreateUpdateSqlUserDefinedFunction( + async beginCreateUpdateSqlTrigger( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - userDefinedFunctionName: string, - createUpdateSqlUserDefinedFunctionParameters: SqlUserDefinedFunctionCreateUpdateParameters, - options?: SqlResourcesCreateUpdateSqlUserDefinedFunctionOptionalParams, + triggerName: string, + createUpdateSqlTriggerParameters: SqlTriggerCreateUpdateParameters, + options?: SqlResourcesCreateUpdateSqlTriggerOptionalParams, ): Promise< SimplePollerLike< - OperationState, - SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse + OperationState, + SqlResourcesCreateUpdateSqlTriggerResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -3112,15 +2715,15 @@ export class SqlResourcesImpl implements SqlResources { accountName, databaseName, containerName, - userDefinedFunctionName, - createUpdateSqlUserDefinedFunctionParameters, + triggerName, + createUpdateSqlTriggerParameters, options, }, - spec: createUpdateSqlUserDefinedFunctionOperationSpec, + spec: createUpdateSqlTriggerOperationSpec, }); const poller = await createHttpPoller< - SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse, - OperationState + SqlResourcesCreateUpdateSqlTriggerResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -3130,63 +2733,62 @@ export class SqlResourcesImpl implements SqlResources { } /** - * Create or update an Azure Cosmos DB SQL userDefinedFunction + * Create or update an Azure Cosmos DB SQL trigger * @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 userDefinedFunctionName Cosmos DB userDefinedFunction name. - * @param createUpdateSqlUserDefinedFunctionParameters The parameters to provide for the current SQL - * userDefinedFunction. + * @param triggerName Cosmos DB trigger name. + * @param createUpdateSqlTriggerParameters The parameters to provide for the current SQL trigger. * @param options The options parameters. */ - async beginCreateUpdateSqlUserDefinedFunctionAndWait( + async beginCreateUpdateSqlTriggerAndWait( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - userDefinedFunctionName: string, - createUpdateSqlUserDefinedFunctionParameters: SqlUserDefinedFunctionCreateUpdateParameters, - options?: SqlResourcesCreateUpdateSqlUserDefinedFunctionOptionalParams, - ): Promise { - const poller = await this.beginCreateUpdateSqlUserDefinedFunction( + triggerName: string, + createUpdateSqlTriggerParameters: SqlTriggerCreateUpdateParameters, + options?: SqlResourcesCreateUpdateSqlTriggerOptionalParams, + ): Promise { + const poller = await this.beginCreateUpdateSqlTrigger( resourceGroupName, accountName, databaseName, containerName, - userDefinedFunctionName, - createUpdateSqlUserDefinedFunctionParameters, + triggerName, + createUpdateSqlTriggerParameters, options, ); return poller.pollUntilDone(); } /** - * Deletes an existing Azure Cosmos DB SQL userDefinedFunction. + * Deletes an existing Azure Cosmos DB SQL trigger. * @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 userDefinedFunctionName Cosmos DB userDefinedFunction name. + * @param triggerName Cosmos DB trigger name. * @param options The options parameters. */ - async beginDeleteSqlUserDefinedFunction( + async beginDeleteSqlTrigger( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - userDefinedFunctionName: string, - options?: SqlResourcesDeleteSqlUserDefinedFunctionOptionalParams, + triggerName: string, + options?: SqlResourcesDeleteSqlTriggerOptionalParams, ): Promise< SimplePollerLike< - OperationState, - SqlResourcesDeleteSqlUserDefinedFunctionResponse + OperationState, + SqlResourcesDeleteSqlTriggerResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -3228,14 +2830,14 @@ export class SqlResourcesImpl implements SqlResources { accountName, databaseName, containerName, - userDefinedFunctionName, + triggerName, options, }, - spec: deleteSqlUserDefinedFunctionOperationSpec, + spec: deleteSqlTriggerOperationSpec, }); const poller = await createHttpPoller< - SqlResourcesDeleteSqlUserDefinedFunctionResponse, - OperationState + SqlResourcesDeleteSqlTriggerResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -3245,112 +2847,77 @@ export class SqlResourcesImpl implements SqlResources { } /** - * Deletes an existing Azure Cosmos DB SQL userDefinedFunction. + * Deletes an existing Azure Cosmos DB SQL trigger. * @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 userDefinedFunctionName Cosmos DB userDefinedFunction name. + * @param triggerName Cosmos DB trigger name. * @param options The options parameters. */ - async beginDeleteSqlUserDefinedFunctionAndWait( + async beginDeleteSqlTriggerAndWait( resourceGroupName: string, accountName: string, databaseName: string, containerName: string, - userDefinedFunctionName: string, - options?: SqlResourcesDeleteSqlUserDefinedFunctionOptionalParams, - ): Promise { - const poller = await this.beginDeleteSqlUserDefinedFunction( + triggerName: string, + options?: SqlResourcesDeleteSqlTriggerOptionalParams, + ): Promise { + const poller = await this.beginDeleteSqlTrigger( resourceGroupName, accountName, databaseName, containerName, - userDefinedFunctionName, + triggerName, options, ); return poller.pollUntilDone(); } /** - * Lists the SQL trigger 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. - */ - private _listSqlTriggers( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: SqlResourcesListSqlTriggersOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, databaseName, containerName, options }, - listSqlTriggersOperationSpec, - ); - } - - /** - * Gets the SQL trigger under an existing Azure Cosmos DB database account. + * Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. + * @param roleDefinitionId The GUID for the Role Definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param triggerName Cosmos DB trigger name. * @param options The options parameters. */ - getSqlTrigger( + getSqlRoleDefinition( + roleDefinitionId: string, resourceGroupName: string, accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - options?: SqlResourcesGetSqlTriggerOptionalParams, - ): Promise { + options?: SqlResourcesGetSqlRoleDefinitionOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - accountName, - databaseName, - containerName, - triggerName, - options, - }, - getSqlTriggerOperationSpec, + { roleDefinitionId, resourceGroupName, accountName, options }, + getSqlRoleDefinitionOperationSpec, ); } /** - * Create or update an Azure Cosmos DB SQL trigger + * Creates or updates an Azure Cosmos DB SQL Role Definition. + * @param roleDefinitionId The GUID for the Role Definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param triggerName Cosmos DB trigger name. - * @param createUpdateSqlTriggerParameters The parameters to provide for the current SQL trigger. + * @param createUpdateSqlRoleDefinitionParameters The properties required to create or update a Role + * Definition. * @param options The options parameters. */ - async beginCreateUpdateSqlTrigger( + async beginCreateUpdateSqlRoleDefinition( + roleDefinitionId: string, resourceGroupName: string, accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - createUpdateSqlTriggerParameters: SqlTriggerCreateUpdateParameters, - options?: SqlResourcesCreateUpdateSqlTriggerOptionalParams, + createUpdateSqlRoleDefinitionParameters: SqlRoleDefinitionCreateUpdateParameters, + options?: SqlResourcesCreateUpdateSqlRoleDefinitionOptionalParams, ): Promise< SimplePollerLike< - OperationState, - SqlResourcesCreateUpdateSqlTriggerResponse + OperationState, + SqlResourcesCreateUpdateSqlRoleDefinitionResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -3388,19 +2955,17 @@ export class SqlResourcesImpl implements SqlResources { const lro = createLroSpec({ sendOperationFn, args: { + roleDefinitionId, resourceGroupName, accountName, - databaseName, - containerName, - triggerName, - createUpdateSqlTriggerParameters, + createUpdateSqlRoleDefinitionParameters, options, }, - spec: createUpdateSqlTriggerOperationSpec, + spec: createUpdateSqlRoleDefinitionOperationSpec, }); const poller = await createHttpPoller< - SqlResourcesCreateUpdateSqlTriggerResponse, - OperationState + SqlResourcesCreateUpdateSqlRoleDefinitionResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -3410,290 +2975,48 @@ export class SqlResourcesImpl implements SqlResources { } /** - * Create or update an Azure Cosmos DB SQL trigger + * Creates or updates an Azure Cosmos DB SQL Role Definition. + * @param roleDefinitionId The GUID for the Role Definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param triggerName Cosmos DB trigger name. - * @param createUpdateSqlTriggerParameters The parameters to provide for the current SQL trigger. + * @param createUpdateSqlRoleDefinitionParameters The properties required to create or update a Role + * Definition. * @param options The options parameters. */ - async beginCreateUpdateSqlTriggerAndWait( + async beginCreateUpdateSqlRoleDefinitionAndWait( + roleDefinitionId: string, resourceGroupName: string, accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - createUpdateSqlTriggerParameters: SqlTriggerCreateUpdateParameters, - options?: SqlResourcesCreateUpdateSqlTriggerOptionalParams, - ): Promise { - const poller = await this.beginCreateUpdateSqlTrigger( + createUpdateSqlRoleDefinitionParameters: SqlRoleDefinitionCreateUpdateParameters, + options?: SqlResourcesCreateUpdateSqlRoleDefinitionOptionalParams, + ): Promise { + const poller = await this.beginCreateUpdateSqlRoleDefinition( + roleDefinitionId, resourceGroupName, accountName, - databaseName, - containerName, - triggerName, - createUpdateSqlTriggerParameters, + createUpdateSqlRoleDefinitionParameters, options, ); return poller.pollUntilDone(); } /** - * Deletes an existing Azure Cosmos DB SQL trigger. + * Deletes an existing Azure Cosmos DB SQL Role Definition. + * @param roleDefinitionId The GUID for the Role Definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param triggerName Cosmos DB trigger name. * @param options The options parameters. */ - async beginDeleteSqlTrigger( + async beginDeleteSqlRoleDefinition( + roleDefinitionId: string, resourceGroupName: string, accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - options?: SqlResourcesDeleteSqlTriggerOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - SqlResourcesDeleteSqlTriggerResponse - > - > { + options?: SqlResourcesDeleteSqlRoleDefinitionOptionalParams, + ): 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, - databaseName, - containerName, - triggerName, - options, - }, - spec: deleteSqlTriggerOperationSpec, - }); - const poller = await createHttpPoller< - SqlResourcesDeleteSqlTriggerResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Deletes an existing Azure Cosmos DB SQL trigger. - * @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 triggerName Cosmos DB trigger name. - * @param options The options parameters. - */ - async beginDeleteSqlTriggerAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - options?: SqlResourcesDeleteSqlTriggerOptionalParams, - ): Promise { - const poller = await this.beginDeleteSqlTrigger( - resourceGroupName, - accountName, - databaseName, - containerName, - triggerName, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. - * @param roleDefinitionId The GUID for the Role Definition. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param options The options parameters. - */ - getSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - options?: SqlResourcesGetSqlRoleDefinitionOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { roleDefinitionId, resourceGroupName, accountName, options }, - getSqlRoleDefinitionOperationSpec, - ); - } - - /** - * Creates or updates an Azure Cosmos DB SQL Role Definition. - * @param roleDefinitionId The GUID for the Role Definition. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param createUpdateSqlRoleDefinitionParameters The properties required to create or update a Role - * Definition. - * @param options The options parameters. - */ - async beginCreateUpdateSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - createUpdateSqlRoleDefinitionParameters: SqlRoleDefinitionCreateUpdateParameters, - options?: SqlResourcesCreateUpdateSqlRoleDefinitionOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - SqlResourcesCreateUpdateSqlRoleDefinitionResponse - > - > { - 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: { - roleDefinitionId, - resourceGroupName, - accountName, - createUpdateSqlRoleDefinitionParameters, - options, - }, - spec: createUpdateSqlRoleDefinitionOperationSpec, - }); - const poller = await createHttpPoller< - SqlResourcesCreateUpdateSqlRoleDefinitionResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Creates or updates an Azure Cosmos DB SQL Role Definition. - * @param roleDefinitionId The GUID for the Role Definition. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param createUpdateSqlRoleDefinitionParameters The properties required to create or update a Role - * Definition. - * @param options The options parameters. - */ - async beginCreateUpdateSqlRoleDefinitionAndWait( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - createUpdateSqlRoleDefinitionParameters: SqlRoleDefinitionCreateUpdateParameters, - options?: SqlResourcesCreateUpdateSqlRoleDefinitionOptionalParams, - ): Promise { - const poller = await this.beginCreateUpdateSqlRoleDefinition( - roleDefinitionId, - resourceGroupName, - accountName, - createUpdateSqlRoleDefinitionParameters, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Deletes an existing Azure Cosmos DB SQL Role Definition. - * @param roleDefinitionId The GUID for the Role Definition. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param options The options parameters. - */ - async beginDeleteSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - options?: SqlResourcesDeleteSqlRoleDefinitionOptionalParams, - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -4330,12 +3653,12 @@ 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", +const listSqlContainersOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClientEncryptionKeysListResult, + bodyMapper: Mappers.SqlContainerListResult, }, }, queryParameters: [Parameters.apiVersion], @@ -4349,12 +3672,12 @@ const listClientEncryptionKeysOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const getClientEncryptionKeyOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys/{clientEncryptionKeyName}", +const getSqlContainerOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClientEncryptionKeyGetResults, + bodyMapper: Mappers.SqlContainerGetResults, }, }, queryParameters: [Parameters.apiVersion], @@ -4364,29 +3687,29 @@ const getClientEncryptionKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName, - Parameters.clientEncryptionKeyName, + Parameters.containerName, ], headerParameters: [Parameters.accept], serializer, }; -const createUpdateClientEncryptionKeyOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys/{clientEncryptionKeyName}", +const createUpdateSqlContainerOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ClientEncryptionKeyGetResults, + bodyMapper: Mappers.SqlContainerGetResults, }, 201: { - bodyMapper: Mappers.ClientEncryptionKeyGetResults, + bodyMapper: Mappers.SqlContainerGetResults, }, 202: { - bodyMapper: Mappers.ClientEncryptionKeyGetResults, + bodyMapper: Mappers.SqlContainerGetResults, }, 204: { - bodyMapper: Mappers.ClientEncryptionKeyGetResults, + bodyMapper: Mappers.SqlContainerGetResults, }, }, - requestBody: Parameters.createUpdateClientEncryptionKeyParameters, + requestBody: Parameters.createUpdateSqlContainerParameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -4394,77 +3717,7 @@ const createUpdateClientEncryptionKeyOperationSpec: coreClient.OperationSpec = { 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", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SqlContainerListResult, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getSqlContainerOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SqlContainerGetResults, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName, - Parameters.containerName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const createUpdateSqlContainerOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.SqlContainerGetResults, - }, - 201: { - bodyMapper: Mappers.SqlContainerGetResults, - }, - 202: { - bodyMapper: Mappers.SqlContainerGetResults, - }, - 204: { - bodyMapper: Mappers.SqlContainerGetResults, - }, - }, - requestBody: Parameters.createUpdateSqlContainerParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName, - Parameters.containerName, + Parameters.containerName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -4498,73 +3751,6 @@ const deleteSqlContainerOperationSpec: coreClient.OperationSpec = { ], serializer, }; -const sqlDatabasePartitionMergeOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/partitionMerge", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection, - }, - 201: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection, - }, - 202: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection, - }, - 204: { - bodyMapper: Mappers.PhysicalPartitionStorageInfoCollection, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.mergeParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - 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.ErrorResponse, - }, - }, - 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", httpMethod: "GET", @@ -4681,144 +3867,76 @@ 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.ErrorResponse, - }, +const listClientEncryptionKeysOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/clientEncryptionKeys", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ClientEncryptionKeysListResult, }, - 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 = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{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.ErrorResponse, - }, + }, + 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, }, - 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 sqlContainerRetrieveThroughputDistributionOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/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.ErrorResponse, - }, + }, + 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, }, - requestBody: Parameters.retrieveThroughputParameters, - 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 sqlContainerRedistributeThroughputOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/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.ErrorResponse, - }, + 201: { + bodyMapper: Mappers.ClientEncryptionKeyGetResults, }, - requestBody: Parameters.redistributeThroughputParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName, - Parameters.containerName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, - }; + 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 listSqlStoredProceduresOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures", httpMethod: "GET", diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPool.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPool.ts deleted file mode 100644 index 9159538c99a3..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPool.ts +++ /dev/null @@ -1,454 +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 { ThroughputPool } 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 { - ThroughputPoolGetOptionalParams, - ThroughputPoolGetResponse, - ThroughputPoolResource, - ThroughputPoolCreateOrUpdateOptionalParams, - ThroughputPoolCreateOrUpdateResponse, - ThroughputPoolUpdateOptionalParams, - ThroughputPoolUpdateResponse, - ThroughputPoolDeleteOptionalParams, - ThroughputPoolDeleteResponse, -} from "../models"; - -/** Class containing ThroughputPool operations. */ -export class ThroughputPoolImpl implements ThroughputPool { - private readonly client: CosmosDBManagementClient; - - /** - * Initialize a new instance of the class ThroughputPool class. - * @param client Reference to the service client - */ - constructor(client: CosmosDBManagementClient) { - this.client = client; - } - - /** - * Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, throughputPoolName, options }, - getOperationSpec, - ); - } - - /** - * Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when - * performing updates on an account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param body The parameters to provide for the current ThroughputPool. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - throughputPoolName: string, - body: ThroughputPoolResource, - options?: ThroughputPoolCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ThroughputPoolCreateOrUpdateResponse - > - > { - 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, throughputPoolName, body, options }, - spec: createOrUpdateOperationSpec, - }); - const poller = await createHttpPoller< - ThroughputPoolCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation", - }); - await poller.poll(); - return poller; - } - - /** - * Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when - * performing updates on an account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param body The parameters to provide for the current ThroughputPool. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - throughputPoolName: string, - body: ThroughputPoolResource, - options?: ThroughputPoolCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - throughputPoolName, - body, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Updates the properties of an existing Azure Cosmos DB Throughput Pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ThroughputPoolUpdateResponse - > - > { - 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, throughputPoolName, options }, - spec: updateOperationSpec, - }); - const poller = await createHttpPoller< - ThroughputPoolUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation", - }); - await poller.poll(); - return poller; - } - - /** - * Updates the properties of an existing Azure Cosmos DB Throughput Pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolUpdateOptionalParams, - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - throughputPoolName, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Deletes an existing Azure Cosmos DB Throughput Pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ThroughputPoolDeleteResponse - > - > { - 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, throughputPoolName, options }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - ThroughputPoolDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Deletes an existing Azure Cosmos DB Throughput Pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - throughputPoolName, - options, - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ThroughputPoolResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.throughputPoolName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.ThroughputPoolResource, - }, - 201: { - bodyMapper: Mappers.ThroughputPoolResource, - }, - 202: { - bodyMapper: Mappers.ThroughputPoolResource, - }, - 204: { - bodyMapper: Mappers.ThroughputPoolResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.body3, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.throughputPoolName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.ThroughputPoolResource, - }, - 201: { - bodyMapper: Mappers.ThroughputPoolResource, - }, - 202: { - bodyMapper: Mappers.ThroughputPoolResource, - }, - 204: { - bodyMapper: Mappers.ThroughputPoolResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.body4, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.throughputPoolName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.ThroughputPoolDeleteHeaders, - }, - 201: { - headersMapper: Mappers.ThroughputPoolDeleteHeaders, - }, - 202: { - headersMapper: Mappers.ThroughputPoolDeleteHeaders, - }, - 204: { - headersMapper: Mappers.ThroughputPoolDeleteHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.throughputPoolName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPoolAccount.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPoolAccount.ts deleted file mode 100644 index c5ca57721f63..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPoolAccount.ts +++ /dev/null @@ -1,361 +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 { ThroughputPoolAccount } 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 { - ThroughputPoolAccountGetOptionalParams, - ThroughputPoolAccountGetResponse, - ThroughputPoolAccountResource, - ThroughputPoolAccountCreateOptionalParams, - ThroughputPoolAccountCreateResponse, - ThroughputPoolAccountDeleteOptionalParams, - ThroughputPoolAccountDeleteResponse, -} from "../models"; - -/** Class containing ThroughputPoolAccount operations. */ -export class ThroughputPoolAccountImpl implements ThroughputPoolAccount { - private readonly client: CosmosDBManagementClient; - - /** - * Initialize a new instance of the class ThroughputPoolAccount class. - * @param client Reference to the service client - */ - constructor(client: CosmosDBManagementClient) { - this.client = client; - } - - /** - * Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool - * @param options The options parameters. - */ - get( - resourceGroupName: string, - throughputPoolName: string, - throughputPoolAccountName: string, - options?: ThroughputPoolAccountGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - throughputPoolName, - throughputPoolAccountName, - options, - }, - getOperationSpec, - ); - } - - /** - * Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when - * performing updates on an account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool - * @param body The parameters to provide for the current ThroughputPoolAccount. - * @param options The options parameters. - */ - async beginCreate( - resourceGroupName: string, - throughputPoolName: string, - throughputPoolAccountName: string, - body: ThroughputPoolAccountResource, - options?: ThroughputPoolAccountCreateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ThroughputPoolAccountCreateResponse - > - > { - 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, - throughputPoolName, - throughputPoolAccountName, - body, - options, - }, - spec: createOperationSpec, - }); - const poller = await createHttpPoller< - ThroughputPoolAccountCreateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation", - }); - await poller.poll(); - return poller; - } - - /** - * Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when - * performing updates on an account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool - * @param body The parameters to provide for the current ThroughputPoolAccount. - * @param options The options parameters. - */ - async beginCreateAndWait( - resourceGroupName: string, - throughputPoolName: string, - throughputPoolAccountName: string, - body: ThroughputPoolAccountResource, - options?: ThroughputPoolAccountCreateOptionalParams, - ): Promise { - const poller = await this.beginCreate( - resourceGroupName, - throughputPoolName, - throughputPoolAccountName, - body, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Removes an existing Azure Cosmos DB database account from a throughput pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - throughputPoolName: string, - throughputPoolAccountName: string, - options?: ThroughputPoolAccountDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ThroughputPoolAccountDeleteResponse - > - > { - 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, - throughputPoolName, - throughputPoolAccountName, - options, - }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - ThroughputPoolAccountDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Removes an existing Azure Cosmos DB database account from a throughput pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - throughputPoolName: string, - throughputPoolAccountName: string, - options?: ThroughputPoolAccountDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - throughputPoolName, - throughputPoolAccountName, - options, - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}/throughputPoolAccounts/{throughputPoolAccountName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ThroughputPoolAccountResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.throughputPoolName, - Parameters.throughputPoolAccountName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const createOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}/throughputPoolAccounts/{throughputPoolAccountName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.ThroughputPoolAccountResource, - }, - 201: { - bodyMapper: Mappers.ThroughputPoolAccountResource, - }, - 202: { - bodyMapper: Mappers.ThroughputPoolAccountResource, - }, - 204: { - bodyMapper: Mappers.ThroughputPoolAccountResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.body5, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.throughputPoolName, - Parameters.throughputPoolAccountName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}/throughputPoolAccounts/{throughputPoolAccountName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.ThroughputPoolAccountDeleteHeaders, - }, - 201: { - headersMapper: Mappers.ThroughputPoolAccountDeleteHeaders, - }, - 202: { - headersMapper: Mappers.ThroughputPoolAccountDeleteHeaders, - }, - 204: { - headersMapper: Mappers.ThroughputPoolAccountDeleteHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.throughputPoolName, - Parameters.throughputPoolAccountName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPoolAccounts.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPoolAccounts.ts deleted file mode 100644 index 783b842b520e..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPoolAccounts.ts +++ /dev/null @@ -1,197 +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 { ThroughputPoolAccounts } 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 { - ThroughputPoolAccountResource, - ThroughputPoolAccountsListNextOptionalParams, - ThroughputPoolAccountsListOptionalParams, - ThroughputPoolAccountsListResponse, - ThroughputPoolAccountsListNextResponse, -} from "../models"; - -/// -/** Class containing ThroughputPoolAccounts operations. */ -export class ThroughputPoolAccountsImpl implements ThroughputPoolAccounts { - private readonly client: CosmosDBManagementClient; - - /** - * Initialize a new instance of the class ThroughputPoolAccounts class. - * @param client Reference to the service client - */ - constructor(client: CosmosDBManagementClient) { - this.client = client; - } - - /** - * Lists all the Azure Cosmos DB accounts available under the subscription. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolAccountsListOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - throughputPoolName, - 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.listPagingPage( - resourceGroupName, - throughputPoolName, - options, - settings, - ); - }, - }; - } - - private async *listPagingPage( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolAccountsListOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: ThroughputPoolAccountsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(resourceGroupName, throughputPoolName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - throughputPoolName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolAccountsListOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - throughputPoolName, - options, - )) { - yield* page; - } - } - - /** - * Lists all the Azure Cosmos DB accounts available under the subscription. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolAccountsListOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, throughputPoolName, options }, - listOperationSpec, - ); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - throughputPoolName: string, - nextLink: string, - options?: ThroughputPoolAccountsListNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, throughputPoolName, nextLink, options }, - listNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools/{throughputPoolName}/throughputPoolAccounts", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ThroughputPoolAccountsListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.throughputPoolName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ThroughputPoolAccountsListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink, - Parameters.throughputPoolName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPools.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPools.ts deleted file mode 100644 index 6914ba0be227..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/throughputPools.ts +++ /dev/null @@ -1,298 +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 { ThroughputPools } 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 { - ThroughputPoolResource, - ThroughputPoolsListNextOptionalParams, - ThroughputPoolsListOptionalParams, - ThroughputPoolsListResponse, - ThroughputPoolsListByResourceGroupNextOptionalParams, - ThroughputPoolsListByResourceGroupOptionalParams, - ThroughputPoolsListByResourceGroupResponse, - ThroughputPoolsListNextResponse, - ThroughputPoolsListByResourceGroupNextResponse, -} from "../models"; - -/// -/** Class containing ThroughputPools operations. */ -export class ThroughputPoolsImpl implements ThroughputPools { - private readonly client: CosmosDBManagementClient; - - /** - * Initialize a new instance of the class ThroughputPools class. - * @param client Reference to the service client - */ - constructor(client: CosmosDBManagementClient) { - this.client = client; - } - - /** - * Lists all the Azure Cosmos DB Throughput Pools available under the subscription. - * @param options The options parameters. - */ - public list( - options?: ThroughputPoolsListOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(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.listPagingPage(options, settings); - }, - }; - } - - private async *listPagingPage( - options?: ThroughputPoolsListOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: ThroughputPoolsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - options?: ThroughputPoolsListOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { - yield* page; - } - } - - /** - * List all the ThroughputPools in a given resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - public listByResourceGroup( - resourceGroupName: string, - options?: ThroughputPoolsListByResourceGroupOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); - }, - }; - } - - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: ThroughputPoolsListByResourceGroupOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: ThroughputPoolsListByResourceGroupResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: ThroughputPoolsListByResourceGroupOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { - yield* page; - } - } - - /** - * Lists all the Azure Cosmos DB Throughput Pools available under the subscription. - * @param options The options parameters. - */ - private _list( - options?: ThroughputPoolsListOptionalParams, - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - - /** - * List all the ThroughputPools in a given resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: ThroughputPoolsListByResourceGroupOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec, - ); - } - - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - nextLink: string, - options?: ThroughputPoolsListNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); - } - - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext( - resourceGroupName: string, - nextLink: string, - options?: ThroughputPoolsListByResourceGroupNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/throughputPools", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ThroughputPoolsListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/throughputPools", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ThroughputPoolsListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ThroughputPoolsListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ThroughputPoolsListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/cassandraClusters.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/cassandraClusters.ts index 327b7da76aae..ee04087b70ce 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/cassandraClusters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/cassandraClusters.ts @@ -12,10 +12,6 @@ import { ClusterResource, CassandraClustersListBySubscriptionOptionalParams, CassandraClustersListByResourceGroupOptionalParams, - CommandPublicResource, - CassandraClustersListCommandOptionalParams, - BackupResource, - CassandraClustersListBackupsOptionalParams, CassandraClustersGetOptionalParams, CassandraClustersGetResponse, CassandraClustersDeleteOptionalParams, @@ -26,12 +22,6 @@ import { CommandPostBody, CassandraClustersInvokeCommandOptionalParams, CassandraClustersInvokeCommandResponse, - CassandraClustersInvokeCommandAsyncOptionalParams, - CassandraClustersInvokeCommandAsyncResponse, - CassandraClustersGetCommandAsyncOptionalParams, - CassandraClustersGetCommandAsyncResponse, - CassandraClustersGetBackupOptionalParams, - CassandraClustersGetBackupResponse, CassandraClustersDeallocateOptionalParams, CassandraClustersStartOptionalParams, CassandraClustersStatusOptionalParams, @@ -57,28 +47,6 @@ export interface CassandraClusters { resourceGroupName: string, options?: CassandraClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; - /** - * List all commands currently running on ring info - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param options The options parameters. - */ - listCommand( - resourceGroupName: string, - clusterName: string, - options?: CassandraClustersListCommandOptionalParams, - ): 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. @@ -207,63 +175,6 @@ export interface CassandraClusters { body: CommandPostBody, options?: CassandraClustersInvokeCommandOptionalParams, ): Promise; - /** - * Invoke a command like nodetool for cassandra maintenance asynchronously - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body Specification which command to run where - * @param options The options parameters. - */ - beginInvokeCommandAsync( - resourceGroupName: string, - clusterName: string, - body: CommandPostBody, - options?: CassandraClustersInvokeCommandAsyncOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CassandraClustersInvokeCommandAsyncResponse - > - >; - /** - * Invoke a command like nodetool for cassandra maintenance asynchronously - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body Specification which command to run where - * @param options The options parameters. - */ - beginInvokeCommandAsyncAndWait( - resourceGroupName: string, - clusterName: string, - body: CommandPostBody, - options?: CassandraClustersInvokeCommandAsyncOptionalParams, - ): Promise; - /** - * Get details about a specified command that was run asynchronously. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param commandId Managed Cassandra cluster command id. - * @param options The options parameters. - */ - getCommandAsync( - resourceGroupName: string, - clusterName: string, - commandId: string, - options?: CassandraClustersGetCommandAsyncOptionalParams, - ): 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 d2e8d12a7372..6b9eeca3a70d 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, @@ -46,20 +44,6 @@ import { CassandraResourcesMigrateCassandraTableToAutoscaleResponse, CassandraResourcesMigrateCassandraTableToManualThroughputOptionalParams, CassandraResourcesMigrateCassandraTableToManualThroughputResponse, - CassandraResourcesGetCassandraViewOptionalParams, - CassandraResourcesGetCassandraViewResponse, - CassandraViewCreateUpdateParameters, - CassandraResourcesCreateUpdateCassandraViewOptionalParams, - CassandraResourcesCreateUpdateCassandraViewResponse, - CassandraResourcesDeleteCassandraViewOptionalParams, - CassandraResourcesGetCassandraViewThroughputOptionalParams, - CassandraResourcesGetCassandraViewThroughputResponse, - CassandraResourcesUpdateCassandraViewThroughputOptionalParams, - CassandraResourcesUpdateCassandraViewThroughputResponse, - CassandraResourcesMigrateCassandraViewToAutoscaleOptionalParams, - CassandraResourcesMigrateCassandraViewToAutoscaleResponse, - CassandraResourcesMigrateCassandraViewToManualThroughputOptionalParams, - CassandraResourcesMigrateCassandraViewToManualThroughputResponse, } 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. @@ -515,215 +486,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 - > - >; - /** - * 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/chaosFault.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/chaosFault.ts deleted file mode 100644 index 2f06c46da2da..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/chaosFault.ts +++ /dev/null @@ -1,82 +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 { - ChaosFaultResource, - ChaosFaultListOptionalParams, - ChaosFaultEnableDisableOptionalParams, - ChaosFaultEnableDisableResponse, - ChaosFaultGetOptionalParams, - ChaosFaultGetResponse, -} from "../models"; - -/// -/** Interface representing a ChaosFault. */ -export interface ChaosFault { - /** - * List Chaos Faults for CosmosDB 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. - */ - list( - resourceGroupName: string, - accountName: string, - options?: ChaosFaultListOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Enable, disable Chaos Fault in a CosmosDB account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param chaosFault The name of the ChaosFault. - * @param chaosFaultRequest A request object to enable/disable the chaos fault. - * @param options The options parameters. - */ - beginEnableDisable( - resourceGroupName: string, - accountName: string, - chaosFault: string, - chaosFaultRequest: ChaosFaultResource, - options?: ChaosFaultEnableDisableOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ChaosFaultEnableDisableResponse - > - >; - /** - * Enable, disable Chaos Fault in a CosmosDB account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param chaosFault The name of the ChaosFault. - * @param chaosFaultRequest A request object to enable/disable the chaos fault. - * @param options The options parameters. - */ - beginEnableDisableAndWait( - resourceGroupName: string, - accountName: string, - chaosFault: string, - chaosFaultRequest: ChaosFaultResource, - options?: ChaosFaultEnableDisableOptionalParams, - ): Promise; - /** - * Get Chaos Fault for a CosmosdB account for a particular Chaos Fault. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param chaosFault The name of the ChaosFault. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - chaosFault: string, - options?: ChaosFaultGetOptionalParams, - ): 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 9e6ffe301391..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/dataTransferJobs.ts +++ /dev/null @@ -1,122 +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, - DataTransferJobsCompleteOptionalParams, - DataTransferJobsCompleteResponse, -} 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; - /** - * Completes a Data Transfer Online 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. - */ - complete( - resourceGroupName: string, - accountName: string, - jobName: string, - options?: DataTransferJobsCompleteOptionalParams, - ): 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 1ffe7c056d61..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 dbc6e7d2c843..96531b8c1b96 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/index.ts @@ -19,17 +19,14 @@ 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 "./networkSecurityPerimeterConfigurations"; export * from "./notebookWorkspaces"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; @@ -46,8 +43,3 @@ export * from "./restorableGremlinResources"; export * from "./restorableTables"; export * from "./restorableTableResources"; export * from "./service"; -export * from "./throughputPools"; -export * from "./throughputPool"; -export * from "./throughputPoolAccounts"; -export * from "./throughputPoolAccount"; -export * from "./chaosFault"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/mongoDBResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/mongoDBResources.ts index 1358b5f758fe..4c31b6974452 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,11 +40,6 @@ import { MongoDBResourcesCreateUpdateMongoDBCollectionResponse, MongoDBResourcesDeleteMongoDBCollectionOptionalParams, MongoDBResourcesDeleteMongoDBCollectionResponse, - MergeParameters, - MongoDBResourcesMongoDBDatabasePartitionMergeOptionalParams, - MongoDBResourcesMongoDBDatabasePartitionMergeResponse, - MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams, - MongoDBResourcesListMongoDBCollectionPartitionMergeResponse, MongoDBResourcesGetMongoDBCollectionThroughputOptionalParams, MongoDBResourcesGetMongoDBCollectionThroughputResponse, MongoDBResourcesUpdateMongoDBCollectionThroughputOptionalParams, @@ -324,162 +309,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 - > - >; - /** - * 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; - /** - * 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 - > - >; - /** - * 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 - > - >; - /** - * 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; - /** - * 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 - > - >; - /** - * 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. @@ -571,80 +400,6 @@ export interface MongoDBResources { collectionName: string, options?: MongoDBResourcesDeleteMongoDBCollectionOptionalParams, ): Promise; - /** - * Merges the partitions of a 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 mergeParameters The parameters for the merge operation. - * @param options The options parameters. - */ - beginMongoDBDatabasePartitionMerge( - resourceGroupName: string, - accountName: string, - databaseName: string, - mergeParameters: MergeParameters, - options?: MongoDBResourcesMongoDBDatabasePartitionMergeOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - MongoDBResourcesMongoDBDatabasePartitionMergeResponse - > - >; - /** - * Merges the partitions of a 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 mergeParameters The parameters for the merge operation. - * @param options The options parameters. - */ - beginMongoDBDatabasePartitionMergeAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - mergeParameters: MergeParameters, - options?: MongoDBResourcesMongoDBDatabasePartitionMergeOptionalParams, - ): 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 - > - >; - /** - * 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/networkSecurityPerimeterConfigurations.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts deleted file mode 100644 index b7220649acbe..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts +++ /dev/null @@ -1,81 +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 { - NetworkSecurityPerimeterConfiguration, - NetworkSecurityPerimeterConfigurationsListOptionalParams, - NetworkSecurityPerimeterConfigurationsGetOptionalParams, - NetworkSecurityPerimeterConfigurationsGetResponse, - NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, - NetworkSecurityPerimeterConfigurationsReconcileResponse, -} from "../models"; - -/// -/** Interface representing a NetworkSecurityPerimeterConfigurations. */ -export interface NetworkSecurityPerimeterConfigurations { - /** - * Gets list of effective Network Security Perimeter Configuration for cosmos db 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. - */ - list( - resourceGroupName: string, - accountName: string, - options?: NetworkSecurityPerimeterConfigurationsListOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Gets effective Network Security Perimeter Configuration for association - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter - * configuration - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - networkSecurityPerimeterConfigurationName: string, - options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams, - ): Promise; - /** - * Refreshes any information about the association. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter - * configuration - * @param options The options parameters. - */ - beginReconcile( - resourceGroupName: string, - accountName: string, - networkSecurityPerimeterConfigurationName: string, - options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - NetworkSecurityPerimeterConfigurationsReconcileResponse - > - >; - /** - * Refreshes any information about the association. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter - * configuration - * @param options The options parameters. - */ - beginReconcileAndWait( - resourceGroupName: string, - accountName: string, - networkSecurityPerimeterConfigurationName: string, - options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, - ): Promise; -} diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/sqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/sqlResources.ts index e5b5d4aa34e6..e2a536558478 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,11 +48,6 @@ import { SqlResourcesCreateUpdateSqlContainerResponse, SqlResourcesDeleteSqlContainerOptionalParams, SqlResourcesDeleteSqlContainerResponse, - MergeParameters, - SqlResourcesSqlDatabasePartitionMergeOptionalParams, - SqlResourcesSqlDatabasePartitionMergeResponse, - SqlResourcesListSqlContainerPartitionMergeOptionalParams, - SqlResourcesListSqlContainerPartitionMergeResponse, SqlResourcesGetSqlContainerThroughputOptionalParams, SqlResourcesGetSqlContainerThroughputResponse, SqlResourcesUpdateSqlContainerThroughputOptionalParams, @@ -66,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, @@ -129,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. @@ -413,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. @@ -560,80 +487,6 @@ export interface SqlResources { containerName: string, options?: SqlResourcesDeleteSqlContainerOptionalParams, ): Promise; - /** - * Merges the partitions of a 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 mergeParameters The parameters for the merge operation. - * @param options The options parameters. - */ - beginSqlDatabasePartitionMerge( - resourceGroupName: string, - accountName: string, - databaseName: string, - mergeParameters: MergeParameters, - options?: SqlResourcesSqlDatabasePartitionMergeOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - SqlResourcesSqlDatabasePartitionMergeResponse - > - >; - /** - * Merges the partitions of a 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 mergeParameters The parameters for the merge operation. - * @param options The options parameters. - */ - beginSqlDatabasePartitionMergeAndWait( - resourceGroupName: string, - accountName: string, - databaseName: string, - mergeParameters: MergeParameters, - options?: SqlResourcesSqlDatabasePartitionMergeOptionalParams, - ): 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. @@ -761,161 +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 - > - >; - /** - * 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 - > - >; - /** - * 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/src/operationsInterfaces/throughputPool.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPool.ts deleted file mode 100644 index 83d0c3c6a421..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPool.ts +++ /dev/null @@ -1,122 +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 { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - ThroughputPoolGetOptionalParams, - ThroughputPoolGetResponse, - ThroughputPoolResource, - ThroughputPoolCreateOrUpdateOptionalParams, - ThroughputPoolCreateOrUpdateResponse, - ThroughputPoolUpdateOptionalParams, - ThroughputPoolUpdateResponse, - ThroughputPoolDeleteOptionalParams, - ThroughputPoolDeleteResponse, -} from "../models"; - -/** Interface representing a ThroughputPool. */ -export interface ThroughputPool { - /** - * Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolGetOptionalParams, - ): Promise; - /** - * Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when - * performing updates on an account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param body The parameters to provide for the current ThroughputPool. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - throughputPoolName: string, - body: ThroughputPoolResource, - options?: ThroughputPoolCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ThroughputPoolCreateOrUpdateResponse - > - >; - /** - * Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when - * performing updates on an account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param body The parameters to provide for the current ThroughputPool. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - throughputPoolName: string, - body: ThroughputPoolResource, - options?: ThroughputPoolCreateOrUpdateOptionalParams, - ): Promise; - /** - * Updates the properties of an existing Azure Cosmos DB Throughput Pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ThroughputPoolUpdateResponse - > - >; - /** - * Updates the properties of an existing Azure Cosmos DB Throughput Pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolUpdateOptionalParams, - ): Promise; - /** - * Deletes an existing Azure Cosmos DB Throughput Pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ThroughputPoolDeleteResponse - > - >; - /** - * Deletes an existing Azure Cosmos DB Throughput Pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolDeleteOptionalParams, - ): Promise; -} diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPoolAccount.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPoolAccount.ts deleted file mode 100644 index 44c05e8056fd..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPoolAccount.ts +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - ThroughputPoolAccountGetOptionalParams, - ThroughputPoolAccountGetResponse, - ThroughputPoolAccountResource, - ThroughputPoolAccountCreateOptionalParams, - ThroughputPoolAccountCreateResponse, - ThroughputPoolAccountDeleteOptionalParams, - ThroughputPoolAccountDeleteResponse, -} from "../models"; - -/** Interface representing a ThroughputPoolAccount. */ -export interface ThroughputPoolAccount { - /** - * Retrieves the properties of an existing Azure Cosmos DB Throughput Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool - * @param options The options parameters. - */ - get( - resourceGroupName: string, - throughputPoolName: string, - throughputPoolAccountName: string, - options?: ThroughputPoolAccountGetOptionalParams, - ): Promise; - /** - * Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when - * performing updates on an account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool - * @param body The parameters to provide for the current ThroughputPoolAccount. - * @param options The options parameters. - */ - beginCreate( - resourceGroupName: string, - throughputPoolName: string, - throughputPoolAccountName: string, - body: ThroughputPoolAccountResource, - options?: ThroughputPoolAccountCreateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ThroughputPoolAccountCreateResponse - > - >; - /** - * Creates or updates an Azure Cosmos DB ThroughputPool account. The "Update" method is preferred when - * performing updates on an account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool - * @param body The parameters to provide for the current ThroughputPoolAccount. - * @param options The options parameters. - */ - beginCreateAndWait( - resourceGroupName: string, - throughputPoolName: string, - throughputPoolAccountName: string, - body: ThroughputPoolAccountResource, - options?: ThroughputPoolAccountCreateOptionalParams, - ): Promise; - /** - * Removes an existing Azure Cosmos DB database account from a throughput pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - throughputPoolName: string, - throughputPoolAccountName: string, - options?: ThroughputPoolAccountDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ThroughputPoolAccountDeleteResponse - > - >; - /** - * Removes an existing Azure Cosmos DB database account from a throughput pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param throughputPoolAccountName Cosmos DB global database account in a Throughput Pool - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - throughputPoolName: string, - throughputPoolAccountName: string, - options?: ThroughputPoolAccountDeleteOptionalParams, - ): Promise; -} diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPoolAccounts.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPoolAccounts.ts deleted file mode 100644 index 83312c1c702e..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPoolAccounts.ts +++ /dev/null @@ -1,29 +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 { - ThroughputPoolAccountResource, - ThroughputPoolAccountsListOptionalParams, -} from "../models"; - -/// -/** Interface representing a ThroughputPoolAccounts. */ -export interface ThroughputPoolAccounts { - /** - * Lists all the Azure Cosmos DB accounts available under the subscription. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param throughputPoolName Cosmos DB Throughput Pool name. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - throughputPoolName: string, - options?: ThroughputPoolAccountsListOptionalParams, - ): PagedAsyncIterableIterator; -} diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPools.ts b/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPools.ts deleted file mode 100644 index 9c73a3815a87..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operationsInterfaces/throughputPools.ts +++ /dev/null @@ -1,35 +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 { - ThroughputPoolResource, - ThroughputPoolsListOptionalParams, - ThroughputPoolsListByResourceGroupOptionalParams, -} from "../models"; - -/// -/** Interface representing a ThroughputPools. */ -export interface ThroughputPools { - /** - * Lists all the Azure Cosmos DB Throughput Pools available under the subscription. - * @param options The options parameters. - */ - list( - options?: ThroughputPoolsListOptionalParams, - ): PagedAsyncIterableIterator; - /** - * List all the ThroughputPools in a given resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: ThroughputPoolsListByResourceGroupOptionalParams, - ): PagedAsyncIterableIterator; -} diff --git a/sdk/cosmosdb/arm-cosmosdb/test/cosmosdb_cassandra_examples.ts b/sdk/cosmosdb/arm-cosmosdb/test/cosmosdb_cassandra_examples.ts index 62504aaf1901..9e5f1f4ffb93 100644 --- a/sdk/cosmosdb/arm-cosmosdb/test/cosmosdb_cassandra_examples.ts +++ b/sdk/cosmosdb/arm-cosmosdb/test/cosmosdb_cassandra_examples.ts @@ -36,7 +36,7 @@ export const testPollingOptions = { updateIntervalInMs: isPlaybackMode() ? 0 : undefined, }; -describe("Cosmosdb test", () => { +describe.only("Cosmosdb test", () => { let recorder: Recorder; let client: CosmosDBManagementClient; let subscriptionId: string; diff --git a/sdk/cosmosdb/arm-cosmosdb/tsconfig.json b/sdk/cosmosdb/arm-cosmosdb/tsconfig.json index bbcdce662fee..4c414734673e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/tsconfig.json +++ b/sdk/cosmosdb/arm-cosmosdb/tsconfig.json @@ -23,8 +23,8 @@ } }, "include": [ - "./src/**/*.ts", - "./test/**/*.ts", + "src/**/*.ts", + "test/**/*.ts", "samples-dev/**/*.ts" ], "exclude": [