import { Group } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { UserAgentCoreV2Client } from "../userAgentCoreV2Client" ; import { GroupGetSampleResourceGroupOptionalParams , GroupGetSampleResourceGroupResponse } from "../models" ; /** Class containing Group operations. */ export class GroupImpl implements Group { private readonly client : UserAgentCoreV2Client ; param client constructor ( client ) { this . client = client ; } param resourceGroupName param options getSampleResourceGroup ( resourceGroupName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , options } , getSampleResourceGroupOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const getSampleResourceGroupOperationSpec = { path : "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . SampleResourceGroup } , default : { bodyMapper : Mappers . ErrorModel } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName ] , headerParameters : [ Parameters . accept ] , serializer } ;