C# 클래스 IO.Swagger.Api.PetApi

Represents a collection of functions to interact with the API endpoints
상속: IPetApi
파일 보기 프로젝트 열기: QualityUnit/swagger-codegen 1 사용 예제들

공개 메소드들

메소드 설명
AddPet ( Pet body ) : void

Add a new pet to the store

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

Add a new pet to the store

AddPetAsyncWithHttpInfo ( Pet body ) : System.Threading.Tasks.Task>

Add a new pet to the store

AddPetWithHttpInfo ( Pet body ) : ApiResponse

Add a new pet to the store

DeletePet ( long petId, string apiKey = null ) : void

Deletes a pet

DeletePetAsync ( long petId, string apiKey = null ) : System.Threading.Tasks.Task

Deletes a pet

DeletePetAsyncWithHttpInfo ( long petId, string apiKey = null ) : System.Threading.Tasks.Task>

Deletes a pet

DeletePetWithHttpInfo ( long petId, string apiKey = null ) : ApiResponse

Deletes a pet

FindPetsByStatus ( List status ) : List

Finds Pets by status Multiple status values can be provided with comma separated strings

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

Finds Pets by status Multiple status values can be provided with comma separated strings

FindPetsByStatusAsyncWithHttpInfo ( List status ) : System.Threading.Tasks.Task>>

Finds Pets by status Multiple status values can be provided with comma separated strings

FindPetsByStatusWithHttpInfo ( List status ) : ApiResponse>

Finds Pets by status Multiple status values can be provided with comma separated strings

FindPetsByTags ( List tags ) : List

Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.

FindPetsByTagsAsync ( List tags ) : System.Threading.Tasks.Task>

Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.

FindPetsByTagsAsyncWithHttpInfo ( List tags ) : System.Threading.Tasks.Task>>

Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.

FindPetsByTagsWithHttpInfo ( List tags ) : ApiResponse>

Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.

GetBasePath ( ) : String

Gets the base path of the API client.

GetPetById ( long petId ) : Pet

Find pet by ID Returns a single pet

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

Find pet by ID Returns a single pet

GetPetByIdAsyncWithHttpInfo ( long petId ) : System.Threading.Tasks.Task>

Find pet by ID Returns a single pet

GetPetByIdWithHttpInfo ( long petId ) : ApiResponse

Find pet by ID Returns a single pet

PetApi ( Configuration configuration = null ) : System

Initializes a new instance of the PetApi class using Configuration object

PetApi ( String basePath ) : System

Initializes a new instance of the PetApi class.

UpdatePet ( Pet body ) : void

Update an existing pet

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

Update an existing pet

UpdatePetAsyncWithHttpInfo ( Pet body ) : System.Threading.Tasks.Task>

Update an existing pet

UpdatePetWithForm ( long petId, string name = null, string status = null ) : void

Updates a pet in the store with form data

UpdatePetWithFormAsync ( long petId, string name = null, string status = null ) : System.Threading.Tasks.Task

Updates a pet in the store with form data

UpdatePetWithFormAsyncWithHttpInfo ( long petId, string name = null, string status = null ) : System.Threading.Tasks.Task>

Updates a pet in the store with form data

UpdatePetWithFormWithHttpInfo ( long petId, string name = null, string status = null ) : ApiResponse

Updates a pet in the store with form data

UpdatePetWithHttpInfo ( Pet body ) : ApiResponse

Update an existing pet

UploadFile ( long petId, string additionalMetadata = null, System file = null ) : ApiResponse

uploads an image

UploadFileAsync ( long petId, string additionalMetadata = null, System file = null ) : System.Threading.Tasks.Task

uploads an image

UploadFileAsyncWithHttpInfo ( long petId, string additionalMetadata = null, System file = null ) : System.Threading.Tasks.Task>

uploads an image

UploadFileWithHttpInfo ( long petId, string additionalMetadata = null, System file = null ) : ApiResponse

uploads an image

비공개 메소드들

메소드 설명
AddDefaultHeader ( string key, string value ) : void
DefaultHeader ( ) : String>.Dictionary
SetBasePath ( String basePath ) : void

메소드 상세

AddPet() 공개 메소드

Add a new pet to the store
Thrown when fails to make API call
public AddPet ( Pet body ) : void
body IO.Swagger.Model.Pet Pet object that needs to be added to the store
리턴 void

AddPetAsync() 공개 메소드

Add a new pet to the store
Thrown when fails to make API call
public AddPetAsync ( Pet body ) : System.Threading.Tasks.Task
body IO.Swagger.Model.Pet Pet object that needs to be added to the store
리턴 System.Threading.Tasks.Task

AddPetAsyncWithHttpInfo() 공개 메소드

