fix format

This commit is contained in:
Tara Zou
2024-03-21 15:15:33 -04:00
parent 4158ea9a5a
commit b26dd70bbd
2 changed files with 10 additions and 3 deletions

View File

@@ -33,7 +33,11 @@ export const getPath = (subscriptionId: string, resourceGroup: string, name: str
return `/subscriptions/${subscriptionId}/resourceGroups/${resourceGroup}/providers/Microsoft.DocumentDB/databaseAccounts/${name}/services/SqlDedicatedGateway`; return `/subscriptions/${subscriptionId}/resourceGroups/${resourceGroup}/providers/Microsoft.DocumentDB/databaseAccounts/${name}/services/SqlDedicatedGateway`;
}; };
export const updateDedicatedGatewayResource = async (sku: string, dedicatedGatewayType: string, instances: number): Promise<string> => { export const updateDedicatedGatewayResource = async (
sku: string,
dedicatedGatewayType: string,
instances: number,
): Promise<string> => {
const path = getPath(userContext.subscriptionId, userContext.resourceGroup, userContext.databaseAccount.name); const path = getPath(userContext.subscriptionId, userContext.resourceGroup, userContext.databaseAccount.name);
const body: UpdateDedicatedGatewayRequestParameters = { const body: UpdateDedicatedGatewayRequestParameters = {
properties: { properties: {

View File

@@ -73,7 +73,10 @@ const onSKUChange = (newValue: InputType, currentValues: Map<string, SmartUiInpu
const IntegratedCache = "IntegratedCache"; const IntegratedCache = "IntegratedCache";
const DistributedQuery = "DistributedQuery"; const DistributedQuery = "DistributedQuery";
const onDedicatedGatewayTypeChange = (newValue: InputType, currentValues: Map<string, SmartUiInput>): Map<string, SmartUiInput> => { const onDedicatedGatewayTypeChange = (
newValue: InputType,
currentValues: Map<string, SmartUiInput>,
): Map<string, SmartUiInput> => {
currentValues.set("dedicatedGatewayType", { value: newValue }); currentValues.set("dedicatedGatewayType", { value: newValue });
return currentValues; return currentValues;
}; };
@@ -202,7 +205,7 @@ const getSkus = async (): Promise<ChoiceItem[]> => {
const dedicatedGatewayTypeDropDownItems: ChoiceItem[] = [ const dedicatedGatewayTypeDropDownItems: ChoiceItem[] = [
{ labelTKey: "Integrated Cache", key: IntegratedCache }, { labelTKey: "Integrated Cache", key: IntegratedCache },
{ labelTKey: "Distributed Query", key: DistributedQuery } { labelTKey: "Distributed Query", key: DistributedQuery },
]; ];
const getDedicatedGatewayType = async (): Promise<ChoiceItem[]> => { const getDedicatedGatewayType = async (): Promise<ChoiceItem[]> => {