import { Documents } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { OptionalNullClient } from "../optionalNullClient" ; import { DocumentsSearchGetOptionalParams } from "../models" ; /** Class containing Documents operations. */ export class DocumentsImpl implements Documents { private readonly client : OptionalNullClient ; param client constructor ( client ) { this . client = client ; } param options searchGet ( options ? ) { return this . client . sendOperationRequest ( { options } , searchGetOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const searchGetOperationSpec = { path : "/docs" , httpMethod : "GET" , responses : { 200 : { } } , queryParameters : [ Parameters . searchText , Parameters . includeTotalResultCount ] , urlParameters : [ Parameters . $host ] , serializer } ;