Add a new pet to the store
Thrown when fails to make API call
public AddPetAsyncWithHttpInfo ( Pet body ) : System.Threading.Tasks.Task>
body IO.Swagger.Model.Pet Pet object that needs to be added to the store
리턴 System.Threading.Tasks.Task>

AddPetWithHttpInfo() 공개 메소드

Add a new pet to the store
Thrown when fails to make API call
public AddPetWithHttpInfo ( Pet body ) : ApiResponse
body Pet Pet object that needs to be added to the store
리턴 ApiResponse

DeletePet() 공개 메소드

Deletes a pet
Thrown when fails to make API call
public DeletePet ( long petId, string apiKey = null ) : void
petId long Pet id to delete
apiKey string (optional)
리턴 void

DeletePetAsync() 공개 메소드

Deletes a pet
Thrown when fails to make API call
public DeletePetAsync ( long petId, string apiKey = null ) : System.Threading.Tasks.Task
petId long Pet id to delete
apiKey string (optional)
리턴 System.Threading.Tasks.Task

DeletePetAsyncWithHttpInfo() 공개 메소드

Deletes a pet
Thrown when fails to make API call
public DeletePetAsyncWithHttpInfo ( long petId, string apiKey = null ) : System.Threading.Tasks.Task>
petId long Pet id to delete
apiKey string (optional)
리턴 System.Threading.Tasks.Task>

DeletePetWithHttpInfo() 공개 메소드

Deletes a pet
Thrown when fails to make API call
public DeletePetWithHttpInfo ( long petId, string apiKey = null ) : ApiResponse
petId long Pet id to delete
apiKey string (optional)
리턴 ApiResponse

FindPetsByStatus() 공개 메소드

Finds Pets by status Multiple status values can be provided with comma separated strings
Thrown when fails to make API call
public FindPetsByStatus ( List status ) : List
status List Status values that need to be considered for filter
리턴 List

FindPetsByStatusAsync() 공개 메소드

Finds Pets by status Multiple status values can be provided with comma separated strings
Thrown when fails to make API call
public FindPetsByStatusAsync ( List status ) : System.Threading.Tasks.Task>
status List Status values that need to be considered for filter
리턴 System.Threading.Tasks.Task>

FindPetsByStatusAsyncWithHttpInfo() 공개 메소드

Finds Pets by status Multiple status values can be provided with comma separated strings
Thrown when fails to make API call
public FindPetsByStatusAsyncWithHttpInfo ( List status ) : System.Threading.Tasks.Task>>
status List Status values that need to be considered for filter
리턴 System.Threading.Tasks.Task>>

FindPetsByStatusWithHttpInfo() 공개 메소드

Finds Pets by status Multiple status values can be provided with comma separated strings
Thrown when fails to make API call
public FindPetsByStatusWithHttpInfo ( List status ) : ApiResponse>
status List Status values that need to be considered for filter
리턴 ApiResponse>

FindPetsByTags() 공개 메소드

Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
Thrown when fails to make API call
public FindPetsByTags ( List tags ) : List
tags List Tags to filter by
리턴 List

FindPetsByTagsAsync() 공개 메소드

Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
Thrown when fails to make API call
public FindPetsByTagsAsync ( List tags ) : System.Threading.Tasks.Task>
tags List Tags to filter by
리턴 System.Threading.Tasks.Task>

FindPetsByTagsAsyncWithHttpInfo() 공개 메소드

Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
Thrown when fails to make API call
public FindPetsByTagsAsyncWithHttpInfo ( List tags ) : System.Threading.Tasks.Task>>
tags List Tags to filter by
리턴 System.Threading.Tasks.Task>>

FindPetsByTagsWithHttpInfo() 공개 메소드

Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
Thrown when fails to make API call
public FindPetsByTagsWithHttpInfo ( List tags ) : ApiResponse>
tags List Tags to filter by
리턴 ApiResponse>

GetBasePath() 공개 메소드

Gets the base path of the API client.
public GetBasePath ( ) : String
리턴 String

GetPetById() 공개 메소드

Find pet by ID Returns a single pet
Thrown when fails to make API call
public GetPetById ( long petId ) : Pet
petId long ID of pet to return
리턴 Pet

GetPetByIdAsync() 공개 메소드

Find pet by ID Returns a single pet
Thrown when fails to make API call
public GetPetByIdAsync ( long petId ) : System.Threading.Tasks.Task
petId long ID of pet to return
리턴 System.Threading.Tasks.Task

GetPetByIdAsyncWithHttpInfo() 공개 메소드

Find pet by ID Returns a single pet
Thrown when fails to make API call
public GetPetByIdAsyncWithHttpInfo ( long petId ) : System.Threading.Tasks.Task>
petId long ID of pet to return
리턴 System.Threading.Tasks.Task>

