Exemple #1
0
 /// <summary>
 /// Retrieves users Get a list of users
 /// </summary>
 /// <exception cref="BJR.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="perPage"> (optional)</param>
 /// <param name="page"> (optional)</param>
 /// <returns>UserArrayMessage</returns>
 public UserArrayMessage GetUsers(int?perPage = default(int?), int?page = default(int?))
 {
     BJR.Client.ApiResponse <UserArrayMessage> localVarResponse = GetUsersWithHttpInfo(perPage, page);
     return(localVarResponse.Data);
 }
Exemple #2
0
        /// <summary>
        /// Retrieves users Get a list of users
        /// </summary>
        /// <exception cref="BJR.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="perPage"> (optional)</param>
        /// <param name="page"> (optional)</param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of UserArrayMessage</returns>
        public async System.Threading.Tasks.Task <UserArrayMessage> GetUsersAsync(int?perPage = default(int?), int?page = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            BJR.Client.ApiResponse <UserArrayMessage> localVarResponse = await GetUsersWithHttpInfoAsync(perPage, page, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Exemple #3
0
 /// <summary>
 /// Retrieve a single user Retrieve a single user. If you&#39;re a non-root user, then you can only retrieve your own user.
 /// </summary>
 /// <exception cref="BJR.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id"></param>
 /// <returns>SingleUserMessage</returns>
 public SingleUserMessage GetUser(int id)
 {
     BJR.Client.ApiResponse <SingleUserMessage> localVarResponse = GetUserWithHttpInfo(id);
     return(localVarResponse.Data);
 }
Exemple #4
0
        /// <summary>
        /// Retrieve a single user Retrieve a single user. If you&#39;re a non-root user, then you can only retrieve your own user.
        /// </summary>
        /// <exception cref="BJR.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="id"></param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of SingleUserMessage</returns>
        public async System.Threading.Tasks.Task <SingleUserMessage> GetUserAsync(int id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            BJR.Client.ApiResponse <SingleUserMessage> localVarResponse = await GetUserWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Exemple #5
0
 /// <summary>
 /// Update a single user Update a single user. If you&#39;re a non-root users, then you can only update your own user.
 /// </summary>
 /// <exception cref="BJR.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id"></param>
 /// <param name="userUpdateIn"> (optional)</param>
 /// <returns>SingleUserMessage</returns>
 public SingleUserMessage UpdateUser(int id, UserUpdateIn userUpdateIn = default(UserUpdateIn))
 {
     BJR.Client.ApiResponse <SingleUserMessage> localVarResponse = UpdateUserWithHttpInfo(id, userUpdateIn);
     return(localVarResponse.Data);
 }
Exemple #6
0
 /// <summary>
 /// Creates a user Create a new user. Only root users are allowed to create new users.
 /// </summary>
 /// <exception cref="BJR.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="userNewIn"> (optional)</param>
 /// <returns>SingleUserMessage</returns>
 public SingleUserMessage CreateUser(UserNewIn userNewIn = default(UserNewIn))
 {
     BJR.Client.ApiResponse <SingleUserMessage> localVarResponse = CreateUserWithHttpInfo(userNewIn);
     return(localVarResponse.Data);
 }
Exemple #7
0
 /// <summary>
 /// Authenticates a user and returns a token Authenticates a user and returns a token
 /// </summary>
 /// <exception cref="BJR.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="authIn"> (optional)</param>
 /// <returns>AuthOut</returns>
 public AuthOut AuthenticateUser(AuthIn authIn = default(AuthIn))
 {
     BJR.Client.ApiResponse <AuthOut> localVarResponse = AuthenticateUserWithHttpInfo(authIn);
     return(localVarResponse.Data);
 }
Exemple #8
0
        /// <summary>
        /// Authenticates a user and returns a token Authenticates a user and returns a token
        /// </summary>
        /// <exception cref="BJR.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="authIn"> (optional)</param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of AuthOut</returns>
        public async System.Threading.Tasks.Task <AuthOut> AuthenticateUserAsync(AuthIn authIn = default(AuthIn), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            BJR.Client.ApiResponse <AuthOut> localVarResponse = await AuthenticateUserWithHttpInfoAsync(authIn, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Exemple #9
0
        /// <summary>
        /// Server version The BJR server version
        /// </summary>
        /// <exception cref="BJR.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of ServerVersion</returns>
        public async System.Threading.Tasks.Task <ServerVersion> GetVersionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            BJR.Client.ApiResponse <ServerVersion> localVarResponse = await GetVersionWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Exemple #10
0
 /// <summary>
 /// Server version The BJR server version
 /// </summary>
 /// <exception cref="BJR.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>ServerVersion</returns>
 public ServerVersion GetVersion()
 {
     BJR.Client.ApiResponse <ServerVersion> localVarResponse = GetVersionWithHttpInfo();
     return(localVarResponse.Data);
 }
Exemple #11
0
        /// <summary>
        /// Get timezones Get the list of acceptable timezone names.
        /// </summary>
        /// <exception cref="BJR.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of TimezoneMessage</returns>
        public async System.Threading.Tasks.Task <TimezoneMessage> GetTimezonesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            BJR.Client.ApiResponse <TimezoneMessage> localVarResponse = await GetTimezonesWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Exemple #12
0
 /// <summary>
 /// Get timezones Get the list of acceptable timezone names.
 /// </summary>
 /// <exception cref="BJR.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>TimezoneMessage</returns>
 public TimezoneMessage GetTimezones()
 {
     BJR.Client.ApiResponse <TimezoneMessage> localVarResponse = GetTimezonesWithHttpInfo();
     return(localVarResponse.Data);
 }
Exemple #13
0
 /// <summary>
 /// Get tags Retrieves the list of tags that are currently in use for the authenticated user.
 /// </summary>
 /// <exception cref="BJR.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="perPage"> (optional)</param>
 /// <param name="page"> (optional)</param>
 /// <returns>TagMessage</returns>
 public TagMessage GetTags(int?perPage = default(int?), int?page = default(int?))
 {
     BJR.Client.ApiResponse <TagMessage> localVarResponse = GetTagsWithHttpInfo(perPage, page);
     return(localVarResponse.Data);
 }