From 4467e721a99e517178ab8b4da18a9f724603c884 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 22 Jul 2022 21:15:07 +0000 Subject: [PATCH] CodeGen from PR 19593 in Azure/azure-rest-api-specs Merge b6f991504f134b62d975bff0dc13cbbbfd2145ff into f4e7a1c99eff175286c3313ec875f79e4142ac1a --- common/config/rush/pnpm-lock.yaml | 34 +- sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md | 135 +++- sdk/cosmosdb/arm-cosmosdb/_meta.json | 6 +- sdk/cosmosdb/arm-cosmosdb/package.json | 19 +- .../arm-cosmosdb/review/arm-cosmosdb.api.md | 732 ++++++++++-------- .../src/cosmosDBManagementClient.ts | 41 +- sdk/cosmosdb/arm-cosmosdb/src/models/index.ts | 598 +++++--------- sdk/cosmosdb/arm-cosmosdb/test/sampleTest.ts | 43 + sdk/cosmosdb/arm-cosmosdb/tsconfig.json | 10 +- 9 files changed, 794 insertions(+), 824 deletions(-) create mode 100644 sdk/cosmosdb/arm-cosmosdb/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 6b711d661600..4b2f9c94c4db 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2965,7 +2965,7 @@ packages: dev: false /array-flatten/1.1.1: - resolution: {integrity: sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=} + resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==} dev: false /array-includes/3.1.5: @@ -3214,7 +3214,7 @@ packages: dev: false /buffer-equal-constant-time/1.0.1: - resolution: {integrity: sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=} + resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} dev: false /buffer-from/1.1.2: @@ -3359,7 +3359,7 @@ packages: dev: false /charenc/0.0.2: - resolution: {integrity: sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=} + resolution: {integrity: sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==} dev: false /check-error/1.0.2: @@ -3497,7 +3497,7 @@ packages: dev: false /concat-map/0.0.1: - resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} dev: false /concurrently/6.5.1: @@ -3560,7 +3560,7 @@ packages: dev: false /cookie-signature/1.0.6: - resolution: {integrity: sha1-4wOogrNCzD7oylE6eZmXNNqzriw=} + resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==} dev: false /cookie/0.4.2: @@ -3662,7 +3662,7 @@ packages: dev: false /crypt/0.0.2: - resolution: {integrity: sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=} + resolution: {integrity: sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==} dev: false /csv-parse/5.3.0: @@ -3915,11 +3915,11 @@ packages: dev: false /edge-launcher/1.2.2: - resolution: {integrity: sha1-60Cq+9Bnpup27/+rBke81VCbN7I=} + resolution: {integrity: sha512-JcD5WBi3BHZXXVSSeEhl6sYO8g5cuynk/hifBzds2Bp4JdzCGLNMHgMCKu5DvrO1yatMgF0goFsxXRGus0yh1g==} dev: false /ee-first/1.1.1: - resolution: {integrity: sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=} + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: false /electron-to-chromium/1.4.195: @@ -4788,7 +4788,7 @@ packages: dev: false /fresh/0.5.2: - resolution: {integrity: sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=} + resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==} engines: {node: '>= 0.6'} dev: false @@ -4928,7 +4928,7 @@ packages: dev: false /github-from-package/0.0.0: - resolution: {integrity: sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=} + resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==} dev: false /glob-parent/5.1.2: @@ -6299,7 +6299,7 @@ packages: dev: false /media-typer/0.3.0: - resolution: {integrity: sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=} + resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} dev: false @@ -6309,7 +6309,7 @@ packages: dev: false /merge-descriptors/1.0.1: - resolution: {integrity: sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=} + resolution: {integrity: sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==} dev: false /merge-source-map/1.1.0: @@ -6669,7 +6669,7 @@ packages: dev: false /noms/0.0.0: - resolution: {integrity: sha1-2o69nzr51nYJGbJ9nNyAkqczKFk=} + resolution: {integrity: sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==} dependencies: inherits: 2.0.4 readable-stream: 1.0.34 @@ -8748,7 +8748,7 @@ packages: dev: false /utils-merge/1.0.1: - resolution: {integrity: sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=} + resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} dev: false @@ -10644,7 +10644,7 @@ packages: dev: false file:projects/arm-cosmosdb.tgz: - resolution: {integrity: sha512-FsOYCoGtxS508nCllNNxx0rF6cpj84LnPQF2kf/FsOC5+CiQbATbEjjVj2w4rPRh4xMG01OzcjMUmPaC2JlJnQ==, tarball: file:projects/arm-cosmosdb.tgz} + resolution: {integrity: sha512-E4o26/RItaLigMUUIvfpAe/wX0TTgcFv44kMG8mKsPcTzz2alspUu/5/ZoWEi72BFVC9MYAbASmvuiG6tmm4sQ==, tarball: file:projects/arm-cosmosdb.tgz} name: '@rush-temp/arm-cosmosdb' version: 0.0.0 dependencies: @@ -10663,7 +10663,7 @@ packages: rollup: 2.77.0 rollup-plugin-sourcemaps: 0.6.3_rollup@2.77.0 tslib: 2.4.0 - typescript: 4.6.4 + typescript: 4.2.4 uglify-js: 3.16.2 transitivePeerDependencies: - '@types/node' @@ -15052,7 +15052,7 @@ packages: dev: false file:projects/core-client-1.tgz: - resolution: {integrity: sha512-xlAOKcTcn7drAiTVx828Q2fq6wqQrzf++KaUpW47exuucVwzlZwkf/M0Tkj3gxLRiRXX4qkrma0YK21aRlU03g==, tarball: file:projects/core-client-1.tgz} + resolution: {integrity: sha512-6PZ587NIybJLDzewczuBOSlwGt+EdWwp/NzVly2Aj95laOU2F5+dMQ6zNGW9ppWssvq2ddvcMHRtI68LP3N2vw==, tarball: file:projects/core-client-1.tgz} name: '@rush-temp/core-client-1' version: 0.0.0 dependencies: diff --git a/sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md b/sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md index afdd0a639499..e68d5a678375 100644 --- a/sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md +++ b/sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 16.0.0-beta.3 (2022-07-22) +## 15.2.0-beta.1 (2022-07-22) **Features** @@ -60,8 +60,6 @@ - Added operation TableResources.beginRetrieveContinuousBackupInformationAndWait - Added Interface AccountKeyMetadata - Added Interface AuthenticationMethodLdapProperties - - Added Interface AzureBlobDataTransferDataSourceSink - - Added Interface BackupResource - Added Interface BackupResourceProperties - Added Interface CassandraClustersGetBackupOptionalParams - Added Interface CassandraClustersListBackupsOptionalParams @@ -73,27 +71,17 @@ - Added Interface CassandraResourcesMigrateCassandraViewToAutoscaleOptionalParams - Added Interface CassandraResourcesMigrateCassandraViewToManualThroughputOptionalParams - Added Interface CassandraResourcesUpdateCassandraViewThroughputOptionalParams - - Added Interface CassandraViewCreateUpdateParameters - - Added Interface CassandraViewGetPropertiesOptions - - Added Interface CassandraViewGetPropertiesResource - - Added Interface CassandraViewGetResults - Added Interface CassandraViewListResult - Added Interface CassandraViewResource - Added Interface ClientEncryptionIncludedPath - Added Interface ClientEncryptionKeyCreateUpdateParameters - - Added Interface ClientEncryptionKeyGetPropertiesResource - - Added Interface ClientEncryptionKeyGetResults - Added Interface ClientEncryptionKeyResource - Added Interface ClientEncryptionKeysListResult - Added Interface ClientEncryptionPolicy - Added Interface ContinuousModeProperties - - Added Interface CosmosCassandraDataTransferDataSourceSink - - Added Interface CosmosSqlDataTransferDataSourceSink - - Added Interface CreateJobRequest - Added Interface DatabaseAccountKeysMetadata - Added Interface DataTransferDataSourceSink - Added Interface DataTransferJobFeedResults - - Added Interface DataTransferJobGetResults - Added Interface DataTransferJobProperties - Added Interface DataTransferJobsCancelOptionalParams - Added Interface DataTransferJobsCreateOptionalParams @@ -104,10 +92,6 @@ - Added Interface DataTransferJobsResumeOptionalParams - Added Interface DiagnosticLogSettings - Added Interface GraphResource - - Added Interface GraphResourceCreateUpdateParameters - - Added Interface GraphResourceGetPropertiesOptions - - Added Interface GraphResourceGetPropertiesResource - - Added Interface GraphResourceGetResults - Added Interface GraphResourcesCreateUpdateGraphOptionalParams - Added Interface GraphResourcesDeleteGraphResourceOptionalParams - Added Interface GraphResourcesGetGraphOptionalParams @@ -130,21 +114,16 @@ - Added Interface MongoDBResourcesMongoDBContainerRedistributeThroughputOptionalParams - Added Interface MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionOptionalParams - Added Interface MongoRoleDefinitionCreateUpdateParameters - - Added Interface MongoRoleDefinitionGetResults - Added Interface MongoRoleDefinitionListResult - Added Interface MongoUserDefinitionCreateUpdateParameters - - Added Interface MongoUserDefinitionGetResults - Added Interface MongoUserDefinitionListResult - Added Interface PhysicalPartitionId - Added Interface PhysicalPartitionStorageInfo - Added Interface PhysicalPartitionStorageInfoCollection - Added Interface PhysicalPartitionThroughputInfoProperties - Added Interface PhysicalPartitionThroughputInfoResource - - Added Interface PhysicalPartitionThroughputInfoResult - - Added Interface PhysicalPartitionThroughputInfoResultPropertiesResource - Added Interface Privilege - Added Interface PrivilegeResource - - Added Interface RedistributeThroughputParameters - Added Interface RedistributeThroughputPropertiesResource - Added Interface RestorableGremlinDatabaseGetResult - Added Interface RestorableGremlinDatabasePropertiesResource @@ -164,7 +143,6 @@ - Added Interface RestorableTableResourcesListResult - Added Interface RestorableTablesListOptionalParams - Added Interface RestorableTablesListResult - - Added Interface RetrieveThroughputParameters - Added Interface RetrieveThroughputPropertiesResource - Added Interface Role - Added Interface SqlResourcesCreateUpdateClientEncryptionKeyOptionalParams @@ -174,8 +152,14 @@ - Added Interface SqlResourcesSqlContainerRedistributeThroughputOptionalParams - Added Interface SqlResourcesSqlContainerRetrieveThroughputDistributionOptionalParams - Added Interface TableResourcesRetrieveContinuousBackupInformationOptionalParams + - Added Type Alias AzureBlobDataTransferDataSourceSink + - Added Type Alias BackupResource - Added Type Alias CassandraClustersGetBackupResponse - Added Type Alias CassandraClustersListBackupsResponse + - Added Type Alias CassandraKeyspaceCreateUpdateParameters + - Added Type Alias CassandraKeyspaceGetPropertiesOptions + - Added Type Alias CassandraKeyspaceGetPropertiesResource + - Added Type Alias CassandraKeyspaceGetResults - Added Type Alias CassandraResourcesCreateUpdateCassandraViewResponse - Added Type Alias CassandraResourcesGetCassandraViewResponse - Added Type Alias CassandraResourcesGetCassandraViewThroughputResponse @@ -183,9 +167,29 @@ - Added Type Alias CassandraResourcesMigrateCassandraViewToAutoscaleResponse - Added Type Alias CassandraResourcesMigrateCassandraViewToManualThroughputResponse - Added Type Alias CassandraResourcesUpdateCassandraViewThroughputResponse + - Added Type Alias CassandraTableCreateUpdateParameters + - Added Type Alias CassandraTableGetPropertiesOptions + - Added Type Alias CassandraTableGetPropertiesResource + - Added Type Alias CassandraTableGetResults + - Added Type Alias CassandraViewCreateUpdateParameters + - Added Type Alias CassandraViewGetPropertiesOptions + - Added Type Alias CassandraViewGetPropertiesResource + - Added Type Alias CassandraViewGetResults + - Added Type Alias ClientEncryptionKeyGetPropertiesResource + - Added Type Alias ClientEncryptionKeyGetResults + - Added Type Alias ClusterResource + - Added Type Alias ContinuousModeBackupPolicy - Added Type Alias ContinuousTier + - Added Type Alias CosmosCassandraDataTransferDataSourceSink + - Added Type Alias CosmosSqlDataTransferDataSourceSink + - Added Type Alias CreateJobRequest + - Added Type Alias DatabaseAccountCreateUpdateParameters + - Added Type Alias DatabaseAccountGetResults + - Added Type Alias DatabaseAccountListKeysResult + - Added Type Alias DataCenterResource - Added Type Alias DataTransferComponent - Added Type Alias DataTransferDataSourceSinkUnion + - Added Type Alias DataTransferJobGetResults - Added Type Alias DataTransferJobsCancelResponse - Added Type Alias DataTransferJobsCreateResponse - Added Type Alias DataTransferJobsGetResponse @@ -193,11 +197,38 @@ - Added Type Alias DataTransferJobsListByDatabaseAccountResponse - Added Type Alias DataTransferJobsPauseResponse - Added Type Alias DataTransferJobsResumeResponse + - Added Type Alias DataTransferRegionalServiceResource + - Added Type Alias DataTransferServiceResourceProperties - Added Type Alias EnableFullTextQuery + - Added Type Alias GraphAPIComputeRegionalServiceResource + - Added Type Alias GraphAPIComputeServiceResourceProperties + - Added Type Alias GraphResourceCreateUpdateParameters + - Added Type Alias GraphResourceGetPropertiesOptions + - Added Type Alias GraphResourceGetPropertiesResource + - Added Type Alias GraphResourceGetResults - Added Type Alias GraphResourcesCreateUpdateGraphResponse - Added Type Alias GraphResourcesGetGraphResponse - Added Type Alias GraphResourcesListGraphsResponse + - Added Type Alias GremlinDatabaseCreateUpdateParameters + - Added Type Alias GremlinDatabaseGetPropertiesOptions + - Added Type Alias GremlinDatabaseGetPropertiesResource + - Added Type Alias GremlinDatabaseGetResults + - Added Type Alias GremlinGraphCreateUpdateParameters + - Added Type Alias GremlinGraphGetPropertiesOptions + - Added Type Alias GremlinGraphGetPropertiesResource + - Added Type Alias GremlinGraphGetResults - Added Type Alias GremlinResourcesRetrieveContinuousBackupInformationResponse + - Added Type Alias LocationGetResult + - Added Type Alias MaterializedViewsBuilderRegionalServiceResource + - Added Type Alias MaterializedViewsBuilderServiceResourceProperties + - Added Type Alias MongoDBCollectionCreateUpdateParameters + - Added Type Alias MongoDBCollectionGetPropertiesOptions + - Added Type Alias MongoDBCollectionGetPropertiesResource + - Added Type Alias MongoDBCollectionGetResults + - Added Type Alias MongoDBDatabaseCreateUpdateParameters + - Added Type Alias MongoDBDatabaseGetPropertiesOptions + - Added Type Alias MongoDBDatabaseGetPropertiesResource + - Added Type Alias MongoDBDatabaseGetResults - Added Type Alias MongoDBResourcesCreateUpdateMongoRoleDefinitionResponse - Added Type Alias MongoDBResourcesCreateUpdateMongoUserDefinitionResponse - Added Type Alias MongoDBResourcesGetMongoRoleDefinitionResponse @@ -207,28 +238,67 @@ - Added Type Alias MongoDBResourcesListMongoUserDefinitionsResponse - Added Type Alias MongoDBResourcesMongoDBContainerRedistributeThroughputResponse - Added Type Alias MongoDBResourcesMongoDBContainerRetrieveThroughputDistributionResponse + - Added Type Alias MongoRoleDefinitionGetResults - Added Type Alias MongoRoleDefinitionType + - Added Type Alias MongoUserDefinitionGetResults + - Added Type Alias NotebookWorkspace + - Added Type Alias NotebookWorkspaceCreateUpdateParameters + - Added Type Alias PartitionMetric + - Added Type Alias PartitionUsage + - Added Type Alias PercentileMetricValue + - Added Type Alias PeriodicModeBackupPolicy + - Added Type Alias PhysicalPartitionThroughputInfoResult + - Added Type Alias PhysicalPartitionThroughputInfoResultPropertiesResource + - Added Type Alias PrivateEndpointConnection + - Added Type Alias PrivateLinkResource + - Added Type Alias ProxyResource + - Added Type Alias RedistributeThroughputParameters - Added Type Alias RestorableGremlinDatabasesListResponse - Added Type Alias RestorableGremlinGraphsListResponse - Added Type Alias RestorableGremlinResourcesListResponse + - Added Type Alias RestorableSqlContainerPropertiesResourceContainer + - Added Type Alias RestorableSqlDatabasePropertiesResourceDatabase - Added Type Alias RestorableTableResourcesListResponse - Added Type Alias RestorableTablesListResponse + - Added Type Alias RetrieveThroughputParameters + - Added Type Alias ServiceResource + - Added Type Alias SqlContainerCreateUpdateParameters + - Added Type Alias SqlContainerGetPropertiesOptions + - Added Type Alias SqlContainerGetPropertiesResource + - Added Type Alias SqlContainerGetResults + - Added Type Alias SqlDatabaseCreateUpdateParameters + - Added Type Alias SqlDatabaseGetPropertiesOptions + - Added Type Alias SqlDatabaseGetPropertiesResource + - Added Type Alias SqlDatabaseGetResults + - Added Type Alias SqlDedicatedGatewayRegionalServiceResource + - Added Type Alias SqlDedicatedGatewayServiceResourceProperties - Added Type Alias SqlResourcesCreateUpdateClientEncryptionKeyResponse - Added Type Alias SqlResourcesGetClientEncryptionKeyResponse - Added Type Alias SqlResourcesListClientEncryptionKeysResponse - Added Type Alias SqlResourcesListSqlContainerPartitionMergeResponse - Added Type Alias SqlResourcesSqlContainerRedistributeThroughputResponse - Added Type Alias SqlResourcesSqlContainerRetrieveThroughputDistributionResponse + - Added Type Alias SqlRoleAssignmentGetResults + - Added Type Alias SqlRoleDefinitionGetResults + - Added Type Alias SqlStoredProcedureCreateUpdateParameters + - Added Type Alias SqlStoredProcedureGetPropertiesResource + - Added Type Alias SqlStoredProcedureGetResults + - Added Type Alias SqlTriggerCreateUpdateParameters + - Added Type Alias SqlTriggerGetPropertiesResource + - Added Type Alias SqlTriggerGetResults + - Added Type Alias SqlUserDefinedFunctionCreateUpdateParameters + - Added Type Alias SqlUserDefinedFunctionGetPropertiesResource + - Added Type Alias SqlUserDefinedFunctionGetResults + - Added Type Alias TableCreateUpdateParameters + - Added Type Alias TableGetPropertiesOptions + - Added Type Alias TableGetPropertiesResource + - Added Type Alias TableGetResults - Added Type Alias TableResourcesRetrieveContinuousBackupInformationResponse - Added Type Alias ThroughputPolicyType + - Added Type Alias ThroughputSettingsGetPropertiesResource + - Added Type Alias ThroughputSettingsGetResults + - Added Type Alias ThroughputSettingsUpdateParameters - Interface ARMResourceProperties has a new optional parameter identity - - Interface ContinuousModeBackupPolicy has a new optional parameter continuousModeProperties - - Interface DatabaseAccountCreateUpdateParameters has a new optional parameter diagnosticLogSettings - - Interface DatabaseAccountCreateUpdateParameters has a new optional parameter enableMaterializedViews - - Interface DatabaseAccountCreateUpdateParameters has a new optional parameter keysMetadata - - Interface DatabaseAccountGetResults has a new optional parameter diagnosticLogSettings - - Interface DatabaseAccountGetResults has a new optional parameter enableMaterializedViews - - Interface DatabaseAccountGetResults has a new optional parameter keysMetadata - Interface DatabaseAccountUpdateParameters has a new optional parameter diagnosticLogSettings - Interface DatabaseAccountUpdateParameters has a new optional parameter enableMaterializedViews - Interface DatabaseAccountUpdateParameters has a new optional parameter keysMetadata @@ -251,11 +321,6 @@ - Added Enum KnownDataTransferComponent - Added Enum KnownThroughputPolicyType - Enum KnownAuthenticationMethod has a new value Ldap - -**Breaking Changes** - - - Interface DatabaseAccountCreateUpdateParameters no longer has parameter identity - - Interface DatabaseAccountGetResults no longer has parameter identity ## 15.1.0 (2022-07-18) diff --git a/sdk/cosmosdb/arm-cosmosdb/_meta.json b/sdk/cosmosdb/arm-cosmosdb/_meta.json index ebd27f6c0b98..1bfd65f916ec 100644 --- a/sdk/cosmosdb/arm-cosmosdb/_meta.json +++ b/sdk/cosmosdb/arm-cosmosdb/_meta.json @@ -1,8 +1,8 @@ { - "commit": "ca5d9600e4950afdae3c23c71d9407b6aa3fce63", + "commit": "661e768424900917ee7b6dbc0fa561e5089f77ee", "readme": "specification/cosmos-db/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\cosmos-db\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.1.20220720.1 --generate-sample=true", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220425.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.4.0", - "use": "@autorest/typescript@6.0.0-rc.1.20220720.1" + "use": "@autorest/typescript@6.0.0-alpha.19.20220425.1" } \ No newline at end of file diff --git a/sdk/cosmosdb/arm-cosmosdb/package.json b/sdk/cosmosdb/arm-cosmosdb/package.json index 197af13401e6..b5148e45e4ca 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": "16.0.0-beta.3", + "version": "15.2.0-beta.1", "engines": { "node": ">=12.0.0" }, @@ -36,15 +36,13 @@ "mkdirp": "^1.0.4", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~4.6.0", + "typescript": "~4.2.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^2.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "@types/chai": "^4.2.8", - "chai": "^4.2.0", "cross-env": "^7.0.2", "@azure/dev-tool": "^1.0.0" }, @@ -98,7 +96,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", + "docs": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -109,13 +108,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview" - } + "autoPublish": true } \ 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 552685708cea..566877a3520d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/review/arm-cosmosdb.api.md +++ b/sdk/cosmosdb/arm-cosmosdb/review/arm-cosmosdb.api.md @@ -83,13 +83,11 @@ export interface AutoUpgradePolicyResource { } // @public -export interface AzureBlobDataTransferDataSourceSink extends DataTransferDataSourceSink { +export type AzureBlobDataTransferDataSourceSink = DataTransferDataSourceSink & { component: "AzureBlobStorage"; - // (undocumented) containerName: string; - // (undocumented) endpointUrl?: string; -} +}; // @public export interface BackupInformation { @@ -119,10 +117,9 @@ export type BackupPolicyType = string; export type BackupPolicyUnion = BackupPolicy | PeriodicModeBackupPolicy | ContinuousModeBackupPolicy; // @public -export interface BackupResource extends ARMProxyResource { - // (undocumented) +export type BackupResource = ARMProxyResource & { properties?: BackupResourceProperties; -} +}; // @public (undocumented) export interface BackupResourceProperties { @@ -320,26 +317,22 @@ export interface CassandraDataCentersUpdateOptionalParams extends coreClient.Ope export type CassandraDataCentersUpdateResponse = DataCenterResource; // @public -export interface CassandraKeyspaceCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; +export type CassandraKeyspaceCreateUpdateParameters = ARMResourceProperties & { resource: CassandraKeyspaceResource; -} + options?: CreateUpdateOptions; +}; // @public (undocumented) -export interface CassandraKeyspaceGetPropertiesOptions extends OptionsResource { -} +export type CassandraKeyspaceGetPropertiesOptions = OptionsResource & {}; // @public (undocumented) -export interface CassandraKeyspaceGetPropertiesResource extends CassandraKeyspaceResource, ExtendedResourceProperties { -} +export type CassandraKeyspaceGetPropertiesResource = CassandraKeyspaceResource & ExtendedResourceProperties & {}; // @public -export interface CassandraKeyspaceGetResults extends ARMResourceProperties { - // (undocumented) - options?: CassandraKeyspaceGetPropertiesOptions; - // (undocumented) +export type CassandraKeyspaceGetResults = ARMResourceProperties & { resource?: CassandraKeyspaceGetPropertiesResource; -} + options?: CassandraKeyspaceGetPropertiesOptions; +}; // @public export interface CassandraKeyspaceListResult { @@ -596,26 +589,22 @@ export interface CassandraSchema { } // @public -export interface CassandraTableCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; +export type CassandraTableCreateUpdateParameters = ARMResourceProperties & { resource: CassandraTableResource; -} + options?: CreateUpdateOptions; +}; // @public (undocumented) -export interface CassandraTableGetPropertiesOptions extends OptionsResource { -} +export type CassandraTableGetPropertiesOptions = OptionsResource & {}; // @public (undocumented) -export interface CassandraTableGetPropertiesResource extends CassandraTableResource, ExtendedResourceProperties { -} +export type CassandraTableGetPropertiesResource = CassandraTableResource & ExtendedResourceProperties & {}; // @public -export interface CassandraTableGetResults extends ARMResourceProperties { - // (undocumented) - options?: CassandraTableGetPropertiesOptions; - // (undocumented) +export type CassandraTableGetResults = ARMResourceProperties & { resource?: CassandraTableGetPropertiesResource; -} + options?: CassandraTableGetPropertiesOptions; +}; // @public export interface CassandraTableListResult { @@ -631,26 +620,22 @@ export interface CassandraTableResource { } // @public -export interface CassandraViewCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; +export type CassandraViewCreateUpdateParameters = ARMResourceProperties & { resource: CassandraViewResource; -} + options?: CreateUpdateOptions; +}; // @public (undocumented) -export interface CassandraViewGetPropertiesOptions extends OptionsResource { -} +export type CassandraViewGetPropertiesOptions = OptionsResource & {}; // @public (undocumented) -export interface CassandraViewGetPropertiesResource extends CassandraViewResource, ExtendedResourceProperties { -} +export type CassandraViewGetPropertiesResource = CassandraViewResource & ExtendedResourceProperties & {}; // @public -export interface CassandraViewGetResults extends ARMResourceProperties { - // (undocumented) - options?: CassandraViewGetPropertiesOptions; - // (undocumented) +export type CassandraViewGetResults = ARMResourceProperties & { resource?: CassandraViewGetPropertiesResource; -} + options?: CassandraViewGetPropertiesOptions; +}; // @public export interface CassandraViewListResult { @@ -682,14 +667,12 @@ export interface ClientEncryptionKeyCreateUpdateParameters { } // @public (undocumented) -export interface ClientEncryptionKeyGetPropertiesResource extends ClientEncryptionKeyResource, ExtendedResourceProperties { -} +export type ClientEncryptionKeyGetPropertiesResource = ClientEncryptionKeyResource & ExtendedResourceProperties & {}; // @public -export interface ClientEncryptionKeyGetResults extends ARMProxyResource { - // (undocumented) +export type ClientEncryptionKeyGetResults = ARMProxyResource & { resource?: ClientEncryptionKeyGetPropertiesResource; -} +}; // @public export interface ClientEncryptionKeyResource { @@ -722,9 +705,9 @@ export interface ClusterKey { } // @public -export interface ClusterResource extends ManagedCassandraARMResourceProperties { +export type ClusterResource = ManagedCassandraARMResourceProperties & { properties?: ClusterResourceProperties; -} +}; // @public export interface ClusterResourceProperties { @@ -931,10 +914,10 @@ export interface ContinuousBackupRestoreLocation { } // @public -export interface ContinuousModeBackupPolicy extends BackupPolicy { - continuousModeProperties?: ContinuousModeProperties; +export type ContinuousModeBackupPolicy = BackupPolicy & { type: "Continuous"; -} + continuousModeProperties?: ContinuousModeProperties; +}; // @public export interface ContinuousModeProperties { @@ -954,13 +937,11 @@ export interface CorsPolicy { } // @public -export interface CosmosCassandraDataTransferDataSourceSink extends DataTransferDataSourceSink { +export type CosmosCassandraDataTransferDataSourceSink = DataTransferDataSourceSink & { component: "CosmosDBCassandra"; - // (undocumented) keyspaceName: string; - // (undocumented) tableName: string; -} +}; // @public (undocumented) export class CosmosDBManagementClient extends coreClient.ServiceClient { @@ -1059,21 +1040,19 @@ export interface CosmosDBManagementClientOptionalParams extends coreClient.Servi } // @public -export interface CosmosSqlDataTransferDataSourceSink extends DataTransferDataSourceSink { +export type CosmosSqlDataTransferDataSourceSink = DataTransferDataSourceSink & { component: "CosmosDBSql"; - // (undocumented) - containerName: string; - // (undocumented) databaseName: string; -} + containerName: string; +}; // @public export type CreatedByType = string; // @public -export interface CreateJobRequest extends ARMProxyResource { +export type CreateJobRequest = ARMProxyResource & { properties: DataTransferJobProperties; -} +}; // @public export type CreateMode = string; @@ -1098,82 +1077,82 @@ export interface DatabaseAccountConnectionString { } // @public -export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProperties { - analyticalStorageConfiguration?: AnalyticalStorageConfiguration; - apiProperties?: ApiProperties; - backupPolicy?: BackupPolicyUnion; - capabilities?: Capability[]; - capacity?: Capacity; - connectorOffer?: ConnectorOffer; +export type DatabaseAccountCreateUpdateParameters = ARMResourceProperties & { + kind?: DatabaseAccountKind; consistencyPolicy?: ConsistencyPolicy; - cors?: CorsPolicy[]; - createMode?: CreateMode; + locations: Location_2[]; databaseAccountOfferType: "Standard"; - defaultIdentity?: string; - diagnosticLogSettings?: DiagnosticLogSettings; - disableKeyBasedMetadataWriteAccess?: boolean; - disableLocalAuth?: boolean; - enableAnalyticalStorage?: boolean; - enableAutomaticFailover?: boolean; - enableCassandraConnector?: boolean; - enableFreeTier?: boolean; - enableMaterializedViews?: boolean; - enableMultipleWriteLocations?: boolean; ipRules?: IpAddressOrRange[]; isVirtualNetworkFilterEnabled?: boolean; - keysMetadata?: DatabaseAccountKeysMetadata; + enableAutomaticFailover?: boolean; + capabilities?: Capability[]; + virtualNetworkRules?: VirtualNetworkRule[]; + enableMultipleWriteLocations?: boolean; + enableCassandraConnector?: boolean; + connectorOffer?: ConnectorOffer; + disableKeyBasedMetadataWriteAccess?: boolean; keyVaultKeyUri?: string; - kind?: DatabaseAccountKind; - locations: Location_2[]; - networkAclBypass?: NetworkAclBypass; - networkAclBypassResourceIds?: string[]; + defaultIdentity?: string; publicNetworkAccess?: PublicNetworkAccess; - restoreParameters?: RestoreParameters; - virtualNetworkRules?: VirtualNetworkRule[]; -} - -// @public -export interface DatabaseAccountGetResults extends ARMResourceProperties { - analyticalStorageConfiguration?: AnalyticalStorageConfiguration; + enableFreeTier?: boolean; apiProperties?: ApiProperties; + enableAnalyticalStorage?: boolean; + analyticalStorageConfiguration?: AnalyticalStorageConfiguration; + createMode?: CreateMode; backupPolicy?: BackupPolicyUnion; - capabilities?: Capability[]; - capacity?: Capacity; - connectorOffer?: ConnectorOffer; - consistencyPolicy?: ConsistencyPolicy; cors?: CorsPolicy[]; - createMode?: CreateMode; - readonly databaseAccountOfferType?: "Standard"; - defaultIdentity?: string; + networkAclBypass?: NetworkAclBypass; + networkAclBypassResourceIds?: string[]; diagnosticLogSettings?: DiagnosticLogSettings; - disableKeyBasedMetadataWriteAccess?: boolean; disableLocalAuth?: boolean; - readonly documentEndpoint?: string; - enableAnalyticalStorage?: boolean; - enableAutomaticFailover?: boolean; - enableCassandraConnector?: boolean; - enableFreeTier?: boolean; + restoreParameters?: RestoreParameters; + capacity?: Capacity; enableMaterializedViews?: boolean; - enableMultipleWriteLocations?: boolean; - readonly failoverPolicies?: FailoverPolicy[]; - readonly instanceId?: string; - ipRules?: IpAddressOrRange[]; - isVirtualNetworkFilterEnabled?: boolean; keysMetadata?: DatabaseAccountKeysMetadata; - keyVaultKeyUri?: string; +}; + +// @public +export type DatabaseAccountGetResults = ARMResourceProperties & { kind?: DatabaseAccountKind; + readonly systemData?: SystemData; + readonly provisioningState?: string; + readonly documentEndpoint?: string; + readonly databaseAccountOfferType?: "Standard"; + ipRules?: IpAddressOrRange[]; + isVirtualNetworkFilterEnabled?: boolean; + enableAutomaticFailover?: boolean; + consistencyPolicy?: ConsistencyPolicy; + capabilities?: Capability[]; + readonly writeLocations?: Location_2[]; + readonly readLocations?: Location_2[]; readonly locations?: Location_2[]; - networkAclBypass?: NetworkAclBypass; - networkAclBypassResourceIds?: string[]; + readonly failoverPolicies?: FailoverPolicy[]; + virtualNetworkRules?: VirtualNetworkRule[]; readonly privateEndpointConnections?: PrivateEndpointConnection[]; - readonly provisioningState?: string; + enableMultipleWriteLocations?: boolean; + enableCassandraConnector?: boolean; + connectorOffer?: ConnectorOffer; + disableKeyBasedMetadataWriteAccess?: boolean; + keyVaultKeyUri?: string; + defaultIdentity?: string; publicNetworkAccess?: PublicNetworkAccess; - readonly readLocations?: Location_2[]; + enableFreeTier?: boolean; + apiProperties?: ApiProperties; + enableAnalyticalStorage?: boolean; + analyticalStorageConfiguration?: AnalyticalStorageConfiguration; + readonly instanceId?: string; + createMode?: CreateMode; restoreParameters?: RestoreParameters; - readonly systemData?: SystemData; - virtualNetworkRules?: VirtualNetworkRule[]; - readonly writeLocations?: Location_2[]; -} + backupPolicy?: BackupPolicyUnion; + cors?: CorsPolicy[]; + networkAclBypass?: NetworkAclBypass; + networkAclBypassResourceIds?: string[]; + diagnosticLogSettings?: DiagnosticLogSettings; + disableLocalAuth?: boolean; + capacity?: Capacity; + enableMaterializedViews?: boolean; + keysMetadata?: DatabaseAccountKeysMetadata; +}; // @public export interface DatabaseAccountKeysMetadata { @@ -1192,10 +1171,10 @@ export interface DatabaseAccountListConnectionStringsResult { } // @public -export interface DatabaseAccountListKeysResult extends DatabaseAccountListReadOnlyKeysResult { +export type DatabaseAccountListKeysResult = DatabaseAccountListReadOnlyKeysResult & { readonly primaryMasterKey?: string; readonly secondaryMasterKey?: string; -} +}; // @public export interface DatabaseAccountListReadOnlyKeysResult { @@ -1447,9 +1426,9 @@ export interface DatabaseRestoreResource { } // @public -export interface DataCenterResource extends ARMProxyResource { +export type DataCenterResource = ARMProxyResource & { properties?: DataCenterResourceProperties; -} +}; // @public export interface DataCenterResourceProperties { @@ -1486,17 +1465,17 @@ export interface DataTransferJobFeedResults { } // @public -export interface DataTransferJobGetResults extends ARMProxyResource { - destination?: DataTransferDataSourceSinkUnion; - readonly error?: ErrorResponse; +export type DataTransferJobGetResults = ARMProxyResource & { readonly jobName?: string; - readonly lastUpdatedUtcTime?: Date; - readonly processedCount?: number; source?: DataTransferDataSourceSinkUnion; + destination?: DataTransferDataSourceSinkUnion; readonly status?: string; + readonly processedCount?: number; readonly totalCount?: number; + readonly lastUpdatedUtcTime?: Date; workerCount?: number; -} + readonly error?: ErrorResponse; +}; // @public export interface DataTransferJobProperties { @@ -1571,8 +1550,7 @@ export interface DataTransferJobsResumeOptionalParams extends coreClient.Operati export type DataTransferJobsResumeResponse = DataTransferJobGetResults; // @public -export interface DataTransferRegionalServiceResource extends RegionalServiceResource { -} +export type DataTransferRegionalServiceResource = RegionalServiceResource & {}; // @public export interface DataTransferServiceResource { @@ -1580,10 +1558,10 @@ export interface DataTransferServiceResource { } // @public -export interface DataTransferServiceResourceProperties extends ServiceResourceProperties { - readonly locations?: DataTransferRegionalServiceResource[]; +export type DataTransferServiceResourceProperties = ServiceResourceProperties & { serviceType: "DataTransfer"; -} + readonly locations?: DataTransferRegionalServiceResource[]; +}; // @public export type DataType = string; @@ -1630,9 +1608,9 @@ export interface FailoverPolicy { } // @public -export interface GraphAPIComputeRegionalServiceResource extends RegionalServiceResource { +export type GraphAPIComputeRegionalServiceResource = RegionalServiceResource & { readonly graphApiComputeEndpoint?: string; -} +}; // @public export interface GraphAPIComputeServiceResource { @@ -1640,11 +1618,11 @@ export interface GraphAPIComputeServiceResource { } // @public -export interface GraphAPIComputeServiceResourceProperties extends ServiceResourceProperties { +export type GraphAPIComputeServiceResourceProperties = ServiceResourceProperties & { + serviceType: "GraphAPICompute"; graphApiComputeEndpoint?: string; readonly locations?: GraphAPIComputeRegionalServiceResource[]; - serviceType: "GraphAPICompute"; -} +}; // @public export interface GraphResource { @@ -1652,26 +1630,22 @@ export interface GraphResource { } // @public -export interface GraphResourceCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; +export type GraphResourceCreateUpdateParameters = ARMResourceProperties & { resource: GraphResource; -} + options?: CreateUpdateOptions; +}; // @public (undocumented) -export interface GraphResourceGetPropertiesOptions extends OptionsResource { -} +export type GraphResourceGetPropertiesOptions = OptionsResource & {}; // @public (undocumented) -export interface GraphResourceGetPropertiesResource extends GraphResource { -} +export type GraphResourceGetPropertiesResource = GraphResource & {}; // @public -export interface GraphResourceGetResults extends ARMResourceProperties { - // (undocumented) - options?: GraphResourceGetPropertiesOptions; - // (undocumented) +export type GraphResourceGetResults = ARMResourceProperties & { resource?: GraphResourceGetPropertiesResource; -} + options?: GraphResourceGetPropertiesOptions; +}; // @public export interface GraphResources { @@ -1718,26 +1692,22 @@ export interface GraphResourcesListResult { } // @public -export interface GremlinDatabaseCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; +export type GremlinDatabaseCreateUpdateParameters = ARMResourceProperties & { resource: GremlinDatabaseResource; -} + options?: CreateUpdateOptions; +}; // @public (undocumented) -export interface GremlinDatabaseGetPropertiesOptions extends OptionsResource { -} +export type GremlinDatabaseGetPropertiesOptions = OptionsResource & {}; // @public (undocumented) -export interface GremlinDatabaseGetPropertiesResource extends GremlinDatabaseResource, ExtendedResourceProperties { -} +export type GremlinDatabaseGetPropertiesResource = GremlinDatabaseResource & ExtendedResourceProperties & {}; // @public -export interface GremlinDatabaseGetResults extends ARMResourceProperties { - // (undocumented) - options?: GremlinDatabaseGetPropertiesOptions; - // (undocumented) +export type GremlinDatabaseGetResults = ARMResourceProperties & { resource?: GremlinDatabaseGetPropertiesResource; -} + options?: GremlinDatabaseGetPropertiesOptions; +}; // @public export interface GremlinDatabaseListResult { @@ -1756,26 +1726,22 @@ export interface GremlinDatabaseRestoreResource { } // @public -export interface GremlinGraphCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; +export type GremlinGraphCreateUpdateParameters = ARMResourceProperties & { resource: GremlinGraphResource; -} + options?: CreateUpdateOptions; +}; // @public (undocumented) -export interface GremlinGraphGetPropertiesOptions extends OptionsResource { -} +export type GremlinGraphGetPropertiesOptions = OptionsResource & {}; // @public (undocumented) -export interface GremlinGraphGetPropertiesResource extends GremlinGraphResource, ExtendedResourceProperties { -} +export type GremlinGraphGetPropertiesResource = GremlinGraphResource & ExtendedResourceProperties & {}; // @public -export interface GremlinGraphGetResults extends ARMResourceProperties { - // (undocumented) - options?: GremlinGraphGetPropertiesOptions; - // (undocumented) +export type GremlinGraphGetResults = ARMResourceProperties & { resource?: GremlinGraphGetPropertiesResource; -} + options?: GremlinGraphGetPropertiesOptions; +}; // @public export interface GremlinGraphListResult { @@ -2007,284 +1973,415 @@ export interface KeyWrapMetadata { // @public export enum KnownAnalyticalStorageSchemaType { + // (undocumented) FullFidelity = "FullFidelity", + // (undocumented) WellDefined = "WellDefined" } // @public export enum KnownApiType { + // (undocumented) Cassandra = "Cassandra", + // (undocumented) Gremlin = "Gremlin", + // (undocumented) GremlinV2 = "GremlinV2", + // (undocumented) MongoDB = "MongoDB", + // (undocumented) Sql = "Sql", + // (undocumented) Table = "Table" } // @public export enum KnownAuthenticationMethod { + // (undocumented) Cassandra = "Cassandra", + // (undocumented) Ldap = "Ldap", + // (undocumented) None = "None" } // @public export enum KnownBackupPolicyMigrationStatus { + // (undocumented) Completed = "Completed", + // (undocumented) Failed = "Failed", + // (undocumented) InProgress = "InProgress", + // (undocumented) Invalid = "Invalid" } // @public export enum KnownBackupPolicyType { + // (undocumented) Continuous = "Continuous", + // (undocumented) Periodic = "Periodic" } // @public export enum KnownBackupStorageRedundancy { + // (undocumented) Geo = "Geo", + // (undocumented) Local = "Local", + // (undocumented) Zone = "Zone" } // @public export enum KnownCompositePathSortOrder { + // (undocumented) Ascending = "ascending", + // (undocumented) Descending = "descending" } // @public export enum KnownConflictResolutionMode { + // (undocumented) Custom = "Custom", + // (undocumented) LastWriterWins = "LastWriterWins" } // @public export enum KnownConnectionState { + // (undocumented) DatacenterToDatacenterNetworkError = "DatacenterToDatacenterNetworkError", + // (undocumented) InternalError = "InternalError", + // (undocumented) InternalOperatorToDataCenterCertificateError = "InternalOperatorToDataCenterCertificateError", + // (undocumented) OK = "OK", + // (undocumented) OperatorToDataCenterNetworkError = "OperatorToDataCenterNetworkError", + // (undocumented) Unknown = "Unknown" } // @public export enum KnownConnectorOffer { + // (undocumented) Small = "Small" } // @public export enum KnownContinuousTier { + // (undocumented) Continuous30Days = "Continuous30Days", + // (undocumented) Continuous7Days = "Continuous7Days" } // @public export enum KnownCreatedByType { + // (undocumented) Application = "Application", + // (undocumented) Key = "Key", + // (undocumented) ManagedIdentity = "ManagedIdentity", + // (undocumented) User = "User" } // @public export enum KnownCreateMode { + // (undocumented) Default = "Default", + // (undocumented) Restore = "Restore" } // @public export enum KnownDatabaseAccountKind { + // (undocumented) GlobalDocumentDB = "GlobalDocumentDB", + // (undocumented) MongoDB = "MongoDB", + // (undocumented) Parse = "Parse" } // @public export enum KnownDataTransferComponent { + // (undocumented) AzureBlobStorage = "AzureBlobStorage", + // (undocumented) CosmosDBCassandra = "CosmosDBCassandra", + // (undocumented) CosmosDBSql = "CosmosDBSql" } // @public export enum KnownDataType { + // (undocumented) LineString = "LineString", + // (undocumented) MultiPolygon = "MultiPolygon", + // (undocumented) Number = "Number", + // (undocumented) Point = "Point", + // (undocumented) Polygon = "Polygon", + // (undocumented) String = "String" } // @public export enum KnownIndexingMode { + // (undocumented) Consistent = "consistent", + // (undocumented) Lazy = "lazy", + // (undocumented) None = "none" } // @public export enum KnownIndexKind { + // (undocumented) Hash = "Hash", + // (undocumented) Range = "Range", + // (undocumented) Spatial = "Spatial" } // @public export enum KnownKeyKind { + // (undocumented) Primary = "primary", + // (undocumented) PrimaryReadonly = "primaryReadonly", + // (undocumented) Secondary = "secondary", + // (undocumented) SecondaryReadonly = "secondaryReadonly" } // @public export enum KnownManagedCassandraProvisioningState { + // (undocumented) Canceled = "Canceled", + // (undocumented) Creating = "Creating", + // (undocumented) Deleting = "Deleting", + // (undocumented) Failed = "Failed", + // (undocumented) Succeeded = "Succeeded", + // (undocumented) Updating = "Updating" } // @public export enum KnownManagedCassandraResourceIdentityType { + // (undocumented) None = "None", + // (undocumented) SystemAssigned = "SystemAssigned" } // @public export enum KnownNodeState { + // (undocumented) Joining = "Joining", + // (undocumented) Leaving = "Leaving", + // (undocumented) Moving = "Moving", + // (undocumented) Normal = "Normal", + // (undocumented) Stopped = "Stopped" } // @public export enum KnownNodeStatus { + // (undocumented) Down = "Down", + // (undocumented) Up = "Up" } // @public export enum KnownNotebookWorkspaceName { + // (undocumented) Default = "default" } // @public export enum KnownOperationType { + // (undocumented) Create = "Create", + // (undocumented) Delete = "Delete", + // (undocumented) Replace = "Replace", + // (undocumented) SystemOperation = "SystemOperation" } // @public export enum KnownPartitionKind { + // (undocumented) Hash = "Hash", + // (undocumented) MultiHash = "MultiHash", + // (undocumented) Range = "Range" } // @public export enum KnownPrimaryAggregationType { + // (undocumented) Average = "Average", + // (undocumented) Last = "Last", + // (undocumented) Maximum = "Maximum", + // (undocumented) Minimum = "Minimum", + // (undocumented) None = "None", + // (undocumented) Total = "Total" } // @public export enum KnownPublicNetworkAccess { + // (undocumented) Disabled = "Disabled", + // (undocumented) Enabled = "Enabled" } // @public export enum KnownRestoreMode { + // (undocumented) PointInTime = "PointInTime" } // @public export enum KnownServerVersion { + // (undocumented) Four0 = "4.0", + // (undocumented) Four2 = "4.2", + // (undocumented) Three2 = "3.2", + // (undocumented) Three6 = "3.6" } // @public export enum KnownServiceSize { + // (undocumented) CosmosD16S = "Cosmos.D16s", + // (undocumented) CosmosD4S = "Cosmos.D4s", + // (undocumented) CosmosD8S = "Cosmos.D8s" } // @public export enum KnownServiceStatus { + // (undocumented) Creating = "Creating", + // (undocumented) Deleting = "Deleting", + // (undocumented) Error = "Error", + // (undocumented) Running = "Running", + // (undocumented) Stopped = "Stopped", + // (undocumented) Updating = "Updating" } // @public export enum KnownServiceType { + // (undocumented) DataTransfer = "DataTransfer", + // (undocumented) GraphAPICompute = "GraphAPICompute", + // (undocumented) MaterializedViewsBuilder = "MaterializedViewsBuilder", + // (undocumented) SqlDedicatedGateway = "SqlDedicatedGateway" } // @public export enum KnownSpatialType { + // (undocumented) LineString = "LineString", + // (undocumented) MultiPolygon = "MultiPolygon", + // (undocumented) Point = "Point", + // (undocumented) Polygon = "Polygon" } // @public export enum KnownThroughputPolicyType { + // (undocumented) Custom = "custom", + // (undocumented) Equal = "equal", + // (undocumented) None = "none" } // @public export enum KnownTriggerOperation { + // (undocumented) All = "All", + // (undocumented) Create = "Create", + // (undocumented) Delete = "Delete", + // (undocumented) Replace = "Replace", + // (undocumented) Update = "Update" } // @public export enum KnownTriggerType { + // (undocumented) Post = "Post", + // (undocumented) Pre = "Pre" } // @public export enum KnownUnitType { + // (undocumented) Bytes = "Bytes", + // (undocumented) BytesPerSecond = "BytesPerSecond", + // (undocumented) Count = "Count", + // (undocumented) CountPerSecond = "CountPerSecond", + // (undocumented) Milliseconds = "Milliseconds", + // (undocumented) Percent = "Percent", + // (undocumented) Seconds = "Seconds" } @@ -2315,9 +2412,9 @@ interface Location_2 { export { Location_2 as Location } // @public -export interface LocationGetResult extends ARMProxyResource { +export type LocationGetResult = ARMProxyResource & { properties?: LocationProperties; -} +}; // @public export interface LocationListResult { @@ -2400,8 +2497,7 @@ export interface ManagedServiceIdentity { } // @public -export interface MaterializedViewsBuilderRegionalServiceResource extends RegionalServiceResource { -} +export type MaterializedViewsBuilderRegionalServiceResource = RegionalServiceResource & {}; // @public export interface MaterializedViewsBuilderServiceResource { @@ -2409,10 +2505,10 @@ export interface MaterializedViewsBuilderServiceResource { } // @public -export interface MaterializedViewsBuilderServiceResourceProperties extends ServiceResourceProperties { - readonly locations?: MaterializedViewsBuilderRegionalServiceResource[]; +export type MaterializedViewsBuilderServiceResourceProperties = ServiceResourceProperties & { serviceType: "MaterializedViewsBuilder"; -} + readonly locations?: MaterializedViewsBuilderRegionalServiceResource[]; +}; // @public export interface MergeParameters { @@ -2471,26 +2567,22 @@ export interface MetricValue { } // @public -export interface MongoDBCollectionCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; +export type MongoDBCollectionCreateUpdateParameters = ARMResourceProperties & { resource: MongoDBCollectionResource; -} + options?: CreateUpdateOptions; +}; // @public (undocumented) -export interface MongoDBCollectionGetPropertiesOptions extends OptionsResource { -} +export type MongoDBCollectionGetPropertiesOptions = OptionsResource & {}; // @public (undocumented) -export interface MongoDBCollectionGetPropertiesResource extends MongoDBCollectionResource, ExtendedResourceProperties { -} +export type MongoDBCollectionGetPropertiesResource = MongoDBCollectionResource & ExtendedResourceProperties & {}; // @public -export interface MongoDBCollectionGetResults extends ARMResourceProperties { - // (undocumented) - options?: MongoDBCollectionGetPropertiesOptions; - // (undocumented) +export type MongoDBCollectionGetResults = ARMResourceProperties & { resource?: MongoDBCollectionGetPropertiesResource; -} + options?: MongoDBCollectionGetPropertiesOptions; +}; // @public export interface MongoDBCollectionListResult { @@ -2508,26 +2600,22 @@ export interface MongoDBCollectionResource { } // @public -export interface MongoDBDatabaseCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; +export type MongoDBDatabaseCreateUpdateParameters = ARMResourceProperties & { resource: MongoDBDatabaseResource; -} + options?: CreateUpdateOptions; +}; // @public (undocumented) -export interface MongoDBDatabaseGetPropertiesOptions extends OptionsResource { -} +export type MongoDBDatabaseGetPropertiesOptions = OptionsResource & {}; // @public (undocumented) -export interface MongoDBDatabaseGetPropertiesResource extends MongoDBDatabaseResource, ExtendedResourceProperties { -} +export type MongoDBDatabaseGetPropertiesResource = MongoDBDatabaseResource & ExtendedResourceProperties & {}; // @public -export interface MongoDBDatabaseGetResults extends ARMResourceProperties { - // (undocumented) - options?: MongoDBDatabaseGetPropertiesOptions; - // (undocumented) +export type MongoDBDatabaseGetResults = ARMResourceProperties & { resource?: MongoDBDatabaseGetPropertiesResource; -} + options?: MongoDBDatabaseGetPropertiesOptions; +}; // @public export interface MongoDBDatabaseListResult { @@ -2836,13 +2924,13 @@ export interface MongoRoleDefinitionCreateUpdateParameters { } // @public -export interface MongoRoleDefinitionGetResults extends ARMProxyResource { +export type MongoRoleDefinitionGetResults = ARMProxyResource & { + roleName?: string; + typePropertiesType?: MongoRoleDefinitionType; databaseName?: string; privileges?: Privilege[]; - roleName?: string; roles?: Role[]; - typePropertiesType?: MongoRoleDefinitionType; -} +}; // @public export interface MongoRoleDefinitionListResult { @@ -2863,14 +2951,14 @@ export interface MongoUserDefinitionCreateUpdateParameters { } // @public -export interface MongoUserDefinitionGetResults extends ARMProxyResource { - customData?: string; - databaseName?: string; - mechanisms?: string; +export type MongoUserDefinitionGetResults = ARMProxyResource & { + userName?: string; password?: string; + databaseName?: string; + customData?: string; roles?: Role[]; - userName?: string; -} + mechanisms?: string; +}; // @public export interface MongoUserDefinitionListResult { @@ -2887,10 +2975,10 @@ export type NodeState = string; export type NodeStatus = string; // @public -export interface NotebookWorkspace extends ARMProxyResource { +export type NotebookWorkspace = ARMProxyResource & { readonly notebookServerEndpoint?: string; readonly status?: string; -} +}; // @public export interface NotebookWorkspaceConnectionInfoResult { @@ -2899,8 +2987,7 @@ export interface NotebookWorkspaceConnectionInfoResult { } // @public -export interface NotebookWorkspaceCreateUpdateParameters extends ARMProxyResource { -} +export type NotebookWorkspaceCreateUpdateParameters = ARMProxyResource & {}; // @public export interface NotebookWorkspaceListResult { @@ -3049,10 +3136,10 @@ export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListRe export type PartitionKind = string; // @public -export interface PartitionMetric extends Metric { +export type PartitionMetric = Metric & { readonly partitionId?: string; readonly partitionKeyRangeId?: string; -} +}; // @public export interface PartitionMetricListResult { @@ -3060,10 +3147,10 @@ export interface PartitionMetricListResult { } // @public -export interface PartitionUsage extends Usage { +export type PartitionUsage = Usage & { readonly partitionId?: string; readonly partitionKeyRangeId?: string; -} +}; // @public export interface PartitionUsagesResult { @@ -3098,7 +3185,7 @@ export interface PercentileMetricListResult { } // @public -export interface PercentileMetricValue extends MetricValue { +export type PercentileMetricValue = MetricValue & { readonly p10?: number; readonly p25?: number; readonly p50?: number; @@ -3106,7 +3193,7 @@ export interface PercentileMetricValue extends MetricValue { readonly p90?: number; readonly p95?: number; readonly p99?: number; -} +}; // @public export interface PercentileSourceTarget { @@ -3133,10 +3220,10 @@ export interface PercentileTargetListMetricsOptionalParams extends coreClient.Op export type PercentileTargetListMetricsResponse = PercentileMetricListResult; // @public -export interface PeriodicModeBackupPolicy extends BackupPolicy { - periodicModeProperties?: PeriodicModeProperties; +export type PeriodicModeBackupPolicy = BackupPolicy & { type: "Periodic"; -} + periodicModeProperties?: PeriodicModeProperties; +}; // @public export interface PeriodicModeProperties { @@ -3179,24 +3266,23 @@ export interface PhysicalPartitionThroughputInfoResource { } // @public -export interface PhysicalPartitionThroughputInfoResult extends ARMResourceProperties { +export type PhysicalPartitionThroughputInfoResult = ARMResourceProperties & { resource?: PhysicalPartitionThroughputInfoResultPropertiesResource; -} +}; // @public -export interface PhysicalPartitionThroughputInfoResultPropertiesResource extends PhysicalPartitionThroughputInfoProperties { -} +export type PhysicalPartitionThroughputInfoResultPropertiesResource = PhysicalPartitionThroughputInfoProperties & {}; // @public export type PrimaryAggregationType = string; // @public -export interface PrivateEndpointConnection extends ProxyResource { - groupId?: string; +export type PrivateEndpointConnection = ProxyResource & { privateEndpoint?: PrivateEndpointProperty; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + groupId?: string; provisioningState?: string; -} +}; // @public export interface PrivateEndpointConnectionListResult { @@ -3248,11 +3334,11 @@ export interface PrivateEndpointProperty { } // @public -export interface PrivateLinkResource extends ARMProxyResource { +export type PrivateLinkResource = ARMProxyResource & { readonly groupId?: string; readonly requiredMembers?: string[]; readonly requiredZoneNames?: string[]; -} +}; // @public export interface PrivateLinkResourceListResult { @@ -3299,16 +3385,15 @@ export interface PrivilegeResource { } // @public -export interface ProxyResource extends Resource { -} +export type ProxyResource = Resource & {}; // @public export type PublicNetworkAccess = string; // @public -export interface RedistributeThroughputParameters extends ARMResourceProperties { +export type RedistributeThroughputParameters = ARMResourceProperties & { resource: RedistributeThroughputPropertiesResource; -} +}; // @public export interface RedistributeThroughputPropertiesResource { @@ -3611,9 +3696,9 @@ export interface RestorableSqlContainerPropertiesResource { } // @public -export interface RestorableSqlContainerPropertiesResourceContainer extends SqlContainerResource, ExtendedResourceProperties { +export type RestorableSqlContainerPropertiesResourceContainer = SqlContainerResource & ExtendedResourceProperties & { readonly self?: string; -} +}; // @public export interface RestorableSqlContainers { @@ -3654,11 +3739,11 @@ export interface RestorableSqlDatabasePropertiesResource { } // @public -export interface RestorableSqlDatabasePropertiesResourceDatabase extends SqlDatabaseResource, ExtendedResourceProperties { +export type RestorableSqlDatabasePropertiesResourceDatabase = SqlDatabaseResource & ExtendedResourceProperties & { readonly colls?: string; - readonly self?: string; readonly users?: string; -} + readonly self?: string; +}; // @public export interface RestorableSqlDatabases { @@ -3781,9 +3866,9 @@ export interface RestoreParameters { } // @public -export interface RetrieveThroughputParameters extends ARMResourceProperties { +export type RetrieveThroughputParameters = ARMResourceProperties & { resource: RetrieveThroughputPropertiesResource; -} +}; // @public export interface RetrieveThroughputPropertiesResource { @@ -3847,9 +3932,9 @@ export interface ServiceListOptionalParams extends coreClient.OperationOptions { export type ServiceListResponse = ServiceResourceListResult; // @public -export interface ServiceResource extends ARMProxyResource { +export type ServiceResource = ARMProxyResource & { properties?: ServiceResourcePropertiesUnion; -} +}; // @public export interface ServiceResourceCreateUpdateParameters { @@ -3895,26 +3980,22 @@ export interface SpatialSpec { export type SpatialType = string; // @public -export interface SqlContainerCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; +export type SqlContainerCreateUpdateParameters = ARMResourceProperties & { resource: SqlContainerResource; -} + options?: CreateUpdateOptions; +}; // @public (undocumented) -export interface SqlContainerGetPropertiesOptions extends OptionsResource { -} +export type SqlContainerGetPropertiesOptions = OptionsResource & {}; // @public (undocumented) -export interface SqlContainerGetPropertiesResource extends SqlContainerResource, ExtendedResourceProperties { -} +export type SqlContainerGetPropertiesResource = SqlContainerResource & ExtendedResourceProperties & {}; // @public -export interface SqlContainerGetResults extends ARMResourceProperties { - // (undocumented) - options?: SqlContainerGetPropertiesOptions; - // (undocumented) +export type SqlContainerGetResults = ARMResourceProperties & { resource?: SqlContainerGetPropertiesResource; -} + options?: SqlContainerGetPropertiesOptions; +}; // @public export interface SqlContainerListResult { @@ -3934,28 +4015,25 @@ export interface SqlContainerResource { } // @public -export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; +export type SqlDatabaseCreateUpdateParameters = ARMResourceProperties & { resource: SqlDatabaseResource; -} + options?: CreateUpdateOptions; +}; // @public (undocumented) -export interface SqlDatabaseGetPropertiesOptions extends OptionsResource { -} +export type SqlDatabaseGetPropertiesOptions = OptionsResource & {}; // @public (undocumented) -export interface SqlDatabaseGetPropertiesResource extends SqlDatabaseResource, ExtendedResourceProperties { +export type SqlDatabaseGetPropertiesResource = SqlDatabaseResource & ExtendedResourceProperties & { colls?: string; users?: string; -} +}; // @public -export interface SqlDatabaseGetResults extends ARMResourceProperties { - // (undocumented) - options?: SqlDatabaseGetPropertiesOptions; - // (undocumented) +export type SqlDatabaseGetResults = ARMResourceProperties & { resource?: SqlDatabaseGetPropertiesResource; -} + options?: SqlDatabaseGetPropertiesOptions; +}; // @public export interface SqlDatabaseListResult { @@ -3968,9 +4046,9 @@ export interface SqlDatabaseResource { } // @public -export interface SqlDedicatedGatewayRegionalServiceResource extends RegionalServiceResource { +export type SqlDedicatedGatewayRegionalServiceResource = RegionalServiceResource & { readonly sqlDedicatedGatewayEndpoint?: string; -} +}; // @public export interface SqlDedicatedGatewayServiceResource { @@ -3978,11 +4056,11 @@ export interface SqlDedicatedGatewayServiceResource { } // @public -export interface SqlDedicatedGatewayServiceResourceProperties extends ServiceResourceProperties { - readonly locations?: SqlDedicatedGatewayRegionalServiceResource[]; +export type SqlDedicatedGatewayServiceResourceProperties = ServiceResourceProperties & { serviceType: "SqlDedicatedGateway"; sqlDedicatedGatewayEndpoint?: string; -} + readonly locations?: SqlDedicatedGatewayRegionalServiceResource[]; +}; // @public export interface SqlResources { @@ -4394,11 +4472,11 @@ export interface SqlRoleAssignmentCreateUpdateParameters { } // @public -export interface SqlRoleAssignmentGetResults extends ARMProxyResource { - principalId?: string; +export type SqlRoleAssignmentGetResults = ARMProxyResource & { roleDefinitionId?: string; scope?: string; -} + principalId?: string; +}; // @public export interface SqlRoleAssignmentListResult { @@ -4414,12 +4492,12 @@ export interface SqlRoleDefinitionCreateUpdateParameters { } // @public -export interface SqlRoleDefinitionGetResults extends ARMProxyResource { - assignableScopes?: string[]; - permissions?: Permission[]; +export type SqlRoleDefinitionGetResults = ARMProxyResource & { roleName?: string; typePropertiesType?: RoleDefinitionType; -} + assignableScopes?: string[]; + permissions?: Permission[]; +}; // @public export interface SqlRoleDefinitionListResult { @@ -4427,20 +4505,18 @@ export interface SqlRoleDefinitionListResult { } // @public -export interface SqlStoredProcedureCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; +export type SqlStoredProcedureCreateUpdateParameters = ARMResourceProperties & { resource: SqlStoredProcedureResource; -} + options?: CreateUpdateOptions; +}; // @public (undocumented) -export interface SqlStoredProcedureGetPropertiesResource extends SqlStoredProcedureResource, ExtendedResourceProperties { -} +export type SqlStoredProcedureGetPropertiesResource = SqlStoredProcedureResource & ExtendedResourceProperties & {}; // @public -export interface SqlStoredProcedureGetResults extends ARMResourceProperties { - // (undocumented) +export type SqlStoredProcedureGetResults = ARMResourceProperties & { resource?: SqlStoredProcedureGetPropertiesResource; -} +}; // @public export interface SqlStoredProcedureListResult { @@ -4454,20 +4530,18 @@ export interface SqlStoredProcedureResource { } // @public -export interface SqlTriggerCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; +export type SqlTriggerCreateUpdateParameters = ARMResourceProperties & { resource: SqlTriggerResource; -} + options?: CreateUpdateOptions; +}; // @public (undocumented) -export interface SqlTriggerGetPropertiesResource extends SqlTriggerResource, ExtendedResourceProperties { -} +export type SqlTriggerGetPropertiesResource = SqlTriggerResource & ExtendedResourceProperties & {}; // @public -export interface SqlTriggerGetResults extends ARMResourceProperties { - // (undocumented) +export type SqlTriggerGetResults = ARMResourceProperties & { resource?: SqlTriggerGetPropertiesResource; -} +}; // @public export interface SqlTriggerListResult { @@ -4483,20 +4557,18 @@ export interface SqlTriggerResource { } // @public -export interface SqlUserDefinedFunctionCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; +export type SqlUserDefinedFunctionCreateUpdateParameters = ARMResourceProperties & { resource: SqlUserDefinedFunctionResource; -} + options?: CreateUpdateOptions; +}; // @public (undocumented) -export interface SqlUserDefinedFunctionGetPropertiesResource extends SqlUserDefinedFunctionResource, ExtendedResourceProperties { -} +export type SqlUserDefinedFunctionGetPropertiesResource = SqlUserDefinedFunctionResource & ExtendedResourceProperties & {}; // @public -export interface SqlUserDefinedFunctionGetResults extends ARMResourceProperties { - // (undocumented) +export type SqlUserDefinedFunctionGetResults = ARMResourceProperties & { resource?: SqlUserDefinedFunctionGetPropertiesResource; -} +}; // @public export interface SqlUserDefinedFunctionListResult { @@ -4520,26 +4592,22 @@ export interface SystemData { } // @public -export interface TableCreateUpdateParameters extends ARMResourceProperties { - options?: CreateUpdateOptions; +export type TableCreateUpdateParameters = ARMResourceProperties & { resource: TableResource; -} + options?: CreateUpdateOptions; +}; // @public (undocumented) -export interface TableGetPropertiesOptions extends OptionsResource { -} +export type TableGetPropertiesOptions = OptionsResource & {}; // @public (undocumented) -export interface TableGetPropertiesResource extends TableResource, ExtendedResourceProperties { -} +export type TableGetPropertiesResource = TableResource & ExtendedResourceProperties & {}; // @public -export interface TableGetResults extends ARMResourceProperties { - // (undocumented) - options?: TableGetPropertiesOptions; - // (undocumented) +export type TableGetResults = ARMResourceProperties & { resource?: TableGetPropertiesResource; -} + options?: TableGetPropertiesOptions; +}; // @public export interface TableListResult { @@ -4652,14 +4720,12 @@ export interface ThroughputPolicyResource { export type ThroughputPolicyType = string; // @public (undocumented) -export interface ThroughputSettingsGetPropertiesResource extends ThroughputSettingsResource, ExtendedResourceProperties { -} +export type ThroughputSettingsGetPropertiesResource = ThroughputSettingsResource & ExtendedResourceProperties & {}; // @public -export interface ThroughputSettingsGetResults extends ARMResourceProperties { - // (undocumented) +export type ThroughputSettingsGetResults = ARMResourceProperties & { resource?: ThroughputSettingsGetPropertiesResource; -} +}; // @public export interface ThroughputSettingsResource { @@ -4670,9 +4736,9 @@ export interface ThroughputSettingsResource { } // @public -export interface ThroughputSettingsUpdateParameters extends ARMResourceProperties { +export type ThroughputSettingsUpdateParameters = ARMResourceProperties & { resource: ThroughputSettingsResource; -} +}; // @public export type TriggerOperation = string; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts index 6843f89ddbda..309e82bf7379 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts @@ -130,7 +130,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-cosmosdb/16.0.0-beta.3`; + const packageDetails = `azsdk-js-arm-cosmosdb/15.2.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -150,34 +150,27 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { }; super(optionsWithDefaults); - let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); - bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName ); - } - if ( - !options || - !options.pipeline || - options.pipeline.getOrderedPolicies().length == 0 || - !bearerTokenAuthenticationPolicyFound - ) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credentials, - scopes: `${optionsWithDefaults.credentialScopes}`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) - ); + if (!bearerTokenAuthenticationPolicyFound) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + scopes: `${optionsWithDefaults.baseUri}/.default`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); + } } // Parameter assignments this.subscriptionId = subscriptionId; @@ -244,7 +237,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient { if (param.length > 1) { const newParams = param[1].split("&").map((item) => { if (item.indexOf("api-version") > -1) { - return "api-version=" + apiVersion; + return item.replace(/(?<==).*$/, apiVersion); } else { return item; } diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts index 949e3a09ccde..c7151ee5e887 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts @@ -2603,26 +2603,26 @@ export interface MaterializedViewsBuilderServiceResource { } /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} +export type ProxyResource = Resource & {}; /** The object representing periodic mode backup policy. */ -export interface PeriodicModeBackupPolicy extends BackupPolicy { +export type PeriodicModeBackupPolicy = BackupPolicy & { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "Periodic"; /** Configuration values for periodic mode backup */ periodicModeProperties?: PeriodicModeProperties; -} +}; /** The object representing continuous mode backup policy. */ -export interface ContinuousModeBackupPolicy extends BackupPolicy { +export type ContinuousModeBackupPolicy = BackupPolicy & { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "Continuous"; /** Configuration values for continuous mode backup */ continuousModeProperties?: ContinuousModeProperties; -} +}; /** An Azure Cosmos DB database account. */ -export interface DatabaseAccountGetResults extends ARMResourceProperties { +export type DatabaseAccountGetResults = ARMResourceProperties & { /** Indicates the type of database account. This can only be set at database account creation. */ kind?: DatabaseAccountKind; /** @@ -2731,11 +2731,10 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { enableMaterializedViews?: boolean; /** The object that represents the metadata for the Account Keys of the Cosmos DB account. */ keysMetadata?: DatabaseAccountKeysMetadata; -} +}; /** Parameters to create and update Cosmos DB database accounts. */ -export interface DatabaseAccountCreateUpdateParameters - extends ARMResourceProperties { +export type DatabaseAccountCreateUpdateParameters = ARMResourceProperties & { /** Indicates the type of database account. This can only be set at database account creation. */ kind?: DatabaseAccountKind; /** The consistency policy for the Cosmos DB account. */ @@ -2798,250 +2797,232 @@ export interface DatabaseAccountCreateUpdateParameters 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. */ keysMetadata?: DatabaseAccountKeysMetadata; -} +}; /** An Azure Cosmos DB Graph resource. */ -export interface GraphResourceGetResults extends ARMResourceProperties { +export type GraphResourceGetResults = ARMResourceProperties & { resource?: GraphResourceGetPropertiesResource; options?: GraphResourceGetPropertiesOptions; -} +}; /** Parameters to create and update Cosmos DB Graph resource. */ -export interface GraphResourceCreateUpdateParameters - extends ARMResourceProperties { +export type GraphResourceCreateUpdateParameters = 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 { +export type SqlDatabaseGetResults = ARMResourceProperties & { resource?: SqlDatabaseGetPropertiesResource; options?: SqlDatabaseGetPropertiesOptions; -} +}; /** Parameters to create and update Cosmos DB SQL database. */ -export interface SqlDatabaseCreateUpdateParameters - extends ARMResourceProperties { +export type SqlDatabaseCreateUpdateParameters = ARMResourceProperties & { /** The standard JSON format of a SQL database */ resource: SqlDatabaseResource; /** A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. */ options?: CreateUpdateOptions; -} +}; /** An Azure Cosmos DB resource throughput. */ -export interface ThroughputSettingsGetResults extends ARMResourceProperties { +export type ThroughputSettingsGetResults = ARMResourceProperties & { resource?: ThroughputSettingsGetPropertiesResource; -} +}; /** Parameters to update Cosmos DB resource throughput. */ -export interface ThroughputSettingsUpdateParameters - extends ARMResourceProperties { +export type ThroughputSettingsUpdateParameters = ARMResourceProperties & { /** The standard JSON format of a resource throughput */ resource: ThroughputSettingsResource; -} +}; /** An Azure Cosmos DB container. */ -export interface SqlContainerGetResults extends ARMResourceProperties { +export type SqlContainerGetResults = ARMResourceProperties & { resource?: SqlContainerGetPropertiesResource; options?: SqlContainerGetPropertiesOptions; -} +}; /** Parameters to create and update Cosmos DB container. */ -export interface SqlContainerCreateUpdateParameters - extends ARMResourceProperties { +export type SqlContainerCreateUpdateParameters = ARMResourceProperties & { /** The standard JSON format of a container */ resource: SqlContainerResource; /** A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. */ options?: CreateUpdateOptions; -} +}; /** Cosmos DB retrieve throughput parameters object */ -export interface RetrieveThroughputParameters extends ARMResourceProperties { +export type RetrieveThroughputParameters = ARMResourceProperties & { /** The standard JSON format of a resource throughput */ resource: RetrieveThroughputPropertiesResource; -} +}; /** An Azure Cosmos DB PhysicalPartitionThroughputInfoResult object. */ -export interface PhysicalPartitionThroughputInfoResult - extends ARMResourceProperties { +export type PhysicalPartitionThroughputInfoResult = ARMResourceProperties & { /** properties of physical partition throughput info */ resource?: PhysicalPartitionThroughputInfoResultPropertiesResource; -} +}; /** Cosmos DB redistribute throughput parameters object */ -export interface RedistributeThroughputParameters - extends ARMResourceProperties { +export type RedistributeThroughputParameters = ARMResourceProperties & { /** The standard JSON format of a resource throughput */ resource: RedistributeThroughputPropertiesResource; -} +}; /** An Azure Cosmos DB storedProcedure. */ -export interface SqlStoredProcedureGetResults extends ARMResourceProperties { +export type SqlStoredProcedureGetResults = ARMResourceProperties & { resource?: SqlStoredProcedureGetPropertiesResource; -} +}; /** Parameters to create and update Cosmos DB storedProcedure. */ -export interface SqlStoredProcedureCreateUpdateParameters - extends ARMResourceProperties { +export type SqlStoredProcedureCreateUpdateParameters = ARMResourceProperties & { /** The standard JSON format of a storedProcedure */ resource: SqlStoredProcedureResource; /** 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 userDefinedFunction. */ -export interface SqlUserDefinedFunctionGetResults - extends ARMResourceProperties { +export type SqlUserDefinedFunctionGetResults = ARMResourceProperties & { resource?: SqlUserDefinedFunctionGetPropertiesResource; -} +}; /** Parameters to create and update Cosmos DB userDefinedFunction. */ -export interface SqlUserDefinedFunctionCreateUpdateParameters - extends ARMResourceProperties { +export type SqlUserDefinedFunctionCreateUpdateParameters = ARMResourceProperties & { /** The standard JSON format of a userDefinedFunction */ resource: SqlUserDefinedFunctionResource; /** 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 trigger. */ -export interface SqlTriggerGetResults extends ARMResourceProperties { +export type SqlTriggerGetResults = ARMResourceProperties & { resource?: SqlTriggerGetPropertiesResource; -} +}; /** Parameters to create and update Cosmos DB trigger. */ -export interface SqlTriggerCreateUpdateParameters - extends ARMResourceProperties { +export type SqlTriggerCreateUpdateParameters = ARMResourceProperties & { /** The standard JSON format of a trigger */ resource: SqlTriggerResource; /** 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 MongoDB database. */ -export interface MongoDBDatabaseGetResults extends ARMResourceProperties { +export type MongoDBDatabaseGetResults = ARMResourceProperties & { resource?: MongoDBDatabaseGetPropertiesResource; options?: MongoDBDatabaseGetPropertiesOptions; -} +}; /** Parameters to create and update Cosmos DB MongoDB database. */ -export interface MongoDBDatabaseCreateUpdateParameters - extends ARMResourceProperties { +export type MongoDBDatabaseCreateUpdateParameters = ARMResourceProperties & { /** The standard JSON format of a MongoDB database */ resource: MongoDBDatabaseResource; /** 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 MongoDB collection. */ -export interface MongoDBCollectionGetResults extends ARMResourceProperties { +export type MongoDBCollectionGetResults = ARMResourceProperties & { resource?: MongoDBCollectionGetPropertiesResource; options?: MongoDBCollectionGetPropertiesOptions; -} +}; /** Parameters to create and update Cosmos DB MongoDB collection. */ -export interface MongoDBCollectionCreateUpdateParameters - extends ARMResourceProperties { +export type MongoDBCollectionCreateUpdateParameters = ARMResourceProperties & { /** The standard JSON format of a MongoDB collection */ resource: MongoDBCollectionResource; /** A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. */ options?: CreateUpdateOptions; -} +}; /** An Azure Cosmos DB Table. */ -export interface TableGetResults extends ARMResourceProperties { +export type TableGetResults = ARMResourceProperties & { resource?: TableGetPropertiesResource; options?: TableGetPropertiesOptions; -} +}; /** Parameters to create and update Cosmos DB Table. */ -export interface TableCreateUpdateParameters extends ARMResourceProperties { +export type TableCreateUpdateParameters = ARMResourceProperties & { /** The standard JSON format of a Table */ resource: TableResource; /** A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. */ options?: CreateUpdateOptions; -} +}; /** An Azure Cosmos DB Cassandra keyspace. */ -export interface CassandraKeyspaceGetResults extends ARMResourceProperties { +export type CassandraKeyspaceGetResults = ARMResourceProperties & { resource?: CassandraKeyspaceGetPropertiesResource; options?: CassandraKeyspaceGetPropertiesOptions; -} +}; /** Parameters to create and update Cosmos DB Cassandra keyspace. */ -export interface CassandraKeyspaceCreateUpdateParameters - extends ARMResourceProperties { +export type CassandraKeyspaceCreateUpdateParameters = ARMResourceProperties & { /** The standard JSON format of a Cassandra keyspace */ resource: CassandraKeyspaceResource; /** 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 Cassandra table. */ -export interface CassandraTableGetResults extends ARMResourceProperties { +export type CassandraTableGetResults = ARMResourceProperties & { resource?: CassandraTableGetPropertiesResource; options?: CassandraTableGetPropertiesOptions; -} +}; /** Parameters to create and update Cosmos DB Cassandra table. */ -export interface CassandraTableCreateUpdateParameters - extends ARMResourceProperties { +export type CassandraTableCreateUpdateParameters = ARMResourceProperties & { /** The standard JSON format of a Cassandra table */ resource: CassandraTableResource; /** 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 Gremlin database. */ -export interface GremlinDatabaseGetResults extends ARMResourceProperties { +export type GremlinDatabaseGetResults = ARMResourceProperties & { resource?: GremlinDatabaseGetPropertiesResource; options?: GremlinDatabaseGetPropertiesOptions; -} +}; /** Parameters to create and update Cosmos DB Gremlin database. */ -export interface GremlinDatabaseCreateUpdateParameters - extends ARMResourceProperties { +export type GremlinDatabaseCreateUpdateParameters = ARMResourceProperties & { /** The standard JSON format of a Gremlin database */ resource: GremlinDatabaseResource; /** 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 Gremlin graph. */ -export interface GremlinGraphGetResults extends ARMResourceProperties { +export type GremlinGraphGetResults = ARMResourceProperties & { resource?: GremlinGraphGetPropertiesResource; options?: GremlinGraphGetPropertiesOptions; -} +}; /** Parameters to create and update Cosmos DB Gremlin graph. */ -export interface GremlinGraphCreateUpdateParameters - extends ARMResourceProperties { +export type GremlinGraphCreateUpdateParameters = ARMResourceProperties & { /** The standard JSON format of a Gremlin graph */ resource: GremlinGraphResource; /** 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 Cassandra view. */ -export interface CassandraViewGetResults extends ARMResourceProperties { +export type CassandraViewGetResults = ARMResourceProperties & { resource?: CassandraViewGetPropertiesResource; options?: CassandraViewGetPropertiesOptions; -} +}; /** Parameters to create and update Cosmos DB Cassandra view. */ -export interface CassandraViewCreateUpdateParameters - extends ARMResourceProperties { +export type CassandraViewCreateUpdateParameters = 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 { +export type DatabaseAccountListKeysResult = DatabaseAccountListReadOnlyKeysResult & { /** * Base 64 encoded value of the primary read-write key. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3052,10 +3033,10 @@ export interface DatabaseAccountListKeysResult * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly secondaryMasterKey?: string; -} +}; /** The metric values for a single partition. */ -export interface PartitionMetric extends Metric { +export type PartitionMetric = Metric & { /** * The partition id (GUID identifier) of the metric values. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3066,10 +3047,10 @@ export interface PartitionMetric extends Metric { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly partitionKeyRangeId?: string; -} +}; /** Represents percentile metrics values. */ -export interface PercentileMetricValue extends MetricValue { +export type PercentileMetricValue = MetricValue & { /** * The 10th percentile value for the metric. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3105,10 +3086,10 @@ export interface PercentileMetricValue extends MetricValue { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly p99?: number; -} +}; /** The partition level usage data for a usage request. */ -export interface PartitionUsage extends Usage { +export type PartitionUsage = Usage & { /** * The partition id (GUID identifier) of the usages. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3119,150 +3100,131 @@ export interface PartitionUsage extends Usage { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly partitionKeyRangeId?: string; -} +}; -export interface GraphResourceGetPropertiesResource extends GraphResource {} +export type GraphResourceGetPropertiesResource = GraphResource & {}; -export interface GraphResourceGetPropertiesOptions extends OptionsResource {} +export type GraphResourceGetPropertiesOptions = OptionsResource & {}; -export interface SqlDatabaseGetPropertiesOptions extends OptionsResource {} +export type SqlDatabaseGetPropertiesOptions = OptionsResource & {}; -export interface SqlContainerGetPropertiesOptions extends OptionsResource {} +export type SqlContainerGetPropertiesOptions = OptionsResource & {}; -export interface MongoDBDatabaseGetPropertiesOptions extends OptionsResource {} +export type MongoDBDatabaseGetPropertiesOptions = OptionsResource & {}; -export interface MongoDBCollectionGetPropertiesOptions - extends OptionsResource {} +export type MongoDBCollectionGetPropertiesOptions = OptionsResource & {}; -export interface TableGetPropertiesOptions extends OptionsResource {} +export type TableGetPropertiesOptions = OptionsResource & {}; -export interface CassandraKeyspaceGetPropertiesOptions - extends OptionsResource {} +export type CassandraKeyspaceGetPropertiesOptions = OptionsResource & {}; -export interface CassandraTableGetPropertiesOptions extends OptionsResource {} +export type CassandraTableGetPropertiesOptions = OptionsResource & {}; -export interface GremlinDatabaseGetPropertiesOptions extends OptionsResource {} +export type GremlinDatabaseGetPropertiesOptions = OptionsResource & {}; -export interface GremlinGraphGetPropertiesOptions extends OptionsResource {} +export type GremlinGraphGetPropertiesOptions = OptionsResource & {}; -export interface CassandraViewGetPropertiesOptions extends OptionsResource {} +export type CassandraViewGetPropertiesOptions = OptionsResource & {}; -export interface SqlDatabaseGetPropertiesResource - extends SqlDatabaseResource, - ExtendedResourceProperties { - /** A system generated property that specified the addressable path of the collections resource. */ - colls?: string; - /** A system generated property that specifies the addressable path of the users resource. */ - users?: string; -} +export type SqlDatabaseGetPropertiesResource = SqlDatabaseResource & + ExtendedResourceProperties & { + /** A system generated property that specified the addressable path of the collections resource. */ + colls?: string; + /** A system generated property that specifies the addressable path of the users resource. */ + users?: string; + }; /** Cosmos DB SQL database resource object */ -export interface RestorableSqlDatabasePropertiesResourceDatabase - extends SqlDatabaseResource, - ExtendedResourceProperties { - /** - * A system generated property that specified the addressable path of the collections resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly colls?: string; - /** - * A system generated property that specifies the addressable path of the users resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly users?: string; - /** - * A system generated property that specifies the addressable path of the database resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly self?: string; -} +export type RestorableSqlDatabasePropertiesResourceDatabase = SqlDatabaseResource & + ExtendedResourceProperties & { + /** + * A system generated property that specified the addressable path of the collections resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly colls?: string; + /** + * A system generated property that specifies the addressable path of the users resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly users?: string; + /** + * A system generated property that specifies the addressable path of the database resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly self?: string; + }; -export interface ThroughputSettingsGetPropertiesResource - extends ThroughputSettingsResource, - ExtendedResourceProperties {} +export type ThroughputSettingsGetPropertiesResource = ThroughputSettingsResource & + ExtendedResourceProperties & {}; -export interface ClientEncryptionKeyGetPropertiesResource - extends ClientEncryptionKeyResource, - ExtendedResourceProperties {} +export type ClientEncryptionKeyGetPropertiesResource = ClientEncryptionKeyResource & + ExtendedResourceProperties & {}; -export interface SqlContainerGetPropertiesResource - extends SqlContainerResource, - ExtendedResourceProperties {} +export type SqlContainerGetPropertiesResource = SqlContainerResource & + ExtendedResourceProperties & {}; -export interface SqlStoredProcedureGetPropertiesResource - extends SqlStoredProcedureResource, - ExtendedResourceProperties {} +export type SqlStoredProcedureGetPropertiesResource = SqlStoredProcedureResource & + ExtendedResourceProperties & {}; -export interface SqlUserDefinedFunctionGetPropertiesResource - extends SqlUserDefinedFunctionResource, - ExtendedResourceProperties {} +export type SqlUserDefinedFunctionGetPropertiesResource = SqlUserDefinedFunctionResource & + ExtendedResourceProperties & {}; -export interface SqlTriggerGetPropertiesResource - extends SqlTriggerResource, - ExtendedResourceProperties {} +export type SqlTriggerGetPropertiesResource = SqlTriggerResource & + ExtendedResourceProperties & {}; -export interface MongoDBDatabaseGetPropertiesResource - extends MongoDBDatabaseResource, - ExtendedResourceProperties {} +export type MongoDBDatabaseGetPropertiesResource = MongoDBDatabaseResource & + ExtendedResourceProperties & {}; -export interface MongoDBCollectionGetPropertiesResource - extends MongoDBCollectionResource, - ExtendedResourceProperties {} +export type MongoDBCollectionGetPropertiesResource = MongoDBCollectionResource & + ExtendedResourceProperties & {}; -export interface TableGetPropertiesResource - extends TableResource, - ExtendedResourceProperties {} +export type TableGetPropertiesResource = TableResource & + ExtendedResourceProperties & {}; -export interface CassandraKeyspaceGetPropertiesResource - extends CassandraKeyspaceResource, - ExtendedResourceProperties {} +export type CassandraKeyspaceGetPropertiesResource = CassandraKeyspaceResource & + ExtendedResourceProperties & {}; -export interface CassandraTableGetPropertiesResource - extends CassandraTableResource, - ExtendedResourceProperties {} +export type CassandraTableGetPropertiesResource = CassandraTableResource & + ExtendedResourceProperties & {}; -export interface GremlinDatabaseGetPropertiesResource - extends GremlinDatabaseResource, - ExtendedResourceProperties {} +export type GremlinDatabaseGetPropertiesResource = GremlinDatabaseResource & + ExtendedResourceProperties & {}; -export interface GremlinGraphGetPropertiesResource - extends GremlinGraphResource, - ExtendedResourceProperties {} +export type GremlinGraphGetPropertiesResource = GremlinGraphResource & + ExtendedResourceProperties & {}; -export interface CassandraViewGetPropertiesResource - extends CassandraViewResource, - ExtendedResourceProperties {} +export type CassandraViewGetPropertiesResource = CassandraViewResource & + ExtendedResourceProperties & {}; /** Cosmos DB SQL container resource object */ -export interface RestorableSqlContainerPropertiesResourceContainer - extends SqlContainerResource, - ExtendedResourceProperties { - /** - * A system generated property that specifies the addressable path of the container resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly self?: string; -} +export type RestorableSqlContainerPropertiesResourceContainer = SqlContainerResource & + ExtendedResourceProperties & { + /** + * A system generated property that specifies the addressable path of the container resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly self?: string; + }; /** Client Encryption Key. */ -export interface ClientEncryptionKeyGetResults extends ARMProxyResource { +export type ClientEncryptionKeyGetResults = ARMProxyResource & { resource?: ClientEncryptionKeyGetPropertiesResource; -} +}; /** Cosmos DB location get result */ -export interface LocationGetResult extends ARMProxyResource { +export type LocationGetResult = ARMProxyResource & { /** Cosmos DB location metadata */ properties?: LocationProperties; -} +}; /** Parameters to create Data Transfer Job */ -export interface CreateJobRequest extends ARMProxyResource { +export type CreateJobRequest = ARMProxyResource & { /** Data Transfer Create Job Properties */ properties: DataTransferJobProperties; -} +}; /** A Cosmos DB Data Transfer Job */ -export interface DataTransferJobGetResults extends ARMProxyResource { +export type DataTransferJobGetResults = ARMProxyResource & { /** * Job Name * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3299,21 +3261,21 @@ export interface DataTransferJobGetResults extends ARMProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly error?: ErrorResponse; -} +}; /** A restorable backup of a Cassandra cluster. */ -export interface BackupResource extends ARMProxyResource { +export type BackupResource = ARMProxyResource & { properties?: BackupResourceProperties; -} +}; /** A managed Cassandra data center. */ -export interface DataCenterResource extends ARMProxyResource { +export type DataCenterResource = ARMProxyResource & { /** Properties of a managed Cassandra data center. */ properties?: DataCenterResourceProperties; -} +}; /** An Azure Cosmos DB Mongo Role Definition. */ -export interface MongoRoleDefinitionGetResults extends ARMProxyResource { +export type MongoRoleDefinitionGetResults = ARMProxyResource & { /** A user-friendly name for the Role Definition. Must be unique for the database account. */ roleName?: string; /** Indicates whether the Role Definition was built-in or user created. */ @@ -3324,10 +3286,10 @@ export interface MongoRoleDefinitionGetResults extends ARMProxyResource { privileges?: Privilege[]; /** The set of roles inherited by this Role Definition. */ roles?: Role[]; -} +}; /** An Azure Cosmos DB User Definition */ -export interface MongoUserDefinitionGetResults extends ARMProxyResource { +export type MongoUserDefinitionGetResults = ARMProxyResource & { /** The user name for User Definition. */ userName?: string; /** The password for User Definition. Response does not contain user password. */ @@ -3340,10 +3302,10 @@ export interface MongoUserDefinitionGetResults extends ARMProxyResource { roles?: Role[]; /** The Mongo Auth mechanism. For now, we only support auth mechanism SCRAM-SHA-256. */ mechanisms?: string; -} +}; /** A notebook workspace resource */ -export interface NotebookWorkspace extends ARMProxyResource { +export type NotebookWorkspace = ARMProxyResource & { /** * Specifies the endpoint of Notebook server. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3354,14 +3316,13 @@ export interface NotebookWorkspace extends ARMProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: string; -} +}; /** Parameters to create a notebook workspace resource */ -export interface NotebookWorkspaceCreateUpdateParameters - extends ARMProxyResource {} +export type NotebookWorkspaceCreateUpdateParameters = ARMProxyResource & {}; /** A private link resource */ -export interface PrivateLinkResource extends ARMProxyResource { +export type PrivateLinkResource = ARMProxyResource & { /** * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3377,10 +3338,10 @@ export interface PrivateLinkResource extends ARMProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requiredZoneNames?: string[]; -} +}; /** An Azure Cosmos DB SQL Role Definition. */ -export interface SqlRoleDefinitionGetResults extends ARMProxyResource { +export type SqlRoleDefinitionGetResults = ARMProxyResource & { /** A user-friendly name for the Role Definition. Must be unique for the database account. */ roleName?: string; /** Indicates whether the Role Definition was built-in or user created. */ @@ -3389,64 +3350,59 @@ export interface SqlRoleDefinitionGetResults extends ARMProxyResource { assignableScopes?: string[]; /** The set of operations allowed through this Role Definition. */ permissions?: Permission[]; -} +}; /** An Azure Cosmos DB Role Assignment */ -export interface SqlRoleAssignmentGetResults extends ARMProxyResource { +export type SqlRoleAssignmentGetResults = ARMProxyResource & { /** The unique identifier for the associated Role Definition. */ roleDefinitionId?: string; /** The data plane resource path for which access is being granted through this Role Assignment. */ scope?: string; /** The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription. */ principalId?: string; -} +}; /** Properties for the database account. */ -export interface ServiceResource extends ARMProxyResource { +export type ServiceResource = ARMProxyResource & { /** Services response resource. */ properties?: ServiceResourcePropertiesUnion; -} +}; /** properties of physical partition throughput info */ -export interface PhysicalPartitionThroughputInfoResultPropertiesResource - extends PhysicalPartitionThroughputInfoProperties {} +export type PhysicalPartitionThroughputInfoResultPropertiesResource = PhysicalPartitionThroughputInfoProperties & {}; /** A CosmosDB Cassandra API data source/sink */ -export interface CosmosCassandraDataTransferDataSourceSink - extends DataTransferDataSourceSink { +export type CosmosCassandraDataTransferDataSourceSink = DataTransferDataSourceSink & { /** Polymorphic discriminator, which specifies the different types this object can be */ component: "CosmosDBCassandra"; keyspaceName: string; tableName: string; -} +}; /** A CosmosDB Cassandra API data source/sink */ -export interface CosmosSqlDataTransferDataSourceSink - extends DataTransferDataSourceSink { +export type CosmosSqlDataTransferDataSourceSink = DataTransferDataSourceSink & { /** Polymorphic discriminator, which specifies the different types this object can be */ component: "CosmosDBSql"; databaseName: string; containerName: string; -} +}; /** An Azure Blob Storage data source/sink */ -export interface AzureBlobDataTransferDataSourceSink - extends DataTransferDataSourceSink { +export type AzureBlobDataTransferDataSourceSink = 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 { +export type ClusterResource = ManagedCassandraARMResourceProperties & { /** Properties of a managed Cassandra cluster. */ properties?: ClusterResourceProperties; -} +}; /** Properties for DataTransferServiceResource. */ -export interface DataTransferServiceResourceProperties - extends ServiceResourceProperties { +export type DataTransferServiceResourceProperties = ServiceResourceProperties & { /** Polymorphic discriminator, which specifies the different types this object can be */ serviceType: "DataTransfer"; /** @@ -3454,11 +3410,10 @@ export interface DataTransferServiceResourceProperties * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly locations?: DataTransferRegionalServiceResource[]; -} +}; /** Properties for SqlDedicatedGatewayServiceResource. */ -export interface SqlDedicatedGatewayServiceResourceProperties - extends ServiceResourceProperties { +export type SqlDedicatedGatewayServiceResourceProperties = ServiceResourceProperties & { /** Polymorphic discriminator, which specifies the different types this object can be */ serviceType: "SqlDedicatedGateway"; /** SqlDedicatedGateway endpoint for the service. */ @@ -3468,11 +3423,10 @@ export interface SqlDedicatedGatewayServiceResourceProperties * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly locations?: SqlDedicatedGatewayRegionalServiceResource[]; -} +}; /** Properties for GraphAPIComputeServiceResource. */ -export interface GraphAPIComputeServiceResourceProperties - extends ServiceResourceProperties { +export type GraphAPIComputeServiceResourceProperties = ServiceResourceProperties & { /** Polymorphic discriminator, which specifies the different types this object can be */ serviceType: "GraphAPICompute"; /** GraphAPICompute endpoint for the service. */ @@ -3482,11 +3436,10 @@ export interface GraphAPIComputeServiceResourceProperties * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly locations?: GraphAPIComputeRegionalServiceResource[]; -} +}; /** Properties for MaterializedViewsBuilderServiceResource. */ -export interface MaterializedViewsBuilderServiceResourceProperties - extends ServiceResourceProperties { +export type MaterializedViewsBuilderServiceResourceProperties = ServiceResourceProperties & { /** Polymorphic discriminator, which specifies the different types this object can be */ serviceType: "MaterializedViewsBuilder"; /** @@ -3494,38 +3447,34 @@ export interface MaterializedViewsBuilderServiceResourceProperties * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly locations?: MaterializedViewsBuilderRegionalServiceResource[]; -} +}; /** Resource for a regional service location. */ -export interface DataTransferRegionalServiceResource - extends RegionalServiceResource {} +export type DataTransferRegionalServiceResource = RegionalServiceResource & {}; /** Resource for a regional service location. */ -export interface SqlDedicatedGatewayRegionalServiceResource - extends RegionalServiceResource { +export type SqlDedicatedGatewayRegionalServiceResource = RegionalServiceResource & { /** * The regional endpoint for SqlDedicatedGateway. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sqlDedicatedGatewayEndpoint?: string; -} +}; /** Resource for a regional service location. */ -export interface GraphAPIComputeRegionalServiceResource - extends RegionalServiceResource { +export type GraphAPIComputeRegionalServiceResource = RegionalServiceResource & { /** * The regional endpoint for GraphAPICompute. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly graphApiComputeEndpoint?: string; -} +}; /** Resource for a regional service location. */ -export interface MaterializedViewsBuilderRegionalServiceResource - extends RegionalServiceResource {} +export type MaterializedViewsBuilderRegionalServiceResource = RegionalServiceResource & {}; /** A private endpoint connection */ -export interface PrivateEndpointConnection extends ProxyResource { +export type PrivateEndpointConnection = ProxyResource & { /** Private endpoint which the connection belongs to. */ privateEndpoint?: PrivateEndpointProperty; /** Connection State of the Private Endpoint Connection. */ @@ -3534,15 +3483,12 @@ export interface PrivateEndpointConnection extends ProxyResource { groupId?: string; /** Provisioning state of the private endpoint. */ provisioningState?: string; -} +}; /** Known values of {@link DatabaseAccountKind} that the service accepts. */ export enum KnownDatabaseAccountKind { - /** GlobalDocumentDB */ GlobalDocumentDB = "GlobalDocumentDB", - /** MongoDB */ MongoDB = "MongoDB", - /** Parse */ Parse = "Parse" } @@ -3559,7 +3505,6 @@ export type DatabaseAccountKind = string; /** Known values of {@link ConnectorOffer} that the service accepts. */ export enum KnownConnectorOffer { - /** Small */ Small = "Small" } @@ -3574,9 +3519,7 @@ export type ConnectorOffer = string; /** Known values of {@link PublicNetworkAccess} that the service accepts. */ export enum KnownPublicNetworkAccess { - /** Enabled */ Enabled = "Enabled", - /** Disabled */ Disabled = "Disabled" } @@ -3592,13 +3535,9 @@ export type PublicNetworkAccess = string; /** Known values of {@link ServerVersion} that the service accepts. */ export enum KnownServerVersion { - /** Three2 */ Three2 = "3.2", - /** Three6 */ Three6 = "3.6", - /** Four0 */ Four0 = "4.0", - /** Four2 */ Four2 = "4.2" } @@ -3616,9 +3555,7 @@ export type ServerVersion = string; /** Known values of {@link AnalyticalStorageSchemaType} that the service accepts. */ export enum KnownAnalyticalStorageSchemaType { - /** WellDefined */ WellDefined = "WellDefined", - /** FullFidelity */ FullFidelity = "FullFidelity" } @@ -3634,9 +3571,7 @@ export type AnalyticalStorageSchemaType = string; /** Known values of {@link CreateMode} that the service accepts. */ export enum KnownCreateMode { - /** Default */ Default = "Default", - /** Restore */ Restore = "Restore" } @@ -3652,7 +3587,6 @@ export type CreateMode = string; /** Known values of {@link RestoreMode} that the service accepts. */ export enum KnownRestoreMode { - /** PointInTime */ PointInTime = "PointInTime" } @@ -3667,9 +3601,7 @@ export type RestoreMode = string; /** Known values of {@link BackupPolicyType} that the service accepts. */ export enum KnownBackupPolicyType { - /** Periodic */ Periodic = "Periodic", - /** Continuous */ Continuous = "Continuous" } @@ -3685,13 +3617,9 @@ export type BackupPolicyType = string; /** Known values of {@link BackupPolicyMigrationStatus} that the service accepts. */ export enum KnownBackupPolicyMigrationStatus { - /** Invalid */ Invalid = "Invalid", - /** InProgress */ InProgress = "InProgress", - /** Completed */ Completed = "Completed", - /** Failed */ Failed = "Failed" } @@ -3709,13 +3637,9 @@ export type BackupPolicyMigrationStatus = 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" } @@ -3733,13 +3657,9 @@ export type CreatedByType = string; /** Known values of {@link KeyKind} that the service accepts. */ export enum KnownKeyKind { - /** Primary */ Primary = "primary", - /** Secondary */ Secondary = "secondary", - /** PrimaryReadonly */ PrimaryReadonly = "primaryReadonly", - /** SecondaryReadonly */ SecondaryReadonly = "secondaryReadonly" } @@ -3757,19 +3677,12 @@ export type KeyKind = string; /** Known values of {@link UnitType} that the service accepts. */ export enum KnownUnitType { - /** Count */ Count = "Count", - /** Bytes */ Bytes = "Bytes", - /** Seconds */ Seconds = "Seconds", - /** Percent */ Percent = "Percent", - /** CountPerSecond */ CountPerSecond = "CountPerSecond", - /** BytesPerSecond */ BytesPerSecond = "BytesPerSecond", - /** Milliseconds */ Milliseconds = "Milliseconds" } @@ -3790,17 +3703,11 @@ export type UnitType = string; /** Known values of {@link PrimaryAggregationType} that the service accepts. */ export enum KnownPrimaryAggregationType { - /** None */ None = "None", - /** Average */ Average = "Average", - /** Total */ Total = "Total", - /** Minimum */ Minimum = "Minimum", - /** Maximum */ Maximum = "Maximum", - /** Last */ Last = "Last" } @@ -3820,11 +3727,8 @@ export type PrimaryAggregationType = string; /** Known values of {@link IndexingMode} that the service accepts. */ export enum KnownIndexingMode { - /** Consistent */ Consistent = "consistent", - /** Lazy */ Lazy = "lazy", - /** None */ None = "none" } @@ -3841,17 +3745,11 @@ export type IndexingMode = string; /** Known values of {@link DataType} that the service accepts. */ export enum KnownDataType { - /** String */ String = "String", - /** Number */ Number = "Number", - /** Point */ Point = "Point", - /** Polygon */ Polygon = "Polygon", - /** LineString */ LineString = "LineString", - /** MultiPolygon */ MultiPolygon = "MultiPolygon" } @@ -3871,11 +3769,8 @@ export type DataType = string; /** Known values of {@link IndexKind} that the service accepts. */ export enum KnownIndexKind { - /** Hash */ Hash = "Hash", - /** Range */ Range = "Range", - /** Spatial */ Spatial = "Spatial" } @@ -3892,9 +3787,7 @@ export type IndexKind = string; /** Known values of {@link CompositePathSortOrder} that the service accepts. */ export enum KnownCompositePathSortOrder { - /** Ascending */ Ascending = "ascending", - /** Descending */ Descending = "descending" } @@ -3910,13 +3803,9 @@ export type CompositePathSortOrder = string; /** Known values of {@link SpatialType} that the service accepts. */ export enum KnownSpatialType { - /** Point */ Point = "Point", - /** LineString */ LineString = "LineString", - /** Polygon */ Polygon = "Polygon", - /** MultiPolygon */ MultiPolygon = "MultiPolygon" } @@ -3934,11 +3823,8 @@ export type SpatialType = string; /** Known values of {@link PartitionKind} that the service accepts. */ export enum KnownPartitionKind { - /** Hash */ Hash = "Hash", - /** Range */ Range = "Range", - /** MultiHash */ MultiHash = "MultiHash" } @@ -3955,9 +3841,7 @@ export type PartitionKind = string; /** Known values of {@link ConflictResolutionMode} that the service accepts. */ export enum KnownConflictResolutionMode { - /** LastWriterWins */ LastWriterWins = "LastWriterWins", - /** Custom */ Custom = "Custom" } @@ -3973,11 +3857,8 @@ 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" } @@ -3994,9 +3875,7 @@ export type ThroughputPolicyType = string; /** Known values of {@link TriggerType} that the service accepts. */ export enum KnownTriggerType { - /** Pre */ Pre = "Pre", - /** Post */ Post = "Post" } @@ -4012,15 +3891,10 @@ export type TriggerType = string; /** Known values of {@link TriggerOperation} that the service accepts. */ export enum KnownTriggerOperation { - /** All */ All = "All", - /** Create */ Create = "Create", - /** Update */ Update = "Update", - /** Delete */ Delete = "Delete", - /** Replace */ Replace = "Replace" } @@ -4039,11 +3913,8 @@ export type TriggerOperation = string; /** Known values of {@link BackupStorageRedundancy} that the service accepts. */ export enum KnownBackupStorageRedundancy { - /** Geo */ Geo = "Geo", - /** Local */ Local = "Local", - /** Zone */ Zone = "Zone" } @@ -4060,11 +3931,8 @@ export type BackupStorageRedundancy = string; /** Known values of {@link DataTransferComponent} that the service accepts. */ export enum KnownDataTransferComponent { - /** CosmosDBCassandra */ CosmosDBCassandra = "CosmosDBCassandra", - /** CosmosDBSql */ CosmosDBSql = "CosmosDBSql", - /** AzureBlobStorage */ AzureBlobStorage = "AzureBlobStorage" } @@ -4081,17 +3949,11 @@ export type DataTransferComponent = string; /** Known values of {@link ManagedCassandraProvisioningState} that the service accepts. */ export enum KnownManagedCassandraProvisioningState { - /** Creating */ Creating = "Creating", - /** Updating */ Updating = "Updating", - /** Deleting */ Deleting = "Deleting", - /** Succeeded */ Succeeded = "Succeeded", - /** Failed */ Failed = "Failed", - /** Canceled */ Canceled = "Canceled" } @@ -4111,11 +3973,8 @@ export type ManagedCassandraProvisioningState = string; /** Known values of {@link AuthenticationMethod} that the service accepts. */ export enum KnownAuthenticationMethod { - /** None */ None = "None", - /** Cassandra */ Cassandra = "Cassandra", - /** Ldap */ Ldap = "Ldap" } @@ -4132,9 +3991,7 @@ export type AuthenticationMethod = string; /** Known values of {@link ManagedCassandraResourceIdentityType} that the service accepts. */ export enum KnownManagedCassandraResourceIdentityType { - /** SystemAssigned */ SystemAssigned = "SystemAssigned", - /** None */ None = "None" } @@ -4150,17 +4007,11 @@ export type ManagedCassandraResourceIdentityType = string; /** Known values of {@link ConnectionState} that the service accepts. */ export enum KnownConnectionState { - /** Unknown */ Unknown = "Unknown", - /** OK */ OK = "OK", - /** OperatorToDataCenterNetworkError */ OperatorToDataCenterNetworkError = "OperatorToDataCenterNetworkError", - /** DatacenterToDatacenterNetworkError */ DatacenterToDatacenterNetworkError = "DatacenterToDatacenterNetworkError", - /** InternalOperatorToDataCenterCertificateError */ InternalOperatorToDataCenterCertificateError = "InternalOperatorToDataCenterCertificateError", - /** InternalError */ InternalError = "InternalError" } @@ -4180,15 +4031,10 @@ export type ConnectionState = string; /** Known values of {@link NodeState} that the service accepts. */ export enum KnownNodeState { - /** Normal */ Normal = "Normal", - /** Leaving */ Leaving = "Leaving", - /** Joining */ Joining = "Joining", - /** Moving */ Moving = "Moving", - /** Stopped */ Stopped = "Stopped" } @@ -4207,7 +4053,6 @@ export type NodeState = string; /** Known values of {@link NotebookWorkspaceName} that the service accepts. */ export enum KnownNotebookWorkspaceName { - /** Default */ Default = "default" } @@ -4222,17 +4067,11 @@ export type NotebookWorkspaceName = string; /** Known values of {@link ApiType} that the service accepts. */ export enum KnownApiType { - /** MongoDB */ MongoDB = "MongoDB", - /** Gremlin */ Gremlin = "Gremlin", - /** Cassandra */ Cassandra = "Cassandra", - /** Table */ Table = "Table", - /** Sql */ Sql = "Sql", - /** GremlinV2 */ GremlinV2 = "GremlinV2" } @@ -4252,13 +4091,9 @@ export type ApiType = string; /** Known values of {@link OperationType} that the service accepts. */ export enum KnownOperationType { - /** Create */ Create = "Create", - /** Replace */ Replace = "Replace", - /** Delete */ Delete = "Delete", - /** SystemOperation */ SystemOperation = "SystemOperation" } @@ -4276,11 +4111,8 @@ export type OperationType = string; /** Known values of {@link ServiceSize} that the service accepts. */ export enum KnownServiceSize { - /** CosmosD4S */ CosmosD4S = "Cosmos.D4s", - /** CosmosD8S */ CosmosD8S = "Cosmos.D8s", - /** CosmosD16S */ CosmosD16S = "Cosmos.D16s" } @@ -4297,13 +4129,9 @@ export type ServiceSize = string; /** Known values of {@link ServiceType} that the service accepts. */ export enum KnownServiceType { - /** SqlDedicatedGateway */ SqlDedicatedGateway = "SqlDedicatedGateway", - /** DataTransfer */ DataTransfer = "DataTransfer", - /** GraphAPICompute */ GraphAPICompute = "GraphAPICompute", - /** MaterializedViewsBuilder */ MaterializedViewsBuilder = "MaterializedViewsBuilder" } @@ -4321,17 +4149,11 @@ export type ServiceType = string; /** Known values of {@link ServiceStatus} that the service accepts. */ export enum KnownServiceStatus { - /** Creating */ Creating = "Creating", - /** Running */ Running = "Running", - /** Updating */ Updating = "Updating", - /** Deleting */ Deleting = "Deleting", - /** Error */ Error = "Error", - /** Stopped */ Stopped = "Stopped" } @@ -4351,9 +4173,7 @@ export type ServiceStatus = string; /** Known values of {@link ContinuousTier} that the service accepts. */ export enum KnownContinuousTier { - /** Continuous7Days */ Continuous7Days = "Continuous7Days", - /** Continuous30Days */ Continuous30Days = "Continuous30Days" } @@ -4369,9 +4189,7 @@ export type ContinuousTier = string; /** Known values of {@link NodeStatus} that the service accepts. */ export enum KnownNodeStatus { - /** Up */ Up = "Up", - /** Down */ Down = "Down" } diff --git a/sdk/cosmosdb/arm-cosmosdb/test/sampleTest.ts b/sdk/cosmosdb/arm-cosmosdb/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/cosmosdb/arm-cosmosdb/tsconfig.json b/sdk/cosmosdb/arm-cosmosdb/tsconfig.json index bbcdce662fee..3e6ae96443f3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/tsconfig.json +++ b/sdk/cosmosdb/arm-cosmosdb/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-cosmosdb": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"