import { MhsmPrivateLinkResources } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { KeyVaultManagementClient } from "../keyVaultManagementClient" ; import { MhsmPrivateLinkResourcesListByMhsmResourceOptionalParams , MhsmPrivateLinkResourcesListByMhsmResourceResponse } from "../models" ; /** Class containing MhsmPrivateLinkResources operations. */ export class MhsmPrivateLinkResourcesImpl implements MhsmPrivateLinkResources { private readonly client : KeyVaultManagementClient ; param client constructor ( client ) { this . client = client ; } param resourceGroupName param name param options listByMhsmResource ( resourceGroupName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , name , options } , listByMhsmResourceOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const listByMhsmResourceOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateLinkResources" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . MhsmPrivateLinkResourceListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ;