Package io.gitea.api

Class SettingsApi


  • public class SettingsApi
    extends java.lang.Object
    • Constructor Detail

      • SettingsApi

        public SettingsApi()
      • SettingsApi

        public SettingsApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getGeneralAPISettings

        public GeneralAPISettings getGeneralAPISettings()
                                                 throws ApiException
        Get instance's global settings for api
        Returns:
        GeneralAPISettings
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getGeneralAPISettingsWithHttpInfo

        public ApiResponse<GeneralAPISettings> getGeneralAPISettingsWithHttpInfo()
                                                                          throws ApiException
        Get instance's global settings for api
        Returns:
        ApiResponse<GeneralAPISettings>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getGeneralAPISettingsAsync

        public com.squareup.okhttp.Call getGeneralAPISettingsAsync​(ApiCallback<GeneralAPISettings> callback)
                                                            throws ApiException
        Get instance's global settings for api (asynchronously)
        Parameters:
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getGeneralAttachmentSettings

        public GeneralAttachmentSettings getGeneralAttachmentSettings()
                                                               throws ApiException
        Get instance's global settings for Attachment
        Returns:
        GeneralAttachmentSettings
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getGeneralAttachmentSettingsWithHttpInfo

        public ApiResponse<GeneralAttachmentSettings> getGeneralAttachmentSettingsWithHttpInfo()
                                                                                        throws ApiException
        Get instance's global settings for Attachment
        Returns:
        ApiResponse<GeneralAttachmentSettings>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getGeneralAttachmentSettingsAsync

        public com.squareup.okhttp.Call getGeneralAttachmentSettingsAsync​(ApiCallback<GeneralAttachmentSettings> callback)
                                                                   throws ApiException
        Get instance's global settings for Attachment (asynchronously)
        Parameters:
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getGeneralRepositorySettings

        public GeneralRepoSettings getGeneralRepositorySettings()
                                                         throws ApiException
        Get instance's global settings for repositories
        Returns:
        GeneralRepoSettings
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getGeneralRepositorySettingsWithHttpInfo

        public ApiResponse<GeneralRepoSettings> getGeneralRepositorySettingsWithHttpInfo()
                                                                                  throws ApiException
        Get instance's global settings for repositories
        Returns:
        ApiResponse<GeneralRepoSettings>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getGeneralRepositorySettingsAsync

        public com.squareup.okhttp.Call getGeneralRepositorySettingsAsync​(ApiCallback<GeneralRepoSettings> callback)
                                                                   throws ApiException
        Get instance's global settings for repositories (asynchronously)
        Parameters:
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getGeneralUISettings

        public GeneralUISettings getGeneralUISettings()
                                               throws ApiException
        Get instance's global settings for ui
        Returns:
        GeneralUISettings
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getGeneralUISettingsWithHttpInfo

        public ApiResponse<GeneralUISettings> getGeneralUISettingsWithHttpInfo()
                                                                        throws ApiException
        Get instance's global settings for ui
        Returns:
        ApiResponse<GeneralUISettings>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getGeneralUISettingsAsync

        public com.squareup.okhttp.Call getGeneralUISettingsAsync​(ApiCallback<GeneralUISettings> callback)
                                                           throws ApiException
        Get instance's global settings for ui (asynchronously)
        Parameters:
        callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object