vnet automation

This commit is contained in:
Sourabh Jain 2025-04-02 06:51:09 +05:30
parent 1f4e79f856
commit 62e90ed26d
2 changed files with 1226 additions and 372 deletions

View File

@ -26,7 +26,7 @@ export const getUserRegion = async (subscriptionId: string, resourceGroup: strin
};
export async function getARMInfo<T>(path: string, apiVersion: string = "2024-07-01"): Promise<T> {
export async function GetARMCall<T>(path: string, apiVersion: string = "2024-07-01"): Promise<T> {
return await armRequest<T>({
host: configContext.ARM_ENDPOINT,
path: path,
@ -35,6 +35,16 @@ export async function getARMInfo<T>(path: string, apiVersion: string = "2024-07-
});
};
export async function PutARMCall<T>(path: string, request: object, apiVersion: string = "2024-07-01"): Promise<T> {
return await armRequest<T>({
host: configContext.ARM_ENDPOINT,
path: path,
method: "PUT",
apiVersion: apiVersion,
body: request
});
};
export const deleteUserSettings = async (): Promise<void> => {
await armRequest<void>({
host: configContext.ARM_ENDPOINT,

File diff suppressed because it is too large Load Diff