/**
* Swagger Petstore
* This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@wordnik.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* PetApi.h
*
*
*/
#ifndef PetApi_H_
#define PetApi_H_
#include "ApiClient.h"
#include "Pet.h"
#include
#include "HttpContent.h"
namespace io {
namespace swagger {
namespace client {
namespace api {
using namespace io::swagger::client::model;
class PetApi
{
public:
PetApi( std::shared_ptr apiClient );
virtual ~PetApi();
///
/// Add a new pet to the store
///
///
///
///
/// Pet object that needs to be added to the store (optional)
pplx::task addPet(std::shared_ptr body);
///
/// Deletes a pet
///
///
///
///
/// Pet id to delete/// (optional)
pplx::task deletePet(int64_t petId, utility::string_t apiKey);
///
/// Finds Pets by status
///
///
/// Multiple status values can be provided with comma separated strings
///
/// Status values that need to be considered for filter (optional, default to available)
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 (optional)
pplx::task>> findPetsByTags(std::vector tags);
///
/// Find pet by ID
///
///
/// Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
///
/// ID of pet that needs to be fetched
pplx::task> getPetById(int64_t petId);
///
/// Update an existing pet
///
///
///
///
/// Pet object that needs to be added to the store (optional)
pplx::task updatePet(std::shared_ptr body);
///
/// Updates a pet in the store with form data
///
///
///
///
/// ID of pet that needs to be updated/// Updated name of the pet (optional)/// Updated status of the pet (optional)
pplx::task updatePetWithForm(utility::string_t petId, utility::string_t name, utility::string_t status);
///
/// uploads an image
///
///
///
///
/// ID of pet to update/// Additional data to pass to server (optional)/// file to upload (optional)
pplx::task uploadFile(int64_t petId, utility::string_t additionalMetadata, std::shared_ptr file);
protected:
std::shared_ptr m_ApiClient;
};
}
}
}
}
#endif /* PetApi_H_ */