Skip to content

Commit

Permalink
CodeGen from PR 18087 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Review request for Microsoft.DocumentDB to add version preview/2022-02-15-preview (Azure#18087)

* Adds base for updating Microsoft.DocumentDB from version preview/2021-11-15-preview to version 2022-02-15-preview

* Updates readme

* Updates API version in new specs and examples

* Partition Merge RP API changes

* fix spec to reflect the returned value

* fix serialization of merge response

* Add mongodb API

* prettier fix

* fixed Linter and Prettier errors

* prettier fixes

* fix linter errors

* address CR feedback

* semantic validation fixes

* fix mongodb merge example

* support for pitr basic/lite

* fix pretty and add mongo 4.2

* Adding Support for Client Encryption Policy in swagger spec

* Update cosmos-db.json

* Update cosmos-db.json

* Update CosmosDBSqlContainerCreateUpdate.json

* Fixed prettier checl

* Fixed prettier check

Co-authored-by: Vinh Trinh <vitrinh@microsoft.com>
Co-authored-by: Santosh Kulkarni <66682828+kr-santosh@users.noreply.github.com>
  • Loading branch information
3 people committed Apr 9, 2022
1 parent 9d5f582 commit f7df4d4
Show file tree
Hide file tree
Showing 18 changed files with 909 additions and 77 deletions.
17 changes: 8 additions & 9 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 22 additions & 17 deletions sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
# Release History

## 16.0.0-beta.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 16.0.0-beta.1 (2022-02-21)

## 15.1.0-beta.1 (2022-04-09)

**Features**

Expand Down Expand Up @@ -47,12 +37,16 @@
- Added operation MongoDBResources.beginDeleteMongoRoleDefinitionAndWait
- Added operation MongoDBResources.beginDeleteMongoUserDefinition
- Added operation MongoDBResources.beginDeleteMongoUserDefinitionAndWait
- Added operation MongoDBResources.beginListMongoDBCollectionPartitionMerge
- Added operation MongoDBResources.beginListMongoDBCollectionPartitionMergeAndWait
- Added operation MongoDBResources.getMongoRoleDefinition
- Added operation MongoDBResources.getMongoUserDefinition
- Added operation MongoDBResources.listMongoRoleDefinitions
- Added operation MongoDBResources.listMongoUserDefinitions
- Added operation SqlResources.beginCreateUpdateClientEncryptionKey
- Added operation SqlResources.beginCreateUpdateClientEncryptionKeyAndWait
- Added operation SqlResources.beginListSqlContainerPartitionMerge
- Added operation SqlResources.beginListSqlContainerPartitionMergeAndWait
- Added operation SqlResources.getClientEncryptionKey
- Added operation SqlResources.listClientEncryptionKeys
- Added operation TableResources.beginRetrieveContinuousBackupInformation
Expand All @@ -71,9 +65,12 @@
- Added Interface CassandraResourcesUpdateCassandraViewThroughputOptionalParams
- Added Interface CassandraViewListResult
- Added Interface CassandraViewResource
- Added Interface ClientEncryptionIncludedPath
- Added Interface ClientEncryptionKeyCreateUpdateParameters
- Added Interface ClientEncryptionKeyResource
- Added Interface ClientEncryptionKeysListResult
- Added Interface ClientEncryptionPolicy
- Added Interface ContinuousModeProperties
- Added Interface DataTransferDataSourceSink
- Added Interface DataTransferJobFeedResults
- Added Interface DataTransferJobProperties
Expand All @@ -95,18 +92,22 @@
- Added Interface KeyWrapMetadata
- Added Interface ListBackups
- Added Interface MaterializedViewsBuilderServiceResource
- Added Interface MergeParameters
- Added Interface MongoDBResourcesCreateUpdateMongoRoleDefinitionOptionalParams
- Added Interface MongoDBResourcesCreateUpdateMongoUserDefinitionOptionalParams
- Added Interface MongoDBResourcesDeleteMongoRoleDefinitionOptionalParams
- Added Interface MongoDBResourcesDeleteMongoUserDefinitionOptionalParams
- Added Interface MongoDBResourcesGetMongoRoleDefinitionOptionalParams
- Added Interface MongoDBResourcesGetMongoUserDefinitionOptionalParams
- Added Interface MongoDBResourcesListMongoDBCollectionPartitionMergeOptionalParams
- Added Interface MongoDBResourcesListMongoRoleDefinitionsOptionalParams
- Added Interface MongoDBResourcesListMongoUserDefinitionsOptionalParams
- Added Interface MongoRoleDefinitionCreateUpdateParameters
- Added Interface MongoRoleDefinitionListResult
- Added Interface MongoUserDefinitionCreateUpdateParameters
- Added Interface MongoUserDefinitionListResult
- Added Interface PhysicalPartitionStorageInfo
- Added Interface PhysicalPartitionStorageInfoCollection
- Added Interface Privilege
- Added Interface PrivilegeResource
- Added Interface RegionalServiceResource
Expand Down Expand Up @@ -138,6 +139,7 @@
- Added Interface SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams
- Added Interface SqlResourcesGetClientEncryptionKeyOptionalParams
- Added Interface SqlResourcesListClientEncryptionKeysOptionalParams
- Added Interface SqlResourcesListSqlContainerPartitionMergeOptionalParams
- Added Interface TableResourcesRetrieveContinuousBackupInformationOptionalParams
- Added Type Alias AzureBlobDataTransferDataSourceSink
- Added Type Alias BackupResource
Expand All @@ -156,6 +158,7 @@
- Added Type Alias CassandraViewGetResults
- Added Type Alias ClientEncryptionKeyGetPropertiesResource
- Added Type Alias ClientEncryptionKeyGetResults
- Added Type Alias ContinuousTier
- Added Type Alias CosmosCassandraDataTransferDataSourceSink
- Added Type Alias CosmosSqlDataTransferDataSourceSink
- Added Type Alias CreateJobRequest
Expand Down Expand Up @@ -185,6 +188,7 @@
- Added Type Alias MongoDBResourcesCreateUpdateMongoUserDefinitionResponse
- Added Type Alias MongoDBResourcesGetMongoRoleDefinitionResponse
- Added Type Alias MongoDBResourcesGetMongoUserDefinitionResponse
- Added Type Alias MongoDBResourcesListMongoDBCollectionPartitionMergeResponse
- Added Type Alias MongoDBResourcesListMongoRoleDefinitionsResponse
- Added Type Alias MongoDBResourcesListMongoUserDefinitionsResponse
- Added Type Alias MongoRoleDefinitionGetResults
Expand All @@ -208,16 +212,19 @@
- Added Type Alias SqlResourcesCreateUpdateClientEncryptionKeyResponse
- Added Type Alias SqlResourcesGetClientEncryptionKeyResponse
- Added Type Alias SqlResourcesListClientEncryptionKeysResponse
- Added Type Alias SqlResourcesListSqlContainerPartitionMergeResponse
- Added Type Alias TableResourcesRetrieveContinuousBackupInformationResponse
- Interface ARMResourceProperties has a new optional parameter identity
- Interface DatabaseAccountUpdateParameters has a new optional parameter diagnosticLogSettings
- Interface DatabaseAccountUpdateParameters has a new optional parameter enableMaterializedViews
- Interface DataCenterResourceProperties has a new optional parameter authenticationMethodLdapProperties
- Interface LocationProperties has a new optional parameter status
- Interface RestorableDatabaseAccountGetResult has a new optional parameter oldestRestorableTime
- Interface RestorableMongodbCollectionsListOptionalParams has a new optional parameter endTime
- Interface RestorableMongodbCollectionsListOptionalParams has a new optional parameter startTime
- Interface RestoreParameters has a new optional parameter gremlinDatabasesToRestore
- Interface RestoreParameters has a new optional parameter tablesToRestore
- Interface SqlContainerResource has a new optional parameter clientEncryptionPolicy
- Class CosmosDBManagementClient has a new parameter dataTransferJobs
- Class CosmosDBManagementClient has a new parameter graphResources
- Class CosmosDBManagementClient has a new parameter restorableGremlinDatabases
Expand All @@ -226,20 +233,18 @@
- Class CosmosDBManagementClient has a new parameter restorableTableResources
- Class CosmosDBManagementClient has a new parameter restorableTables
- Class CosmosDBManagementClient has a new parameter service
- Type Alias ContinuousModeBackupPolicy has a new parameter continuousModeProperties
- Type Alias DatabaseAccountCreateUpdateParameters has a new parameter diagnosticLogSettings
- Type Alias DatabaseAccountCreateUpdateParameters has a new parameter enableMaterializedViews
- Type Alias DatabaseAccountGetResults has a new parameter diagnosticLogSettings
- Type Alias DatabaseAccountGetResults has a new parameter enableMaterializedViews
- Added Enum KnownContinuousTier
- Added Enum KnownDataTransferComponent
- Added Enum KnownServiceSize
- Added Enum KnownServiceStatus
- Added Enum KnownServiceType
- Enum KnownAuthenticationMethod has a new value Ldap

**Breaking Changes**

- Type Alias DatabaseAccountCreateUpdateParameters no longer has parameter identity
- Type Alias DatabaseAccountGetResults no longer has parameter identity
- Enum KnownServerVersion has a new value Four2


## 15.0.0 (2021-12-09)
Expand Down
11 changes: 0 additions & 11 deletions sdk/cosmosdb/arm-cosmosdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ Azure Cosmos DB Database Service Resource Provider REST API
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge and Firefox.

See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.

### Prerequisites

- An [Azure subscription][azure_sub].
Expand Down Expand Up @@ -51,17 +49,8 @@ For more information about how to create an Azure AD Application check out [this
```javascript
const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb");
const { DefaultAzureCredential } = require("@azure/identity");
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new CosmosDBManagementClient(new DefaultAzureCredential(), subscriptionId);

// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
// tenantId: "<YOUR_TENANT_ID>",
// clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new CosmosDBManagementClient(credential, subscriptionId);
```


Expand Down
7 changes: 4 additions & 3 deletions sdk/cosmosdb/arm-cosmosdb/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"commit": "bb9f1204f9a337404ff7e7b73b4c7b4ddde7f8f1",
"commit": "74ca59fc8cb6563d5a9d66fb533b8622522143eb",
"readme": "specification/cosmos-db/resource-manager/readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220217.1",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-alpha.16.20220217.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.6",
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
24 changes: 8 additions & 16 deletions sdk/cosmosdb/arm-cosmosdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for CosmosDBManagementClient.",
"version": "16.0.0-beta.2",
"version": "15.1.0-beta.1",
"engines": {
"node": ">=12.0.0"
},
Expand All @@ -29,13 +29,13 @@
"types": "./types/arm-cosmosdb.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"mkdirp": "^1.0.4",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
Expand Down Expand Up @@ -98,13 +98,5 @@
"docs": "echo skipped"
},
"sideEffects": false,
"//metadata": {
"constantPaths": [
{
"path": "src/cosmosDBManagementClient.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true
}
}
Loading

0 comments on commit f7df4d4

Please sign in to comment.