C# Class PetStore.PetStoreClient

Afficher le fichier Open project: NSwag/NSwag

Méthodes publiques

Méthode Description
AddPetAsync ( Pet body ) : System.Threading.Tasks.Task

Add a new pet to the store

AddPetAsync ( Pet body, System cancellationToken ) : System.Threading.Tasks.Task

Add a new pet to the store

CreateUserAsync ( User body ) : System.Threading.Tasks.Task

Create user

CreateUserAsync ( User body, System cancellationToken ) : System.Threading.Tasks.Task

Create user

CreateUsersWithArrayInputAsync ( System body ) : System.Threading.Tasks.Task

Creates list of users with given input array

CreateUsersWithArrayInputAsync ( System body, System cancellationToken ) : System.Threading.Tasks.Task

Creates list of users with given input array

CreateUsersWithListInputAsync ( System body ) : System.Threading.Tasks.Task

Creates list of users with given input array

CreateUsersWithListInputAsync ( System body, System cancellationToken ) : System.Threading.Tasks.Task

Creates list of users with given input array

DeleteOrderAsync ( int orderId ) : System.Threading.Tasks.Task

Delete purchase order by ID

DeleteOrderAsync ( int orderId, System cancellationToken ) : System.Threading.Tasks.Task

Delete purchase order by ID

DeletePetAsync ( string api_key, int petId ) : System.Threading.Tasks.Task

Deletes a pet

DeletePetAsync ( string api_key, int petId, System cancellationToken ) : System.Threading.Tasks.Task

Deletes a pet

DeleteUserAsync ( string username ) : System.Threading.Tasks.Task

Delete user

DeleteUserAsync ( string username, System cancellationToken ) : System.Threading.Tasks.Task

Delete user

FindPetsByStatusAsync ( System status ) : System.Threading.Tasks.Task>

Finds Pets by status

FindPetsByStatusAsync ( System status, System cancellationToken ) : System.Threading.Tasks.Task>

Finds Pets by status

GetInventoryAsync ( ) : int>>.System.Threading.Tasks.Task

Returns pet inventories by status

GetInventoryAsync ( System cancellationToken ) : int>>.System.Threading.Tasks.Task

Returns pet inventories by status

GetOrderByIdAsync ( int orderId ) : System.Threading.Tasks.Task

Find purchase order by ID

GetOrderByIdAsync ( int orderId, System cancellationToken ) : System.Threading.Tasks.Task

Find purchase order by ID

GetPetByIdAsync ( int petId ) : System.Threading.Tasks.Task

Find pet by ID

GetPetByIdAsync ( int petId, System cancellationToken ) : System.Threading.Tasks.Task

Find pet by ID

GetUserByNameAsync ( string username ) : System.Threading.Tasks.Task

Get user by user name

GetUserByNameAsync ( string username, System cancellationToken ) : System.Threading.Tasks.Task

Get user by user name

LoginUserAsync ( string username, string password ) : System.Threading.Tasks.Task

Logs user into the system

LoginUserAsync ( string username, string password, System cancellationToken ) : System.Threading.Tasks.Task

Logs user into the system

LogoutUserAsync ( ) : System.Threading.Tasks.Task

Logs out current logged in user session

LogoutUserAsync ( System cancellationToken ) : System.Threading.Tasks.Task

Logs out current logged in user session

PlaceOrderAsync ( Order body ) : System.Threading.Tasks.Task

Place an order for a pet

PlaceOrderAsync ( Order body, System cancellationToken ) : System.Threading.Tasks.Task

Place an order for a pet

UpdatePetAsync ( Pet body ) : System.Threading.Tasks.Task

Update an existing pet

UpdatePetAsync ( Pet body, System cancellationToken ) : System.Threading.Tasks.Task

Update an existing pet

UpdatePetWithFormAsync ( int petId, string name, string status ) : System.Threading.Tasks.Task

Updates a pet in the store with form data

UpdatePetWithFormAsync ( int petId, string name, string status, System cancellationToken ) : System.Threading.Tasks.Task

Updates a pet in the store with form data

UpdateUserAsync ( string username, User body ) : System.Threading.Tasks.Task

Updated user

UpdateUserAsync ( string username, User body, System cancellationToken ) : System.Threading.Tasks.Task

Updated user

UploadFileAsync ( int petId, string additionalMetadata, FileParameter file ) : System.Threading.Tasks.Task

uploads an image

UploadFileAsync ( int petId, string additionalMetadata, FileParameter file, System cancellationToken ) : System.Threading.Tasks.Task

uploads an image

Private Methods

Méthode Description
FindPetsByTagsAsync ( System tags ) : System.Threading.Tasks.Task>
FindPetsByTagsAsync ( System tags, System cancellationToken ) : System.Threading.Tasks.Task>
PrepareRequest ( System request, string &url ) : void
ProcessResponse ( System request, System response ) : void

