diff --git a/.gitignore b/.gitignore index a530464..4599085 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,7 @@ hs_err_pid* target .gradle build + +# IntelliJ IDEA files +*.iml +/.idea/ diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION index 752a79e..c79f748 100644 --- a/.swagger-codegen/VERSION +++ b/.swagger-codegen/VERSION @@ -1 +1 @@ -2.4.8 \ No newline at end of file +2.4.19 \ No newline at end of file diff --git a/docs/AddTimeOption.md b/docs/AddTimeOption.md index d761497..8e0258b 100644 --- a/docs/AddTimeOption.md +++ b/docs/AddTimeOption.md @@ -4,7 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **time** | **Long** | time in seconds | +**userName** | **String** | User who spent the time (optional) | [optional] diff --git a/docs/AdminApi.md b/docs/AdminApi.md index 58d7554..aefc57e 100644 --- a/docs/AdminApi.md +++ b/docs/AdminApi.md @@ -4,17 +4,111 @@ All URIs are relative to *http://localhost/api/v1* Method | HTTP request | Description ------------- | ------------- | ------------- +[**adminAdoptRepository**](AdminApi.md#adminAdoptRepository) | **POST** /admin/unadopted/{owner}/{repo} | Adopt unadopted files as a repository [**adminCreateOrg**](AdminApi.md#adminCreateOrg) | **POST** /admin/users/{username}/orgs | Create an organization [**adminCreatePublicKey**](AdminApi.md#adminCreatePublicKey) | **POST** /admin/users/{username}/keys | Add a public key on behalf of a user -[**adminCreateRepo**](AdminApi.md#adminCreateRepo) | **POST** /admin/users/{username}/repos | Create a repository on behalf a user +[**adminCreateRepo**](AdminApi.md#adminCreateRepo) | **POST** /admin/users/{username}/repos | Create a repository on behalf of a user [**adminCreateUser**](AdminApi.md#adminCreateUser) | **POST** /admin/users | Create a user +[**adminCronList**](AdminApi.md#adminCronList) | **GET** /admin/cron | List cron tasks +[**adminCronRun**](AdminApi.md#adminCronRun) | **POST** /admin/cron/{task} | Run cron task +[**adminDeleteUnadoptedRepository**](AdminApi.md#adminDeleteUnadoptedRepository) | **DELETE** /admin/unadopted/{owner}/{repo} | Delete unadopted files [**adminDeleteUser**](AdminApi.md#adminDeleteUser) | **DELETE** /admin/users/{username} | Delete a user [**adminDeleteUserPublicKey**](AdminApi.md#adminDeleteUserPublicKey) | **DELETE** /admin/users/{username}/keys/{id} | Delete a user's public key [**adminEditUser**](AdminApi.md#adminEditUser) | **PATCH** /admin/users/{username} | Edit an existing user [**adminGetAllOrgs**](AdminApi.md#adminGetAllOrgs) | **GET** /admin/orgs | List all organizations [**adminGetAllUsers**](AdminApi.md#adminGetAllUsers) | **GET** /admin/users | List all users +[**adminUnadoptedList**](AdminApi.md#adminUnadoptedList) | **GET** /admin/unadopted | List unadopted repositories + +# **adminAdoptRepository** +> adminAdoptRepository(owner, repo) + +Adopt unadopted files as a repository + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.AdminApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +AdminApi apiInstance = new AdminApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +try { + apiInstance.adminAdoptRepository(owner, repo); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminAdoptRepository"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + +### Return type + +null (empty response body) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + # **adminCreateOrg** > Organization adminCreateOrg(username, organization) @@ -61,6 +155,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -92,7 +192,7 @@ Name | Type | Description | Notes ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers @@ -145,6 +245,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -176,7 +282,7 @@ Name | Type | Description | Notes ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers @@ -187,7 +293,7 @@ Name | Type | Description | Notes # **adminCreateRepo** > Repository adminCreateRepo(username, repository) -Create a repository on behalf a user +Create a repository on behalf of a user ### Example ```java @@ -229,6 +335,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -260,7 +372,7 @@ Name | Type | Description | Notes ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers @@ -313,6 +425,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -342,13 +460,279 @@ Name | Type | Description | Notes ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json + +# **adminCronList** +> List<Cron> adminCronList(page, limit) + +List cron tasks + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.AdminApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +AdminApi apiInstance = new AdminApi(); +Integer page = 56; // Integer | page number of results to return (1-based) +Integer limit = 56; // Integer | page size of results +try { + List result = apiInstance.adminCronList(page, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminCronList"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **Integer**| page number of results to return (1-based) | [optional] + **limit** | **Integer**| page size of results | [optional] + +### Return type + +[**List<Cron>**](Cron.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + + +# **adminCronRun** +> adminCronRun(task) + +Run cron task + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.AdminApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +AdminApi apiInstance = new AdminApi(); +String task = "task_example"; // String | task to run +try { + apiInstance.adminCronRun(task); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminCronRun"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **task** | **String**| task to run | + +### Return type + +null (empty response body) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + + +# **adminDeleteUnadoptedRepository** +> adminDeleteUnadoptedRepository(owner, repo) + +Delete unadopted files + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.AdminApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +AdminApi apiInstance = new AdminApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +try { + apiInstance.adminDeleteUnadoptedRepository(owner, repo); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminDeleteUnadoptedRepository"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + +### Return type + +null (empty response body) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + # **adminDeleteUser** > adminDeleteUser(username) @@ -395,6 +779,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -423,7 +813,7 @@ null (empty response body) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers @@ -476,6 +866,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -506,7 +902,7 @@ null (empty response body) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers @@ -559,6 +955,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -590,7 +992,7 @@ Name | Type | Description | Notes ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers @@ -643,6 +1045,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -651,7 +1059,7 @@ Token.setApiKey("YOUR API KEY"); AdminApi apiInstance = new AdminApi(); Integer page = 56; // Integer | page number of results to return (1-based) -Integer limit = 56; // Integer | page size of results, maximum page size is 50 +Integer limit = 56; // Integer | page size of results try { List result = apiInstance.adminGetAllOrgs(page, limit); System.out.println(result); @@ -666,7 +1074,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page** | **Integer**| page number of results to return (1-based) | [optional] - **limit** | **Integer**| page size of results, maximum page size is 50 | [optional] + **limit** | **Integer**| page size of results | [optional] ### Return type @@ -674,7 +1082,7 @@ Name | Type | Description | Notes ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers @@ -683,7 +1091,7 @@ Name | Type | Description | Notes # **adminGetAllUsers** -> List<User> adminGetAllUsers() +> List<User> adminGetAllUsers(page, limit) List all users @@ -727,6 +1135,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -734,8 +1148,10 @@ Token.setApiKey("YOUR API KEY"); //Token.setApiKeyPrefix("Token"); AdminApi apiInstance = new AdminApi(); +Integer page = 56; // Integer | page number of results to return (1-based) +Integer limit = 56; // Integer | page size of results try { - List result = apiInstance.adminGetAllUsers(); + List result = apiInstance.adminGetAllUsers(page, limit); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AdminApi#adminGetAllUsers"); @@ -744,7 +1160,11 @@ try { ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **Integer**| page number of results to return (1-based) | [optional] + **limit** | **Integer**| page size of results | [optional] ### Return type @@ -752,7 +1172,99 @@ This endpoint does not need any parameter. ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + + +# **adminUnadoptedList** +> List<String> adminUnadoptedList(page, limit, pattern) + +List unadopted repositories + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.AdminApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +AdminApi apiInstance = new AdminApi(); +Integer page = 56; // Integer | page number of results to return (1-based) +Integer limit = 56; // Integer | page size of results +String pattern = "pattern_example"; // String | pattern of repositories to search for +try { + List result = apiInstance.adminUnadoptedList(page, limit, pattern); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminUnadoptedList"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **Integer**| page number of results to return (1-based) | [optional] + **limit** | **Integer**| page size of results | [optional] + **pattern** | **String**| pattern of repositories to search for | [optional] + +### Return type + +**List<String>** + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers diff --git a/docs/Branch.md b/docs/Branch.md index 487ad17..5cf80a9 100644 --- a/docs/Branch.md +++ b/docs/Branch.md @@ -5,7 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **commit** | [**PayloadCommit**](PayloadCommit.md) | | [optional] +**effectiveBranchProtectionName** | **String** | | [optional] +**enableStatusCheck** | **Boolean** | | [optional] **name** | **String** | | [optional] +**_protected** | **Boolean** | | [optional] +**requiredApprovals** | **Long** | | [optional] +**statusCheckContexts** | **List<String>** | | [optional] +**userCanMerge** | **Boolean** | | [optional] +**userCanPush** | **Boolean** | | [optional] diff --git a/docs/BranchProtection.md b/docs/BranchProtection.md new file mode 100644 index 0000000..240499a --- /dev/null +++ b/docs/BranchProtection.md @@ -0,0 +1,32 @@ + +# BranchProtection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**approvalsWhitelistTeams** | **List<String>** | | [optional] +**approvalsWhitelistUsername** | **List<String>** | | [optional] +**blockOnOfficialReviewRequests** | **Boolean** | | [optional] +**blockOnOutdatedBranch** | **Boolean** | | [optional] +**blockOnRejectedReviews** | **Boolean** | | [optional] +**branchName** | **String** | | [optional] +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**dismissStaleApprovals** | **Boolean** | | [optional] +**enableApprovalsWhitelist** | **Boolean** | | [optional] +**enableMergeWhitelist** | **Boolean** | | [optional] +**enablePush** | **Boolean** | | [optional] +**enablePushWhitelist** | **Boolean** | | [optional] +**enableStatusCheck** | **Boolean** | | [optional] +**mergeWhitelistTeams** | **List<String>** | | [optional] +**mergeWhitelistUsernames** | **List<String>** | | [optional] +**protectedFilePatterns** | **String** | | [optional] +**pushWhitelistDeployKeys** | **Boolean** | | [optional] +**pushWhitelistTeams** | **List<String>** | | [optional] +**pushWhitelistUsernames** | **List<String>** | | [optional] +**requireSignedCommits** | **Boolean** | | [optional] +**requiredApprovals** | **Long** | | [optional] +**statusCheckContexts** | **List<String>** | | [optional] +**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] + + + diff --git a/docs/CombinedStatus.md b/docs/CombinedStatus.md new file mode 100644 index 0000000..697aea1 --- /dev/null +++ b/docs/CombinedStatus.md @@ -0,0 +1,16 @@ + +# CombinedStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commitUrl** | **String** | | [optional] +**repository** | [**Repository**](Repository.md) | | [optional] +**sha** | **String** | | [optional] +**state** | **String** | | [optional] +**statuses** | [**List<CommitStatus>**](CommitStatus.md) | | [optional] +**totalCount** | **Long** | | [optional] +**url** | **String** | | [optional] + + + diff --git a/docs/Commit.md b/docs/Commit.md index e236a3d..19a64d2 100644 --- a/docs/Commit.md +++ b/docs/Commit.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **author** | [**User**](User.md) | | [optional] **commit** | [**RepoCommit**](RepoCommit.md) | | [optional] **committer** | [**User**](User.md) | | [optional] +**created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**files** | [**List<CommitAffectedFiles>**](CommitAffectedFiles.md) | | [optional] **htmlUrl** | **String** | | [optional] **parents** | [**List<CommitMeta>**](CommitMeta.md) | | [optional] **sha** | **String** | | [optional] diff --git a/docs/CommitAffectedFiles.md b/docs/CommitAffectedFiles.md new file mode 100644 index 0000000..7a3b15b --- /dev/null +++ b/docs/CommitAffectedFiles.md @@ -0,0 +1,10 @@ + +# CommitAffectedFiles + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filename** | **String** | | [optional] + + + diff --git a/docs/CommitDateOptions.md b/docs/CommitDateOptions.md new file mode 100644 index 0000000..f014207 --- /dev/null +++ b/docs/CommitDateOptions.md @@ -0,0 +1,11 @@ + +# CommitDateOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**author** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**committer** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] + + + diff --git a/docs/CommitMeta.md b/docs/CommitMeta.md index 25be92d..efc1896 100644 --- a/docs/CommitMeta.md +++ b/docs/CommitMeta.md @@ -4,6 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **sha** | **String** | | [optional] **url** | **String** | | [optional] diff --git a/docs/CommitStatus.md b/docs/CommitStatus.md new file mode 100644 index 0000000..7a6fa1c --- /dev/null +++ b/docs/CommitStatus.md @@ -0,0 +1,18 @@ + +# CommitStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | **String** | | [optional] +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**creator** | [**User**](User.md) | | [optional] +**description** | **String** | | [optional] +**id** | **Long** | | [optional] +**status** | **String** | | [optional] +**targetUrl** | **String** | | [optional] +**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**url** | **String** | | [optional] + + + diff --git a/docs/CreateBranchProtectionOption.md b/docs/CreateBranchProtectionOption.md new file mode 100644 index 0000000..88777fe --- /dev/null +++ b/docs/CreateBranchProtectionOption.md @@ -0,0 +1,30 @@ + +# CreateBranchProtectionOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**approvalsWhitelistTeams** | **List<String>** | | [optional] +**approvalsWhitelistUsername** | **List<String>** | | [optional] +**blockOnOfficialReviewRequests** | **Boolean** | | [optional] +**blockOnOutdatedBranch** | **Boolean** | | [optional] +**blockOnRejectedReviews** | **Boolean** | | [optional] +**branchName** | **String** | | [optional] +**dismissStaleApprovals** | **Boolean** | | [optional] +**enableApprovalsWhitelist** | **Boolean** | | [optional] +**enableMergeWhitelist** | **Boolean** | | [optional] +**enablePush** | **Boolean** | | [optional] +**enablePushWhitelist** | **Boolean** | | [optional] +**enableStatusCheck** | **Boolean** | | [optional] +**mergeWhitelistTeams** | **List<String>** | | [optional] +**mergeWhitelistUsernames** | **List<String>** | | [optional] +**protectedFilePatterns** | **String** | | [optional] +**pushWhitelistDeployKeys** | **Boolean** | | [optional] +**pushWhitelistTeams** | **List<String>** | | [optional] +**pushWhitelistUsernames** | **List<String>** | | [optional] +**requireSignedCommits** | **Boolean** | | [optional] +**requiredApprovals** | **Long** | | [optional] +**statusCheckContexts** | **List<String>** | | [optional] + + + diff --git a/docs/CreateBranchRepoOption.md b/docs/CreateBranchRepoOption.md new file mode 100644 index 0000000..c08d982 --- /dev/null +++ b/docs/CreateBranchRepoOption.md @@ -0,0 +1,11 @@ + +# CreateBranchRepoOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**newBranchName** | **String** | Name of the branch to create | +**oldBranchName** | **String** | Name of the old branch to create from | [optional] + + + diff --git a/docs/CreateFileOptions.md b/docs/CreateFileOptions.md index 0c5aada..7ae1802 100644 --- a/docs/CreateFileOptions.md +++ b/docs/CreateFileOptions.md @@ -8,8 +8,10 @@ Name | Type | Description | Notes **branch** | **String** | branch (optional) to base this file from. if not given, the default branch is used | [optional] **committer** | [**Identity**](Identity.md) | | [optional] **content** | **String** | content must be base64 encoded | +**dates** | [**CommitDateOptions**](CommitDateOptions.md) | | [optional] **message** | **String** | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional] **newBranch** | **String** | new_branch (optional) will make a new branch from `branch` before creating the file | [optional] +**signoff** | **Boolean** | Add a Signed-off-by trailer by the committer at the end of the commit log message. | [optional] diff --git a/docs/CreateHookOption.md b/docs/CreateHookOption.md index 9b06ab2..16addda 100644 --- a/docs/CreateHookOption.md +++ b/docs/CreateHookOption.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **Boolean** | | [optional] **branchFilter** | **String** | | [optional] -**config** | **Map<String, String>** | | +**config** | [**CreateHookOptionConfig**](CreateHookOptionConfig.md) | | **events** | **List<String>** | | [optional] **type** | [**TypeEnum**](#TypeEnum) | | @@ -15,10 +15,14 @@ Name | Type | Description | Notes ## Enum: TypeEnum Name | Value ---- | ----- +DINGTALK | "dingtalk" +DISCORD | "discord" GITEA | "gitea" GOGS | "gogs" +MSTEAMS | "msteams" SLACK | "slack" -DISCORD | "discord" +TELEGRAM | "telegram" +FEISHU | "feishu" diff --git a/docs/CreateHookOptionConfig.md b/docs/CreateHookOptionConfig.md new file mode 100644 index 0000000..cb64f97 --- /dev/null +++ b/docs/CreateHookOptionConfig.md @@ -0,0 +1,9 @@ + +# CreateHookOptionConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + + + diff --git a/docs/CreateIssueOption.md b/docs/CreateIssueOption.md index bb6b576..e81a695 100644 --- a/docs/CreateIssueOption.md +++ b/docs/CreateIssueOption.md @@ -4,13 +4,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**assignee** | **String** | username of assignee | [optional] +**assignee** | **String** | deprecated | [optional] **assignees** | **List<String>** | | [optional] **body** | **String** | | [optional] **closed** | **Boolean** | | [optional] **dueDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **labels** | **List<Long>** | list of label ids | [optional] **milestone** | **Long** | milestone id | [optional] +**ref** | **String** | | [optional] **title** | **String** | | diff --git a/docs/CreateMilestoneOption.md b/docs/CreateMilestoneOption.md index 9a0fa78..3874dc7 100644 --- a/docs/CreateMilestoneOption.md +++ b/docs/CreateMilestoneOption.md @@ -6,7 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **String** | | [optional] **dueOn** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**state** | [**StateEnum**](#StateEnum) | | [optional] **title** | **String** | | [optional] + +## Enum: StateEnum +Name | Value +---- | ----- +OPEN | "open" +CLOSED | "closed" + + diff --git a/docs/CreateOAuth2ApplicationOptions.md b/docs/CreateOAuth2ApplicationOptions.md new file mode 100644 index 0000000..b6e9edf --- /dev/null +++ b/docs/CreateOAuth2ApplicationOptions.md @@ -0,0 +1,11 @@ + +# CreateOAuth2ApplicationOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] +**redirectUris** | **List<String>** | | [optional] + + + diff --git a/docs/CreatePullReviewComment.md b/docs/CreatePullReviewComment.md new file mode 100644 index 0000000..5043243 --- /dev/null +++ b/docs/CreatePullReviewComment.md @@ -0,0 +1,13 @@ + +# CreatePullReviewComment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | **String** | | [optional] +**newPosition** | **Long** | if comment to new file line or 0 | [optional] +**oldPosition** | **Long** | if comment to old file line or 0 | [optional] +**path** | **String** | the tree path | [optional] + + + diff --git a/docs/CreatePullReviewOptions.md b/docs/CreatePullReviewOptions.md new file mode 100644 index 0000000..893ee47 --- /dev/null +++ b/docs/CreatePullReviewOptions.md @@ -0,0 +1,13 @@ + +# CreatePullReviewOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | **String** | | [optional] +**comments** | [**List<CreatePullReviewComment>**](CreatePullReviewComment.md) | | [optional] +**commitId** | **String** | | [optional] +**event** | **String** | | [optional] + + + diff --git a/docs/CreateRepoOption.md b/docs/CreateRepoOption.md index 8bb081b..bfc44e0 100644 --- a/docs/CreateRepoOption.md +++ b/docs/CreateRepoOption.md @@ -5,13 +5,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **autoInit** | **Boolean** | Whether the repository should be auto-intialized? | [optional] +**defaultBranch** | **String** | DefaultBranch of the repository (used when initializes and in template) | [optional] **description** | **String** | Description of the repository to create | [optional] **gitignores** | **String** | Gitignores to use | [optional] -**issueLabels** | **String** | Issue Label set to use | [optional] +**issueLabels** | **String** | Label-Set to use | [optional] **license** | **String** | License to use | [optional] **name** | **String** | Name of the repository to create | **_private** | **Boolean** | Whether the repository is private | [optional] **readme** | **String** | Readme of the repository to create | [optional] +**template** | **Boolean** | Whether the repository is template | [optional] +**trustModel** | [**TrustModelEnum**](#TrustModelEnum) | TrustModel of the repository | [optional] + + + +## Enum: TrustModelEnum +Name | Value +---- | ----- +DEFAULT | "default" +COLLABORATOR | "collaborator" +COMMITTER | "committer" +COLLABORATORCOMMITTER | "collaboratorcommitter" diff --git a/docs/CreateTeamOption.md b/docs/CreateTeamOption.md index a9037a1..1af07e2 100644 --- a/docs/CreateTeamOption.md +++ b/docs/CreateTeamOption.md @@ -4,7 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**canCreateOrgRepo** | **Boolean** | | [optional] **description** | **String** | | [optional] +**includesAllRepositories** | **Boolean** | | [optional] **name** | **String** | | **permission** | [**PermissionEnum**](#PermissionEnum) | | [optional] **units** | **List<String>** | | [optional] diff --git a/docs/Cron.md b/docs/Cron.md new file mode 100644 index 0000000..245b9e0 --- /dev/null +++ b/docs/Cron.md @@ -0,0 +1,14 @@ + +# Cron + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**execTimes** | **Long** | | [optional] +**name** | **String** | | [optional] +**next** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**prev** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**schedule** | **String** | | [optional] + + + diff --git a/docs/DeleteFileOptions.md b/docs/DeleteFileOptions.md index c3847f4..3a813fd 100644 --- a/docs/DeleteFileOptions.md +++ b/docs/DeleteFileOptions.md @@ -7,9 +7,11 @@ Name | Type | Description | Notes **author** | [**Identity**](Identity.md) | | [optional] **branch** | **String** | branch (optional) to base this file from. if not given, the default branch is used | [optional] **committer** | [**Identity**](Identity.md) | | [optional] +**dates** | [**CommitDateOptions**](CommitDateOptions.md) | | [optional] **message** | **String** | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional] **newBranch** | **String** | new_branch (optional) will make a new branch from `branch` before creating the file | [optional] **sha** | **String** | sha is the SHA for the file that already exists | +**signoff** | **Boolean** | Add a Signed-off-by trailer by the committer at the end of the commit log message. | [optional] diff --git a/docs/DismissPullReviewOptions.md b/docs/DismissPullReviewOptions.md new file mode 100644 index 0000000..2556173 --- /dev/null +++ b/docs/DismissPullReviewOptions.md @@ -0,0 +1,10 @@ + +# DismissPullReviewOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] + + + diff --git a/docs/EditBranchProtectionOption.md b/docs/EditBranchProtectionOption.md new file mode 100644 index 0000000..61a71bf --- /dev/null +++ b/docs/EditBranchProtectionOption.md @@ -0,0 +1,29 @@ + +# EditBranchProtectionOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**approvalsWhitelistTeams** | **List<String>** | | [optional] +**approvalsWhitelistUsername** | **List<String>** | | [optional] +**blockOnOfficialReviewRequests** | **Boolean** | | [optional] +**blockOnOutdatedBranch** | **Boolean** | | [optional] +**blockOnRejectedReviews** | **Boolean** | | [optional] +**dismissStaleApprovals** | **Boolean** | | [optional] +**enableApprovalsWhitelist** | **Boolean** | | [optional] +**enableMergeWhitelist** | **Boolean** | | [optional] +**enablePush** | **Boolean** | | [optional] +**enablePushWhitelist** | **Boolean** | | [optional] +**enableStatusCheck** | **Boolean** | | [optional] +**mergeWhitelistTeams** | **List<String>** | | [optional] +**mergeWhitelistUsernames** | **List<String>** | | [optional] +**protectedFilePatterns** | **String** | | [optional] +**pushWhitelistDeployKeys** | **Boolean** | | [optional] +**pushWhitelistTeams** | **List<String>** | | [optional] +**pushWhitelistUsernames** | **List<String>** | | [optional] +**requireSignedCommits** | **Boolean** | | [optional] +**requiredApprovals** | **Long** | | [optional] +**statusCheckContexts** | **List<String>** | | [optional] + + + diff --git a/docs/EditIssueOption.md b/docs/EditIssueOption.md index a5770a7..0c495f3 100644 --- a/docs/EditIssueOption.md +++ b/docs/EditIssueOption.md @@ -4,13 +4,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**assignee** | **String** | | [optional] +**assignee** | **String** | deprecated | [optional] **assignees** | **List<String>** | | [optional] **body** | **String** | | [optional] **dueDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **milestone** | **Long** | | [optional] +**ref** | **String** | | [optional] **state** | **String** | | [optional] **title** | **String** | | [optional] +**unsetDueDate** | **Boolean** | | [optional] diff --git a/docs/EditPullRequestOption.md b/docs/EditPullRequestOption.md index 2ccca5c..1eb6a0e 100644 --- a/docs/EditPullRequestOption.md +++ b/docs/EditPullRequestOption.md @@ -6,12 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **assignee** | **String** | | [optional] **assignees** | **List<String>** | | [optional] +**base** | **String** | | [optional] **body** | **String** | | [optional] **dueDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **labels** | **List<Long>** | | [optional] **milestone** | **Long** | | [optional] **state** | **String** | | [optional] **title** | **String** | | [optional] +**unsetDueDate** | **Boolean** | | [optional] diff --git a/docs/EditReactionOption.md b/docs/EditReactionOption.md new file mode 100644 index 0000000..a759479 --- /dev/null +++ b/docs/EditReactionOption.md @@ -0,0 +1,10 @@ + +# EditReactionOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **String** | | [optional] + + + diff --git a/docs/EditRepoOption.md b/docs/EditRepoOption.md index e4a9b50..be941b4 100644 --- a/docs/EditRepoOption.md +++ b/docs/EditRepoOption.md @@ -4,22 +4,27 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**allowManualMerge** | **Boolean** | either `true` to allow mark pr as merged manually, or `false` to prevent it. `has_pull_requests` must be `true`. | [optional] **allowMergeCommits** | **Boolean** | either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. `has_pull_requests` must be `true`. | [optional] **allowRebase** | **Boolean** | either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. `has_pull_requests` must be `true`. | [optional] **allowRebaseExplicit** | **Boolean** | either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits. `has_pull_requests` must be `true`. | [optional] **allowSquashMerge** | **Boolean** | either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. `has_pull_requests` must be `true`. | [optional] **archived** | **Boolean** | set to `true` to archive this repository. | [optional] +**autodetectManualMerge** | **Boolean** | either `true` to enable AutodetectManualMerge, or `false` to prevent it. `has_pull_requests` must be `true`, Note: In some special cases, misjudgments can occur. | [optional] **defaultBranch** | **String** | sets the default branch for this repository. | [optional] **description** | **String** | a short description of the repository. | [optional] **externalTracker** | [**ExternalTracker**](ExternalTracker.md) | | [optional] **externalWiki** | [**ExternalWiki**](ExternalWiki.md) | | [optional] **hasIssues** | **Boolean** | either `true` to enable issues for this repository or `false` to disable them. | [optional] +**hasProjects** | **Boolean** | either `true` to enable project unit, or `false` to disable them. | [optional] **hasPullRequests** | **Boolean** | either `true` to allow pull requests, or `false` to prevent pull request. | [optional] **hasWiki** | **Boolean** | either `true` to enable the wiki for this repository or `false` to disable it. | [optional] **ignoreWhitespaceConflicts** | **Boolean** | either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace. `has_pull_requests` must be `true`. | [optional] **internalTracker** | [**InternalTracker**](InternalTracker.md) | | [optional] +**mirrorInterval** | **String** | set to a string like `8h30m0s` to set the mirror interval time | [optional] **name** | **String** | name of the repository | [optional] **_private** | **Boolean** | either `true` to make the repository private or `false` to make it public. Note: you will get a 422 error if the organization restricts changing repository visibility to organization owners and a non-owner tries to change the value of private. | [optional] +**template** | **Boolean** | either `true` to make this repository a template or `false` to make it a normal repository | [optional] **website** | **String** | a URL with more information about the repository. | [optional] diff --git a/docs/EditTeamOption.md b/docs/EditTeamOption.md index 29967d2..cc1434c 100644 --- a/docs/EditTeamOption.md +++ b/docs/EditTeamOption.md @@ -4,7 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**canCreateOrgRepo** | **Boolean** | | [optional] **description** | **String** | | [optional] +**includesAllRepositories** | **Boolean** | | [optional] **name** | **String** | | **permission** | [**PermissionEnum**](#PermissionEnum) | | [optional] **units** | **List<String>** | | [optional] diff --git a/docs/EditUserOption.md b/docs/EditUserOption.md index 30892c6..4c43150 100644 --- a/docs/EditUserOption.md +++ b/docs/EditUserOption.md @@ -9,15 +9,16 @@ Name | Type | Description | Notes **allowCreateOrganization** | **Boolean** | | [optional] **allowGitHook** | **Boolean** | | [optional] **allowImportLocal** | **Boolean** | | [optional] -**email** | **String** | | +**email** | **String** | | [optional] **fullName** | **String** | | [optional] **location** | **String** | | [optional] -**loginName** | **String** | | [optional] +**loginName** | **String** | | **maxRepoCreation** | **Long** | | [optional] **mustChangePassword** | **Boolean** | | [optional] **password** | **String** | | [optional] **prohibitLogin** | **Boolean** | | [optional] -**sourceId** | **Long** | | [optional] +**restricted** | **Boolean** | | [optional] +**sourceId** | **Long** | | **website** | **String** | | [optional] diff --git a/docs/FileCommitResponse.md b/docs/FileCommitResponse.md index 99b41c6..93fe98a 100644 --- a/docs/FileCommitResponse.md +++ b/docs/FileCommitResponse.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **author** | [**CommitUser**](CommitUser.md) | | [optional] **committer** | [**CommitUser**](CommitUser.md) | | [optional] +**created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **htmlUrl** | **String** | | [optional] **message** | **String** | | [optional] **parents** | [**List<CommitMeta>**](CommitMeta.md) | | [optional] diff --git a/docs/GeneralAPISettings.md b/docs/GeneralAPISettings.md new file mode 100644 index 0000000..af44432 --- /dev/null +++ b/docs/GeneralAPISettings.md @@ -0,0 +1,13 @@ + +# GeneralAPISettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**defaultGitTreesPerPage** | **Long** | | [optional] +**defaultMaxBlobSize** | **Long** | | [optional] +**defaultPagingNum** | **Long** | | [optional] +**maxResponseItems** | **Long** | | [optional] + + + diff --git a/docs/GeneralAttachmentSettings.md b/docs/GeneralAttachmentSettings.md new file mode 100644 index 0000000..3e013bf --- /dev/null +++ b/docs/GeneralAttachmentSettings.md @@ -0,0 +1,13 @@ + +# GeneralAttachmentSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowedTypes** | **String** | | [optional] +**enabled** | **Boolean** | | [optional] +**maxFiles** | **Long** | | [optional] +**maxSize** | **Long** | | [optional] + + + diff --git a/docs/GeneralRepoSettings.md b/docs/GeneralRepoSettings.md new file mode 100644 index 0000000..51b6a73 --- /dev/null +++ b/docs/GeneralRepoSettings.md @@ -0,0 +1,14 @@ + +# GeneralRepoSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**httpGitDisabled** | **Boolean** | | [optional] +**lfsDisabled** | **Boolean** | | [optional] +**migrationsDisabled** | **Boolean** | | [optional] +**mirrorsDisabled** | **Boolean** | | [optional] +**timeTrackingDisabled** | **Boolean** | | [optional] + + + diff --git a/docs/GeneralUISettings.md b/docs/GeneralUISettings.md new file mode 100644 index 0000000..28d0380 --- /dev/null +++ b/docs/GeneralUISettings.md @@ -0,0 +1,11 @@ + +# GeneralUISettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowedReactions** | **List<String>** | | [optional] +**defaultTheme** | **String** | | [optional] + + + diff --git a/docs/Issue.md b/docs/Issue.md index 9328054..47de7d8 100644 --- a/docs/Issue.md +++ b/docs/Issue.md @@ -11,13 +11,17 @@ Name | Type | Description | Notes **comments** | **Long** | | [optional] **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **dueDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**htmlUrl** | **String** | | [optional] **id** | **Long** | | [optional] +**isLocked** | **Boolean** | | [optional] **labels** | [**List<Label>**](Label.md) | | [optional] **milestone** | [**Milestone**](Milestone.md) | | [optional] **number** | **Long** | | [optional] **originalAuthor** | **String** | | [optional] **originalAuthorId** | **Long** | | [optional] **pullRequest** | [**PullRequestMeta**](PullRequestMeta.md) | | [optional] +**ref** | **String** | | [optional] +**repository** | [**RepositoryMeta**](RepositoryMeta.md) | | [optional] **state** | **String** | | [optional] **title** | **String** | | [optional] **updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] diff --git a/docs/IssueApi.md b/docs/IssueApi.md index 9ed2ae4..57424c4 100644 --- a/docs/IssueApi.md +++ b/docs/IssueApi.md @@ -5,7 +5,9 @@ All URIs are relative to *http://localhost/api/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**issueAddLabel**](IssueApi.md#issueAddLabel) | **POST** /repos/{owner}/{repo}/issues/{index}/labels | Add a label to an issue -[**issueAddTime**](IssueApi.md#issueAddTime) | **POST** /repos/{owner}/{repo}/issues/{id}/times | Add a tracked time to a issue +[**issueAddSubscription**](IssueApi.md#issueAddSubscription) | **PUT** /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | Subscribe user to issue +[**issueAddTime**](IssueApi.md#issueAddTime) | **POST** /repos/{owner}/{repo}/issues/{index}/times | Add tracked time to a issue +[**issueCheckSubscription**](IssueApi.md#issueCheckSubscription) | **GET** /repos/{owner}/{repo}/issues/{index}/subscriptions/check | Check if user is subscribed to an issue [**issueClearLabels**](IssueApi.md#issueClearLabels) | **DELETE** /repos/{owner}/{repo}/issues/{index}/labels | Remove all labels from an issue [**issueCreateComment**](IssueApi.md#issueCreateComment) | **POST** /repos/{owner}/{repo}/issues/{index}/comments | Add a comment to an issue [**issueCreateIssue**](IssueApi.md#issueCreateIssue) | **POST** /repos/{owner}/{repo}/issues | Create an issue. If using deadline only the date will be taken into account, and time of day ignored. @@ -13,16 +15,24 @@ Method | HTTP request | Description [**issueCreateMilestone**](IssueApi.md#issueCreateMilestone) | **POST** /repos/{owner}/{repo}/milestones | Create a milestone [**issueDeleteComment**](IssueApi.md#issueDeleteComment) | **DELETE** /repos/{owner}/{repo}/issues/comments/{id} | Delete a comment [**issueDeleteCommentDeprecated**](IssueApi.md#issueDeleteCommentDeprecated) | **DELETE** /repos/{owner}/{repo}/issues/{index}/comments/{id} | Delete a comment +[**issueDeleteCommentReaction**](IssueApi.md#issueDeleteCommentReaction) | **DELETE** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Remove a reaction from a comment of an issue +[**issueDeleteIssueReaction**](IssueApi.md#issueDeleteIssueReaction) | **DELETE** /repos/{owner}/{repo}/issues/{index}/reactions | Remove a reaction from an issue [**issueDeleteLabel**](IssueApi.md#issueDeleteLabel) | **DELETE** /repos/{owner}/{repo}/labels/{id} | Delete a label [**issueDeleteMilestone**](IssueApi.md#issueDeleteMilestone) | **DELETE** /repos/{owner}/{repo}/milestones/{id} | Delete a milestone +[**issueDeleteStopWatch**](IssueApi.md#issueDeleteStopWatch) | **DELETE** /repos/{owner}/{repo}/issues/{index}/stopwatch/delete | Delete an issue's existing stopwatch. +[**issueDeleteSubscription**](IssueApi.md#issueDeleteSubscription) | **DELETE** /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | Unsubscribe user from issue +[**issueDeleteTime**](IssueApi.md#issueDeleteTime) | **DELETE** /repos/{owner}/{repo}/issues/{index}/times/{id} | Delete specific tracked time [**issueEditComment**](IssueApi.md#issueEditComment) | **PATCH** /repos/{owner}/{repo}/issues/comments/{id} | Edit a comment [**issueEditCommentDeprecated**](IssueApi.md#issueEditCommentDeprecated) | **PATCH** /repos/{owner}/{repo}/issues/{index}/comments/{id} | Edit a comment [**issueEditIssue**](IssueApi.md#issueEditIssue) | **PATCH** /repos/{owner}/{repo}/issues/{index} | Edit an issue. If using deadline only the date will be taken into account, and time of day ignored. [**issueEditIssueDeadline**](IssueApi.md#issueEditIssueDeadline) | **POST** /repos/{owner}/{repo}/issues/{index}/deadline | Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored. [**issueEditLabel**](IssueApi.md#issueEditLabel) | **PATCH** /repos/{owner}/{repo}/labels/{id} | Update a label [**issueEditMilestone**](IssueApi.md#issueEditMilestone) | **PATCH** /repos/{owner}/{repo}/milestones/{id} | Update a milestone +[**issueGetComment**](IssueApi.md#issueGetComment) | **GET** /repos/{owner}/{repo}/issues/comments/{id} | Get a comment +[**issueGetCommentReactions**](IssueApi.md#issueGetCommentReactions) | **GET** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Get a list of reactions from a comment of an issue [**issueGetComments**](IssueApi.md#issueGetComments) | **GET** /repos/{owner}/{repo}/issues/{index}/comments | List all comments on an issue [**issueGetIssue**](IssueApi.md#issueGetIssue) | **GET** /repos/{owner}/{repo}/issues/{index} | Get an issue +[**issueGetIssueReactions**](IssueApi.md#issueGetIssueReactions) | **GET** /repos/{owner}/{repo}/issues/{index}/reactions | Get a list reactions of an issue [**issueGetLabel**](IssueApi.md#issueGetLabel) | **GET** /repos/{owner}/{repo}/labels/{id} | Get a single label [**issueGetLabels**](IssueApi.md#issueGetLabels) | **GET** /repos/{owner}/{repo}/issues/{index}/labels | Get an issue's labels [**issueGetMilestone**](IssueApi.md#issueGetMilestone) | **GET** /repos/{owner}/{repo}/milestones/{id} | Get a milestone @@ -30,11 +40,16 @@ Method | HTTP request | Description [**issueGetRepoComments**](IssueApi.md#issueGetRepoComments) | **GET** /repos/{owner}/{repo}/issues/comments | List all comments in a repository [**issueListIssues**](IssueApi.md#issueListIssues) | **GET** /repos/{owner}/{repo}/issues | List a repository's issues [**issueListLabels**](IssueApi.md#issueListLabels) | **GET** /repos/{owner}/{repo}/labels | Get all of a repository's labels +[**issuePostCommentReaction**](IssueApi.md#issuePostCommentReaction) | **POST** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Add a reaction to a comment of an issue +[**issuePostIssueReaction**](IssueApi.md#issuePostIssueReaction) | **POST** /repos/{owner}/{repo}/issues/{index}/reactions | Add a reaction to an issue [**issueRemoveLabel**](IssueApi.md#issueRemoveLabel) | **DELETE** /repos/{owner}/{repo}/issues/{index}/labels/{id} | Remove a label from an issue [**issueReplaceLabels**](IssueApi.md#issueReplaceLabels) | **PUT** /repos/{owner}/{repo}/issues/{index}/labels | Replace an issue's labels +[**issueResetTime**](IssueApi.md#issueResetTime) | **DELETE** /repos/{owner}/{repo}/issues/{index}/times | Reset a tracked time of an issue +[**issueSearchIssues**](IssueApi.md#issueSearchIssues) | **GET** /repos/issues/search | Search for issues across the repositories that the user has access to [**issueStartStopWatch**](IssueApi.md#issueStartStopWatch) | **POST** /repos/{owner}/{repo}/issues/{index}/stopwatch/start | Start stopwatch on an issue. -[**issueStopWatch**](IssueApi.md#issueStopWatch) | **POST** /repos/{owner}/{repo}/issues/{index}/stopwatch/stop | Stop an issue's existing stopwatch. -[**issueTrackedTimes**](IssueApi.md#issueTrackedTimes) | **GET** /repos/{owner}/{repo}/issues/{id}/times | List an issue's tracked times +[**issueStopStopWatch**](IssueApi.md#issueStopStopWatch) | **POST** /repos/{owner}/{repo}/issues/{index}/stopwatch/stop | Stop an issue's existing stopwatch. +[**issueSubscriptions**](IssueApi.md#issueSubscriptions) | **GET** /repos/{owner}/{repo}/issues/{index}/subscriptions | Get users who subscribed on an issue. +[**issueTrackedTimes**](IssueApi.md#issueTrackedTimes) | **GET** /repos/{owner}/{repo}/issues/{index}/times | List an issue's tracked times @@ -83,6 +98,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -118,18 +139,18 @@ Name | Type | Description | Notes ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json - -# **issueAddTime** -> TrackedTime issueAddTime(owner, repo, id, body) + +# **issueAddSubscription** +> issueAddSubscription(owner, repo, index, user) -Add a tracked time to a issue +Subscribe user to issue ### Example ```java @@ -171,6 +192,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -180,13 +207,12 @@ Token.setApiKey("YOUR API KEY"); IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo -Long id = 789L; // Long | index of the issue to add tracked time to -AddTimeOption body = new AddTimeOption(); // AddTimeOption | +Long index = 789L; // Long | index of the issue +String user = "user_example"; // String | user to subscribe try { - TrackedTime result = apiInstance.issueAddTime(owner, repo, id, body); - System.out.println(result); + apiInstance.issueAddSubscription(owner, repo, index, user); } catch (ApiException e) { - System.err.println("Exception when calling IssueApi#issueAddTime"); + System.err.println("Exception when calling IssueApi#issueAddSubscription"); e.printStackTrace(); } ``` @@ -197,27 +223,27 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | - **id** | **Long**| index of the issue to add tracked time to | - **body** | [**AddTimeOption**](AddTimeOption.md)| | [optional] + **index** | **Long**| index of the issue | + **user** | **String**| user to subscribe | ### Return type -[**TrackedTime**](TrackedTime.md) +null (empty response body) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json - -# **issueClearLabels** -> issueClearLabels(owner, repo, index) + +# **issueAddTime** +> TrackedTime issueAddTime(owner, repo, index, body) -Remove all labels from an issue +Add tracked time to a issue ### Example ```java @@ -259,6 +285,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -269,10 +301,12 @@ IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo Long index = 789L; // Long | index of the issue +AddTimeOption body = new AddTimeOption(); // AddTimeOption | try { - apiInstance.issueClearLabels(owner, repo, index); + TrackedTime result = apiInstance.issueAddTime(owner, repo, index, body); + System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling IssueApi#issueClearLabels"); + System.err.println("Exception when calling IssueApi#issueAddTime"); e.printStackTrace(); } ``` @@ -284,25 +318,26 @@ Name | Type | Description | Notes **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | **index** | **Long**| index of the issue | + **body** | [**AddTimeOption**](AddTimeOption.md)| | [optional] ### Return type -null (empty response body) +[**TrackedTime**](TrackedTime.md) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - - **Content-Type**: application/json, text/plain + - **Content-Type**: application/json - **Accept**: application/json - -# **issueCreateComment** -> Comment issueCreateComment(owner, repo, index, body) + +# **issueCheckSubscription** +> WatchInfo issueCheckSubscription(owner, repo, index) -Add a comment to an issue +Check if user is subscribed to an issue ### Example ```java @@ -344,6 +379,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -354,12 +395,11 @@ IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo Long index = 789L; // Long | index of the issue -CreateIssueCommentOption body = new CreateIssueCommentOption(); // CreateIssueCommentOption | try { - Comment result = apiInstance.issueCreateComment(owner, repo, index, body); + WatchInfo result = apiInstance.issueCheckSubscription(owner, repo, index); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling IssueApi#issueCreateComment"); + System.err.println("Exception when calling IssueApi#issueCheckSubscription"); e.printStackTrace(); } ``` @@ -371,26 +411,25 @@ Name | Type | Description | Notes **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | **index** | **Long**| index of the issue | - **body** | [**CreateIssueCommentOption**](CreateIssueCommentOption.md)| | [optional] ### Return type -[**Comment**](Comment.md) +[**WatchInfo**](WatchInfo.md) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json - -# **issueCreateIssue** -> Issue issueCreateIssue(owner, repo, body) + +# **issueClearLabels** +> issueClearLabels(owner, repo, index) -Create an issue. If using deadline only the date will be taken into account, and time of day ignored. +Remove all labels from an issue ### Example ```java @@ -432,6 +471,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -441,12 +486,11 @@ Token.setApiKey("YOUR API KEY"); IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo -CreateIssueOption body = new CreateIssueOption(); // CreateIssueOption | +Long index = 789L; // Long | index of the issue try { - Issue result = apiInstance.issueCreateIssue(owner, repo, body); - System.out.println(result); + apiInstance.issueClearLabels(owner, repo, index); } catch (ApiException e) { - System.err.println("Exception when calling IssueApi#issueCreateIssue"); + System.err.println("Exception when calling IssueApi#issueClearLabels"); e.printStackTrace(); } ``` @@ -457,26 +501,26 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | - **body** | [**CreateIssueOption**](CreateIssueOption.md)| | [optional] + **index** | **Long**| index of the issue | ### Return type -[**Issue**](Issue.md) +null (empty response body) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: application/json, text/plain - **Accept**: application/json - -# **issueCreateLabel** -> Label issueCreateLabel(owner, repo, body) + +# **issueCreateComment** +> Comment issueCreateComment(owner, repo, index, body) -Create a label +Add a comment to an issue ### Example ```java @@ -518,6 +562,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -527,12 +577,13 @@ Token.setApiKey("YOUR API KEY"); IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo -CreateLabelOption body = new CreateLabelOption(); // CreateLabelOption | +Long index = 789L; // Long | index of the issue +CreateIssueCommentOption body = new CreateIssueCommentOption(); // CreateIssueCommentOption | try { - Label result = apiInstance.issueCreateLabel(owner, repo, body); + Comment result = apiInstance.issueCreateComment(owner, repo, index, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling IssueApi#issueCreateLabel"); + System.err.println("Exception when calling IssueApi#issueCreateComment"); e.printStackTrace(); } ``` @@ -543,26 +594,27 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | - **body** | [**CreateLabelOption**](CreateLabelOption.md)| | [optional] + **index** | **Long**| index of the issue | + **body** | [**CreateIssueCommentOption**](CreateIssueCommentOption.md)| | [optional] ### Return type -[**Label**](Label.md) +[**Comment**](Comment.md) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json - -# **issueCreateMilestone** -> Milestone issueCreateMilestone(owner, repo, body) + +# **issueCreateIssue** +> Issue issueCreateIssue(owner, repo, body) -Create a milestone +Create an issue. If using deadline only the date will be taken into account, and time of day ignored. ### Example ```java @@ -604,6 +656,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -613,12 +671,12 @@ Token.setApiKey("YOUR API KEY"); IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo -CreateMilestoneOption body = new CreateMilestoneOption(); // CreateMilestoneOption | +CreateIssueOption body = new CreateIssueOption(); // CreateIssueOption | try { - Milestone result = apiInstance.issueCreateMilestone(owner, repo, body); + Issue result = apiInstance.issueCreateIssue(owner, repo, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling IssueApi#issueCreateMilestone"); + System.err.println("Exception when calling IssueApi#issueCreateIssue"); e.printStackTrace(); } ``` @@ -629,26 +687,26 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | - **body** | [**CreateMilestoneOption**](CreateMilestoneOption.md)| | [optional] + **body** | [**CreateIssueOption**](CreateIssueOption.md)| | [optional] ### Return type -[**Milestone**](Milestone.md) +[**Issue**](Issue.md) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json - -# **issueDeleteComment** -> issueDeleteComment(owner, repo, id) + +# **issueCreateLabel** +> Label issueCreateLabel(owner, repo, body) -Delete a comment +Create a label ### Example ```java @@ -690,6 +748,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -699,11 +763,12 @@ Token.setApiKey("YOUR API KEY"); IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo -Long id = 789L; // Long | id of comment to delete +CreateLabelOption body = new CreateLabelOption(); // CreateLabelOption | try { - apiInstance.issueDeleteComment(owner, repo, id); + Label result = apiInstance.issueCreateLabel(owner, repo, body); + System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling IssueApi#issueDeleteComment"); + System.err.println("Exception when calling IssueApi#issueCreateLabel"); e.printStackTrace(); } ``` @@ -714,26 +779,26 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | - **id** | **Long**| id of comment to delete | + **body** | [**CreateLabelOption**](CreateLabelOption.md)| | [optional] ### Return type -null (empty response body) +[**Label**](Label.md) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - - **Content-Type**: application/json, text/plain - - **Accept**: application/json, text/html + - **Content-Type**: application/json + - **Accept**: application/json - -# **issueDeleteCommentDeprecated** -> issueDeleteCommentDeprecated(owner, repo, index, id) + +# **issueCreateMilestone** +> Milestone issueCreateMilestone(owner, repo, body) -Delete a comment +Create a milestone ### Example ```java @@ -775,6 +840,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -784,12 +855,12 @@ Token.setApiKey("YOUR API KEY"); IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo -Integer index = 56; // Integer | this parameter is ignored -Long id = 789L; // Long | id of comment to delete +CreateMilestoneOption body = new CreateMilestoneOption(); // CreateMilestoneOption | try { - apiInstance.issueDeleteCommentDeprecated(owner, repo, index, id); + Milestone result = apiInstance.issueCreateMilestone(owner, repo, body); + System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling IssueApi#issueDeleteCommentDeprecated"); + System.err.println("Exception when calling IssueApi#issueCreateMilestone"); e.printStackTrace(); } ``` @@ -800,27 +871,26 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | - **index** | **Integer**| this parameter is ignored | - **id** | **Long**| id of comment to delete | + **body** | [**CreateMilestoneOption**](CreateMilestoneOption.md)| | [optional] ### Return type -null (empty response body) +[**Milestone**](Milestone.md) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - - **Content-Type**: application/json, text/plain - - **Accept**: application/json, text/html + - **Content-Type**: application/json + - **Accept**: application/json - -# **issueDeleteLabel** -> issueDeleteLabel(owner, repo, id) + +# **issueDeleteComment** +> issueDeleteComment(owner, repo, id) -Delete a label +Delete a comment ### Example ```java @@ -862,6 +932,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -871,11 +947,11 @@ Token.setApiKey("YOUR API KEY"); IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo -Long id = 789L; // Long | id of the label to delete +Long id = 789L; // Long | id of comment to delete try { - apiInstance.issueDeleteLabel(owner, repo, id); + apiInstance.issueDeleteComment(owner, repo, id); } catch (ApiException e) { - System.err.println("Exception when calling IssueApi#issueDeleteLabel"); + System.err.println("Exception when calling IssueApi#issueDeleteComment"); e.printStackTrace(); } ``` @@ -886,7 +962,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | - **id** | **Long**| id of the label to delete | + **id** | **Long**| id of comment to delete | ### Return type @@ -894,18 +970,18 @@ null (empty response body) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json, text/html - -# **issueDeleteMilestone** -> issueDeleteMilestone(owner, repo, id) + +# **issueDeleteCommentDeprecated** +> issueDeleteCommentDeprecated(owner, repo, index, id) -Delete a milestone +Delete a comment ### Example ```java @@ -947,6 +1023,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -956,11 +1038,12 @@ Token.setApiKey("YOUR API KEY"); IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo -Long id = 789L; // Long | id of the milestone to delete +Integer index = 56; // Integer | this parameter is ignored +Long id = 789L; // Long | id of comment to delete try { - apiInstance.issueDeleteMilestone(owner, repo, id); + apiInstance.issueDeleteCommentDeprecated(owner, repo, index, id); } catch (ApiException e) { - System.err.println("Exception when calling IssueApi#issueDeleteMilestone"); + System.err.println("Exception when calling IssueApi#issueDeleteCommentDeprecated"); e.printStackTrace(); } ``` @@ -971,7 +1054,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | - **id** | **Long**| id of the milestone to delete | + **index** | **Integer**| this parameter is ignored | + **id** | **Long**| id of comment to delete | ### Return type @@ -979,18 +1063,18 @@ null (empty response body) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json, text/html - -# **issueEditComment** -> Comment issueEditComment(owner, repo, id, body) + +# **issueDeleteCommentReaction** +> issueDeleteCommentReaction(owner, repo, id, content) -Edit a comment +Remove a reaction from a comment of an issue ### Example ```java @@ -1032,6 +1116,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -1042,12 +1132,11 @@ IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo Long id = 789L; // Long | id of the comment to edit -EditIssueCommentOption body = new EditIssueCommentOption(); // EditIssueCommentOption | +EditReactionOption content = new EditReactionOption(); // EditReactionOption | try { - Comment result = apiInstance.issueEditComment(owner, repo, id, body); - System.out.println(result); + apiInstance.issueDeleteCommentReaction(owner, repo, id, content); } catch (ApiException e) { - System.err.println("Exception when calling IssueApi#issueEditComment"); + System.err.println("Exception when calling IssueApi#issueDeleteCommentReaction"); e.printStackTrace(); } ``` @@ -1059,26 +1148,26 @@ Name | Type | Description | Notes **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | **id** | **Long**| id of the comment to edit | - **body** | [**EditIssueCommentOption**](EditIssueCommentOption.md)| | [optional] + **content** | [**EditReactionOption**](EditReactionOption.md)| | [optional] ### Return type -[**Comment**](Comment.md) +null (empty response body) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json - -# **issueEditCommentDeprecated** -> Comment issueEditCommentDeprecated(owner, repo, index, id, body) + +# **issueDeleteIssueReaction** +> issueDeleteIssueReaction(owner, repo, index, content) -Edit a comment +Remove a reaction from an issue ### Example ```java @@ -1120,6 +1209,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -1129,14 +1224,12 @@ Token.setApiKey("YOUR API KEY"); IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo -Integer index = 56; // Integer | this parameter is ignored -Long id = 789L; // Long | id of the comment to edit -EditIssueCommentOption body = new EditIssueCommentOption(); // EditIssueCommentOption | +Long index = 789L; // Long | index of the issue +EditReactionOption content = new EditReactionOption(); // EditReactionOption | try { - Comment result = apiInstance.issueEditCommentDeprecated(owner, repo, index, id, body); - System.out.println(result); + apiInstance.issueDeleteIssueReaction(owner, repo, index, content); } catch (ApiException e) { - System.err.println("Exception when calling IssueApi#issueEditCommentDeprecated"); + System.err.println("Exception when calling IssueApi#issueDeleteIssueReaction"); e.printStackTrace(); } ``` @@ -1147,28 +1240,27 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | - **index** | **Integer**| this parameter is ignored | - **id** | **Long**| id of the comment to edit | - **body** | [**EditIssueCommentOption**](EditIssueCommentOption.md)| | [optional] + **index** | **Long**| index of the issue | + **content** | [**EditReactionOption**](EditReactionOption.md)| | [optional] ### Return type -[**Comment**](Comment.md) +null (empty response body) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json - -# **issueEditIssue** -> Issue issueEditIssue(owner, repo, index, body) + +# **issueDeleteLabel** +> issueDeleteLabel(owner, repo, id) -Edit an issue. If using deadline only the date will be taken into account, and time of day ignored. +Delete a label ### Example ```java @@ -1210,6 +1302,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -1219,13 +1317,11 @@ Token.setApiKey("YOUR API KEY"); IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo -Long index = 789L; // Long | index of the issue to edit -EditIssueOption body = new EditIssueOption(); // EditIssueOption | +Long id = 789L; // Long | id of the label to delete try { - Issue result = apiInstance.issueEditIssue(owner, repo, index, body); - System.out.println(result); + apiInstance.issueDeleteLabel(owner, repo, id); } catch (ApiException e) { - System.err.println("Exception when calling IssueApi#issueEditIssue"); + System.err.println("Exception when calling IssueApi#issueDeleteLabel"); e.printStackTrace(); } ``` @@ -1236,27 +1332,1240 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | - **index** | **Long**| index of the issue to edit | - **body** | [**EditIssueOption**](EditIssueOption.md)| | [optional] + **id** | **Long**| id of the label to delete | ### Return type -[**Issue**](Issue.md) +null (empty response body) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: application/json, text/plain + - **Accept**: application/json, text/html - + +# **issueDeleteMilestone** +> issueDeleteMilestone(owner, repo, id) + +Delete a milestone + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +String id = "id_example"; // String | the milestone to delete, identified by ID and if not available by name +try { + apiInstance.issueDeleteMilestone(owner, repo, id); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueDeleteMilestone"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **id** | **String**| the milestone to delete, identified by ID and if not available by name | + +### Return type + +null (empty response body) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json, text/html + + +# **issueDeleteStopWatch** +> issueDeleteStopWatch(owner, repo, index) + +Delete an issue's existing stopwatch. + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long index = 789L; // Long | index of the issue to stop the stopwatch on +try { + apiInstance.issueDeleteStopWatch(owner, repo, index); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueDeleteStopWatch"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **index** | **Long**| index of the issue to stop the stopwatch on | + +### Return type + +null (empty response body) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **issueDeleteSubscription** +> issueDeleteSubscription(owner, repo, index, user) + +Unsubscribe user from issue + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long index = 789L; // Long | index of the issue +String user = "user_example"; // String | user witch unsubscribe +try { + apiInstance.issueDeleteSubscription(owner, repo, index, user); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueDeleteSubscription"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **index** | **Long**| index of the issue | + **user** | **String**| user witch unsubscribe | + +### Return type + +null (empty response body) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **issueDeleteTime** +> issueDeleteTime(owner, repo, index, id) + +Delete specific tracked time + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long index = 789L; // Long | index of the issue +Long id = 789L; // Long | id of time to delete +try { + apiInstance.issueDeleteTime(owner, repo, index, id); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueDeleteTime"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **index** | **Long**| index of the issue | + **id** | **Long**| id of time to delete | + +### Return type + +null (empty response body) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **issueEditComment** +> Comment issueEditComment(owner, repo, id, body) + +Edit a comment + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long id = 789L; // Long | id of the comment to edit +EditIssueCommentOption body = new EditIssueCommentOption(); // EditIssueCommentOption | +try { + Comment result = apiInstance.issueEditComment(owner, repo, id, body); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueEditComment"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **id** | **Long**| id of the comment to edit | + **body** | [**EditIssueCommentOption**](EditIssueCommentOption.md)| | [optional] + +### Return type + +[**Comment**](Comment.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **issueEditCommentDeprecated** +> Comment issueEditCommentDeprecated(owner, repo, index, id, body) + +Edit a comment + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Integer index = 56; // Integer | this parameter is ignored +Long id = 789L; // Long | id of the comment to edit +EditIssueCommentOption body = new EditIssueCommentOption(); // EditIssueCommentOption | +try { + Comment result = apiInstance.issueEditCommentDeprecated(owner, repo, index, id, body); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueEditCommentDeprecated"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **index** | **Integer**| this parameter is ignored | + **id** | **Long**| id of the comment to edit | + **body** | [**EditIssueCommentOption**](EditIssueCommentOption.md)| | [optional] + +### Return type + +[**Comment**](Comment.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **issueEditIssue** +> Issue issueEditIssue(owner, repo, index, body) + +Edit an issue. If using deadline only the date will be taken into account, and time of day ignored. + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long index = 789L; // Long | index of the issue to edit +EditIssueOption body = new EditIssueOption(); // EditIssueOption | +try { + Issue result = apiInstance.issueEditIssue(owner, repo, index, body); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueEditIssue"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **index** | **Long**| index of the issue to edit | + **body** | [**EditIssueOption**](EditIssueOption.md)| | [optional] + +### Return type + +[**Issue**](Issue.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + # **issueEditIssueDeadline** > IssueDeadline issueEditIssueDeadline(owner, repo, index, body) -Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored. +Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored. + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long index = 789L; // Long | index of the issue to create or update a deadline on +EditDeadlineOption body = new EditDeadlineOption(); // EditDeadlineOption | +try { + IssueDeadline result = apiInstance.issueEditIssueDeadline(owner, repo, index, body); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueEditIssueDeadline"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **index** | **Long**| index of the issue to create or update a deadline on | + **body** | [**EditDeadlineOption**](EditDeadlineOption.md)| | [optional] + +### Return type + +[**IssueDeadline**](IssueDeadline.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **issueEditLabel** +> Label issueEditLabel(owner, repo, id, body) + +Update a label + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long id = 789L; // Long | id of the label to edit +EditLabelOption body = new EditLabelOption(); // EditLabelOption | +try { + Label result = apiInstance.issueEditLabel(owner, repo, id, body); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueEditLabel"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **id** | **Long**| id of the label to edit | + **body** | [**EditLabelOption**](EditLabelOption.md)| | [optional] + +### Return type + +[**Label**](Label.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **issueEditMilestone** +> Milestone issueEditMilestone(owner, repo, id, body) + +Update a milestone + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +String id = "id_example"; // String | the milestone to edit, identified by ID and if not available by name +EditMilestoneOption body = new EditMilestoneOption(); // EditMilestoneOption | +try { + Milestone result = apiInstance.issueEditMilestone(owner, repo, id, body); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueEditMilestone"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **id** | **String**| the milestone to edit, identified by ID and if not available by name | + **body** | [**EditMilestoneOption**](EditMilestoneOption.md)| | [optional] + +### Return type + +[**Milestone**](Milestone.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **issueGetComment** +> Comment issueGetComment(owner, repo, id) + +Get a comment + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long id = 789L; // Long | id of the comment +try { + Comment result = apiInstance.issueGetComment(owner, repo, id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueGetComment"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **id** | **Long**| id of the comment | + +### Return type + +[**Comment**](Comment.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **issueGetCommentReactions** +> List<Reaction> issueGetCommentReactions(owner, repo, id) + +Get a list of reactions from a comment of an issue + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long id = 789L; // Long | id of the comment to edit +try { + List result = apiInstance.issueGetCommentReactions(owner, repo, id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueGetCommentReactions"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **id** | **Long**| id of the comment to edit | + +### Return type + +[**List<Reaction>**](Reaction.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **issueGetComments** +> List<Comment> issueGetComments(owner, repo, index, since, before) + +List all comments on an issue + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long index = 789L; // Long | index of the issue +OffsetDateTime since = OffsetDateTime.now(); // OffsetDateTime | if provided, only comments updated since the specified time are returned. +OffsetDateTime before = OffsetDateTime.now(); // OffsetDateTime | if provided, only comments updated before the provided time are returned. +try { + List result = apiInstance.issueGetComments(owner, repo, index, since, before); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueGetComments"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **index** | **Long**| index of the issue | + **since** | **OffsetDateTime**| if provided, only comments updated since the specified time are returned. | [optional] + **before** | **OffsetDateTime**| if provided, only comments updated before the provided time are returned. | [optional] + +### Return type + +[**List<Comment>**](Comment.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + + +# **issueGetIssue** +> Issue issueGetIssue(owner, repo, index) + +Get an issue ### Example ```java @@ -1298,6 +2607,12 @@ SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //SudoParam.setApiKeyPrefix("Token"); +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); Token.setApiKey("YOUR API KEY"); @@ -1307,13 +2622,12 @@ Token.setApiKey("YOUR API KEY"); IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo -Long index = 789L; // Long | index of the issue to create or update a deadline on -EditDeadlineOption body = new EditDeadlineOption(); // EditDeadlineOption | +Long index = 789L; // Long | index of the issue to get try { - IssueDeadline result = apiInstance.issueEditIssueDeadline(owner, repo, index, body); + Issue result = apiInstance.issueGetIssue(owner, repo, index); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling IssueApi#issueEditIssueDeadline"); + System.err.println("Exception when calling IssueApi#issueGetIssue"); e.printStackTrace(); } ``` @@ -1324,27 +2638,214 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | - **index** | **Long**| index of the issue to create or update a deadline on | - **body** | [**EditDeadlineOption**](EditDeadlineOption.md)| | [optional] + **index** | **Long**| index of the issue to get | ### Return type -[**IssueDeadline**](IssueDeadline.md) +[**Issue**](Issue.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + + +# **issueGetIssueReactions** +> List<Reaction> issueGetIssueReactions(owner, repo, index, page, limit) + +Get a list reactions of an issue + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long index = 789L; // Long | index of the issue +Integer page = 56; // Integer | page number of results to return (1-based) +Integer limit = 56; // Integer | page size of results +try { + List result = apiInstance.issueGetIssueReactions(owner, repo, index, page, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueGetIssueReactions"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **index** | **Long**| index of the issue | + **page** | **Integer**| page number of results to return (1-based) | [optional] + **limit** | **Integer**| page size of results | [optional] + +### Return type + +[**List<Reaction>**](Reaction.md) ### Authorization -[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json - -# **issueEditLabel** -> Label issueEditLabel(owner, repo, id, body) + +# **issueGetLabel** +> Label issueGetLabel(owner, repo, id) -Update a label +Get a single label + +### Example +```java +// Import classes: +//import io.gitea.ApiClient; +//import io.gitea.ApiException; +//import io.gitea.Configuration; +//import io.gitea.auth.*; +//import io.gitea.api.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long id = 789L; // Long | id of the label to get +try { + Label result = apiInstance.issueGetLabel(owner, repo, id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueGetLabel"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **id** | **Long**| id of the label to get | + +### Return type + +[**Label**](Label.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: application/json + + +# **issueGetLabels** +> List<Label> issueGetLabels(owner, repo, index) + +Get an issue's labels ### Example ```java @@ -1384,7 +2885,13 @@ SudoHeader.setApiKey("YOUR API KEY"); ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); SudoParam.setApiKey("YOUR API KEY"); // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//SudoParam.setApiKeyPrefix("Token"); +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); // Configure API key authorization: Token ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); @@ -1395,13 +2902,12 @@ Token.setApiKey("YOUR API KEY"); IssueApi apiInstance = new IssueApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo -Long id = 789L; // Long | id of the label to edit -EditLabelOption body = new EditLabelOption(); // EditLabelOption | +Long index = 789L; // Long | index of the issue try { - Label result = apiInstance.issueEditLabel(owner, repo, id, body); + List