Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,25 @@ 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";
this.requestContentType = "application/json; charset=utf-8";
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;
}
}
Expand Down
18 changes: 18 additions & 0 deletions sdk/cosmosdb/arm-cosmosdb/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down
18 changes: 18 additions & 0 deletions sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,12 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = {
name: "String"
}
},
defaultIdentity: {
serializedName: "properties.defaultIdentity",
type: {
name: "String"
}
},
publicNetworkAccess: {
serializedName: "properties.publicNetworkAccess",
type: {
Expand Down Expand Up @@ -2708,6 +2714,12 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = {
name: "String"
}
},
defaultIdentity: {
serializedName: "properties.defaultIdentity",
type: {
name: "String"
}
},
publicNetworkAccess: {
serializedName: "properties.publicNetworkAccess",
type: {
Expand Down Expand Up @@ -2904,6 +2916,12 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = {
name: "String"
}
},
defaultIdentity: {
serializedName: "properties.defaultIdentity",
type: {
name: "String"
}
},
publicNetworkAccess: {
serializedName: "properties.publicNetworkAccess",
type: {
Expand Down