/** * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * OpenAPI spec version: 1.0.0 * * NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ /* * PetApi.h * * */ #ifndef ORG_OPENAPITOOLS_CLIENT_API_PetApi_H_ #define ORG_OPENAPITOOLS_CLIENT_API_PetApi_H_ #include "../ApiClient.h" #include "ApiResponse.h" #include "HttpContent.h" #include "Pet.h" #include #include "../ModelBase.h" #include namespace org { namespace openapitools { namespace client { namespace api { using namespace org::openapitools::client::model; class PetApi { public: explicit PetApi( std::shared_ptr apiClient ); virtual ~PetApi(); /// /// Add a new pet to the store /// /// /// /// /// Pet object that needs to be added to the store pplx::task addPet( std::shared_ptr pet ); /// /// Deletes a pet /// /// /// /// /// Pet id to delete /// (optional) pplx::task deletePet( int64_t petId, boost::optional apiKey ); /// /// Finds Pets by status /// /// /// Multiple status values can be provided with comma separated strings /// /// Status values that need to be considered for filter pplx::task>> findPetsByStatus( std::vector status ); /// /// Finds Pets by tags /// /// /// Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. /// /// Tags to filter by pplx::task>> findPetsByTags( std::vector tags ); /// /// Find pet by ID /// /// /// Returns a single pet /// /// ID of pet to return pplx::task> getPetById( int64_t petId ); /// /// Update an existing pet /// /// /// /// /// Pet object that needs to be added to the store pplx::task updatePet( std::shared_ptr pet ); /// /// Updates a pet in the store with form data /// /// /// /// /// ID of pet that needs to be updated /// Updated name of the pet (optional, default to utility::conversions::to_string_t("")) /// Updated status of the pet (optional, default to utility::conversions::to_string_t("")) pplx::task updatePetWithForm( int64_t petId, boost::optional name, boost::optional status ); /// /// uploads an image /// /// /// /// /// ID of pet to update /// Additional data to pass to server (optional, default to utility::conversions::to_string_t("")) /// file to upload (optional, default to utility::conversions::to_string_t("")) pplx::task> uploadFile( int64_t petId, boost::optional additionalMetadata, boost::optional> file ); protected: std::shared_ptr m_ApiClient; }; } } } } #endif /* ORG_OPENAPITOOLS_CLIENT_API_PetApi_H_ */