C# Class PetStore.PetStoreClient

Exibir arquivo Open project: NSwag/NSwag

Public Methods

Method 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

Method 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 method

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
return System.Threading.Tasks.Task

AddPetAsync() public method

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.
return System.Threading.Tasks.Task

CreateUserAsync() public method

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

CreateUserAsync() public method

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.
return System.Threading.Tasks.Task

CreateUsersWithArrayInputAsync() public method

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
return System.Threading.Tasks.Task

CreateUsersWithArrayInputAsync() public method

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.
return System.Threading.Tasks.Task

CreateUsersWithListInputAsync() public method

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
return System.Threading.Tasks.Task

CreateUsersWithListInputAsync() public method

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.
return System.Threading.Tasks.Task

DeleteOrderAsync() public method

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
return System.Threading.Tasks.Task

DeleteOrderAsync() public method

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.
return System.Threading.Tasks.Task

DeletePetAsync() public method

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
return System.Threading.Tasks.Task

DeletePetAsync() public method

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.
return System.Threading.Tasks.Task

DeleteUserAsync() public method

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

DeleteUserAsync() public method

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.
return System.Threading.Tasks.Task

FindPetsByStatusAsync() public method

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
return System.Threading.Tasks.Task>

FindPetsByStatusAsync() public method

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.
return System.Threading.Tasks.Task>

GetInventoryAsync() public method

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

GetInventoryAsync() public method

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.
return int>>.System.Threading.Tasks.Task

GetOrderByIdAsync() public method

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
return System.Threading.Tasks.Task

GetOrderByIdAsync() public method

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.
return System.Threading.Tasks.Task

GetPetByIdAsync() public method

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

GetPetByIdAsync() public method

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.
return System.Threading.Tasks.Task

GetUserByNameAsync() public method

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.
return System.Threading.Tasks.Task

GetUserByNameAsync() public method

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.
return System.Threading.Tasks.Task

LoginUserAsync() public method

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
return System.Threading.Tasks.Task

LoginUserAsync() public method

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.
return System.Threading.Tasks.Task

LogoutUserAsync() public method

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

LogoutUserAsync() public method

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.
return System.Threading.Tasks.Task

PlaceOrderAsync() public method

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
return System.Threading.Tasks.Task

PlaceOrderAsync() public method

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.
return System.Threading.Tasks.Task

UpdatePetAsync() public method

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
return System.Threading.Tasks.Task

UpdatePetAsync() public method

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.
return System.Threading.Tasks.Task

UpdatePetWithFormAsync() public method

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
return System.Threading.Tasks.Task

UpdatePetWithFormAsync() public method

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.
return System.Threading.Tasks.Task

UpdateUserAsync() public method

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
return System.Threading.Tasks.Task

UpdateUserAsync() public method

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.
return System.Threading.Tasks.Task

UploadFileAsync() public method

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
return System.Threading.Tasks.Task

UploadFileAsync() public method

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.
return System.Threading.Tasks.Task