Method Details

AddPetAsync() public méthode

Add a new pet to the store
A server side error occurred.
public AddPetAsync ( Pet body ) : System.Threading.Tasks.Task
body Pet Pet object that needs to be added to the store
Résultat System.Threading.Tasks.Task

AddPetAsync() public méthode

Add a new pet to the store
A server side error occurred.
public AddPetAsync ( Pet body, System cancellationToken ) : System.Threading.Tasks.Task
body Pet Pet object that needs to be added to the store
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

CreateUserAsync() public méthode

Create user
A server side error occurred.
public CreateUserAsync ( User body ) : System.Threading.Tasks.Task
body User Created user object
Résultat System.Threading.Tasks.Task

CreateUserAsync() public méthode

Create user
A server side error occurred.
public CreateUserAsync ( User body, System cancellationToken ) : System.Threading.Tasks.Task
body User Created user object
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

CreateUsersWithArrayInputAsync() public méthode

Creates list of users with given input array
A server side error occurred.
public CreateUsersWithArrayInputAsync ( System body ) : System.Threading.Tasks.Task
body System List of user object
Résultat System.Threading.Tasks.Task

CreateUsersWithArrayInputAsync() public méthode

Creates list of users with given input array
A server side error occurred.
public CreateUsersWithArrayInputAsync ( System body, System cancellationToken ) : System.Threading.Tasks.Task
body System List of user object
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

CreateUsersWithListInputAsync() public méthode

Creates list of users with given input array
A server side error occurred.
public CreateUsersWithListInputAsync ( System body ) : System.Threading.Tasks.Task
body System List of user object
Résultat System.Threading.Tasks.Task

CreateUsersWithListInputAsync() public méthode

Creates list of users with given input array
A server side error occurred.
public CreateUsersWithListInputAsync ( System body, System cancellationToken ) : System.Threading.Tasks.Task
body System List of user object
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

DeleteOrderAsync() public méthode

Delete purchase order by ID
A server side error occurred.
public DeleteOrderAsync ( int orderId ) : System.Threading.Tasks.Task
orderId int ID of the order that needs to be deleted
Résultat System.Threading.Tasks.Task

DeleteOrderAsync() public méthode

Delete purchase order by ID
A server side error occurred.
public DeleteOrderAsync ( int orderId, System cancellationToken ) : System.Threading.Tasks.Task
orderId int ID of the order that needs to be deleted
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

DeletePetAsync() public méthode

Deletes a pet
A server side error occurred.
public DeletePetAsync ( string api_key, int petId ) : System.Threading.Tasks.Task
api_key string
petId int Pet id to delete
Résultat System.Threading.Tasks.Task

DeletePetAsync() public méthode

Deletes a pet
A server side error occurred.
public DeletePetAsync ( string api_key, int petId, System cancellationToken ) : System.Threading.Tasks.Task
api_key string
petId int Pet id to delete
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

DeleteUserAsync() public méthode

Delete user
A server side error occurred.
public DeleteUserAsync ( string username ) : System.Threading.Tasks.Task
username string The name that needs to be deleted
Résultat System.Threading.Tasks.Task

DeleteUserAsync() public méthode

Delete user
A server side error occurred.
public DeleteUserAsync ( string username, System cancellationToken ) : System.Threading.Tasks.Task
username string The name that needs to be deleted
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

FindPetsByStatusAsync() public méthode

Finds Pets by status
A server side error occurred.
public FindPetsByStatusAsync ( System status ) : System.Threading.Tasks.Task>
status System Status values that need to be considered for filter
Résultat System.Threading.Tasks.Task>

FindPetsByStatusAsync() public méthode

Finds Pets by status
A server side error occurred.
public FindPetsByStatusAsync ( System status, System cancellationToken ) : System.Threading.Tasks.Task>
status System Status values that need to be considered for filter
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task>

GetInventoryAsync() public méthode

Returns pet inventories by status
A server side error occurred.
public GetInventoryAsync ( ) : int>>.System.Threading.Tasks.Task
Résultat int>>.System.Threading.Tasks.Task

GetInventoryAsync() public méthode

Returns pet inventories by status
A server side error occurred.
public GetInventoryAsync ( System cancellationToken ) : int>>.System.Threading.Tasks.Task
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat int>>.System.Threading.Tasks.Task

GetOrderByIdAsync() public méthode

Find purchase order by ID
A server side error occurred.
public GetOrderByIdAsync ( int orderId ) : System.Threading.Tasks.Task
orderId int ID of pet that needs to be fetched
Résultat System.Threading.Tasks.Task

GetOrderByIdAsync() public méthode

