import { Pets } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { AdditionalPropertiesClient } from "../additionalPropertiesClient" ; import { PetAPTrue , PetsCreateAPTrueOptionalParams , PetsCreateAPTrueResponse , CatAPTrue , PetsCreateCatAPTrueOptionalParams , PetsCreateCatAPTrueResponse , PetAPObject , PetsCreateAPObjectOptionalParams , PetsCreateAPObjectResponse , PetAPString , PetsCreateAPStringOptionalParams , PetsCreateAPStringResponse , PetAPInProperties , PetsCreateAPInPropertiesOptionalParams , PetsCreateAPInPropertiesResponse , PetAPInPropertiesWithAPString , PetsCreateAPInPropertiesWithAPStringOptionalParams , PetsCreateAPInPropertiesWithAPStringResponse } from "../models" ; /** Class containing Pets operations. */ export class PetsImpl implements Pets { private readonly client : AdditionalPropertiesClient ; param client constructor ( client ) { this . client = client ; } param createParameters param options createAPTrue ( createParameters , options ? ) { return this . client . sendOperationRequest ( { createParameters , options } , createAPTrueOperationSpec ) ; } param createParameters param options createCatAPTrue ( createParameters , options ? ) { return this . client . sendOperationRequest ( { createParameters , options } , createCatAPTrueOperationSpec ) ; } param createParameters param options createAPObject ( createParameters , options ? ) { return this . client . sendOperationRequest ( { createParameters , options } , createAPObjectOperationSpec ) ; } param createParameters param options createAPString ( createParameters , options ? ) { return this . client . sendOperationRequest ( { createParameters , options } , createAPStringOperationSpec ) ; } param createParameters param options createAPInProperties ( createParameters , options ? ) { return this . client . sendOperationRequest ( { createParameters , options } , createAPInPropertiesOperationSpec ) ; } param createParameters param options createAPInPropertiesWithAPString ( createParameters , options ? ) { return this . client . sendOperationRequest ( { createParameters , options } , createAPInPropertiesWithAPStringOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const createAPTrueOperationSpec = { path : "/additionalProperties/true" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . PetAPTrue } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . createParameters , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . contentType , Parameters . accept ] , mediaType : "json" , serializer } ; const createCatAPTrueOperationSpec = { path : "/additionalProperties/true-subclass" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . CatAPTrue } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . createParameters1 , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . contentType , Parameters . accept ] , mediaType : "json" , serializer } ; const createAPObjectOperationSpec = { path : "/additionalProperties/type/object" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . PetAPObject } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . createParameters2 , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . contentType , Parameters . accept ] , mediaType : "json" , serializer } ; const createAPStringOperationSpec = { path : "/additionalProperties/type/string" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . PetAPString } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . createParameters3 , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . contentType , Parameters . accept ] , mediaType : "json" , serializer } ; const createAPInPropertiesOperationSpec = { path : "/additionalProperties/in/properties" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . PetAPInProperties } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . createParameters4 , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . contentType , Parameters . accept ] , mediaType : "json" , serializer } ; const createAPInPropertiesWithAPStringOperationSpec = { path : "/additionalProperties/in/properties/with/additionalProperties/string" , httpMethod : "PUT" , responses : { 200 : { bodyMapper : Mappers . PetAPInPropertiesWithAPString } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . createParameters5 , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . contentType , Parameters . accept ] , mediaType : "json" , serializer } ;