GetPetByIdWithHttpInfo() 공개 메소드

Find pet by ID Returns a single pet
Thrown when fails to make API call
public GetPetByIdWithHttpInfo ( long petId ) : ApiResponse
petId long ID of pet to return
리턴 ApiResponse

PetApi() 공개 메소드

Initializes a new instance of the PetApi class using Configuration object
public PetApi ( Configuration configuration = null ) : System
configuration Configuration An instance of Configuration
리턴 System

PetApi() 공개 메소드

Initializes a new instance of the PetApi class.
public PetApi ( String basePath ) : System
basePath String
리턴 System

UpdatePet() 공개 메소드

Update an existing pet
Thrown when fails to make API call
public UpdatePet ( Pet body ) : void
body Pet Pet object that needs to be added to the store
리턴 void

UpdatePetAsync() 공개 메소드

Update an existing pet
Thrown when fails to make API call
public UpdatePetAsync ( Pet body ) : System.Threading.Tasks.Task
body Pet Pet object that needs to be added to the store
리턴 System.Threading.Tasks.Task

UpdatePetAsyncWithHttpInfo() 공개 메소드

Update an existing pet
Thrown when fails to make API call
public UpdatePetAsyncWithHttpInfo ( Pet body ) : System.Threading.Tasks.Task>
body Pet Pet object that needs to be added to the store
리턴 System.Threading.Tasks.Task>

UpdatePetWithForm() 공개 메소드

Updates a pet in the store with form data
Thrown when fails to make API call
public UpdatePetWithForm ( long petId, string name = null, string status = null ) : void
petId long ID of pet that needs to be updated
name string Updated name of the pet (optional)
status string Updated status of the pet (optional)
리턴 void

UpdatePetWithFormAsync() 공개 메소드

Updates a pet in the store with form data
Thrown when fails to make API call
public UpdatePetWithFormAsync ( long petId, string name = null, string status = null ) : System.Threading.Tasks.Task
petId long ID of pet that needs to be updated
name string Updated name of the pet (optional)
status string Updated status of the pet (optional)
리턴 System.Threading.Tasks.Task

UpdatePetWithFormAsyncWithHttpInfo() 공개 메소드

Updates a pet in the store with form data
Thrown when fails to make API call
public UpdatePetWithFormAsyncWithHttpInfo ( long petId, string name = null, string status = null ) : System.Threading.Tasks.Task>
petId long ID of pet that needs to be updated
name string Updated name of the pet (optional)
status string Updated status of the pet (optional)
리턴 System.Threading.Tasks.Task>

UpdatePetWithFormWithHttpInfo() 공개 메소드

Updates a pet in the store with form data
Thrown when fails to make API call
public UpdatePetWithFormWithHttpInfo ( long petId, string name = null, string status = null ) : ApiResponse
petId long ID of pet that needs to be updated
name string Updated name of the pet (optional)
status string Updated status of the pet (optional)
리턴 ApiResponse

UpdatePetWithHttpInfo() 공개 메소드

Update an existing pet
Thrown when fails to make API call
public UpdatePetWithHttpInfo ( Pet body ) : ApiResponse
body Pet Pet object that needs to be added to the store
리턴 ApiResponse

UploadFile() 공개 메소드

uploads an image
Thrown when fails to make API call
public UploadFile ( long petId, string additionalMetadata = null, System file = null ) : ApiResponse
petId long ID of pet to update
additionalMetadata string Additional data to pass to server (optional)
file System file to upload (optional)
리턴 ApiResponse

UploadFileAsync() 공개 메소드

uploads an image
Thrown when fails to make API call
public UploadFileAsync ( long petId, string additionalMetadata = null, System file = null ) : System.Threading.Tasks.Task
petId long ID of pet to update
additionalMetadata string Additional data to pass to server (optional)
file System file to upload (optional)
리턴 System.Threading.Tasks.Task

UploadFileAsyncWithHttpInfo() 공개 메소드

uploads an image
Thrown when fails to make API call
public UploadFileAsyncWithHttpInfo ( long petId, string additionalMetadata = null, System file = null ) : System.Threading.Tasks.Task>
petId long ID of pet to update
additionalMetadata string Additional data to pass to server (optional)
file System file to upload (optional)
리턴 System.Threading.Tasks.Task>

UploadFileWithHttpInfo() 공개 메소드

uploads an image
Thrown when fails to make API call
public UploadFileWithHttpInfo ( long petId, string additionalMetadata = null, System file = null ) : ApiResponse
petId long ID of pet to update
additionalMetadata string Additional data to pass to server (optional)
file System file to upload (optional)
리턴 ApiResponse