mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 01:11:25 +00:00
Update to ADO 5ed9b2130da7f822153531489d802c28986f5d30
This commit is contained in:
@@ -356,6 +356,7 @@ export function createMongoCollectionWithARM(
|
||||
armEndpoint: string,
|
||||
databaseId: string,
|
||||
analyticalStorageTtl: number,
|
||||
isFixedCollectionWithSharedThroughputBeingCreated: boolean,
|
||||
collectionId: string,
|
||||
offerThroughput: number,
|
||||
shardKey: string,
|
||||
@@ -379,7 +380,8 @@ export function createMongoCollectionWithARM(
|
||||
sid: CosmosClient.subscriptionId(),
|
||||
rg: CosmosClient.resourceGroup(),
|
||||
dba: databaseAccount.name,
|
||||
analyticalStorageTtl
|
||||
analyticalStorageTtl,
|
||||
isFixedCollectionWithSharedThroughputBeingCreated
|
||||
};
|
||||
|
||||
if (createDatabase) {
|
||||
@@ -451,6 +453,11 @@ export async function _createMongoCollectionWithARM(
|
||||
}
|
||||
}
|
||||
|
||||
if (params.isFixedCollectionWithSharedThroughputBeingCreated) {
|
||||
rpPayloadToCreateCollection.properties.options[Constants.HttpHeaders.mongoFixedCollectionWithSharedThroughput] =
|
||||
"true";
|
||||
}
|
||||
|
||||
if (params.analyticalStorageTtl) {
|
||||
rpPayloadToCreateCollection.properties.resource.analyticalStorageTtl = params.analyticalStorageTtl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user