import { PrivateLinkResources } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { HealthCareApisClient } from "../healthCareApisClient" ; import { PrivateLinkResourcesListByServiceOptionalParams , PrivateLinkResourcesListByServiceResponse , PrivateLinkResourcesGetOptionalParams , PrivateLinkResourcesGetResponse } from "../models" ; /** Class containing PrivateLinkResources operations. */ export class PrivateLinkResourcesImpl implements PrivateLinkResources { private readonly client : HealthCareApisClient ; param client constructor ( client ) { this . client = client ; } param resourceGroupName param resourceName param options listByService ( resourceGroupName , resourceName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , resourceName , options } , listByServiceOperationSpec ) ; } param resourceGroupName param resourceName param groupName param options get ( resourceGroupName , resourceName , groupName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , resourceName , groupName , options } , getOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const listByServiceOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateLinkResourceListResultDescription } , default : { bodyMapper : Mappers . ErrorDetails } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . resourceName ] , headerParameters : [ Parameters . accept ] , serializer } ; const getOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . PrivateLinkResourceDescription } , default : { bodyMapper : Mappers . ErrorDetails } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . resourceName , Parameters . groupName ] , headerParameters : [ Parameters . accept ] , serializer } ;