import { BarApi } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Parameters from "../models/parameters" ; import { MediaTypesV3Client } from "../mediaTypesV3Client" ; import { BarApiPostSendOnDefaultOptionalParams , BarApiPostSendOnDefaultResponse } from "../models" ; /** Class containing BarApi operations. */ export class BarApiImpl implements BarApi { private readonly client : MediaTypesV3Client ; param client constructor ( client ) { this . client = client ; } param data param options postSendOnDefault ( data , options ? ) { return this . client . sendOperationRequest ( { data , options } , postSendOnDefaultOperationSpec ) ; } } const serializer = coreClient . createSerializer ( { } , false ) ; const postSendOnDefaultOperationSpec = { path : "/bar/api/v1" , httpMethod : "POST" , responses : { 202 : { } , 400 : { bodyMapper : { type : { name : "String" } } } } , requestBody : Parameters . data , queryParameters : [ Parameters . excluded ] , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . contentType , Parameters . accept ] , mediaType : "text" , serializer } ;