diff --git a/docs/APIError.md b/docs/APIError.md new file mode 100644 index 0000000..19c59bb --- /dev/null +++ b/docs/APIError.md @@ -0,0 +1,7 @@ +# APIError + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] +**url** | **String** | | [optional] diff --git a/docs/AccessToken.md b/docs/AccessToken.md new file mode 100644 index 0000000..4af6b6f --- /dev/null +++ b/docs/AccessToken.md @@ -0,0 +1,9 @@ +# AccessToken + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**name** | **String** | | [optional] +**sha1** | **String** | | [optional] +**tokenLastEight** | **String** | | [optional] diff --git a/docs/AddCollaboratorOption.md b/docs/AddCollaboratorOption.md new file mode 100644 index 0000000..d6dcfe9 --- /dev/null +++ b/docs/AddCollaboratorOption.md @@ -0,0 +1,6 @@ +# AddCollaboratorOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**permission** | **String** | | [optional] diff --git a/docs/AddTimeOption.md b/docs/AddTimeOption.md new file mode 100644 index 0000000..603f5a2 --- /dev/null +++ b/docs/AddTimeOption.md @@ -0,0 +1,8 @@ +# AddTimeOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | [**Date**](Date.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 new file mode 100644 index 0000000..fdf8c87 --- /dev/null +++ b/docs/AdminApi.md @@ -0,0 +1,1263 @@ +# AdminApi + +All URIs are relative to *http://{{AppSubUrl | JSEscape | Safe}}/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 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** +> Void adminAdoptRepository(owner, repo) + +Adopt unadopted files as a repository + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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 { + Void result = apiInstance.adminAdoptRepository(owner, repo); + System.out.println(result); +} 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 + +[**Void**](.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**: Not defined + - **Accept**: Not defined + + +# **adminCreateOrg** +> Organization adminCreateOrg(body, username) + +Create an organization + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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(); +CreateOrgOption body = new CreateOrgOption(); // CreateOrgOption | +String username = "username_example"; // String | username of the user that will own the created organization +try { + Organization result = apiInstance.adminCreateOrg(body, username); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminCreateOrg"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**CreateOrgOption**](CreateOrgOption.md)| | + **username** | **String**| username of the user that will own the created organization | + +### Return type + +[**Organization**](Organization.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 + + +# **adminCreatePublicKey** +> PublicKey adminCreatePublicKey(username, body) + +Add a public key on behalf of a user + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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 username = "username_example"; // String | username of the user +CreateKeyOption body = new CreateKeyOption(); // CreateKeyOption | +try { + PublicKey result = apiInstance.adminCreatePublicKey(username, body); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminCreatePublicKey"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| username of the user | + **body** | [**CreateKeyOption**](CreateKeyOption.md)| | [optional] + +### Return type + +[**PublicKey**](PublicKey.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 + + +# **adminCreateRepo** +> Repository adminCreateRepo(body, username) + +Create a repository on behalf of a user + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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(); +CreateRepoOption body = new CreateRepoOption(); // CreateRepoOption | +String username = "username_example"; // String | username of the user. This user will own the created repository +try { + Repository result = apiInstance.adminCreateRepo(body, username); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminCreateRepo"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**CreateRepoOption**](CreateRepoOption.md)| | + **username** | **String**| username of the user. This user will own the created repository | + +### Return type + +[**Repository**](Repository.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 + + +# **adminCreateUser** +> User adminCreateUser(body) + +Create a user + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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(); +CreateUserOption body = new CreateUserOption(); // CreateUserOption | +try { + User result = apiInstance.adminCreateUser(body); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminCreateUser"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**CreateUserOption**](CreateUserOption.md)| | [optional] + +### Return type + +[**User**](User.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 + + +# **adminCronList** +> List<Cron> adminCronList(page, limit) + +List cron tasks + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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**: Not defined + - **Accept**: application/json + + +# **adminCronRun** +> Void adminCronRun(task) + +Run cron task + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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 { + Void result = apiInstance.adminCronRun(task); + System.out.println(result); +} 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 + +[**Void**](.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**: Not defined + - **Accept**: Not defined + + +# **adminDeleteUnadoptedRepository** +> Void adminDeleteUnadoptedRepository(owner, repo) + +Delete unadopted files + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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 { + Void result = apiInstance.adminDeleteUnadoptedRepository(owner, repo); + System.out.println(result); +} 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 + +[**Void**](.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**: Not defined + - **Accept**: Not defined + + +# **adminDeleteUser** +> Void adminDeleteUser(username) + +Delete a user + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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 username = "username_example"; // String | username of user to delete +try { + Void result = apiInstance.adminDeleteUser(username); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminDeleteUser"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| username of user to delete | + +### Return type + +[**Void**](.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**: Not defined + - **Accept**: Not defined + + +# **adminDeleteUserPublicKey** +> Void adminDeleteUserPublicKey(username, id) + +Delete a user's public key + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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 username = "username_example"; // String | username of user +Long id = 789L; // Long | id of the key to delete +try { + Void result = apiInstance.adminDeleteUserPublicKey(username, id); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminDeleteUserPublicKey"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| username of user | + **id** | **Long**| id of the key to delete | + +### Return type + +[**Void**](.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**: Not defined + - **Accept**: Not defined + + +# **adminEditUser** +> User adminEditUser(username, body) + +Edit an existing user + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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 username = "username_example"; // String | username of user to edit +EditUserOption body = new EditUserOption(); // EditUserOption | +try { + User result = apiInstance.adminEditUser(username, body); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminEditUser"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **String**| username of user to edit | + **body** | [**EditUserOption**](EditUserOption.md)| | [optional] + +### Return type + +[**User**](User.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 + + +# **adminGetAllOrgs** +> List<Organization> adminGetAllOrgs(page, limit) + +List all organizations + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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.adminGetAllOrgs(page, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminGetAllOrgs"); + 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<Organization>**](Organization.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**: Not defined + - **Accept**: application/json + + +# **adminGetAllUsers** +> List<User> adminGetAllUsers(page, limit) + +List all users + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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.adminGetAllUsers(page, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminGetAllUsers"); + 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<User>**](User.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**: Not defined + - **Accept**: application/json + + +# **adminUnadoptedList** +> List<String> adminUnadoptedList(page, limit, pattern) + +List unadopted repositories + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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 + + - **Content-Type**: Not defined + - **Accept**: application/json + diff --git a/docs/AnnotatedTag.md b/docs/AnnotatedTag.md new file mode 100644 index 0000000..7ea8a39 --- /dev/null +++ b/docs/AnnotatedTag.md @@ -0,0 +1,12 @@ +# AnnotatedTag + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] +**object** | [**AnnotatedTagObject**](AnnotatedTagObject.md) | | [optional] +**sha** | **String** | | [optional] +**tag** | **String** | | [optional] +**tagger** | [**CommitUser**](CommitUser.md) | | [optional] +**url** | **String** | | [optional] +**verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional] diff --git a/docs/AnnotatedTagObject.md b/docs/AnnotatedTagObject.md new file mode 100644 index 0000000..f4ba830 --- /dev/null +++ b/docs/AnnotatedTagObject.md @@ -0,0 +1,8 @@ +# AnnotatedTagObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sha** | **String** | | [optional] +**type** | **String** | | [optional] +**url** | **String** | | [optional] diff --git a/docs/Attachment.md b/docs/Attachment.md new file mode 100644 index 0000000..6dbc7a8 --- /dev/null +++ b/docs/Attachment.md @@ -0,0 +1,12 @@ +# Attachment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**browserDownloadUrl** | **String** | | [optional] +**createdAt** | [**Date**](Date.md) | | [optional] +**downloadCount** | **Long** | | [optional] +**id** | **Long** | | [optional] +**name** | **String** | | [optional] +**size** | **Long** | | [optional] +**uuid** | **String** | | [optional] diff --git a/docs/Branch.md b/docs/Branch.md new file mode 100644 index 0000000..99140ea --- /dev/null +++ b/docs/Branch.md @@ -0,0 +1,14 @@ +# Branch + +## Properties +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..d0b701d --- /dev/null +++ b/docs/BranchProtection.md @@ -0,0 +1,29 @@ +# 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** | [**Date**](Date.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] +**unprotectedFilePatterns** | **String** | | [optional] +**updatedAt** | [**Date**](Date.md) | | [optional] diff --git a/docs/CombinedStatus.md b/docs/CombinedStatus.md new file mode 100644 index 0000000..9b883d8 --- /dev/null +++ b/docs/CombinedStatus.md @@ -0,0 +1,12 @@ +# 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/Comment.md b/docs/Comment.md new file mode 100644 index 0000000..31ad569 --- /dev/null +++ b/docs/Comment.md @@ -0,0 +1,15 @@ +# Comment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | **String** | | [optional] +**createdAt** | [**Date**](Date.md) | | [optional] +**htmlUrl** | **String** | | [optional] +**id** | **Long** | | [optional] +**issueUrl** | **String** | | [optional] +**originalAuthor** | **String** | | [optional] +**originalAuthorId** | **Long** | | [optional] +**pullRequestUrl** | **String** | | [optional] +**updatedAt** | [**Date**](Date.md) | | [optional] +**user** | [**User**](User.md) | | [optional] diff --git a/docs/Commit.md b/docs/Commit.md new file mode 100644 index 0000000..9f5043a --- /dev/null +++ b/docs/Commit.md @@ -0,0 +1,14 @@ +# Commit + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**author** | [**User**](User.md) | | [optional] +**commit** | [**RepoCommit**](RepoCommit.md) | | [optional] +**committer** | [**User**](User.md) | | [optional] +**created** | [**Date**](Date.md) | | [optional] +**files** | [**List<CommitAffectedFiles>**](CommitAffectedFiles.md) | | [optional] +**htmlUrl** | **String** | | [optional] +**parents** | [**List<CommitMeta>**](CommitMeta.md) | | [optional] +**sha** | **String** | | [optional] +**url** | **String** | | [optional] diff --git a/docs/CommitAffectedFiles.md b/docs/CommitAffectedFiles.md new file mode 100644 index 0000000..38f2ad0 --- /dev/null +++ b/docs/CommitAffectedFiles.md @@ -0,0 +1,6 @@ +# 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..862c1b4 --- /dev/null +++ b/docs/CommitDateOptions.md @@ -0,0 +1,7 @@ +# CommitDateOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**author** | [**Date**](Date.md) | | [optional] +**committer** | [**Date**](Date.md) | | [optional] diff --git a/docs/CommitMeta.md b/docs/CommitMeta.md new file mode 100644 index 0000000..bba9ec1 --- /dev/null +++ b/docs/CommitMeta.md @@ -0,0 +1,8 @@ +# CommitMeta + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created** | [**Date**](Date.md) | | [optional] +**sha** | **String** | | [optional] +**url** | **String** | | [optional] diff --git a/docs/CommitStatus.md b/docs/CommitStatus.md new file mode 100644 index 0000000..09e92f0 --- /dev/null +++ b/docs/CommitStatus.md @@ -0,0 +1,14 @@ +# CommitStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | **String** | | [optional] +**createdAt** | [**Date**](Date.md) | | [optional] +**creator** | [**User**](User.md) | | [optional] +**description** | **String** | | [optional] +**id** | **Long** | | [optional] +**status** | **String** | | [optional] +**targetUrl** | **String** | | [optional] +**updatedAt** | [**Date**](Date.md) | | [optional] +**url** | **String** | | [optional] diff --git a/docs/CommitUser.md b/docs/CommitUser.md new file mode 100644 index 0000000..f694614 --- /dev/null +++ b/docs/CommitUser.md @@ -0,0 +1,8 @@ +# CommitUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**date** | **String** | | [optional] +**email** | **String** | | [optional] +**name** | **String** | | [optional] diff --git a/docs/ContentsResponse.md b/docs/ContentsResponse.md new file mode 100644 index 0000000..5e88755 --- /dev/null +++ b/docs/ContentsResponse.md @@ -0,0 +1,19 @@ +# ContentsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_links** | [**FileLinksResponse**](FileLinksResponse.md) | | [optional] +**content** | **String** | `content` is populated when `type` is `file`, otherwise null | [optional] +**downloadUrl** | **String** | | [optional] +**encoding** | **String** | `encoding` is populated when `type` is `file`, otherwise null | [optional] +**gitUrl** | **String** | | [optional] +**htmlUrl** | **String** | | [optional] +**name** | **String** | | [optional] +**path** | **String** | | [optional] +**sha** | **String** | | [optional] +**size** | **Long** | | [optional] +**submoduleGitUrl** | **String** | `submodule_git_url` is populated when `type` is `submodule`, otherwise null | [optional] +**target** | **String** | `target` is populated when `type` is `symlink`, otherwise null | [optional] +**type** | **String** | `type` will be `file`, `dir`, `symlink`, or `submodule` | [optional] +**url** | **String** | | [optional] diff --git a/docs/CreateAccessTokenOption.md b/docs/CreateAccessTokenOption.md new file mode 100644 index 0000000..36ca613 --- /dev/null +++ b/docs/CreateAccessTokenOption.md @@ -0,0 +1,6 @@ +# CreateAccessTokenOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] diff --git a/docs/CreateBranchProtectionOption.md b/docs/CreateBranchProtectionOption.md new file mode 100644 index 0000000..8665e50 --- /dev/null +++ b/docs/CreateBranchProtectionOption.md @@ -0,0 +1,27 @@ +# 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] +**unprotectedFilePatterns** | **String** | | [optional] diff --git a/docs/CreateBranchRepoOption.md b/docs/CreateBranchRepoOption.md new file mode 100644 index 0000000..d82d5e3 --- /dev/null +++ b/docs/CreateBranchRepoOption.md @@ -0,0 +1,7 @@ +# 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/CreateEmailOption.md b/docs/CreateEmailOption.md new file mode 100644 index 0000000..f66eb5e --- /dev/null +++ b/docs/CreateEmailOption.md @@ -0,0 +1,6 @@ +# CreateEmailOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emails** | **List<String>** | email addresses to add | [optional] diff --git a/docs/CreateFileOptions.md b/docs/CreateFileOptions.md new file mode 100644 index 0000000..192c18b --- /dev/null +++ b/docs/CreateFileOptions.md @@ -0,0 +1,13 @@ +# CreateFileOptions + +## Properties +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] +**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/CreateForkOption.md b/docs/CreateForkOption.md new file mode 100644 index 0000000..f46ab47 --- /dev/null +++ b/docs/CreateForkOption.md @@ -0,0 +1,7 @@ +# CreateForkOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | name of the forked repository | [optional] +**organization** | **String** | organization name, if forking into an organization | [optional] diff --git a/docs/CreateGPGKeyOption.md b/docs/CreateGPGKeyOption.md new file mode 100644 index 0000000..8eaf2be --- /dev/null +++ b/docs/CreateGPGKeyOption.md @@ -0,0 +1,7 @@ +# CreateGPGKeyOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**armoredPublicKey** | **String** | An armored GPG key to add | +**armoredSignature** | **String** | | [optional] diff --git a/docs/CreateHookOption.md b/docs/CreateHookOption.md new file mode 100644 index 0000000..84ba8a5 --- /dev/null +++ b/docs/CreateHookOption.md @@ -0,0 +1,25 @@ +# CreateHookOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **Boolean** | | [optional] +**branchFilter** | **String** | | [optional] +**config** | [**CreateHookOptionConfig**](CreateHookOptionConfig.md) | | +**events** | **List<String>** | | [optional] +**type** | [**TypeEnum**](#TypeEnum) | | + + +## Enum: TypeEnum +Name | Value +---- | ----- +DINGTALK | "dingtalk" +DISCORD | "discord" +GITEA | "gitea" +GOGS | "gogs" +MSTEAMS | "msteams" +SLACK | "slack" +TELEGRAM | "telegram" +FEISHU | "feishu" +WECHATWORK | "wechatwork" +PACKAGIST | "packagist" diff --git a/docs/CreateHookOptionConfig.md b/docs/CreateHookOptionConfig.md new file mode 100644 index 0000000..8368f55 --- /dev/null +++ b/docs/CreateHookOptionConfig.md @@ -0,0 +1,5 @@ +# CreateHookOptionConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- diff --git a/docs/CreateIssueCommentOption.md b/docs/CreateIssueCommentOption.md new file mode 100644 index 0000000..be1071a --- /dev/null +++ b/docs/CreateIssueCommentOption.md @@ -0,0 +1,6 @@ +# CreateIssueCommentOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | **String** | | diff --git a/docs/CreateIssueOption.md b/docs/CreateIssueOption.md new file mode 100644 index 0000000..b47d74e --- /dev/null +++ b/docs/CreateIssueOption.md @@ -0,0 +1,14 @@ +# CreateIssueOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assignee** | **String** | deprecated | [optional] +**assignees** | **List<String>** | | [optional] +**body** | **String** | | [optional] +**closed** | **Boolean** | | [optional] +**dueDate** | [**Date**](Date.md) | | [optional] +**labels** | **List<Long>** | list of label ids | [optional] +**milestone** | **Long** | milestone id | [optional] +**ref** | **String** | | [optional] +**title** | **String** | | diff --git a/docs/CreateKeyOption.md b/docs/CreateKeyOption.md new file mode 100644 index 0000000..d390a58 --- /dev/null +++ b/docs/CreateKeyOption.md @@ -0,0 +1,8 @@ +# CreateKeyOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **String** | An armored SSH key to add | +**readOnly** | **Boolean** | Describe if the key has only read access or read/write | [optional] +**title** | **String** | Title of the key to add | diff --git a/docs/CreateLabelOption.md b/docs/CreateLabelOption.md new file mode 100644 index 0000000..6c78f1f --- /dev/null +++ b/docs/CreateLabelOption.md @@ -0,0 +1,8 @@ +# CreateLabelOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**color** | **String** | | +**description** | **String** | | [optional] +**name** | **String** | | diff --git a/docs/CreateMilestoneOption.md b/docs/CreateMilestoneOption.md new file mode 100644 index 0000000..c987305 --- /dev/null +++ b/docs/CreateMilestoneOption.md @@ -0,0 +1,16 @@ +# CreateMilestoneOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | [optional] +**dueOn** | [**Date**](Date.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..38357c8 --- /dev/null +++ b/docs/CreateOAuth2ApplicationOptions.md @@ -0,0 +1,7 @@ +# CreateOAuth2ApplicationOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] +**redirectUris** | **List<String>** | | [optional] diff --git a/docs/CreateOrgOption.md b/docs/CreateOrgOption.md new file mode 100644 index 0000000..942cb25 --- /dev/null +++ b/docs/CreateOrgOption.md @@ -0,0 +1,20 @@ +# CreateOrgOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | [optional] +**fullName** | **String** | | [optional] +**location** | **String** | | [optional] +**repoAdminChangeTeamAccess** | **Boolean** | | [optional] +**username** | **String** | | +**visibility** | [**VisibilityEnum**](#VisibilityEnum) | possible values are `public` (default), `limited` or `private` | [optional] +**website** | **String** | | [optional] + + +## Enum: VisibilityEnum +Name | Value +---- | ----- +PUBLIC | "public" +LIMITED | "limited" +PRIVATE | "private" diff --git a/docs/CreatePullRequestOption.md b/docs/CreatePullRequestOption.md new file mode 100644 index 0000000..e5e22c8 --- /dev/null +++ b/docs/CreatePullRequestOption.md @@ -0,0 +1,14 @@ +# CreatePullRequestOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assignee** | **String** | | [optional] +**assignees** | **List<String>** | | [optional] +**base** | **String** | | [optional] +**body** | **String** | | [optional] +**dueDate** | [**Date**](Date.md) | | [optional] +**head** | **String** | | [optional] +**labels** | **List<Long>** | | [optional] +**milestone** | **Long** | | [optional] +**title** | **String** | | [optional] diff --git a/docs/CreatePullReviewComment.md b/docs/CreatePullReviewComment.md new file mode 100644 index 0000000..8f0160e --- /dev/null +++ b/docs/CreatePullReviewComment.md @@ -0,0 +1,9 @@ +# 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..263ec9c --- /dev/null +++ b/docs/CreatePullReviewOptions.md @@ -0,0 +1,9 @@ +# 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/CreateReleaseOption.md b/docs/CreateReleaseOption.md new file mode 100644 index 0000000..e85acc4 --- /dev/null +++ b/docs/CreateReleaseOption.md @@ -0,0 +1,11 @@ +# CreateReleaseOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | **String** | | [optional] +**draft** | **Boolean** | | [optional] +**name** | **String** | | [optional] +**prerelease** | **Boolean** | | [optional] +**tagName** | **String** | | +**targetCommitish** | **String** | | [optional] diff --git a/docs/CreateRepoOption.md b/docs/CreateRepoOption.md new file mode 100644 index 0000000..018f900 --- /dev/null +++ b/docs/CreateRepoOption.md @@ -0,0 +1,25 @@ +# CreateRepoOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**autoInit** | **Boolean** | Whether the repository should be auto-initialized? | [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** | 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/CreateStatusOption.md b/docs/CreateStatusOption.md new file mode 100644 index 0000000..c1d35ef --- /dev/null +++ b/docs/CreateStatusOption.md @@ -0,0 +1,9 @@ +# CreateStatusOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**context** | **String** | | [optional] +**description** | **String** | | [optional] +**state** | **String** | | [optional] +**targetUrl** | **String** | | [optional] diff --git a/docs/CreateTagOption.md b/docs/CreateTagOption.md new file mode 100644 index 0000000..5b07a61 --- /dev/null +++ b/docs/CreateTagOption.md @@ -0,0 +1,8 @@ +# CreateTagOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] +**tagName** | **String** | | +**target** | **String** | | [optional] diff --git a/docs/CreateTeamOption.md b/docs/CreateTeamOption.md new file mode 100644 index 0000000..7dfede8 --- /dev/null +++ b/docs/CreateTeamOption.md @@ -0,0 +1,20 @@ +# CreateTeamOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**canCreateOrgRepo** | **Boolean** | | [optional] +**description** | **String** | | [optional] +**includesAllRepositories** | **Boolean** | | [optional] +**name** | **String** | | +**permission** | [**PermissionEnum**](#PermissionEnum) | | [optional] +**units** | **List<String>** | | [optional] +**unitsMap** | **Map<String, String>** | | [optional] + + +## Enum: PermissionEnum +Name | Value +---- | ----- +READ | "read" +WRITE | "write" +ADMIN | "admin" diff --git a/docs/CreateUserOption.md b/docs/CreateUserOption.md new file mode 100644 index 0000000..6fef421 --- /dev/null +++ b/docs/CreateUserOption.md @@ -0,0 +1,14 @@ +# CreateUserOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **String** | | +**fullName** | **String** | | [optional] +**loginName** | **String** | | [optional] +**mustChangePassword** | **Boolean** | | [optional] +**password** | **String** | | +**sendNotify** | **Boolean** | | [optional] +**sourceId** | **Long** | | [optional] +**username** | **String** | | +**visibility** | **String** | | [optional] diff --git a/docs/CreateWikiPageOptions.md b/docs/CreateWikiPageOptions.md new file mode 100644 index 0000000..3a939b1 --- /dev/null +++ b/docs/CreateWikiPageOptions.md @@ -0,0 +1,8 @@ +# CreateWikiPageOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contentBase64** | **String** | content must be base64 encoded | [optional] +**message** | **String** | optional commit message summarizing the change | [optional] +**title** | **String** | page title. leave empty to keep unchanged | [optional] diff --git a/docs/Cron.md b/docs/Cron.md new file mode 100644 index 0000000..913c2b6 --- /dev/null +++ b/docs/Cron.md @@ -0,0 +1,10 @@ +# Cron + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**execTimes** | **Long** | | [optional] +**name** | **String** | | [optional] +**next** | [**Date**](Date.md) | | [optional] +**prev** | [**Date**](Date.md) | | [optional] +**schedule** | **String** | | [optional] diff --git a/docs/DeleteEmailOption.md b/docs/DeleteEmailOption.md new file mode 100644 index 0000000..dd81160 --- /dev/null +++ b/docs/DeleteEmailOption.md @@ -0,0 +1,6 @@ +# DeleteEmailOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emails** | **List<String>** | email addresses to delete | [optional] diff --git a/docs/DeleteFileOptions.md b/docs/DeleteFileOptions.md new file mode 100644 index 0000000..0d4b392 --- /dev/null +++ b/docs/DeleteFileOptions.md @@ -0,0 +1,13 @@ +# DeleteFileOptions + +## Properties +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/DeployKey.md b/docs/DeployKey.md new file mode 100644 index 0000000..9565250 --- /dev/null +++ b/docs/DeployKey.md @@ -0,0 +1,14 @@ +# DeployKey + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | [**Date**](Date.md) | | [optional] +**fingerprint** | **String** | | [optional] +**id** | **Long** | | [optional] +**key** | **String** | | [optional] +**keyId** | **Long** | | [optional] +**readOnly** | **Boolean** | | [optional] +**repository** | [**Repository**](Repository.md) | | [optional] +**title** | **String** | | [optional] +**url** | **String** | | [optional] diff --git a/docs/DismissPullReviewOptions.md b/docs/DismissPullReviewOptions.md new file mode 100644 index 0000000..dca8173 --- /dev/null +++ b/docs/DismissPullReviewOptions.md @@ -0,0 +1,6 @@ +# DismissPullReviewOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] diff --git a/docs/EditAttachmentOptions.md b/docs/EditAttachmentOptions.md new file mode 100644 index 0000000..6cbd855 --- /dev/null +++ b/docs/EditAttachmentOptions.md @@ -0,0 +1,6 @@ +# EditAttachmentOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] diff --git a/docs/EditBranchProtectionOption.md b/docs/EditBranchProtectionOption.md new file mode 100644 index 0000000..e54af1a --- /dev/null +++ b/docs/EditBranchProtectionOption.md @@ -0,0 +1,26 @@ +# 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] +**unprotectedFilePatterns** | **String** | | [optional] diff --git a/docs/EditDeadlineOption.md b/docs/EditDeadlineOption.md new file mode 100644 index 0000000..d6ec8e3 --- /dev/null +++ b/docs/EditDeadlineOption.md @@ -0,0 +1,6 @@ +# EditDeadlineOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dueDate** | [**Date**](Date.md) | | diff --git a/docs/EditGitHookOption.md b/docs/EditGitHookOption.md new file mode 100644 index 0000000..1936221 --- /dev/null +++ b/docs/EditGitHookOption.md @@ -0,0 +1,6 @@ +# EditGitHookOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **String** | | [optional] diff --git a/docs/EditHookOption.md b/docs/EditHookOption.md new file mode 100644 index 0000000..23baaf0 --- /dev/null +++ b/docs/EditHookOption.md @@ -0,0 +1,9 @@ +# EditHookOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **Boolean** | | [optional] +**branchFilter** | **String** | | [optional] +**config** | **Map<String, String>** | | [optional] +**events** | **List<String>** | | [optional] diff --git a/docs/EditIssueCommentOption.md b/docs/EditIssueCommentOption.md new file mode 100644 index 0000000..cb69191 --- /dev/null +++ b/docs/EditIssueCommentOption.md @@ -0,0 +1,6 @@ +# EditIssueCommentOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | **String** | | diff --git a/docs/EditIssueOption.md b/docs/EditIssueOption.md new file mode 100644 index 0000000..cd03e79 --- /dev/null +++ b/docs/EditIssueOption.md @@ -0,0 +1,14 @@ +# EditIssueOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assignee** | **String** | deprecated | [optional] +**assignees** | **List<String>** | | [optional] +**body** | **String** | | [optional] +**dueDate** | [**Date**](Date.md) | | [optional] +**milestone** | **Long** | | [optional] +**ref** | **String** | | [optional] +**state** | **String** | | [optional] +**title** | **String** | | [optional] +**unsetDueDate** | **Boolean** | | [optional] diff --git a/docs/EditLabelOption.md b/docs/EditLabelOption.md new file mode 100644 index 0000000..ef5e2b1 --- /dev/null +++ b/docs/EditLabelOption.md @@ -0,0 +1,8 @@ +# EditLabelOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**color** | **String** | | [optional] +**description** | **String** | | [optional] +**name** | **String** | | [optional] diff --git a/docs/EditMilestoneOption.md b/docs/EditMilestoneOption.md new file mode 100644 index 0000000..9cee3b1 --- /dev/null +++ b/docs/EditMilestoneOption.md @@ -0,0 +1,9 @@ +# EditMilestoneOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | [optional] +**dueOn** | [**Date**](Date.md) | | [optional] +**state** | **String** | | [optional] +**title** | **String** | | [optional] diff --git a/docs/EditOrgOption.md b/docs/EditOrgOption.md new file mode 100644 index 0000000..7864a0a --- /dev/null +++ b/docs/EditOrgOption.md @@ -0,0 +1,19 @@ +# EditOrgOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | [optional] +**fullName** | **String** | | [optional] +**location** | **String** | | [optional] +**repoAdminChangeTeamAccess** | **Boolean** | | [optional] +**visibility** | [**VisibilityEnum**](#VisibilityEnum) | possible values are `public`, `limited` or `private` | [optional] +**website** | **String** | | [optional] + + +## Enum: VisibilityEnum +Name | Value +---- | ----- +PUBLIC | "public" +LIMITED | "limited" +PRIVATE | "private" diff --git a/docs/EditPullRequestOption.md b/docs/EditPullRequestOption.md new file mode 100644 index 0000000..dce3396 --- /dev/null +++ b/docs/EditPullRequestOption.md @@ -0,0 +1,15 @@ +# EditPullRequestOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assignee** | **String** | | [optional] +**assignees** | **List<String>** | | [optional] +**base** | **String** | | [optional] +**body** | **String** | | [optional] +**dueDate** | [**Date**](Date.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..b9539a1 --- /dev/null +++ b/docs/EditReactionOption.md @@ -0,0 +1,6 @@ +# EditReactionOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **String** | | [optional] diff --git a/docs/EditReleaseOption.md b/docs/EditReleaseOption.md new file mode 100644 index 0000000..fa462fb --- /dev/null +++ b/docs/EditReleaseOption.md @@ -0,0 +1,11 @@ +# EditReleaseOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | **String** | | [optional] +**draft** | **Boolean** | | [optional] +**name** | **String** | | [optional] +**prerelease** | **Boolean** | | [optional] +**tagName** | **String** | | [optional] +**targetCommitish** | **String** | | [optional] diff --git a/docs/EditRepoOption.md b/docs/EditRepoOption.md new file mode 100644 index 0000000..0e0cba2 --- /dev/null +++ b/docs/EditRepoOption.md @@ -0,0 +1,30 @@ +# EditRepoOption + +## 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] +**allowRebaseUpdate** | **Boolean** | either `true` to allow updating pull request branch by rebase, or `false` to prevent it. `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] +**defaultDeleteBranchAfterMerge** | **Boolean** | set to `true` to delete pr branch after merge by default | [optional] +**defaultMergeStyle** | **String** | set to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", or \"squash\". `has_pull_requests` must be `true`. | [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 new file mode 100644 index 0000000..ed8ac04 --- /dev/null +++ b/docs/EditTeamOption.md @@ -0,0 +1,20 @@ +# EditTeamOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**canCreateOrgRepo** | **Boolean** | | [optional] +**description** | **String** | | [optional] +**includesAllRepositories** | **Boolean** | | [optional] +**name** | **String** | | +**permission** | [**PermissionEnum**](#PermissionEnum) | | [optional] +**units** | **List<String>** | | [optional] +**unitsMap** | **Map<String, String>** | | [optional] + + +## Enum: PermissionEnum +Name | Value +---- | ----- +READ | "read" +WRITE | "write" +ADMIN | "admin" diff --git a/docs/EditUserOption.md b/docs/EditUserOption.md new file mode 100644 index 0000000..d36f82b --- /dev/null +++ b/docs/EditUserOption.md @@ -0,0 +1,23 @@ +# EditUserOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **Boolean** | | [optional] +**admin** | **Boolean** | | [optional] +**allowCreateOrganization** | **Boolean** | | [optional] +**allowGitHook** | **Boolean** | | [optional] +**allowImportLocal** | **Boolean** | | [optional] +**description** | **String** | | [optional] +**email** | **String** | | [optional] +**fullName** | **String** | | [optional] +**location** | **String** | | [optional] +**loginName** | **String** | | +**maxRepoCreation** | **Long** | | [optional] +**mustChangePassword** | **Boolean** | | [optional] +**password** | **String** | | [optional] +**prohibitLogin** | **Boolean** | | [optional] +**restricted** | **Boolean** | | [optional] +**sourceId** | **Long** | | +**visibility** | **String** | | [optional] +**website** | **String** | | [optional] diff --git a/docs/Email.md b/docs/Email.md new file mode 100644 index 0000000..039de42 --- /dev/null +++ b/docs/Email.md @@ -0,0 +1,8 @@ +# Email + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **String** | | [optional] +**primary** | **Boolean** | | [optional] +**verified** | **Boolean** | | [optional] diff --git a/docs/ExternalTracker.md b/docs/ExternalTracker.md new file mode 100644 index 0000000..41b567e --- /dev/null +++ b/docs/ExternalTracker.md @@ -0,0 +1,8 @@ +# ExternalTracker + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**externalTrackerFormat** | **String** | External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index. | [optional] +**externalTrackerStyle** | **String** | External Issue Tracker Number Format, either `numeric` or `alphanumeric` | [optional] +**externalTrackerUrl** | **String** | URL of external issue tracker. | [optional] diff --git a/docs/ExternalWiki.md b/docs/ExternalWiki.md new file mode 100644 index 0000000..00fa4db --- /dev/null +++ b/docs/ExternalWiki.md @@ -0,0 +1,6 @@ +# ExternalWiki + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**externalWikiUrl** | **String** | URL of external wiki. | [optional] diff --git a/docs/FileCommitResponse.md b/docs/FileCommitResponse.md new file mode 100644 index 0000000..142414a --- /dev/null +++ b/docs/FileCommitResponse.md @@ -0,0 +1,14 @@ +# FileCommitResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**author** | [**CommitUser**](CommitUser.md) | | [optional] +**committer** | [**CommitUser**](CommitUser.md) | | [optional] +**created** | [**Date**](Date.md) | | [optional] +**htmlUrl** | **String** | | [optional] +**message** | **String** | | [optional] +**parents** | [**List<CommitMeta>**](CommitMeta.md) | | [optional] +**sha** | **String** | | [optional] +**tree** | [**CommitMeta**](CommitMeta.md) | | [optional] +**url** | **String** | | [optional] diff --git a/docs/FileDeleteResponse.md b/docs/FileDeleteResponse.md new file mode 100644 index 0000000..c883bff --- /dev/null +++ b/docs/FileDeleteResponse.md @@ -0,0 +1,8 @@ +# FileDeleteResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commit** | [**FileCommitResponse**](FileCommitResponse.md) | | [optional] +**content** | **Object** | | [optional] +**verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional] diff --git a/docs/FileLinksResponse.md b/docs/FileLinksResponse.md new file mode 100644 index 0000000..ac213f0 --- /dev/null +++ b/docs/FileLinksResponse.md @@ -0,0 +1,8 @@ +# FileLinksResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**git** | **String** | | [optional] +**html** | **String** | | [optional] +**self** | **String** | | [optional] diff --git a/docs/FileResponse.md b/docs/FileResponse.md new file mode 100644 index 0000000..8d8b06e --- /dev/null +++ b/docs/FileResponse.md @@ -0,0 +1,8 @@ +# FileResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commit** | [**FileCommitResponse**](FileCommitResponse.md) | | [optional] +**content** | [**ContentsResponse**](ContentsResponse.md) | | [optional] +**verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional] diff --git a/docs/GPGKey.md b/docs/GPGKey.md new file mode 100644 index 0000000..eddb2e5 --- /dev/null +++ b/docs/GPGKey.md @@ -0,0 +1,18 @@ +# GPGKey + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**canCertify** | **Boolean** | | [optional] +**canEncryptComms** | **Boolean** | | [optional] +**canEncryptStorage** | **Boolean** | | [optional] +**canSign** | **Boolean** | | [optional] +**createdAt** | [**Date**](Date.md) | | [optional] +**emails** | [**List<GPGKeyEmail>**](GPGKeyEmail.md) | | [optional] +**expiresAt** | [**Date**](Date.md) | | [optional] +**id** | **Long** | | [optional] +**keyId** | **String** | | [optional] +**primaryKeyId** | **String** | | [optional] +**publicKey** | **String** | | [optional] +**subkeys** | [**List<GPGKey>**](GPGKey.md) | | [optional] +**verified** | **Boolean** | | [optional] diff --git a/docs/GPGKeyEmail.md b/docs/GPGKeyEmail.md new file mode 100644 index 0000000..69e9694 --- /dev/null +++ b/docs/GPGKeyEmail.md @@ -0,0 +1,7 @@ +# GPGKeyEmail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **String** | | [optional] +**verified** | **Boolean** | | [optional] diff --git a/docs/GeneralAPISettings.md b/docs/GeneralAPISettings.md new file mode 100644 index 0000000..79c7596 --- /dev/null +++ b/docs/GeneralAPISettings.md @@ -0,0 +1,9 @@ +# 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..da9994d --- /dev/null +++ b/docs/GeneralAttachmentSettings.md @@ -0,0 +1,9 @@ +# 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..9779cae --- /dev/null +++ b/docs/GeneralRepoSettings.md @@ -0,0 +1,11 @@ +# GeneralRepoSettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**httpGitDisabled** | **Boolean** | | [optional] +**lfsDisabled** | **Boolean** | | [optional] +**migrationsDisabled** | **Boolean** | | [optional] +**mirrorsDisabled** | **Boolean** | | [optional] +**starsDisabled** | **Boolean** | | [optional] +**timeTrackingDisabled** | **Boolean** | | [optional] diff --git a/docs/GeneralUISettings.md b/docs/GeneralUISettings.md new file mode 100644 index 0000000..cab7428 --- /dev/null +++ b/docs/GeneralUISettings.md @@ -0,0 +1,8 @@ +# GeneralUISettings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowedReactions** | **List<String>** | | [optional] +**customEmojis** | **List<String>** | | [optional] +**defaultTheme** | **String** | | [optional] diff --git a/docs/GenerateRepoOption.md b/docs/GenerateRepoOption.md new file mode 100644 index 0000000..938b524 --- /dev/null +++ b/docs/GenerateRepoOption.md @@ -0,0 +1,15 @@ +# GenerateRepoOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**avatar** | **Boolean** | include avatar of the template repo | [optional] +**description** | **String** | Description of the repository to create | [optional] +**gitContent** | **Boolean** | include git content of default branch in template repo | [optional] +**gitHooks** | **Boolean** | include git hooks in template repo | [optional] +**labels** | **Boolean** | include labels in template repo | [optional] +**name** | **String** | Name of the repository to create | +**owner** | **String** | The organization or person who will own the new repository | +**_private** | **Boolean** | Whether the repository is private | [optional] +**topics** | **Boolean** | include topics in template repo | [optional] +**webhooks** | **Boolean** | include webhooks in template repo | [optional] diff --git a/docs/GitBlobResponse.md b/docs/GitBlobResponse.md new file mode 100644 index 0000000..ebdb911 --- /dev/null +++ b/docs/GitBlobResponse.md @@ -0,0 +1,10 @@ +# GitBlobResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **String** | | [optional] +**encoding** | **String** | | [optional] +**sha** | **String** | | [optional] +**size** | **Long** | | [optional] +**url** | **String** | | [optional] diff --git a/docs/GitEntry.md b/docs/GitEntry.md new file mode 100644 index 0000000..89dc6f5 --- /dev/null +++ b/docs/GitEntry.md @@ -0,0 +1,11 @@ +# GitEntry + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mode** | **String** | | [optional] +**path** | **String** | | [optional] +**sha** | **String** | | [optional] +**size** | **Long** | | [optional] +**type** | **String** | | [optional] +**url** | **String** | | [optional] diff --git a/docs/GitHook.md b/docs/GitHook.md new file mode 100644 index 0000000..2f82018 --- /dev/null +++ b/docs/GitHook.md @@ -0,0 +1,8 @@ +# GitHook + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **String** | | [optional] +**isActive** | **Boolean** | | [optional] +**name** | **String** | | [optional] diff --git a/docs/GitObject.md b/docs/GitObject.md new file mode 100644 index 0000000..fe74857 --- /dev/null +++ b/docs/GitObject.md @@ -0,0 +1,8 @@ +# GitObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sha** | **String** | | [optional] +**type** | **String** | | [optional] +**url** | **String** | | [optional] diff --git a/docs/GitTreeResponse.md b/docs/GitTreeResponse.md new file mode 100644 index 0000000..9d82e50 --- /dev/null +++ b/docs/GitTreeResponse.md @@ -0,0 +1,11 @@ +# GitTreeResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**page** | **Long** | | [optional] +**sha** | **String** | | [optional] +**totalCount** | **Long** | | [optional] +**tree** | [**List<GitEntry>**](GitEntry.md) | | [optional] +**truncated** | **Boolean** | | [optional] +**url** | **String** | | [optional] diff --git a/docs/Hook.md b/docs/Hook.md new file mode 100644 index 0000000..64b236f --- /dev/null +++ b/docs/Hook.md @@ -0,0 +1,12 @@ +# Hook + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **Boolean** | | [optional] +**config** | **Map<String, String>** | | [optional] +**createdAt** | [**Date**](Date.md) | | [optional] +**events** | **List<String>** | | [optional] +**id** | **Long** | | [optional] +**type** | **String** | | [optional] +**updatedAt** | [**Date**](Date.md) | | [optional] diff --git a/docs/IdAssetsBody.md b/docs/IdAssetsBody.md new file mode 100644 index 0000000..4a8306d --- /dev/null +++ b/docs/IdAssetsBody.md @@ -0,0 +1,6 @@ +# IdAssetsBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attachment** | [**File**](File.md) | attachment to upload | diff --git a/docs/Identity.md b/docs/Identity.md new file mode 100644 index 0000000..270dfd5 --- /dev/null +++ b/docs/Identity.md @@ -0,0 +1,7 @@ +# Identity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **String** | | [optional] +**name** | **String** | | [optional] diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md new file mode 100644 index 0000000..37b90f4 --- /dev/null +++ b/docs/InlineResponse200.md @@ -0,0 +1,7 @@ +# InlineResponse200 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List<Team>**](Team.md) | | [optional] +**ok** | **Boolean** | | [optional] diff --git a/docs/InlineResponse2001.md b/docs/InlineResponse2001.md new file mode 100644 index 0000000..02407a3 --- /dev/null +++ b/docs/InlineResponse2001.md @@ -0,0 +1,7 @@ +# InlineResponse2001 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List<User>**](User.md) | | [optional] +**ok** | **Boolean** | | [optional] diff --git a/docs/InternalTracker.md b/docs/InternalTracker.md new file mode 100644 index 0000000..5c846dc --- /dev/null +++ b/docs/InternalTracker.md @@ -0,0 +1,8 @@ +# InternalTracker + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowOnlyContributorsToTrackTime** | **Boolean** | Let only contributors track time (Built-in issue tracker) | [optional] +**enableIssueDependencies** | **Boolean** | Enable dependencies for issues and pull requests (Built-in issue tracker) | [optional] +**enableTimeTracker** | **Boolean** | Enable time tracking (Built-in issue tracker) | [optional] diff --git a/docs/Issue.md b/docs/Issue.md new file mode 100644 index 0000000..9f088a0 --- /dev/null +++ b/docs/Issue.md @@ -0,0 +1,28 @@ +# Issue + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assignee** | [**User**](User.md) | | [optional] +**assignees** | [**List<User>**](User.md) | | [optional] +**body** | **String** | | [optional] +**closedAt** | [**Date**](Date.md) | | [optional] +**comments** | **Long** | | [optional] +**createdAt** | [**Date**](Date.md) | | [optional] +**dueDate** | [**Date**](Date.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** | [**Date**](Date.md) | | [optional] +**url** | **String** | | [optional] +**user** | [**User**](User.md) | | [optional] diff --git a/docs/IssueApi.md b/docs/IssueApi.md new file mode 100644 index 0000000..2d39c24 --- /dev/null +++ b/docs/IssueApi.md @@ -0,0 +1,4555 @@ +# IssueApi + +All URIs are relative to *http://{{AppSubUrl | JSEscape | Safe}}/api/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**issueAddLabel**](IssueApi.md#issueAddLabel) | **POST** repos/{owner}/{repo}/issues/{index}/labels | Add a label to an 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. +[**issueCreateLabel**](IssueApi.md#issueCreateLabel) | **POST** repos/{owner}/{repo}/labels | Create a label +[**issueCreateMilestone**](IssueApi.md#issueCreateMilestone) | **POST** repos/{owner}/{repo}/milestones | Create a milestone +[**issueDelete**](IssueApi.md#issueDelete) | **DELETE** repos/{owner}/{repo}/issues/{index} | Delete an issue +[**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 +[**issueGetCommentsAndTimeline**](IssueApi.md#issueGetCommentsAndTimeline) | **GET** repos/{owner}/{repo}/issues/{index}/timeline | List all comments and events 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 +[**issueGetMilestonesList**](IssueApi.md#issueGetMilestonesList) | **GET** repos/{owner}/{repo}/milestones | Get all of a repository's opened milestones +[**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. +[**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 + + +# **issueAddLabel** +> List<Label> issueAddLabel(owner, repo, index, body) + +Add a label to an issue + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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 +IssueLabelsOption body = new IssueLabelsOption(); // IssueLabelsOption | +try { + List