Skip to content

Commit

Permalink
CodeGen from PR 13710 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 3835ba7c35fc5ab8f1bf04d48da189b307b14b7c into 12e2c170b45fcba438036cb8814c7eeac3034a6d
  • Loading branch information
SDKAuto committed Mar 29, 2021
1 parent f65dc4e commit 638a502
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 4 deletions.
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

0 comments on commit 638a502

Please sign in to comment.