mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-07 19:46:53 +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`;
|
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: {
|
||||||
|
|||||||
@@ -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[]> => {
|
||||||
|
|||||||
Reference in New Issue
Block a user