Find purchase order by ID
A server side error occurred.
public GetOrderByIdAsync ( int orderId, System cancellationToken ) : System.Threading.Tasks.Task
orderId int ID of pet that needs to be fetched
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

GetPetByIdAsync() public méthode

Find pet by ID
A server side error occurred.
public GetPetByIdAsync ( int petId ) : System.Threading.Tasks.Task
petId int ID of pet to return
Résultat System.Threading.Tasks.Task

GetPetByIdAsync() public méthode

Find pet by ID
A server side error occurred.
public GetPetByIdAsync ( int petId, System cancellationToken ) : System.Threading.Tasks.Task
petId int ID of pet to return
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

GetUserByNameAsync() public méthode

Get user by user name
A server side error occurred.
public GetUserByNameAsync ( string username ) : System.Threading.Tasks.Task
username string The name that needs to be fetched. Use user1 for testing.
Résultat System.Threading.Tasks.Task

GetUserByNameAsync() public méthode

Get user by user name
A server side error occurred.
public GetUserByNameAsync ( string username, System cancellationToken ) : System.Threading.Tasks.Task
username string The name that needs to be fetched. Use user1 for testing.
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

LoginUserAsync() public méthode

Logs user into the system
A server side error occurred.
public LoginUserAsync ( string username, string password ) : System.Threading.Tasks.Task
username string The user name for login
password string The password for login in clear text
Résultat System.Threading.Tasks.Task

LoginUserAsync() public méthode

Logs user into the system
A server side error occurred.
public LoginUserAsync ( string username, string password, System cancellationToken ) : System.Threading.Tasks.Task
username string The user name for login
password string The password for login in clear text
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

LogoutUserAsync() public méthode

Logs out current logged in user session
A server side error occurred.
public LogoutUserAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

LogoutUserAsync() public méthode

Logs out current logged in user session
A server side error occurred.
public LogoutUserAsync ( System cancellationToken ) : System.Threading.Tasks.Task
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

PlaceOrderAsync() public méthode

Place an order for a pet
A server side error occurred.
public PlaceOrderAsync ( Order body ) : System.Threading.Tasks.Task
body Order order placed for purchasing the pet
Résultat System.Threading.Tasks.Task

PlaceOrderAsync() public méthode

Place an order for a pet
A server side error occurred.
public PlaceOrderAsync ( Order body, System cancellationToken ) : System.Threading.Tasks.Task
body Order order placed for purchasing the pet
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

UpdatePetAsync() public méthode

Update an existing pet
A server side error occurred.
public UpdatePetAsync ( Pet body ) : System.Threading.Tasks.Task
body Pet Pet object that needs to be added to the store
Résultat System.Threading.Tasks.Task

UpdatePetAsync() public méthode

Update an existing pet
A server side error occurred.
public UpdatePetAsync ( Pet body, System cancellationToken ) : System.Threading.Tasks.Task
body Pet Pet object that needs to be added to the store
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

UpdatePetWithFormAsync() public méthode

Updates a pet in the store with form data
A server side error occurred.
public UpdatePetWithFormAsync ( int petId, string name, string status ) : System.Threading.Tasks.Task
petId int ID of pet that needs to be updated
name string Updated name of the pet
status string Updated status of the pet
Résultat System.Threading.Tasks.Task

UpdatePetWithFormAsync() public méthode

Updates a pet in the store with form data
A server side error occurred.
public UpdatePetWithFormAsync ( int petId, string name, string status, System cancellationToken ) : System.Threading.Tasks.Task
petId int ID of pet that needs to be updated
name string Updated name of the pet
status string Updated status of the pet
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

UpdateUserAsync() public méthode

Updated user
A server side error occurred.
public UpdateUserAsync ( string username, User body ) : System.Threading.Tasks.Task
username string name that need to be updated
body User Updated user object
Résultat System.Threading.Tasks.Task

UpdateUserAsync() public méthode

Updated user
A server side error occurred.
public UpdateUserAsync ( string username, User body, System cancellationToken ) : System.Threading.Tasks.Task
username string name that need to be updated
body User Updated user object
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task

UploadFileAsync() public méthode

uploads an image
A server side error occurred.
public UploadFileAsync ( int petId, string additionalMetadata, FileParameter file ) : System.Threading.Tasks.Task
petId int ID of pet to update
additionalMetadata string Additional data to pass to server
file FileParameter file to upload
Résultat System.Threading.Tasks.Task

UploadFileAsync() public méthode

uploads an image
A server side error occurred.
public UploadFileAsync ( int petId, string additionalMetadata, FileParameter file, System cancellationToken ) : System.Threading.Tasks.Task
petId int ID of pet to update
additionalMetadata string Additional data to pass to server
file FileParameter file to upload
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Résultat System.Threading.Tasks.Task