C# 클래스 PetStore.PetStoreClient

파일 보기 프로젝트 열기: NSwag/NSwag

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AddPetAsync() 공개 메소드

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

AddPetAsync() 공개 메소드

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

CreateUserAsync() 공개 메소드

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

CreateUserAsync() 공개 메소드

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

CreateUsersWithArrayInputAsync() 공개 메소드

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

CreateUsersWithArrayInputAsync() 공개 메소드

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

CreateUsersWithListInputAsync() 공개 메소드

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

CreateUsersWithListInputAsync() 공개 메소드

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

DeleteOrderAsync() 공개 메소드

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

DeleteOrderAsync() 공개 메소드

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

DeletePetAsync() 공개 메소드

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

DeletePetAsync() 공개 메소드

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

DeleteUserAsync() 공개 메소드

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

DeleteUserAsync() 공개 메소드

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

FindPetsByStatusAsync() 공개 메소드

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

FindPetsByStatusAsync() 공개 메소드

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

GetInventoryAsync() 공개 메소드

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

GetInventoryAsync() 공개 메소드

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

GetOrderByIdAsync() 공개 메소드

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

GetOrderByIdAsync() 공개 메소드

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

GetPetByIdAsync() 공개 메소드

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

GetPetByIdAsync() 공개 메소드

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

GetUserByNameAsync() 공개 메소드

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

GetUserByNameAsync() 공개 메소드

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

LoginUserAsync() 공개 메소드

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

LoginUserAsync() 공개 메소드

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

LogoutUserAsync() 공개 메소드

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

LogoutUserAsync() 공개 메소드

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

PlaceOrderAsync() 공개 메소드

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

PlaceOrderAsync() 공개 메소드

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

UpdatePetAsync() 공개 메소드

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

UpdatePetAsync() 공개 메소드

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

UpdatePetWithFormAsync() 공개 메소드

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

UpdatePetWithFormAsync() 공개 메소드

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

UpdateUserAsync() 공개 메소드

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

UpdateUserAsync() 공개 메소드

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

UploadFileAsync() 공개 메소드

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

UploadFileAsync() 공개 메소드

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