diff --git a/docs/EditRepoOption.md b/docs/EditRepoOption.md
index a478d0b..e1cd7bc 100644
--- a/docs/EditRepoOption.md
+++ b/docs/EditRepoOption.md
@@ -32,5 +32,6 @@ Name | Type | Description | Notes
**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]
+**projectsMode** | **String** | `repo` to only allow repo-level projects, `owner` to only allow owner projects, `all` to allow both. | [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/IssueFormField.md b/docs/IssueFormField.md
index 7139bf4..4d7e0d7 100644
--- a/docs/IssueFormField.md
+++ b/docs/IssueFormField.md
@@ -7,3 +7,4 @@ Name | Type | Description | Notes
**id** | **String** | | [optional]
**type** | **String** | | [optional]
**validations** | **Map<String, Object>** | | [optional]
+**visible** | **List<String>** | | [optional]
diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md
index 04cd3c1..081bef7 100644
--- a/docs/OrganizationApi.md
+++ b/docs/OrganizationApi.md
@@ -52,6 +52,10 @@ Method | HTTP request | Description
[**orgRemoveTeamMember**](OrganizationApi.md#orgRemoveTeamMember) | **DELETE** teams/{id}/members/{username} | Remove a team member
[**orgRemoveTeamRepository**](OrganizationApi.md#orgRemoveTeamRepository) | **DELETE** teams/{id}/repos/{org}/{repo} | Remove a repository from a team
[**orgUpdateAvatar**](OrganizationApi.md#orgUpdateAvatar) | **POST** orgs/{org}/avatar | Update Avatar
+[**organizationBlockUser**](OrganizationApi.md#organizationBlockUser) | **PUT** orgs/{org}/blocks/{username} | Block a user
+[**organizationCheckUserBlock**](OrganizationApi.md#organizationCheckUserBlock) | **GET** orgs/{org}/blocks/{username} | Check if a user is blocked by the organization
+[**organizationListBlocks**](OrganizationApi.md#organizationListBlocks) | **GET** orgs/{org}/blocks | List users blocked by the organization
+[**organizationUnblockUser**](OrganizationApi.md#organizationUnblockUser) | **DELETE** orgs/{org}/blocks/{username} | Unblock a user
[**teamSearch**](OrganizationApi.md#teamSearch) | **GET** orgs/{org}/teams/search | Search for teams within an organization
[**updateOrgSecret**](OrganizationApi.md#updateOrgSecret) | **PUT** orgs/{org}/actions/secrets/{secretname} | Create or Update a secret value in an organization
@@ -4353,6 +4357,366 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: Not defined
+
+# **organizationBlockUser**
+> Void organizationBlockUser(org, username, note)
+
+Block 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.OrganizationApi;
+
+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");
+
+OrganizationApi apiInstance = new OrganizationApi();
+String org = "org_example"; // String | name of the organization
+String username = "username_example"; // String | user to block
+String note = "note_example"; // String | optional note for the block
+try {
+ Void result = apiInstance.organizationBlockUser(org, username, note);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#organizationBlockUser");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org** | **String**| name of the organization |
+ **username** | **String**| user to block |
+ **note** | **String**| optional note for the block | [optional]
+
+### 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
+
+
+# **organizationCheckUserBlock**
+> Void organizationCheckUserBlock(org, username)
+
+Check if a user is blocked by the 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.OrganizationApi;
+
+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");
+
+OrganizationApi apiInstance = new OrganizationApi();
+String org = "org_example"; // String | name of the organization
+String username = "username_example"; // String | user to check
+try {
+ Void result = apiInstance.organizationCheckUserBlock(org, username);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#organizationCheckUserBlock");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org** | **String**| name of the organization |
+ **username** | **String**| user to check |
+
+### 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
+
+
+# **organizationListBlocks**
+> List<User> organizationListBlocks(org, page, limit)
+
+List users blocked by the 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.OrganizationApi;
+
+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");
+
+OrganizationApi apiInstance = new OrganizationApi();
+String org = "org_example"; // String | name of the organization
+Integer page = 56; // Integer | page number of results to return (1-based)
+Integer limit = 56; // Integer | page size of results
+try {
+ List result = apiInstance.organizationListBlocks(org, page, limit);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#organizationListBlocks");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org** | **String**| name of the organization |
+ **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
+
+
+# **organizationUnblockUser**
+> Void organizationUnblockUser(org, username)
+
+Unblock 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.OrganizationApi;
+
+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");
+
+OrganizationApi apiInstance = new OrganizationApi();
+String org = "org_example"; // String | name of the organization
+String username = "username_example"; // String | user to unblock
+try {
+ Void result = apiInstance.organizationUnblockUser(org, username);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#organizationUnblockUser");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org** | **String**| name of the organization |
+ **username** | **String**| user to unblock |
+
+### 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
+
# **teamSearch**
> InlineResponse200 teamSearch(org, q, includeDesc, page, limit)
diff --git a/docs/Repository.md b/docs/Repository.md
index 4170bba..a4b234d 100644
--- a/docs/Repository.md
+++ b/docs/Repository.md
@@ -52,6 +52,7 @@ Name | Type | Description | Notes
**parent** | [**Repository**](Repository.md) | | [optional]
**permissions** | [**Permission**](Permission.md) | | [optional]
**_private** | **Boolean** | | [optional]
+**projectsMode** | **String** | | [optional]
**releaseCounter** | **Long** | | [optional]
**repoTransfer** | [**RepoTransfer**](RepoTransfer.md) | | [optional]
**size** | **Long** | | [optional]
diff --git a/docs/UserApi.md b/docs/UserApi.md
index bb30bfb..50ae15e 100644
--- a/docs/UserApi.md
+++ b/docs/UserApi.md
@@ -11,7 +11,9 @@ Method | HTTP request | Description
[**updateUserSecret**](UserApi.md#updateUserSecret) | **PUT** user/actions/secrets/{secretname} | Create or Update a secret value in a user scope
[**updateUserSettings**](UserApi.md#updateUserSettings) | **PATCH** user/settings | Update user settings
[**userAddEmail**](UserApi.md#userAddEmail) | **POST** user/emails | Add email addresses
+[**userBlockUser**](UserApi.md#userBlockUser) | **PUT** user/blocks/{username} | Block a user
[**userCheckFollowing**](UserApi.md#userCheckFollowing) | **GET** users/{username}/following/{target} | Check if one user is following another user
+[**userCheckUserBlock**](UserApi.md#userCheckUserBlock) | **GET** user/blocks/{username} | Check if a user is blocked by the authenticated user
[**userCreateHook**](UserApi.md#userCreateHook) | **POST** user/hooks | Create a hook
[**userCreateOAuth2Application**](UserApi.md#userCreateOAuth2Application) | **POST** user/applications/oauth2 | creates a new OAuth2 application
[**userCreateToken**](UserApi.md#userCreateToken) | **POST** users/{username}/tokens | Create an access token
@@ -51,6 +53,7 @@ Method | HTTP request | Description
[**userGetStopWatches**](UserApi.md#userGetStopWatches) | **GET** user/stopwatches | Get list of all existing stopwatches
[**userGetTokens**](UserApi.md#userGetTokens) | **GET** users/{username}/tokens | List the authenticated user's access tokens
[**userListActivityFeeds**](UserApi.md#userListActivityFeeds) | **GET** users/{username}/activities/feeds | List a user's activity feeds
+[**userListBlocks**](UserApi.md#userListBlocks) | **GET** user/blocks | List users blocked by the authenticated user
[**userListEmails**](UserApi.md#userListEmails) | **GET** user/emails | List the authenticated user's email addresses
[**userListFollowers**](UserApi.md#userListFollowers) | **GET** users/{username}/followers | List the given user's followers
[**userListFollowing**](UserApi.md#userListFollowing) | **GET** users/{username}/following | List the users that the given user is following
@@ -62,6 +65,7 @@ Method | HTTP request | Description
[**userListSubscriptions**](UserApi.md#userListSubscriptions) | **GET** users/{username}/subscriptions | List the repositories watched by a user
[**userListTeams**](UserApi.md#userListTeams) | **GET** user/teams | List all the teams a user belongs to
[**userSearch**](UserApi.md#userSearch) | **GET** users/search | Search for users
+[**userUnblockUser**](UserApi.md#userUnblockUser) | **DELETE** user/blocks/{username} | Unblock a user
[**userUpdateAvatar**](UserApi.md#userUpdateAvatar) | **POST** user/avatar | Update Avatar
[**userUpdateOAuth2Application**](UserApi.md#userUpdateOAuth2Application) | **PATCH** user/applications/oauth2/{id} | update an OAuth2 Application, this includes regenerating the client secret
[**userVerifyGPGKey**](UserApi.md#userVerifyGPGKey) | **POST** user/gpg_key_verify | Verify a GPG key
@@ -669,6 +673,95 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
+
+# **userBlockUser**
+> Void userBlockUser(username, note)
+
+Block 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.UserApi;
+
+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");
+
+UserApi apiInstance = new UserApi();
+String username = "username_example"; // String | user to block
+String note = "note_example"; // String | optional note for the block
+try {
+ Void result = apiInstance.userBlockUser(username, note);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#userBlockUser");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **username** | **String**| user to block |
+ **note** | **String**| optional note for the block | [optional]
+
+### 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
+
# **userCheckFollowing**
> Void userCheckFollowing(username, target)
@@ -753,6 +846,93 @@ Name | Type | Description | Notes
[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
+
+
+# **userCheckUserBlock**
+> Void userCheckUserBlock(username)
+
+Check if a user is blocked by the authenticated 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.UserApi;
+
+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");
+
+UserApi apiInstance = new UserApi();
+String username = "username_example"; // String | user to check
+try {
+ Void result = apiInstance.userCheckUserBlock(username);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#userCheckUserBlock");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **username** | **String**| user to check |
+
+### 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
@@ -4184,6 +4364,95 @@ Name | Type | Description | Notes
[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
+
+
+# **userListBlocks**
+> List<User> userListBlocks(page, limit)
+
+List users blocked by the authenticated 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.UserApi;
+
+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");
+
+UserApi apiInstance = new UserApi();
+Integer page = 56; // Integer | page number of results to return (1-based)
+Integer limit = 56; // Integer | page size of results
+try {
+ List result = apiInstance.userListBlocks(page, limit);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#userListBlocks");
+ 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
@@ -5182,6 +5451,93 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/json
+
+# **userUnblockUser**
+> Void userUnblockUser(username)
+
+Unblock 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.UserApi;
+
+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");
+
+UserApi apiInstance = new UserApi();
+String username = "username_example"; // String | user to unblock
+try {
+ Void result = apiInstance.userUnblockUser(username);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#userUnblockUser");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **username** | **String**| user to unblock |
+
+### 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
+
# **userUpdateAvatar**
> Void userUpdateAvatar(body)
diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java
index 848bad5..3ee360e 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java
@@ -608,6 +608,56 @@ public interface OrganizationApi {
Call orgUpdateAvatar(
@retrofit2.http.Path("org") String org, @retrofit2.http.Body UpdateUserAvatarOption body);
+ /**
+ * Block a user
+ *
+ * @param org name of the organization (required)
+ * @param username user to block (required)
+ * @param note optional note for the block (optional)
+ * @return Call<Void>
+ */
+ @PUT("orgs/{org}/blocks/{username}")
+ Call organizationBlockUser(
+ @retrofit2.http.Path("org") String org,
+ @retrofit2.http.Path("username") String username,
+ @retrofit2.http.Query("note") String note);
+
+ /**
+ * Check if a user is blocked by the organization
+ *
+ * @param org name of the organization (required)
+ * @param username user to check (required)
+ * @return Call<Void>
+ */
+ @GET("orgs/{org}/blocks/{username}")
+ Call organizationCheckUserBlock(
+ @retrofit2.http.Path("org") String org, @retrofit2.http.Path("username") String username);
+
+ /**
+ * List users blocked by the organization
+ *
+ * @param org name of the organization (required)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @return Call<List<User>>
+ */
+ @GET("orgs/{org}/blocks")
+ Call> organizationListBlocks(
+ @retrofit2.http.Path("org") String org,
+ @retrofit2.http.Query("page") Integer page,
+ @retrofit2.http.Query("limit") Integer limit);
+
+ /**
+ * Unblock a user
+ *
+ * @param org name of the organization (required)
+ * @param username user to unblock (required)
+ * @return Call<Void>
+ */
+ @DELETE("orgs/{org}/blocks/{username}")
+ Call organizationUnblockUser(
+ @retrofit2.http.Path("org") String org, @retrofit2.http.Path("username") String username);
+
/**
* Search for teams within an organization
*
diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java
index 8b39c9a..df38c89 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java
@@ -102,6 +102,17 @@ public interface UserApi {
@POST("user/emails")
Call> userAddEmail(@retrofit2.http.Body CreateEmailOption body);
+ /**
+ * Block a user
+ *
+ * @param username user to block (required)
+ * @param note optional note for the block (optional)
+ * @return Call<Void>
+ */
+ @PUT("user/blocks/{username}")
+ Call userBlockUser(
+ @retrofit2.http.Path("username") String username, @retrofit2.http.Query("note") String note);
+
/**
* Check if one user is following another user
*
@@ -114,6 +125,15 @@ public interface UserApi {
@retrofit2.http.Path("username") String username,
@retrofit2.http.Path("target") String target);
+ /**
+ * Check if a user is blocked by the authenticated user
+ *
+ * @param username user to check (required)
+ * @return Call<Void>
+ */
+ @GET("user/blocks/{username}")
+ Call userCheckUserBlock(@retrofit2.http.Path("username") String username);
+
/**
* Create a hook
*
@@ -527,6 +547,17 @@ public interface UserApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
+ /**
+ * List users blocked by the authenticated user
+ *
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @return Call<List<User>>
+ */
+ @GET("user/blocks")
+ Call> userListBlocks(
+ @retrofit2.http.Query("page") Integer page, @retrofit2.http.Query("limit") Integer limit);
+
/**
* List the authenticated user's email addresses
*
@@ -673,6 +704,15 @@ public interface UserApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
+ /**
+ * Unblock a user
+ *
+ * @param username user to unblock (required)
+ * @return Call<Void>
+ */
+ @DELETE("user/blocks/{username}")
+ Call userUnblockUser(@retrofit2.http.Path("username") String username);
+
/**
* Update Avatar
*
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/EditRepoOption.java b/src/main/java/org/gitnex/tea4j/v2/models/EditRepoOption.java
index cb6c647..2ea9228 100644
--- a/src/main/java/org/gitnex/tea4j/v2/models/EditRepoOption.java
+++ b/src/main/java/org/gitnex/tea4j/v2/models/EditRepoOption.java
@@ -109,6 +109,9 @@ public class EditRepoOption implements Serializable {
@SerializedName("private")
private Boolean _private = null;
+ @SerializedName("projects_mode")
+ private String projectsMode = null;
+
@SerializedName("template")
private Boolean template = null;
@@ -715,6 +718,29 @@ public class EditRepoOption implements Serializable {
this._private = _private;
}
+ public EditRepoOption projectsMode(String projectsMode) {
+ this.projectsMode = projectsMode;
+ return this;
+ }
+
+ /**
+ * `repo` to only allow repo-level projects, `owner` to only allow owner
+ * projects, `all` to allow both.
+ *
+ * @return projectsMode
+ */
+ @Schema(
+ description =
+ "`repo` to only allow repo-level projects, `owner` to only allow owner projects, `all` to"
+ + " allow both.")
+ public String getProjectsMode() {
+ return projectsMode;
+ }
+
+ public void setProjectsMode(String projectsMode) {
+ this.projectsMode = projectsMode;
+ }
+
public EditRepoOption template(Boolean template) {
this.template = template;
return this;
@@ -797,6 +823,7 @@ public class EditRepoOption implements Serializable {
&& Objects.equals(this.mirrorInterval, editRepoOption.mirrorInterval)
&& Objects.equals(this.name, editRepoOption.name)
&& Objects.equals(this._private, editRepoOption._private)
+ && Objects.equals(this.projectsMode, editRepoOption.projectsMode)
&& Objects.equals(this.template, editRepoOption.template)
&& Objects.equals(this.website, editRepoOption.website);
}
@@ -833,6 +860,7 @@ public class EditRepoOption implements Serializable {
mirrorInterval,
name,
_private,
+ projectsMode,
template,
website);
}
@@ -883,6 +911,7 @@ public class EditRepoOption implements Serializable {
sb.append(" mirrorInterval: ").append(toIndentedString(mirrorInterval)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" _private: ").append(toIndentedString(_private)).append("\n");
+ sb.append(" projectsMode: ").append(toIndentedString(projectsMode)).append("\n");
sb.append(" template: ").append(toIndentedString(template)).append("\n");
sb.append(" website: ").append(toIndentedString(website)).append("\n");
sb.append("}");
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/IssueFormField.java b/src/main/java/org/gitnex/tea4j/v2/models/IssueFormField.java
index 81d3546..58a195c 100644
--- a/src/main/java/org/gitnex/tea4j/v2/models/IssueFormField.java
+++ b/src/main/java/org/gitnex/tea4j/v2/models/IssueFormField.java
@@ -15,7 +15,9 @@ package org.gitnex.tea4j.v2.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
+import java.util.ArrayList;
import java.util.HashMap;
+import java.util.List;
import java.util.Map;
import java.util.Objects;
@@ -36,6 +38,9 @@ public class IssueFormField implements Serializable {
@SerializedName("validations")
private Map validations = null;
+ @SerializedName("visible")
+ private List visible = null;
+
public IssueFormField attributes(Map attributes) {
this.attributes = attributes;
return this;
@@ -128,6 +133,33 @@ public class IssueFormField implements Serializable {
this.validations = validations;
}
+ public IssueFormField visible(List visible) {
+ this.visible = visible;
+ return this;
+ }
+
+ public IssueFormField addVisibleItem(String visibleItem) {
+ if (this.visible == null) {
+ this.visible = new ArrayList<>();
+ }
+ this.visible.add(visibleItem);
+ return this;
+ }
+
+ /**
+ * Get visible
+ *
+ * @return visible
+ */
+ @Schema(description = "")
+ public List getVisible() {
+ return visible;
+ }
+
+ public void setVisible(List visible) {
+ this.visible = visible;
+ }
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -140,12 +172,13 @@ public class IssueFormField implements Serializable {
return Objects.equals(this.attributes, issueFormField.attributes)
&& Objects.equals(this.id, issueFormField.id)
&& Objects.equals(this.type, issueFormField.type)
- && Objects.equals(this.validations, issueFormField.validations);
+ && Objects.equals(this.validations, issueFormField.validations)
+ && Objects.equals(this.visible, issueFormField.visible);
}
@Override
public int hashCode() {
- return Objects.hash(attributes, id, type, validations);
+ return Objects.hash(attributes, id, type, validations, visible);
}
@Override
@@ -157,6 +190,7 @@ public class IssueFormField implements Serializable {
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" validations: ").append(toIndentedString(validations)).append("\n");
+ sb.append(" visible: ").append(toIndentedString(visible)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/Repository.java b/src/main/java/org/gitnex/tea4j/v2/models/Repository.java
index f74d4d9..76a2a97 100644
--- a/src/main/java/org/gitnex/tea4j/v2/models/Repository.java
+++ b/src/main/java/org/gitnex/tea4j/v2/models/Repository.java
@@ -220,6 +220,9 @@ public class Repository implements Serializable {
@SerializedName("private")
private Boolean _private = null;
+ @SerializedName("projects_mode")
+ private String projectsMode = null;
+
@SerializedName("release_counter")
private Long releaseCounter = null;
@@ -1181,6 +1184,25 @@ public class Repository implements Serializable {
this._private = _private;
}
+ public Repository projectsMode(String projectsMode) {
+ this.projectsMode = projectsMode;
+ return this;
+ }
+
+ /**
+ * Get projectsMode
+ *
+ * @return projectsMode
+ */
+ @Schema(description = "")
+ public String getProjectsMode() {
+ return projectsMode;
+ }
+
+ public void setProjectsMode(String projectsMode) {
+ this.projectsMode = projectsMode;
+ }
+
public Repository releaseCounter(Long releaseCounter) {
this.releaseCounter = releaseCounter;
return this;
@@ -1430,6 +1452,7 @@ public class Repository implements Serializable {
&& Objects.equals(this.parent, repository.parent)
&& Objects.equals(this.permissions, repository.permissions)
&& Objects.equals(this._private, repository._private)
+ && Objects.equals(this.projectsMode, repository.projectsMode)
&& Objects.equals(this.releaseCounter, repository.releaseCounter)
&& Objects.equals(this.repoTransfer, repository.repoTransfer)
&& Objects.equals(this.size, repository.size)
@@ -1494,6 +1517,7 @@ public class Repository implements Serializable {
parent,
permissions,
_private,
+ projectsMode,
releaseCounter,
repoTransfer,
size,
@@ -1570,6 +1594,7 @@ public class Repository implements Serializable {
sb.append(" parent: ").append(toIndentedString(parent)).append("\n");
sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n");
sb.append(" _private: ").append(toIndentedString(_private)).append("\n");
+ sb.append(" projectsMode: ").append(toIndentedString(projectsMode)).append("\n");
sb.append(" releaseCounter: ").append(toIndentedString(releaseCounter)).append("\n");
sb.append(" repoTransfer: ").append(toIndentedString(repoTransfer)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");