diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts index cb6b851a6558..9f445d3dc4e3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts @@ -36,14 +36,14 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = '2021-01-15'; + this.apiVersion = '2021-03-15'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -51,10 +51,10 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts index c250f6f488df..bd439e91a6d9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts @@ -433,6 +433,12 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * The URI of the key vault */ keyVaultKeyUri?: string; + /** + * The default identity for accessing key vault used in features like customer managed keys. The + * default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", + * "SystemAssignedIdentity" and more. + */ + defaultIdentity?: string; /** * Whether requests from Public Network are allowed. Possible values include: 'Enabled', * 'Disabled' @@ -1557,6 +1563,12 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper * The URI of the key vault */ keyVaultKeyUri?: string; + /** + * The default identity for accessing key vault used in features like customer managed keys. The + * default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", + * "SystemAssignedIdentity" and more. + */ + defaultIdentity?: string; /** * Whether requests from Public Network are allowed. Possible values include: 'Enabled', * 'Disabled' @@ -1655,6 +1667,12 @@ export interface DatabaseAccountUpdateParameters { * The URI of the key vault */ keyVaultKeyUri?: string; + /** + * The default identity for accessing key vault used in features like customer managed keys. The + * default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", + * "SystemAssignedIdentity" and more. + */ + defaultIdentity?: string; /** * Whether requests from Public Network are allowed. Possible values include: 'Enabled', * 'Disabled' diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts index 17bb1eb9e8d5..e3c964010fe5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts @@ -714,6 +714,12 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { name: "String" } }, + defaultIdentity: { + serializedName: "properties.defaultIdentity", + type: { + name: "String" + } + }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { @@ -2708,6 +2714,12 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + defaultIdentity: { + serializedName: "properties.defaultIdentity", + type: { + name: "String" + } + }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { @@ -2904,6 +2916,12 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + defaultIdentity: { + serializedName: "properties.defaultIdentity", + type: { + name: "String" + } + }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: {