From 5e83b815403f68464f5af0ad043614937867888b Mon Sep 17 00:00:00 2001 From: Tara Zou Date: Tue, 26 Mar 2024 10:38:59 -0400 Subject: [PATCH] get dedicated gateway value from API response --- src/SelfServe/SqlX/SqlX.rp.ts | 12 ++++++++++-- src/SelfServe/SqlX/SqlX.tsx | 19 +++++++++---------- src/SelfServe/SqlX/SqlxTypes.ts | 2 ++ 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/SelfServe/SqlX/SqlX.rp.ts b/src/SelfServe/SqlX/SqlX.rp.ts index 02bbdffdf..76d732b43 100644 --- a/src/SelfServe/SqlX/SqlX.rp.ts +++ b/src/SelfServe/SqlX/SqlX.rp.ts @@ -24,6 +24,7 @@ export enum ResourceStatus { export interface DedicatedGatewayResponse { sku: string; + dedicatedGatewayType: string; instances: number; status: string; endpoint: string; @@ -42,7 +43,7 @@ export const updateDedicatedGatewayResource = async ( const body: UpdateDedicatedGatewayRequestParameters = { properties: { instanceSize: sku, - // TODO: pass in DedicatedGatewayType into the properties on Update + dedicatedGatewayType: dedicatedGatewayType, instanceCount: instances, serviceType: "SqlDedicatedGateway", }, @@ -114,12 +115,19 @@ export const getCurrentProvisioningState = async (): Promise