import { PrivateLinkResources } 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 { PrivateLinkResourcesListByVaultOptionalParams , PrivateLinkResourcesListByVaultResponse } from "../models" ; /** Class containing PrivateLinkResources operations. */ export class PrivateLinkResourcesImpl implements PrivateLinkResources { private readonly client : KeyVaultManagementClient ; param client constructor ( client ) { this . client = client ; } param resourceGroupName param vaultName param options listByVault ( resourceGroupName , vaultName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , vaultName , options } , listByVaultOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const listByVaultOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateLinkResources" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateLinkResourceListResult } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . vaultName ] , headerParameters : [ Parameters . accept ] , serializer } ;