import { Files } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { BodyFileClient } from "../bodyFileClient" ; import { FilesGetFileOptionalParams , FilesGetFileResponse , FilesGetFileLargeOptionalParams , FilesGetFileLargeResponse , FilesGetEmptyFileOptionalParams , FilesGetEmptyFileResponse } from "../models" ; /** Class containing Files operations. */ export class FilesImpl implements Files { private readonly client : BodyFileClient ; param client constructor ( client ) { this . client = client ; } param options getFile ( options ? ) { return this . client . sendOperationRequest ( { options } , getFileOperationSpec ) ; } param options getFileLarge ( options ? ) { return this . client . sendOperationRequest ( { options } , getFileLargeOperationSpec ) ; } param options getEmptyFile ( options ? ) { return this . client . sendOperationRequest ( { options } , getEmptyFileOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const getFileOperationSpec = { path : "/files/stream/nonempty" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Stream" } , serializedName : "parsedResponse" } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const getFileLargeOperationSpec = { path : "/files/stream/verylarge" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Stream" } , serializedName : "parsedResponse" } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const getEmptyFileOperationSpec = { path : "/files/stream/empty" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Stream" } , serializedName : "parsedResponse" } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ;