mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
29 lines
891 B
TypeScript
29 lines
891 B
TypeScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
/**
|
|
* This sample demonstrates how to update Gateway tags.
|
|
*
|
|
* @summary update Gateway tags.
|
|
* x-ms-original-file: 2024-01-15-preview/Gateways_Update_MaximumSet_Gen.json
|
|
*/
|
|
|
|
import { ProgrammableConnectivityClient } from "@azure/arm-programmableconnectivity";
|
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
|
|
async function gatewaysUpdate(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "B976474B-99FA-4C25-A3BD-8B05C3C3D07A";
|
|
const client = new ProgrammableConnectivityClient(credential, subscriptionId);
|
|
const result = await client.gateways.update("rgopenapi", "pgzk", {
|
|
tags: { key2642: "ykmlftvwwpvcmriffxqh" },
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
async function main(): Promise<void> {
|
|
await gatewaysUpdate();
|
|
}
|
|
|
|
main().catch(console.error);
|