mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-30 14:22:05 +00:00
fix format
This commit is contained in:
@@ -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`;
|
||||
};
|
||||
|
||||
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 body: UpdateDedicatedGatewayRequestParameters = {
|
||||
properties: {
|
||||
|
||||
@@ -73,7 +73,10 @@ const onSKUChange = (newValue: InputType, currentValues: Map<string, SmartUiInpu
|
||||
const IntegratedCache = "IntegratedCache";
|
||||
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 });
|
||||
return currentValues;
|
||||
};
|
||||
@@ -202,7 +205,7 @@ const getSkus = async (): Promise<ChoiceItem[]> => {
|
||||
|
||||
const dedicatedGatewayTypeDropDownItems: ChoiceItem[] = [
|
||||
{ labelTKey: "Integrated Cache", key: IntegratedCache },
|
||||
{ labelTKey: "Distributed Query", key: DistributedQuery }
|
||||
{ labelTKey: "Distributed Query", key: DistributedQuery },
|
||||
];
|
||||
|
||||
const getDedicatedGatewayType = async (): Promise<ChoiceItem[]> => {
|
||||
|
||||
Reference in New Issue
Block a user