Package build.cursed.genapi.forgejo.api
Class SettingsApi
java.lang.Object
build.cursed.genapi.forgejo.api.SettingsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet instance's global settings for apiokhttp3.CallgetGeneralAPISettingsAsync(ApiCallback<GeneralAPISettings> _callback) Get instance's global settings for api (asynchronously)okhttp3.CallgetGeneralAPISettingsCall(ApiCallback _callback) Build call for getGeneralAPISettingsGet instance's global settings for apiGet instance's global settings for Attachmentokhttp3.CallGet instance's global settings for Attachment (asynchronously)okhttp3.CallgetGeneralAttachmentSettingsCall(ApiCallback _callback) Build call for getGeneralAttachmentSettingsGet instance's global settings for AttachmentGet instance's global settings for repositoriesokhttp3.CallGet instance's global settings for repositories (asynchronously)okhttp3.CallgetGeneralRepositorySettingsCall(ApiCallback _callback) Build call for getGeneralRepositorySettingsGet instance's global settings for repositoriesGet instance's global settings for uiokhttp3.CallgetGeneralUISettingsAsync(ApiCallback<GeneralUISettings> _callback) Get instance's global settings for ui (asynchronously)okhttp3.CallgetGeneralUISettingsCall(ApiCallback _callback) Build call for getGeneralUISettingsGet instance's global settings for uiintvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
SettingsApi
public SettingsApi() -
SettingsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
getGeneralAPISettingsCall
Build call for getGeneralAPISettings- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralAPISettings -
-
getGeneralAPISettings
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- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralAPISettings -
-
getGeneralAPISettingsWithHttpInfo
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- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralAPISettings -
-
getGeneralAPISettingsAsync
public okhttp3.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- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralAPISettings -
-
getGeneralAttachmentSettingsCall
Build call for getGeneralAttachmentSettings- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralAttachmentSettings -
-
getGeneralAttachmentSettings
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- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralAttachmentSettings -
-
getGeneralAttachmentSettingsWithHttpInfo
public ApiResponse<GeneralAttachmentSettings> getGeneralAttachmentSettingsWithHttpInfo() throws ApiExceptionGet 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- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralAttachmentSettings -
-
getGeneralAttachmentSettingsAsync
public okhttp3.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- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralAttachmentSettings -
-
getGeneralRepositorySettingsCall
Build call for getGeneralRepositorySettings- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralRepoSettings -
-
getGeneralRepositorySettings
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- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralRepoSettings -
-
getGeneralRepositorySettingsWithHttpInfo
public ApiResponse<GeneralRepoSettings> getGeneralRepositorySettingsWithHttpInfo() throws ApiExceptionGet 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- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralRepoSettings -
-
getGeneralRepositorySettingsAsync
public okhttp3.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- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralRepoSettings -
-
getGeneralUISettingsCall
Build call for getGeneralUISettings- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralUISettings -
-
getGeneralUISettings
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- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralUISettings -
-
getGeneralUISettingsWithHttpInfo
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- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralUISettings -
-
getGeneralUISettingsAsync
public okhttp3.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- Http Response Details
Response Details Status Code Description Response Headers 200 GeneralUISettings -
-