import { DateOperations } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { BodyDateClient } from "../bodyDateClient" ; import { DateGetNullOptionalParams , DateGetNullResponse , DateGetInvalidDateOptionalParams , DateGetInvalidDateResponse , DateGetOverflowDateOptionalParams , DateGetOverflowDateResponse , DateGetUnderflowDateOptionalParams , DateGetUnderflowDateResponse , DatePutMaxDateOptionalParams , DateGetMaxDateOptionalParams , DateGetMaxDateResponse , DatePutMinDateOptionalParams , DateGetMinDateOptionalParams , DateGetMinDateResponse } from "../models" ; /** Class containing DateOperations operations. */ export class DateOperationsImpl implements DateOperations { private readonly client : BodyDateClient ; param client constructor ( client ) { this . client = client ; } param options getNull ( options ? ) { return this . client . sendOperationRequest ( { options } , getNullOperationSpec ) ; } param options getInvalidDate ( options ? ) { return this . client . sendOperationRequest ( { options } , getInvalidDateOperationSpec ) ; } param options getOverflowDate ( options ? ) { return this . client . sendOperationRequest ( { options } , getOverflowDateOperationSpec ) ; } param options getUnderflowDate ( options ? ) { return this . client . sendOperationRequest ( { options } , getUnderflowDateOperationSpec ) ; } param dateBody param options putMaxDate ( dateBody , options ? ) { return this . client . sendOperationRequest ( { dateBody , options } , putMaxDateOperationSpec ) ; } param options getMaxDate ( options ? ) { return this . client . sendOperationRequest ( { options } , getMaxDateOperationSpec ) ; } param dateBody param options putMinDate ( dateBody , options ? ) { return this . client . sendOperationRequest ( { dateBody , options } , putMinDateOperationSpec ) ; } param options getMinDate ( options ? ) { return this . client . sendOperationRequest ( { options } , getMinDateOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const getNullOperationSpec = { path : "/date/null" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Date" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const getInvalidDateOperationSpec = { path : "/date/invaliddate" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Date" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const getOverflowDateOperationSpec = { path : "/date/overflowdate" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Date" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const getUnderflowDateOperationSpec = { path : "/date/underflowdate" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Date" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const putMaxDateOperationSpec = { path : "/date/max" , httpMethod : "PUT" , responses : { 200 : { } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . dateBody , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getMaxDateOperationSpec = { path : "/date/max" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Date" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const putMinDateOperationSpec = { path : "/date/min" , httpMethod : "PUT" , responses : { 200 : { } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . dateBody , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getMinDateOperationSpec = { path : "/date/min" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Date" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ;