45 строки
1.5 KiB
TypeScript
45 строки
1.5 KiB
TypeScript
/*
|
|
* 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.
|
|
import {
|
|
UpdateIntegrationRuntimeNodeRequest,
|
|
SynapseManagementClient
|
|
} from "@azure/arm-synapse";
|
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
|
|
/**
|
|
* This sample demonstrates how to Create an integration runtime node
|
|
*
|
|
* @summary Create an integration runtime node
|
|
* x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_Update.json
|
|
*/
|
|
async function updateIntegrationRuntimeNode() {
|
|
const subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
|
const resourceGroupName = "exampleResourceGroup";
|
|
const workspaceName = "exampleWorkspace";
|
|
const integrationRuntimeName = "exampleIntegrationRuntime";
|
|
const nodeName = "Node_1";
|
|
const updateIntegrationRuntimeNodeRequest: UpdateIntegrationRuntimeNodeRequest = {
|
|
concurrentJobsLimit: 2
|
|
};
|
|
const credential = new DefaultAzureCredential();
|
|
const client = new SynapseManagementClient(credential, subscriptionId);
|
|
const result = await client.integrationRuntimeNodes.update(
|
|
resourceGroupName,
|
|
workspaceName,
|
|
integrationRuntimeName,
|
|
nodeName,
|
|
updateIntegrationRuntimeNodeRequest
|
|
);
|
|
console.log(result);
|
|
}
|
|
|
|
updateIntegrationRuntimeNode().catch(console.error);
|