mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
* recording refresh7 * update files * update files * update files * update files * update files
39 lines
1.5 KiB
JavaScript
39 lines
1.5 KiB
JavaScript
/*
|
|
* Copyright (c) Microsoft Corporation.
|
|
* Licensed under the MIT License.
|
|
*
|
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
*/
|
|
|
|
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
const { DevSpacesManagementClient } = require("@azure/arm-devspaces");
|
|
const { DefaultAzureCredential } = require("@azure/identity");
|
|
|
|
/**
|
|
* This sample demonstrates how to Updates the properties of an existing Azure Dev Spaces Controller with the specified update parameters.
|
|
*
|
|
* @summary Updates the properties of an existing Azure Dev Spaces Controller with the specified update parameters.
|
|
* x-ms-original-file: specification/devspaces/resource-manager/Microsoft.DevSpaces/stable/2019-04-01/examples/ControllersUpdate_example.json
|
|
*/
|
|
async function controllersUpdate() {
|
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
const resourceGroupName = "myResourceGroup";
|
|
const name = "myControllerResource";
|
|
const controllerUpdateParameters = {
|
|
tags: { key: "value" },
|
|
targetContainerHostCredentialsBase64: "QmFzZTY0IEVuY29kZWQgVmFsdWUK",
|
|
};
|
|
const credential = new DefaultAzureCredential();
|
|
const client = new DevSpacesManagementClient(credential, subscriptionId);
|
|
const result = await client.controllers.update(
|
|
resourceGroupName,
|
|
name,
|
|
controllerUpdateParameters
|
|
);
|
|
console.log(result);
|
|
}
|
|
|
|
controllersUpdate().catch(console.error);
|