import { Bool } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { BodyBooleanClient } from "../bodyBooleanClient" ; import { BoolGetTrueOptionalParams , BoolGetTrueResponse , BoolPutTrueOptionalParams , BoolGetFalseOptionalParams , BoolGetFalseResponse , BoolPutFalseOptionalParams , BoolGetNullOptionalParams , BoolGetNullResponse , BoolGetInvalidOptionalParams , BoolGetInvalidResponse } from "../models" ; /** Class containing Bool operations. */ export class BoolImpl implements Bool { private readonly client : BodyBooleanClient ; param client constructor ( client ) { this . client = client ; } param options getTrue ( options ? ) { return this . client . sendOperationRequest ( { options } , getTrueOperationSpec ) ; } param options putTrue ( options ? ) { return this . client . sendOperationRequest ( { options } , putTrueOperationSpec ) ; } param options getFalse ( options ? ) { return this . client . sendOperationRequest ( { options } , getFalseOperationSpec ) ; } param options putFalse ( options ? ) { return this . client . sendOperationRequest ( { options } , putFalseOperationSpec ) ; } param options getNull ( options ? ) { return this . client . sendOperationRequest ( { options } , getNullOperationSpec ) ; } param options getInvalid ( options ? ) { return this . client . sendOperationRequest ( { options } , getInvalidOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const getTrueOperationSpec = { path : "/bool/true" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Boolean" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const putTrueOperationSpec = { path : "/bool/true" , httpMethod : "PUT" , responses : { 200 : { } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . boolBody , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getFalseOperationSpec = { path : "/bool/false" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Boolean" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const putFalseOperationSpec = { path : "/bool/false" , httpMethod : "PUT" , responses : { 200 : { } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . boolBody1 , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getNullOperationSpec = { path : "/bool/null" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Boolean" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const getInvalidOperationSpec = { path : "/bool/invalid" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Boolean" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ;