C# Class IO.Swagger.Api.UserApi

Represents a collection of functions to interact with the API endpoints
Inheritance: IUserApi
Afficher le fichier Open project: QualityUnit/swagger-codegen Class Usage Examples

Méthodes publiques

Méthode Description
CreateUser ( User body ) : void

Create user This can only be done by the logged in user.

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

Create user This can only be done by the logged in user.

CreateUserAsyncWithHttpInfo ( User body ) : System.Threading.Tasks.Task>

Create user This can only be done by the logged in user.

CreateUserWithHttpInfo ( User body ) : ApiResponse

Create user This can only be done by the logged in user.

CreateUsersWithArrayInput ( List body ) : void

Creates list of users with given input array

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

Creates list of users with given input array

CreateUsersWithArrayInputAsyncWithHttpInfo ( List body ) : System.Threading.Tasks.Task>

Creates list of users with given input array

CreateUsersWithArrayInputWithHttpInfo ( List body ) : ApiResponse

Creates list of users with given input array

CreateUsersWithListInput ( List body ) : void

Creates list of users with given input array

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

Creates list of users with given input array

CreateUsersWithListInputAsyncWithHttpInfo ( List body ) : System.Threading.Tasks.Task>

Creates list of users with given input array

CreateUsersWithListInputWithHttpInfo ( List body ) : ApiResponse

Creates list of users with given input array

DeleteUser ( string username ) : void

Delete user This can only be done by the logged in user.

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

Delete user This can only be done by the logged in user.

DeleteUserAsyncWithHttpInfo ( string username ) : System.Threading.Tasks.Task>

Delete user This can only be done by the logged in user.

DeleteUserWithHttpInfo ( string username ) : ApiResponse

Delete user This can only be done by the logged in user.

GetBasePath ( ) : String

Gets the base path of the API client.

GetUserByName ( string username ) : User

Get user by user name

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

Get user by user name

GetUserByNameAsyncWithHttpInfo ( string username ) : System.Threading.Tasks.Task>

Get user by user name

GetUserByNameWithHttpInfo ( string username ) : ApiResponse

Get user by user name

LoginUser ( string username, string password ) : string

Logs user into the system

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

Logs user into the system

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

Logs user into the system

LoginUserWithHttpInfo ( string username, string password ) : ApiResponse

Logs user into the system

LogoutUser ( ) : void

Logs out current logged in user session

LogoutUserAsync ( ) : System.Threading.Tasks.Task

Logs out current logged in user session

LogoutUserAsyncWithHttpInfo ( ) : System.Threading.Tasks.Task>

Logs out current logged in user session

LogoutUserWithHttpInfo ( ) : ApiResponse

Logs out current logged in user session

UpdateUser ( string username, User body ) : void

Updated user This can only be done by the logged in user.

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

Updated user This can only be done by the logged in user.

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

Updated user This can only be done by the logged in user.

UpdateUserWithHttpInfo ( string username, User body ) : ApiResponse

Updated user This can only be done by the logged in user.

UserApi ( Configuration configuration = null ) : System

Initializes a new instance of the UserApi class using Configuration object

UserApi ( String basePath ) : System

Initializes a new instance of the UserApi class.

Private Methods

Méthode Description
AddDefaultHeader ( string key, string value ) : void
DefaultHeader ( ) : String>.Dictionary
SetBasePath ( String basePath ) : void

Method Details

CreateUser() public méthode

Create user This can only be done by the logged in user.
Thrown when fails to make API call
public CreateUser ( User body ) : void
body IO.Swagger.Model.User Created user object
Résultat void

CreateUserAsync() public méthode

Create user This can only be done by the logged in user.
Thrown when fails to make API call
public CreateUserAsync ( User body ) : System.Threading.Tasks.Task
body IO.Swagger.Model.User Created user object
Résultat System.Threading.Tasks.Task

CreateUserAsyncWithHttpInfo() public méthode

Create user This can only be done by the logged in user.
Thrown when fails to make API call
public CreateUserAsyncWithHttpInfo ( User body ) : System.Threading.Tasks.Task>
body IO.Swagger.Model.User Created user object
Résultat System.Threading.Tasks.Task>

CreateUserWithHttpInfo() public méthode

Create user This can only be done by the logged in user.
Thrown when fails to make API call
public CreateUserWithHttpInfo ( User body ) : ApiResponse
body IO.Swagger.Model.User Created user object
Résultat ApiResponse

CreateUsersWithArrayInput() public méthode

Creates list of users with given input array
Thrown when fails to make API call
public CreateUsersWithArrayInput ( List body ) : void
body List List of user object
Résultat void

CreateUsersWithArrayInputAsync() public méthode

Creates list of users with given input array
Thrown when fails to make API call
public CreateUsersWithArrayInputAsync ( List body ) : System.Threading.Tasks.Task
body List List of user object
Résultat System.Threading.Tasks.Task

CreateUsersWithArrayInputAsyncWithHttpInfo() public méthode

Creates list of users with given input array
Thrown when fails to make API call
public CreateUsersWithArrayInputAsyncWithHttpInfo ( List body ) : System.Threading.Tasks.Task>
body List List of user object
Résultat System.Threading.Tasks.Task>

CreateUsersWithArrayInputWithHttpInfo() public méthode

Creates list of users with given input array
Thrown when fails to make API call
public CreateUsersWithArrayInputWithHttpInfo ( List body ) : ApiResponse
body List List of user object
Résultat ApiResponse

CreateUsersWithListInput() public méthode

Creates list of users with given input array
Thrown when fails to make API call
public CreateUsersWithListInput ( List body ) : void
body List List of user object
Résultat void

CreateUsersWithListInputAsync() public méthode

Creates list of users with given input array
Thrown when fails to make API call
public CreateUsersWithListInputAsync ( List body ) : System.Threading.Tasks.Task
body List List of user object
Résultat System.Threading.Tasks.Task

CreateUsersWithListInputAsyncWithHttpInfo() public méthode

Creates list of users with given input array
Thrown when fails to make API call
public CreateUsersWithListInputAsyncWithHttpInfo ( List body ) : System.Threading.Tasks.Task>
body List List of user object
Résultat System.Threading.Tasks.Task>

CreateUsersWithListInputWithHttpInfo() public méthode

Creates list of users with given input array
Thrown when fails to make API call
public CreateUsersWithListInputWithHttpInfo ( List body ) : ApiResponse
body List List of user object
Résultat ApiResponse

DeleteUser() public méthode

Delete user This can only be done by the logged in user.
Thrown when fails to make API call
public DeleteUser ( string username ) : void
username string The name that needs to be deleted
Résultat void

DeleteUserAsync() public méthode

Delete user This can only be done by the logged in user.
Thrown when fails to make API call
public DeleteUserAsync ( string username ) : System.Threading.Tasks.Task
username string The name that needs to be deleted
Résultat System.Threading.Tasks.Task

DeleteUserAsyncWithHttpInfo() public méthode

Delete user This can only be done by the logged in user.
Thrown when fails to make API call
public DeleteUserAsyncWithHttpInfo ( string username ) : System.Threading.Tasks.Task>
username string The name that needs to be deleted
Résultat System.Threading.Tasks.Task>

DeleteUserWithHttpInfo() public méthode

Delete user This can only be done by the logged in user.
Thrown when fails to make API call
public DeleteUserWithHttpInfo ( string username ) : ApiResponse
username string The name that needs to be deleted
Résultat ApiResponse

GetBasePath() public méthode

Gets the base path of the API client.
public GetBasePath ( ) : String
Résultat String

GetUserByName() public méthode

Get user by user name
Thrown when fails to make API call
public GetUserByName ( string username ) : User
username string The name that needs to be fetched. Use user1 for testing.
Résultat IO.Swagger.Model.User

GetUserByNameAsync() public méthode

Get user by user name
Thrown when fails to make API call
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

GetUserByNameAsyncWithHttpInfo() public méthode

Get user by user name
Thrown when fails to make API call
public GetUserByNameAsyncWithHttpInfo ( 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>

GetUserByNameWithHttpInfo() public méthode

Get user by user name
Thrown when fails to make API call
public GetUserByNameWithHttpInfo ( string username ) : ApiResponse
username string The name that needs to be fetched. Use user1 for testing.
Résultat ApiResponse

LoginUser() public méthode

Logs user into the system
Thrown when fails to make API call
public LoginUser ( string username, string password ) : string
username string The user name for login
password string The password for login in clear text
Résultat string

LoginUserAsync() public méthode

Logs user into the system
Thrown when fails to make API call
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

LoginUserAsyncWithHttpInfo() public méthode

Logs user into the system
Thrown when fails to make API call
public LoginUserAsyncWithHttpInfo ( 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>

LoginUserWithHttpInfo() public méthode

Logs user into the system
Thrown when fails to make API call
public LoginUserWithHttpInfo ( string username, string password ) : ApiResponse
username string The user name for login
password string The password for login in clear text
Résultat ApiResponse

LogoutUser() public méthode

Logs out current logged in user session
Thrown when fails to make API call
public LogoutUser ( ) : void
Résultat void

LogoutUserAsync() public méthode

Logs out current logged in user session
Thrown when fails to make API call
public LogoutUserAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

LogoutUserAsyncWithHttpInfo() public méthode

Logs out current logged in user session
Thrown when fails to make API call
public LogoutUserAsyncWithHttpInfo ( ) : System.Threading.Tasks.Task>
Résultat System.Threading.Tasks.Task>

LogoutUserWithHttpInfo() public méthode

Logs out current logged in user session
Thrown when fails to make API call
public LogoutUserWithHttpInfo ( ) : ApiResponse
Résultat ApiResponse

UpdateUser() public méthode

Updated user This can only be done by the logged in user.
Thrown when fails to make API call
public UpdateUser ( string username, User body ) : void
username string name that need to be deleted
body IO.Swagger.Model.User Updated user object
Résultat void

UpdateUserAsync() public méthode

Updated user This can only be done by the logged in user.
Thrown when fails to make API call
public UpdateUserAsync ( string username, User body ) : System.Threading.Tasks.Task
username string name that need to be deleted
body IO.Swagger.Model.User Updated user object
Résultat System.Threading.Tasks.Task

UpdateUserAsyncWithHttpInfo() public méthode

Updated user This can only be done by the logged in user.
Thrown when fails to make API call
public UpdateUserAsyncWithHttpInfo ( string username, User body ) : System.Threading.Tasks.Task>
username string name that need to be deleted
body IO.Swagger.Model.User Updated user object
Résultat System.Threading.Tasks.Task>

UpdateUserWithHttpInfo() public méthode

Updated user This can only be done by the logged in user.
Thrown when fails to make API call
public UpdateUserWithHttpInfo ( string username, User body ) : ApiResponse
username string name that need to be deleted
body IO.Swagger.Model.User Updated user object
Résultat ApiResponse

UserApi() public méthode

Initializes a new instance of the UserApi class using Configuration object
public UserApi ( Configuration configuration = null ) : System
configuration IO.Swagger.Client.Configuration An instance of Configuration
Résultat System

UserApi() public méthode

Initializes a new instance of the UserApi class.
public UserApi ( String basePath ) : System
basePath String
Résultat System