Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
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
9 changes: 9 additions & 0 deletions lib/services/cosmosdbManagement/lib/models/databaseAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ class DatabaseAccount extends models['Resource'] {
* ordered by their failover priorities.
* @member {array} [virtualNetworkRules] List of Virtual Network ACL rules
* configured for the Cosmos DB account.
* @member {boolean} [enableMultipleWriteLocations] Enables the account to
* write in multiple locations
*/
constructor() {
super();
Expand Down Expand Up @@ -270,6 +272,13 @@ class DatabaseAccount extends models['Resource'] {
}
}
}
},
enableMultipleWriteLocations: {
required: false,
serializedName: 'properties.enableMultipleWriteLocations',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class DatabaseAccountCreateUpdateParameters extends models['Resource'] {
* account
* @member {array} [virtualNetworkRules] List of Virtual Network ACL rules
* configured for the Cosmos DB account.
* @member {boolean} [enableMultipleWriteLocations] Enables the account to
* write in multiple locations
*/
constructor() {
super();
Expand Down Expand Up @@ -212,6 +214,13 @@ class DatabaseAccountCreateUpdateParameters extends models['Resource'] {
}
}
}
},
enableMultipleWriteLocations: {
required: false,
serializedName: 'properties.enableMultipleWriteLocations',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The connection strings for the given database account.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Parameters for patching Azure Cosmos DB database account properties.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The list of new failover policies for the failover priority change.
*
Expand Down
6 changes: 6 additions & 0 deletions lib/services/cosmosdbManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ export interface Resource extends BaseResource {
* ordered by their failover priorities.
* @member {array} [virtualNetworkRules] List of Virtual Network ACL rules
* configured for the Cosmos DB account.
* @member {boolean} [enableMultipleWriteLocations] Enables the account to
* write in multiple locations
*/
export interface DatabaseAccount extends Resource {
kind?: string;
Expand All @@ -202,6 +204,7 @@ export interface DatabaseAccount extends Resource {
readonly readLocations?: Location[];
readonly failoverPolicies?: FailoverPolicy[];
virtualNetworkRules?: VirtualNetworkRule[];
enableMultipleWriteLocations?: boolean;
}

/**
Expand Down Expand Up @@ -284,6 +287,8 @@ export interface RegionForOnlineOffline {
* account
* @member {array} [virtualNetworkRules] List of Virtual Network ACL rules
* configured for the Cosmos DB account.
* @member {boolean} [enableMultipleWriteLocations] Enables the account to
* write in multiple locations
*/
export interface DatabaseAccountCreateUpdateParameters extends Resource {
kind?: string;
Expand All @@ -294,6 +299,7 @@ export interface DatabaseAccountCreateUpdateParameters extends Resource {
enableAutomaticFailover?: boolean;
capabilities?: Capability[];
virtualNetworkRules?: VirtualNetworkRule[];
enableMultipleWriteLocations?: boolean;
}

/**
Expand Down
2 changes: 0 additions & 2 deletions lib/services/cosmosdbManagement/lib/models/metric.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Metric data
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The definition of a metric.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/cosmosdbManagement/lib/models/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* REST API operation
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Percentile Metric data
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/cosmosdbManagement/lib/models/usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The usage data for a usage request.
*
Expand Down
18 changes: 18 additions & 0 deletions lib/services/cosmosdbManagement/lib/operations/databaseAccounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ function _patch(resourceGroupName, accountName, updateParameters, options, callb
* @param {array} [createUpdateParameters.virtualNetworkRules] List of Virtual
* Network ACL rules configured for the Cosmos DB account.
*
* @param {boolean} [createUpdateParameters.enableMultipleWriteLocations]
* Enables the account to write in multiple locations
*
* @param {string} createUpdateParameters.location The location of the resource
* group to which the resource belongs.
*
Expand Down Expand Up @@ -2638,6 +2641,9 @@ function _beginPatch(resourceGroupName, accountName, updateParameters, options,
* @param {array} [createUpdateParameters.virtualNetworkRules] List of Virtual
* Network ACL rules configured for the Cosmos DB account.
*
* @param {boolean} [createUpdateParameters.enableMultipleWriteLocations]
* Enables the account to write in multiple locations
*
* @param {string} createUpdateParameters.location The location of the resource
* group to which the resource belongs.
*
Expand Down Expand Up @@ -3965,6 +3971,9 @@ class DatabaseAccounts {
* @param {array} [createUpdateParameters.virtualNetworkRules] List of Virtual
* Network ACL rules configured for the Cosmos DB account.
*
* @param {boolean} [createUpdateParameters.enableMultipleWriteLocations]
* Enables the account to write in multiple locations
*
* @param {string} createUpdateParameters.location The location of the resource
* group to which the resource belongs.
*
Expand Down Expand Up @@ -4056,6 +4065,9 @@ class DatabaseAccounts {
* @param {array} [createUpdateParameters.virtualNetworkRules] List of Virtual
* Network ACL rules configured for the Cosmos DB account.
*
* @param {boolean} [createUpdateParameters.enableMultipleWriteLocations]
* Enables the account to write in multiple locations
*
* @param {string} createUpdateParameters.location The location of the resource
* group to which the resource belongs.
*
Expand Down Expand Up @@ -5640,6 +5652,9 @@ class DatabaseAccounts {
* @param {array} [createUpdateParameters.virtualNetworkRules] List of Virtual
* Network ACL rules configured for the Cosmos DB account.
*
* @param {boolean} [createUpdateParameters.enableMultipleWriteLocations]
* Enables the account to write in multiple locations
*
* @param {string} createUpdateParameters.location The location of the resource
* group to which the resource belongs.
*
Expand Down Expand Up @@ -5731,6 +5746,9 @@ class DatabaseAccounts {
* @param {array} [createUpdateParameters.virtualNetworkRules] List of Virtual
* Network ACL rules configured for the Cosmos DB account.
*
* @param {boolean} [createUpdateParameters.enableMultipleWriteLocations]
* Enables the account to write in multiple locations
*
* @param {string} createUpdateParameters.location The location of the resource
* group to which the resource belongs.
*
Expand Down
12 changes: 12 additions & 0 deletions lib/services/cosmosdbManagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ export interface DatabaseAccounts {
* @param {array} [createUpdateParameters.virtualNetworkRules] List of Virtual
* Network ACL rules configured for the Cosmos DB account.
*
* @param {boolean} [createUpdateParameters.enableMultipleWriteLocations]
* Enables the account to write in multiple locations
*
* @param {string} createUpdateParameters.location The location of the resource
* group to which the resource belongs.
*
Expand Down Expand Up @@ -295,6 +298,9 @@ export interface DatabaseAccounts {
* @param {array} [createUpdateParameters.virtualNetworkRules] List of Virtual
* Network ACL rules configured for the Cosmos DB account.
*
* @param {boolean} [createUpdateParameters.enableMultipleWriteLocations]
* Enables the account to write in multiple locations
*
* @param {string} createUpdateParameters.location The location of the resource
* group to which the resource belongs.
*
Expand Down Expand Up @@ -1432,6 +1438,9 @@ export interface DatabaseAccounts {
* @param {array} [createUpdateParameters.virtualNetworkRules] List of Virtual
* Network ACL rules configured for the Cosmos DB account.
*
* @param {boolean} [createUpdateParameters.enableMultipleWriteLocations]
* Enables the account to write in multiple locations
*
* @param {string} createUpdateParameters.location The location of the resource
* group to which the resource belongs.
*
Expand Down Expand Up @@ -1511,6 +1520,9 @@ export interface DatabaseAccounts {
* @param {array} [createUpdateParameters.virtualNetworkRules] List of Virtual
* Network ACL rules configured for the Cosmos DB account.
*
* @param {boolean} [createUpdateParameters.enableMultipleWriteLocations]
* Enables the account to write in multiple locations
*
* @param {string} createUpdateParameters.location The location of the resource
* group to which the resource belongs.
*
Expand Down
4 changes: 2 additions & 2 deletions lib/services/cosmosdbManagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "azure-arm-cosmosdb",
"author": "Microsoft Corporation",
"description": "CosmosDBManagementClient Library with typescript type definitions for node",
"version": "2.0.0",
"version": "2.1.0",
"dependencies": {
"ms-rest": "^2.3.3",
"ms-rest-azure": "^2.5.5"
Expand All @@ -14,7 +14,7 @@
"license": "MIT",
"main": "./lib/cosmosDBManagementClient.js",
"types": "./lib/cosmosDBManagementClient.d.ts",
"homepage": "https://github.com/azure/azure-sdk-for-node/lib/services/cosmosdbManagement",
"homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/cosmosdbManagement",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-node.git"
Expand Down