import { IntegrationRuntimeNodes } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { DataFactoryClient } from "../dataFactoryClient" ; import { IntegrationRuntimeNodesGetOptionalParams , IntegrationRuntimeNodesGetResponse , IntegrationRuntimeNodesDeleteOptionalParams , UpdateIntegrationRuntimeNodeRequest , IntegrationRuntimeNodesUpdateOptionalParams , IntegrationRuntimeNodesUpdateResponse , IntegrationRuntimeNodesGetIpAddressOptionalParams , IntegrationRuntimeNodesGetIpAddressResponse } from "../models" ; /** Class containing IntegrationRuntimeNodes operations. */ export class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes { private readonly client : DataFactoryClient ; param client constructor ( client ) { this . client = client ; } param resourceGroupName param factoryName param integrationRuntimeName param nodeName param options get ( resourceGroupName , factoryName , integrationRuntimeName , nodeName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , factoryName , integrationRuntimeName , nodeName , options } , getOperationSpec ) ; } param resourceGroupName param factoryName param integrationRuntimeName param nodeName param options delete ( resourceGroupName , factoryName , integrationRuntimeName , nodeName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , factoryName , integrationRuntimeName , nodeName , options } , deleteOperationSpec ) ; } param resourceGroupName param factoryName param integrationRuntimeName param nodeName param updateIntegrationRuntimeNodeRequest param options update ( resourceGroupName , factoryName , integrationRuntimeName , nodeName , updateIntegrationRuntimeNodeRequest , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , factoryName , integrationRuntimeName , nodeName , updateIntegrationRuntimeNodeRequest , options } , updateOperationSpec ) ; } param resourceGroupName param factoryName param integrationRuntimeName param nodeName param options getIpAddress ( resourceGroupName , factoryName , integrationRuntimeName , nodeName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , factoryName , integrationRuntimeName , nodeName , options } , getIpAddressOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const getOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . SelfHostedIntegrationRuntimeNode } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . factoryName , Parameters . integrationRuntimeName , Parameters . nodeName ] , headerParameters : [ Parameters . accept ] , serializer } ; const deleteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}" , httpMethod : "DELETE" , responses : { 200 : { } , 204 : { } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . factoryName , Parameters . integrationRuntimeName , Parameters . nodeName ] , headerParameters : [ Parameters . accept ] , serializer } ; const updateOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}" , httpMethod : "PATCH" , responses : { 200 : { bodyMapper : Mappers . SelfHostedIntegrationRuntimeNode } , default : { bodyMapper : Mappers . CloudError } } , requestBody : Parameters . updateIntegrationRuntimeNodeRequest , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . factoryName , Parameters . integrationRuntimeName , Parameters . nodeName ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getIpAddressOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress" , httpMethod : "POST" , responses : { 200 : { bodyMapper : Mappers . IntegrationRuntimeNodeIpAddress } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . factoryName , Parameters . integrationRuntimeName , Parameters . nodeName ] , headerParameters : [ Parameters . accept ] , serializer } ;