diff --git a/docs/CreateLabelOption.md b/docs/CreateLabelOption.md
index 3ba5ee3..547f363 100644
--- a/docs/CreateLabelOption.md
+++ b/docs/CreateLabelOption.md
@@ -6,4 +6,5 @@ Name | Type | Description | Notes
**color** | **String** | |
**description** | **String** | | [optional]
**exclusive** | **Boolean** | | [optional]
+**isArchived** | **Boolean** | | [optional]
**name** | **String** | |
diff --git a/docs/CreateOrUpdateSecretOption.md b/docs/CreateOrUpdateSecretOption.md
new file mode 100644
index 0000000..4a0051c
--- /dev/null
+++ b/docs/CreateOrUpdateSecretOption.md
@@ -0,0 +1,6 @@
+# CreateOrUpdateSecretOption
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | **String** | Data of the secret to update |
diff --git a/docs/EditLabelOption.md b/docs/EditLabelOption.md
index 5a5f288..5f8af46 100644
--- a/docs/EditLabelOption.md
+++ b/docs/EditLabelOption.md
@@ -6,4 +6,5 @@ Name | Type | Description | Notes
**color** | **String** | | [optional]
**description** | **String** | | [optional]
**exclusive** | **Boolean** | | [optional]
+**isArchived** | **Boolean** | | [optional]
**name** | **String** | | [optional]
diff --git a/docs/Hook.md b/docs/Hook.md
index d62ab0b..7d546c7 100644
--- a/docs/Hook.md
+++ b/docs/Hook.md
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**active** | **Boolean** | | [optional]
**authorizationHeader** | **String** | | [optional]
+**branchFilter** | **String** | | [optional]
**config** | **Map<String, String>** | | [optional]
**createdAt** | [**Date**](Date.md) | | [optional]
**events** | **List<String>** | | [optional]
diff --git a/docs/Label.md b/docs/Label.md
index 8d09d11..051565d 100644
--- a/docs/Label.md
+++ b/docs/Label.md
@@ -7,5 +7,6 @@ Name | Type | Description | Notes
**description** | **String** | | [optional]
**exclusive** | **Boolean** | | [optional]
**id** | **Long** | | [optional]
+**isArchived** | **Boolean** | | [optional]
**name** | **String** | | [optional]
**url** | **String** | | [optional]
diff --git a/docs/ModelPackage.md b/docs/ModelPackage.md
index 9b19d30..97544e7 100644
--- a/docs/ModelPackage.md
+++ b/docs/ModelPackage.md
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**createdAt** | [**Date**](Date.md) | | [optional]
**creator** | [**User**](User.md) | | [optional]
+**htmlUrl** | **String** | | [optional]
**id** | **Long** | | [optional]
**name** | **String** | | [optional]
**owner** | [**User**](User.md) | | [optional]
diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md
index e5920ae..c67d14f 100644
--- a/docs/OrganizationApi.md
+++ b/docs/OrganizationApi.md
@@ -6,6 +6,7 @@ Method | HTTP request | Description
------------- | ------------- | -------------
[**createOrgRepo**](OrganizationApi.md#createOrgRepo) | **POST** orgs/{org}/repos | Create a repository in an organization
[**createOrgRepoDeprecated**](OrganizationApi.md#createOrgRepoDeprecated) | **POST** org/{org}/repos | Create a repository in an organization
+[**deleteOrgSecret**](OrganizationApi.md#deleteOrgSecret) | **DELETE** orgs/{org}/actions/secrets/{secretname} | Delete a secret in an organization
[**orgAddTeamMember**](OrganizationApi.md#orgAddTeamMember) | **PUT** teams/{id}/members/{username} | Add a team member
[**orgAddTeamRepository**](OrganizationApi.md#orgAddTeamRepository) | **PUT** teams/{id}/repos/{org}/{repo} | Add a repository to a team
[**orgConcealMember**](OrganizationApi.md#orgConcealMember) | **DELETE** orgs/{org}/public_members/{username} | Conceal a user's membership
@@ -31,6 +32,7 @@ Method | HTTP request | Description
[**orgGetUserPermissions**](OrganizationApi.md#orgGetUserPermissions) | **GET** users/{username}/orgs/{org}/permissions | Get user permissions in organization
[**orgIsMember**](OrganizationApi.md#orgIsMember) | **GET** orgs/{org}/members/{username} | Check if a user is a member of an organization
[**orgIsPublicMember**](OrganizationApi.md#orgIsPublicMember) | **GET** orgs/{org}/public_members/{username} | Check if a user is a public member of an organization
+[**orgListActionsSecrets**](OrganizationApi.md#orgListActionsSecrets) | **GET** orgs/{org}/actions/secrets | List an organization's actions secrets
[**orgListActivityFeeds**](OrganizationApi.md#orgListActivityFeeds) | **GET** orgs/{org}/activities/feeds | List an organization's activity feeds
[**orgListCurrentUserOrgs**](OrganizationApi.md#orgListCurrentUserOrgs) | **GET** user/orgs | List the current user's organizations
[**orgListHooks**](OrganizationApi.md#orgListHooks) | **GET** orgs/{org}/hooks | List an organization's webhooks
@@ -50,6 +52,7 @@ Method | HTTP request | Description
[**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
[**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
# **createOrgRepo**
@@ -229,6 +232,95 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
+
+# **deleteOrgSecret**
+> Void deleteOrgSecret(org, secretname)
+
+Delete a secret in 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.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 organization
+String secretname = "secretname_example"; // String | name of the secret
+try {
+ Void result = apiInstance.deleteOrgSecret(org, secretname);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#deleteOrgSecret");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org** | **String**| name of organization |
+ **secretname** | **String**| name of the secret |
+
+### 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
+
# **orgAddTeamMember**
> Void orgAddTeamMember(id, username)
@@ -2448,6 +2540,97 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: Not defined
+
+# **orgListActionsSecrets**
+> List<Secret> orgListActionsSecrets(org, page, limit)
+
+List an organization's actions secrets
+
+### 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.orgListActionsSecrets(org, page, limit);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#orgListActionsSecrets");
+ 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<Secret>**](Secret.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
+
# **orgListActivityFeeds**
> List<Activity> orgListActivityFeeds(org, date, page, limit)
@@ -4177,3 +4360,94 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/json
+
+# **updateOrgSecret**
+> Void updateOrgSecret(org, secretname, body)
+
+Create or Update a secret value in 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.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 organization
+String secretname = "secretname_example"; // String | name of the secret
+CreateOrUpdateSecretOption body = new CreateOrUpdateSecretOption(); // CreateOrUpdateSecretOption |
+try {
+ Void result = apiInstance.updateOrgSecret(org, secretname, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#updateOrgSecret");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org** | **String**| name of organization |
+ **secretname** | **String**| name of the secret |
+ **body** | [**CreateOrUpdateSecretOption**](CreateOrUpdateSecretOption.md)| | [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**: application/json
+ - **Accept**: Not defined
+
diff --git a/docs/PushMirror.md b/docs/PushMirror.md
index 2003340..5571e90 100644
--- a/docs/PushMirror.md
+++ b/docs/PushMirror.md
@@ -3,10 +3,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**created** | **String** | | [optional]
+**created** | [**Date**](Date.md) | | [optional]
**interval** | **String** | | [optional]
**lastError** | **String** | | [optional]
-**lastUpdate** | **String** | | [optional]
+**lastUpdate** | [**Date**](Date.md) | | [optional]
**remoteAddress** | **String** | | [optional]
**remoteName** | **String** | | [optional]
**repoName** | **String** | | [optional]
diff --git a/docs/Release.md b/docs/Release.md
index 5c6f099..a4918f4 100644
--- a/docs/Release.md
+++ b/docs/Release.md
@@ -16,5 +16,6 @@ Name | Type | Description | Notes
**tagName** | **String** | | [optional]
**tarballUrl** | **String** | | [optional]
**targetCommitish** | **String** | | [optional]
+**uploadUrl** | **String** | | [optional]
**url** | **String** | | [optional]
**zipballUrl** | **String** | | [optional]
diff --git a/docs/Repository.md b/docs/Repository.md
index 8ccad89..3acb910 100644
--- a/docs/Repository.md
+++ b/docs/Repository.md
@@ -57,5 +57,6 @@ Name | Type | Description | Notes
**starsCount** | **Long** | | [optional]
**template** | **Boolean** | | [optional]
**updatedAt** | [**Date**](Date.md) | | [optional]
+**url** | **String** | | [optional]
**watchersCount** | **Long** | | [optional]
**website** | **String** | | [optional]
diff --git a/docs/RepositoryApi.md b/docs/RepositoryApi.md
index cbbfdcf..f14d20b 100644
--- a/docs/RepositoryApi.md
+++ b/docs/RepositoryApi.md
@@ -7,6 +7,7 @@ Method | HTTP request | Description
[**acceptRepoTransfer**](RepositoryApi.md#acceptRepoTransfer) | **POST** repos/{owner}/{repo}/transfer/accept | Accept a repo transfer
[**createCurrentUserRepo**](RepositoryApi.md#createCurrentUserRepo) | **POST** user/repos | Create a repository
[**createFork**](RepositoryApi.md#createFork) | **POST** repos/{owner}/{repo}/forks | Fork a repository
+[**deleteRepoSecret**](RepositoryApi.md#deleteRepoSecret) | **DELETE** repos/{owner}/{repo}/actions/secrets/{secretname} | Delete a secret in a repository
[**generateRepo**](RepositoryApi.md#generateRepo) | **POST** repos/{template_owner}/{template_repo}/generate | Create a repository using a template
[**getAnnotatedTag**](RepositoryApi.md#getAnnotatedTag) | **GET** repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags)
[**getBlob**](RepositoryApi.md#getBlob) | **GET** repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository.
@@ -144,6 +145,7 @@ Method | HTTP request | Description
[**repoUpdateTopics**](RepositoryApi.md#repoUpdateTopics) | **PUT** repos/{owner}/{repo}/topics | Replace list of topics for a repository
[**repoValidateIssueConfig**](RepositoryApi.md#repoValidateIssueConfig) | **GET** repos/{owner}/{repo}/issue_config/validate | Returns the validation information for a issue config
[**topicSearch**](RepositoryApi.md#topicSearch) | **GET** topics/search | search topics via keyword
+[**updateRepoSecret**](RepositoryApi.md#updateRepoSecret) | **PUT** repos/{owner}/{repo}/actions/secrets/{secretname} | Create or Update a secret value in a repository
[**userCurrentCheckSubscription**](RepositoryApi.md#userCurrentCheckSubscription) | **GET** repos/{owner}/{repo}/subscription | Check if the current user is watching a repo
[**userCurrentDeleteSubscription**](RepositoryApi.md#userCurrentDeleteSubscription) | **DELETE** repos/{owner}/{repo}/subscription | Unwatch a repo
[**userCurrentPutSubscription**](RepositoryApi.md#userCurrentPutSubscription) | **PUT** repos/{owner}/{repo}/subscription | Watch a repo
@@ -416,6 +418,97 @@ Name | Type | Description | Notes
- **Content-Type**: application/json, text/plain
- **Accept**: application/json
+
+# **deleteRepoSecret**
+> Void deleteRepoSecret(owner, repo, secretname)
+
+Delete a secret in 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.RepositoryApi;
+
+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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repository
+String repo = "repo_example"; // String | name of the repository
+String secretname = "secretname_example"; // String | name of the secret
+try {
+ Void result = apiInstance.deleteRepoSecret(owner, repo, secretname);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#deleteRepoSecret");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repository |
+ **repo** | **String**| name of the repository |
+ **secretname** | **String**| name of the secret |
+
+### 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
+
# **generateRepo**
> Repository generateRepo(templateOwner, templateRepo, body)
@@ -7390,7 +7483,7 @@ Name | Type | Description | Notes
# **repoGetNote**
-> Note repoGetNote(owner, repo, sha)
+> Note repoGetNote(owner, repo, sha, verification, files)
Get a note corresponding to a single commit from a repository
@@ -7449,8 +7542,10 @@ RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
String sha = "sha_example"; // String | a git ref or commit sha
+Boolean verification = true; // Boolean | include verification for every commit (disable for speedup, default 'true')
+Boolean files = true; // Boolean | include a list of affected files for every commit (disable for speedup, default 'true')
try {
- Note result = apiInstance.repoGetNote(owner, repo, sha);
+ Note result = apiInstance.repoGetNote(owner, repo, sha, verification, files);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#repoGetNote");
@@ -7465,6 +7560,8 @@ Name | Type | Description | Notes
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
**sha** | **String**| a git ref or commit sha |
+ **verification** | **Boolean**| include verification for every commit (disable for speedup, default 'true') | [optional]
+ **files** | **Boolean**| include a list of affected files for every commit (disable for speedup, default 'true') | [optional]
### Return type
@@ -7572,7 +7669,7 @@ Name | Type | Description | Notes
# **repoGetPullRequestCommits**
-> List<Commit> repoGetPullRequestCommits(owner, repo, index, page, limit)
+> List<Commit> repoGetPullRequestCommits(owner, repo, index, page, limit, verification, files)
Get commits for a pull request
@@ -7633,8 +7730,10 @@ String repo = "repo_example"; // String | name of the repo
Long index = 789L; // Long | index of the pull request to get
Integer page = 56; // Integer | page number of results to return (1-based)
Integer limit = 56; // Integer | page size of results
+Boolean verification = true; // Boolean | include verification for every commit (disable for speedup, default 'true')
+Boolean files = true; // Boolean | include a list of affected files for every commit (disable for speedup, default 'true')
try {
- List result = apiInstance.repoGetPullRequestCommits(owner, repo, index, page, limit);
+ List result = apiInstance.repoGetPullRequestCommits(owner, repo, index, page, limit, verification, files);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#repoGetPullRequestCommits");
@@ -7651,6 +7750,8 @@ Name | Type | Description | Notes
**index** | **Long**| index of the pull request to get |
**page** | **Integer**| page number of results to return (1-based) | [optional]
**limit** | **Integer**| page size of results | [optional]
+ **verification** | **Boolean**| include verification for every commit (disable for speedup, default 'true') | [optional]
+ **files** | **Boolean**| include a list of affected files for every commit (disable for speedup, default 'true') | [optional]
### Return type
@@ -13057,6 +13158,99 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/json
+
+# **updateRepoSecret**
+> Void updateRepoSecret(owner, repo, secretname, body)
+
+Create or Update a secret value in 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.RepositoryApi;
+
+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");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | owner of the repository
+String repo = "repo_example"; // String | name of the repository
+String secretname = "secretname_example"; // String | name of the secret
+CreateOrUpdateSecretOption body = new CreateOrUpdateSecretOption(); // CreateOrUpdateSecretOption |
+try {
+ Void result = apiInstance.updateRepoSecret(owner, repo, secretname, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#updateRepoSecret");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repository |
+ **repo** | **String**| name of the repository |
+ **secretname** | **String**| name of the secret |
+ **body** | [**CreateOrUpdateSecretOption**](CreateOrUpdateSecretOption.md)| | [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**: application/json
+ - **Accept**: Not defined
+
# **userCurrentCheckSubscription**
> WatchInfo userCurrentCheckSubscription(owner, repo)
diff --git a/docs/Secret.md b/docs/Secret.md
new file mode 100644
index 0000000..f71cb49
--- /dev/null
+++ b/docs/Secret.md
@@ -0,0 +1,7 @@
+# Secret
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**createdAt** | [**Date**](Date.md) | | [optional]
+**name** | **String** | the secret's name | [optional]
diff --git a/docs/UserApi.md b/docs/UserApi.md
index 3071f24..cc40e4c 100644
--- a/docs/UserApi.md
+++ b/docs/UserApi.md
@@ -5,8 +5,10 @@ All URIs are relative to *http://{{AppSubUrl | JSEscape | Safe}}/api/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
[**createCurrentUserRepo**](UserApi.md#createCurrentUserRepo) | **POST** user/repos | Create a repository
+[**deleteUserSecret**](UserApi.md#deleteUserSecret) | **DELETE** user/actions/secrets/{secretname} | Delete a secret in a user scope
[**getUserSettings**](UserApi.md#getUserSettings) | **GET** user/settings | Get user settings
[**getVerificationToken**](UserApi.md#getVerificationToken) | **GET** user/gpg_key_token | Get a Token to verify
+[**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
[**userCheckFollowing**](UserApi.md#userCheckFollowing) | **GET** users/{username}/following/{target} | Check if one user is following another user
@@ -150,6 +152,93 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
+
+# **deleteUserSecret**
+> Void deleteUserSecret(secretname)
+
+Delete a secret in a user scope
+
+### 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 secretname = "secretname_example"; // String | name of the secret
+try {
+ Void result = apiInstance.deleteUserSecret(secretname);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#deleteUserSecret");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **secretname** | **String**| name of the secret |
+
+### 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
+
# **getUserSettings**
> List<UserSettings> getUserSettings()
@@ -316,6 +405,95 @@ This endpoint does not need any parameter.
- **Content-Type**: Not defined
- **Accept**: text/plain
+
+# **updateUserSecret**
+> Void updateUserSecret(secretname, body)
+
+Create or Update a secret value in a user scope
+
+### 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 secretname = "secretname_example"; // String | name of the secret
+CreateOrUpdateSecretOption body = new CreateOrUpdateSecretOption(); // CreateOrUpdateSecretOption |
+try {
+ Void result = apiInstance.updateUserSecret(secretname, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#updateUserSecret");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **secretname** | **String**| name of the secret |
+ **body** | [**CreateOrUpdateSecretOption**](CreateOrUpdateSecretOption.md)| | [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**: application/json
+ - **Accept**: Not defined
+
# **updateUserSettings**
> List<UserSettings> updateUserSettings(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 8e24142..4a5dd37 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java
@@ -6,6 +6,7 @@ import org.gitnex.tea4j.v2.CollectionFormats.*;
import org.gitnex.tea4j.v2.models.Activity;
import org.gitnex.tea4j.v2.models.CreateHookOption;
import org.gitnex.tea4j.v2.models.CreateLabelOption;
+import org.gitnex.tea4j.v2.models.CreateOrUpdateSecretOption;
import org.gitnex.tea4j.v2.models.CreateOrgOption;
import org.gitnex.tea4j.v2.models.CreateRepoOption;
import org.gitnex.tea4j.v2.models.CreateTeamOption;
@@ -19,6 +20,7 @@ import org.gitnex.tea4j.v2.models.Label;
import org.gitnex.tea4j.v2.models.Organization;
import org.gitnex.tea4j.v2.models.OrganizationPermissions;
import org.gitnex.tea4j.v2.models.Repository;
+import org.gitnex.tea4j.v2.models.Secret;
import org.gitnex.tea4j.v2.models.Team;
import org.gitnex.tea4j.v2.models.UpdateUserAvatarOption;
import org.gitnex.tea4j.v2.models.User;
@@ -50,6 +52,17 @@ public interface OrganizationApi {
Call createOrgRepoDeprecated(
@retrofit2.http.Path("org") String org, @retrofit2.http.Body CreateRepoOption body);
+ /**
+ * Delete a secret in an organization
+ *
+ * @param org name of organization (required)
+ * @param secretname name of the secret (required)
+ * @return Call<Void>
+ */
+ @DELETE("orgs/{org}/actions/secrets/{secretname}")
+ Call deleteOrgSecret(
+ @retrofit2.http.Path("org") String org, @retrofit2.http.Path("secretname") String secretname);
+
/**
* Add a team member
*
@@ -329,6 +342,20 @@ public interface OrganizationApi {
Call orgIsPublicMember(
@retrofit2.http.Path("org") String org, @retrofit2.http.Path("username") String username);
+ /**
+ * List an organization's actions secrets
+ *
+ * @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<Secret>>
+ */
+ @GET("orgs/{org}/actions/secrets")
+ Call> orgListActionsSecrets(
+ @retrofit2.http.Path("org") String org,
+ @retrofit2.http.Query("page") Integer page,
+ @retrofit2.http.Query("limit") Integer limit);
+
/**
* List an organization's activity feeds
*
@@ -589,4 +616,19 @@ public interface OrganizationApi {
@retrofit2.http.Query("include_desc") Boolean includeDesc,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
+
+ /**
+ * Create or Update a secret value in an organization
+ *
+ * @param org name of organization (required)
+ * @param secretname name of the secret (required)
+ * @param body (optional)
+ * @return Call<Void>
+ */
+ @Headers({"Content-Type:application/json"})
+ @PUT("orgs/{org}/actions/secrets/{secretname}")
+ Call updateOrgSecret(
+ @retrofit2.http.Path("org") String org,
+ @retrofit2.http.Path("secretname") String secretname,
+ @retrofit2.http.Body CreateOrUpdateSecretOption body);
}
diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java
index f1576ba..04081b0 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java
@@ -23,6 +23,7 @@ import org.gitnex.tea4j.v2.models.CreateFileOptions;
import org.gitnex.tea4j.v2.models.CreateForkOption;
import org.gitnex.tea4j.v2.models.CreateHookOption;
import org.gitnex.tea4j.v2.models.CreateKeyOption;
+import org.gitnex.tea4j.v2.models.CreateOrUpdateSecretOption;
import org.gitnex.tea4j.v2.models.CreatePullRequestOption;
import org.gitnex.tea4j.v2.models.CreatePullReviewOptions;
import org.gitnex.tea4j.v2.models.CreatePushMirrorOption;
@@ -122,6 +123,20 @@ public interface RepositoryApi {
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Body CreateForkOption body);
+ /**
+ * Delete a secret in a repository
+ *
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param secretname name of the secret (required)
+ * @return Call<Void>
+ */
+ @DELETE("repos/{owner}/{repo}/actions/secrets/{secretname}")
+ Call deleteRepoSecret(
+ @retrofit2.http.Path("owner") String owner,
+ @retrofit2.http.Path("repo") String repo,
+ @retrofit2.http.Path("secretname") String secretname);
+
/**
* Create a repository using a template
*
@@ -1279,13 +1294,19 @@ public interface RepositoryApi {
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param sha a git ref or commit sha (required)
+ * @param verification include verification for every commit (disable for speedup, default
+ * 'true') (optional)
+ * @param files include a list of affected files for every commit (disable for speedup, default
+ * 'true') (optional)
* @return Call<Note>
*/
@GET("repos/{owner}/{repo}/git/notes/{sha}")
Call repoGetNote(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
- @retrofit2.http.Path("sha") String sha);
+ @retrofit2.http.Path("sha") String sha,
+ @retrofit2.http.Query("verification") Boolean verification,
+ @retrofit2.http.Query("files") Boolean files);
/**
* Get a pull request
@@ -1309,6 +1330,10 @@ public interface RepositoryApi {
* @param index index of the pull request to get (required)
* @param page page number of results to return (1-based) (optional)
* @param limit page size of results (optional)
+ * @param verification include verification for every commit (disable for speedup, default
+ * 'true') (optional)
+ * @param files include a list of affected files for every commit (disable for speedup, default
+ * 'true') (optional)
* @return Call<List<Commit>>
*/
@GET("repos/{owner}/{repo}/pulls/{index}/commits")
@@ -1317,7 +1342,9 @@ public interface RepositoryApi {
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") Long index,
@retrofit2.http.Query("page") Integer page,
- @retrofit2.http.Query("limit") Integer limit);
+ @retrofit2.http.Query("limit") Integer limit,
+ @retrofit2.http.Query("verification") Boolean verification,
+ @retrofit2.http.Query("files") Boolean files);
/**
* Get changed files for a pull request
@@ -2258,6 +2285,23 @@ public interface RepositoryApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
+ /**
+ * Create or Update a secret value in a repository
+ *
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param secretname name of the secret (required)
+ * @param body (optional)
+ * @return Call<Void>
+ */
+ @Headers({"Content-Type:application/json"})
+ @PUT("repos/{owner}/{repo}/actions/secrets/{secretname}")
+ Call updateRepoSecret(
+ @retrofit2.http.Path("owner") String owner,
+ @retrofit2.http.Path("repo") String repo,
+ @retrofit2.http.Path("secretname") String secretname,
+ @retrofit2.http.Body CreateOrUpdateSecretOption body);
+
/**
* Check if the current user is watching a repo
*
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 ffc76af..ea0d426 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java
@@ -11,6 +11,7 @@ import org.gitnex.tea4j.v2.models.CreateGPGKeyOption;
import org.gitnex.tea4j.v2.models.CreateHookOption;
import org.gitnex.tea4j.v2.models.CreateKeyOption;
import org.gitnex.tea4j.v2.models.CreateOAuth2ApplicationOptions;
+import org.gitnex.tea4j.v2.models.CreateOrUpdateSecretOption;
import org.gitnex.tea4j.v2.models.CreateRepoOption;
import org.gitnex.tea4j.v2.models.DeleteEmailOption;
import org.gitnex.tea4j.v2.models.EditHookOption;
@@ -43,6 +44,15 @@ public interface UserApi {
@POST("user/repos")
Call createCurrentUserRepo(@retrofit2.http.Body CreateRepoOption body);
+ /**
+ * Delete a secret in a user scope
+ *
+ * @param secretname name of the secret (required)
+ * @return Call<Void>
+ */
+ @DELETE("user/actions/secrets/{secretname}")
+ Call deleteUserSecret(@retrofit2.http.Path("secretname") String secretname);
+
/**
* Get user settings
*
@@ -59,6 +69,19 @@ public interface UserApi {
@GET("user/gpg_key_token")
Call getVerificationToken();
+ /**
+ * Create or Update a secret value in a user scope
+ *
+ * @param secretname name of the secret (required)
+ * @param body (optional)
+ * @return Call<Void>
+ */
+ @Headers({"Content-Type:application/json"})
+ @PUT("user/actions/secrets/{secretname}")
+ Call updateUserSecret(
+ @retrofit2.http.Path("secretname") String secretname,
+ @retrofit2.http.Body CreateOrUpdateSecretOption body);
+
/**
* Update user settings
*
diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java
index dd39787..bc9349d 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java
@@ -98,14 +98,14 @@ public interface CustomApi {
@HTTP(method = "DELETE", path = "user/emails", hasBody = true)
Call userDeleteEmailWithBody(@Body DeleteEmailOption body);
- @Headers({"Content-Type:application/json"})
- @GET("notifications")
- Call> notifyGetList2(
- @retrofit2.http.Query("all") Boolean all,
- @retrofit2.http.Query("status-types") List statusTypes,
- @retrofit2.http.Query("subject-type") List subjectType,
- @retrofit2.http.Query("since") String since,
- @retrofit2.http.Query("before") String before,
- @retrofit2.http.Query("page") Integer page,
- @retrofit2.http.Query("limit") Integer limit);
+ @Headers({"Content-Type:application/json"})
+ @GET("notifications")
+ Call> notifyGetList2(
+ @retrofit2.http.Query("all") Boolean all,
+ @retrofit2.http.Query("status-types") List statusTypes,
+ @retrofit2.http.Query("subject-type") List subjectType,
+ @retrofit2.http.Query("since") String since,
+ @retrofit2.http.Query("before") String before,
+ @retrofit2.http.Query("page") Integer page,
+ @retrofit2.http.Query("limit") Integer limit);
}
diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/custom/WebApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/custom/WebApi.java
index 42f9091..06157df 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/custom/WebApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/custom/WebApi.java
@@ -27,9 +27,4 @@ public interface WebApi {
@Path("repo") String repo,
@Path("sha") String sha,
@Path("diffType") String diffType);
-
- @Streaming
- @GET("attachments/{hashid}")
- Call getAttachment(
- @Path("hashid") String hashid);
}
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/CreateLabelOption.java b/src/main/java/org/gitnex/tea4j/v2/models/CreateLabelOption.java
index c5d416e..234c19e 100644
--- a/src/main/java/org/gitnex/tea4j/v2/models/CreateLabelOption.java
+++ b/src/main/java/org/gitnex/tea4j/v2/models/CreateLabelOption.java
@@ -31,6 +31,9 @@ public class CreateLabelOption implements Serializable {
@SerializedName("exclusive")
private Boolean exclusive = null;
+ @SerializedName("is_archived")
+ private Boolean isArchived = null;
+
@SerializedName("name")
private String name = null;
@@ -91,6 +94,25 @@ public class CreateLabelOption implements Serializable {
this.exclusive = exclusive;
}
+ public CreateLabelOption isArchived(Boolean isArchived) {
+ this.isArchived = isArchived;
+ return this;
+ }
+
+ /**
+ * Get isArchived
+ *
+ * @return isArchived
+ */
+ @Schema(example = "false", description = "")
+ public Boolean isIsArchived() {
+ return isArchived;
+ }
+
+ public void setIsArchived(Boolean isArchived) {
+ this.isArchived = isArchived;
+ }
+
public CreateLabelOption name(String name) {
this.name = name;
return this;
@@ -122,12 +144,13 @@ public class CreateLabelOption implements Serializable {
return Objects.equals(this.color, createLabelOption.color)
&& Objects.equals(this.description, createLabelOption.description)
&& Objects.equals(this.exclusive, createLabelOption.exclusive)
+ && Objects.equals(this.isArchived, createLabelOption.isArchived)
&& Objects.equals(this.name, createLabelOption.name);
}
@Override
public int hashCode() {
- return Objects.hash(color, description, exclusive, name);
+ return Objects.hash(color, description, exclusive, isArchived, name);
}
@Override
@@ -138,6 +161,7 @@ public class CreateLabelOption implements Serializable {
sb.append(" color: ").append(toIndentedString(color)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" exclusive: ").append(toIndentedString(exclusive)).append("\n");
+ sb.append(" isArchived: ").append(toIndentedString(isArchived)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");
return sb.toString();
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/CreateOrUpdateSecretOption.java b/src/main/java/org/gitnex/tea4j/v2/models/CreateOrUpdateSecretOption.java
new file mode 100644
index 0000000..36a46a2
--- /dev/null
+++ b/src/main/java/org/gitnex/tea4j/v2/models/CreateOrUpdateSecretOption.java
@@ -0,0 +1,83 @@
+/*
+ * Gitea API.
+ * This documentation describes the Gitea API.
+ *
+ * OpenAPI spec version: {{AppVer | JSEscape | Safe}}
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+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.Objects;
+
+/** CreateOrUpdateSecretOption options when creating or updating secret */
+@Schema(description = "CreateOrUpdateSecretOption options when creating or updating secret")
+public class CreateOrUpdateSecretOption implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @SerializedName("data")
+ private String data = null;
+
+ public CreateOrUpdateSecretOption data(String data) {
+ this.data = data;
+ return this;
+ }
+
+ /**
+ * Data of the secret to update
+ *
+ * @return data
+ */
+ @Schema(required = true, description = "Data of the secret to update")
+ public String getData() {
+ return data;
+ }
+
+ public void setData(String data) {
+ this.data = data;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ CreateOrUpdateSecretOption createOrUpdateSecretOption = (CreateOrUpdateSecretOption) o;
+ return Objects.equals(this.data, createOrUpdateSecretOption.data);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(data);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class CreateOrUpdateSecretOption {\n");
+
+ sb.append(" data: ").append(toIndentedString(data)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/EditLabelOption.java b/src/main/java/org/gitnex/tea4j/v2/models/EditLabelOption.java
index 401de06..74ddc40 100644
--- a/src/main/java/org/gitnex/tea4j/v2/models/EditLabelOption.java
+++ b/src/main/java/org/gitnex/tea4j/v2/models/EditLabelOption.java
@@ -31,6 +31,9 @@ public class EditLabelOption implements Serializable {
@SerializedName("exclusive")
private Boolean exclusive = null;
+ @SerializedName("is_archived")
+ private Boolean isArchived = null;
+
@SerializedName("name")
private String name = null;
@@ -91,6 +94,25 @@ public class EditLabelOption implements Serializable {
this.exclusive = exclusive;
}
+ public EditLabelOption isArchived(Boolean isArchived) {
+ this.isArchived = isArchived;
+ return this;
+ }
+
+ /**
+ * Get isArchived
+ *
+ * @return isArchived
+ */
+ @Schema(example = "false", description = "")
+ public Boolean isIsArchived() {
+ return isArchived;
+ }
+
+ public void setIsArchived(Boolean isArchived) {
+ this.isArchived = isArchived;
+ }
+
public EditLabelOption name(String name) {
this.name = name;
return this;
@@ -122,12 +144,13 @@ public class EditLabelOption implements Serializable {
return Objects.equals(this.color, editLabelOption.color)
&& Objects.equals(this.description, editLabelOption.description)
&& Objects.equals(this.exclusive, editLabelOption.exclusive)
+ && Objects.equals(this.isArchived, editLabelOption.isArchived)
&& Objects.equals(this.name, editLabelOption.name);
}
@Override
public int hashCode() {
- return Objects.hash(color, description, exclusive, name);
+ return Objects.hash(color, description, exclusive, isArchived, name);
}
@Override
@@ -138,6 +161,7 @@ public class EditLabelOption implements Serializable {
sb.append(" color: ").append(toIndentedString(color)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" exclusive: ").append(toIndentedString(exclusive)).append("\n");
+ sb.append(" isArchived: ").append(toIndentedString(isArchived)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");
return sb.toString();
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/Hook.java b/src/main/java/org/gitnex/tea4j/v2/models/Hook.java
index 6e050d6..33e00f9 100644
--- a/src/main/java/org/gitnex/tea4j/v2/models/Hook.java
+++ b/src/main/java/org/gitnex/tea4j/v2/models/Hook.java
@@ -33,6 +33,9 @@ public class Hook implements Serializable {
@SerializedName("authorization_header")
private String authorizationHeader = null;
+ @SerializedName("branch_filter")
+ private String branchFilter = null;
+
@SerializedName("config")
private Map config = null;
@@ -89,6 +92,25 @@ public class Hook implements Serializable {
this.authorizationHeader = authorizationHeader;
}
+ public Hook branchFilter(String branchFilter) {
+ this.branchFilter = branchFilter;
+ return this;
+ }
+
+ /**
+ * Get branchFilter
+ *
+ * @return branchFilter
+ */
+ @Schema(description = "")
+ public String getBranchFilter() {
+ return branchFilter;
+ }
+
+ public void setBranchFilter(String branchFilter) {
+ this.branchFilter = branchFilter;
+ }
+
public Hook config(Map config) {
this.config = config;
return this;
@@ -230,6 +252,7 @@ public class Hook implements Serializable {
Hook hook = (Hook) o;
return Objects.equals(this.active, hook.active)
&& Objects.equals(this.authorizationHeader, hook.authorizationHeader)
+ && Objects.equals(this.branchFilter, hook.branchFilter)
&& Objects.equals(this.config, hook.config)
&& Objects.equals(this.createdAt, hook.createdAt)
&& Objects.equals(this.events, hook.events)
@@ -241,7 +264,7 @@ public class Hook implements Serializable {
@Override
public int hashCode() {
return Objects.hash(
- active, authorizationHeader, config, createdAt, events, id, type, updatedAt);
+ active, authorizationHeader, branchFilter, config, createdAt, events, id, type, updatedAt);
}
@Override
@@ -253,6 +276,7 @@ public class Hook implements Serializable {
sb.append(" authorizationHeader: ")
.append(toIndentedString(authorizationHeader))
.append("\n");
+ sb.append(" branchFilter: ").append(toIndentedString(branchFilter)).append("\n");
sb.append(" config: ").append(toIndentedString(config)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" events: ").append(toIndentedString(events)).append("\n");
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/Label.java b/src/main/java/org/gitnex/tea4j/v2/models/Label.java
index 178af29..3122c77 100644
--- a/src/main/java/org/gitnex/tea4j/v2/models/Label.java
+++ b/src/main/java/org/gitnex/tea4j/v2/models/Label.java
@@ -34,6 +34,9 @@ public class Label implements Serializable {
@SerializedName("id")
private Long id = null;
+ @SerializedName("is_archived")
+ private Boolean isArchived = null;
+
@SerializedName("name")
private String name = null;
@@ -116,6 +119,25 @@ public class Label implements Serializable {
this.id = id;
}
+ public Label isArchived(Boolean isArchived) {
+ this.isArchived = isArchived;
+ return this;
+ }
+
+ /**
+ * Get isArchived
+ *
+ * @return isArchived
+ */
+ @Schema(example = "false", description = "")
+ public Boolean isIsArchived() {
+ return isArchived;
+ }
+
+ public void setIsArchived(Boolean isArchived) {
+ this.isArchived = isArchived;
+ }
+
public Label name(String name) {
this.name = name;
return this;
@@ -167,13 +189,14 @@ public class Label implements Serializable {
&& Objects.equals(this.description, label.description)
&& Objects.equals(this.exclusive, label.exclusive)
&& Objects.equals(this.id, label.id)
+ && Objects.equals(this.isArchived, label.isArchived)
&& Objects.equals(this.name, label.name)
&& Objects.equals(this.url, label.url);
}
@Override
public int hashCode() {
- return Objects.hash(color, description, exclusive, id, name, url);
+ return Objects.hash(color, description, exclusive, id, isArchived, name, url);
}
@Override
@@ -185,6 +208,7 @@ public class Label implements Serializable {
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" exclusive: ").append(toIndentedString(exclusive)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" isArchived: ").append(toIndentedString(isArchived)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append("}");
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/ModelPackage.java b/src/main/java/org/gitnex/tea4j/v2/models/ModelPackage.java
index 43aa28d..bdb4c4f 100644
--- a/src/main/java/org/gitnex/tea4j/v2/models/ModelPackage.java
+++ b/src/main/java/org/gitnex/tea4j/v2/models/ModelPackage.java
@@ -29,6 +29,9 @@ public class ModelPackage implements Serializable {
@SerializedName("creator")
private User creator = null;
+ @SerializedName("html_url")
+ private String htmlUrl = null;
+
@SerializedName("id")
private Long id = null;
@@ -85,6 +88,25 @@ public class ModelPackage implements Serializable {
this.creator = creator;
}
+ public ModelPackage htmlUrl(String htmlUrl) {
+ this.htmlUrl = htmlUrl;
+ return this;
+ }
+
+ /**
+ * Get htmlUrl
+ *
+ * @return htmlUrl
+ */
+ @Schema(description = "")
+ public String getHtmlUrl() {
+ return htmlUrl;
+ }
+
+ public void setHtmlUrl(String htmlUrl) {
+ this.htmlUrl = htmlUrl;
+ }
+
public ModelPackage id(Long id) {
this.id = id;
return this;
@@ -210,6 +232,7 @@ public class ModelPackage implements Serializable {
ModelPackage _package = (ModelPackage) o;
return Objects.equals(this.createdAt, _package.createdAt)
&& Objects.equals(this.creator, _package.creator)
+ && Objects.equals(this.htmlUrl, _package.htmlUrl)
&& Objects.equals(this.id, _package.id)
&& Objects.equals(this.name, _package.name)
&& Objects.equals(this.owner, _package.owner)
@@ -220,7 +243,7 @@ public class ModelPackage implements Serializable {
@Override
public int hashCode() {
- return Objects.hash(createdAt, creator, id, name, owner, repository, type, version);
+ return Objects.hash(createdAt, creator, htmlUrl, id, name, owner, repository, type, version);
}
@Override
@@ -230,6 +253,7 @@ public class ModelPackage implements Serializable {
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" creator: ").append(toIndentedString(creator)).append("\n");
+ sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/PushMirror.java b/src/main/java/org/gitnex/tea4j/v2/models/PushMirror.java
index 9fc64e1..bfe2278 100644
--- a/src/main/java/org/gitnex/tea4j/v2/models/PushMirror.java
+++ b/src/main/java/org/gitnex/tea4j/v2/models/PushMirror.java
@@ -15,6 +15,7 @@ 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.Date;
import java.util.Objects;
/** PushMirror represents information of a push mirror */
@@ -23,7 +24,7 @@ public class PushMirror implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("created")
- private String created = null;
+ private Date created = null;
@SerializedName("interval")
private String interval = null;
@@ -32,7 +33,7 @@ public class PushMirror implements Serializable {
private String lastError = null;
@SerializedName("last_update")
- private String lastUpdate = null;
+ private Date lastUpdate = null;
@SerializedName("remote_address")
private String remoteAddress = null;
@@ -46,7 +47,7 @@ public class PushMirror implements Serializable {
@SerializedName("sync_on_commit")
private Boolean syncOnCommit = null;
- public PushMirror created(String created) {
+ public PushMirror created(Date created) {
this.created = created;
return this;
}
@@ -57,11 +58,11 @@ public class PushMirror implements Serializable {
* @return created
*/
@Schema(description = "")
- public String getCreated() {
+ public Date getCreated() {
return created;
}
- public void setCreated(String created) {
+ public void setCreated(Date created) {
this.created = created;
}
@@ -103,7 +104,7 @@ public class PushMirror implements Serializable {
this.lastError = lastError;
}
- public PushMirror lastUpdate(String lastUpdate) {
+ public PushMirror lastUpdate(Date lastUpdate) {
this.lastUpdate = lastUpdate;
return this;
}
@@ -114,11 +115,11 @@ public class PushMirror implements Serializable {
* @return lastUpdate
*/
@Schema(description = "")
- public String getLastUpdate() {
+ public Date getLastUpdate() {
return lastUpdate;
}
- public void setLastUpdate(String lastUpdate) {
+ public void setLastUpdate(Date lastUpdate) {
this.lastUpdate = lastUpdate;
}
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/Release.java b/src/main/java/org/gitnex/tea4j/v2/models/Release.java
index 60e89f7..eb3bbfa 100644
--- a/src/main/java/org/gitnex/tea4j/v2/models/Release.java
+++ b/src/main/java/org/gitnex/tea4j/v2/models/Release.java
@@ -64,6 +64,9 @@ public class Release implements Serializable {
@SerializedName("target_commitish")
private String targetCommitish = null;
+ @SerializedName("upload_url")
+ private String uploadUrl = null;
+
@SerializedName("url")
private String url = null;
@@ -325,6 +328,25 @@ public class Release implements Serializable {
this.targetCommitish = targetCommitish;
}
+ public Release uploadUrl(String uploadUrl) {
+ this.uploadUrl = uploadUrl;
+ return this;
+ }
+
+ /**
+ * Get uploadUrl
+ *
+ * @return uploadUrl
+ */
+ @Schema(description = "")
+ public String getUploadUrl() {
+ return uploadUrl;
+ }
+
+ public void setUploadUrl(String uploadUrl) {
+ this.uploadUrl = uploadUrl;
+ }
+
public Release url(String url) {
this.url = url;
return this;
@@ -385,6 +407,7 @@ public class Release implements Serializable {
&& Objects.equals(this.tagName, release.tagName)
&& Objects.equals(this.tarballUrl, release.tarballUrl)
&& Objects.equals(this.targetCommitish, release.targetCommitish)
+ && Objects.equals(this.uploadUrl, release.uploadUrl)
&& Objects.equals(this.url, release.url)
&& Objects.equals(this.zipballUrl, release.zipballUrl);
}
@@ -405,6 +428,7 @@ public class Release implements Serializable {
tagName,
tarballUrl,
targetCommitish,
+ uploadUrl,
url,
zipballUrl);
}
@@ -427,6 +451,7 @@ public class Release implements Serializable {
sb.append(" tagName: ").append(toIndentedString(tagName)).append("\n");
sb.append(" tarballUrl: ").append(toIndentedString(tarballUrl)).append("\n");
sb.append(" targetCommitish: ").append(toIndentedString(targetCommitish)).append("\n");
+ sb.append(" uploadUrl: ").append(toIndentedString(uploadUrl)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" zipballUrl: ").append(toIndentedString(zipballUrl)).append("\n");
sb.append("}");
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 9651fe7..945116b 100644
--- a/src/main/java/org/gitnex/tea4j/v2/models/Repository.java
+++ b/src/main/java/org/gitnex/tea4j/v2/models/Repository.java
@@ -185,6 +185,9 @@ public class Repository implements Serializable {
@SerializedName("updated_at")
private Date updatedAt = null;
+ @SerializedName("url")
+ private String url = null;
+
@SerializedName("watchers_count")
private Long watchersCount = null;
@@ -1217,6 +1220,25 @@ public class Repository implements Serializable {
this.updatedAt = updatedAt;
}
+ public Repository url(String url) {
+ this.url = url;
+ return this;
+ }
+
+ /**
+ * Get url
+ *
+ * @return url
+ */
+ @Schema(description = "")
+ public String getUrl() {
+ return url;
+ }
+
+ public void setUrl(String url) {
+ this.url = url;
+ }
+
public Repository watchersCount(Long watchersCount) {
this.watchersCount = watchersCount;
return this;
@@ -1319,6 +1341,7 @@ public class Repository implements Serializable {
&& Objects.equals(this.starsCount, repository.starsCount)
&& Objects.equals(this.template, repository.template)
&& Objects.equals(this.updatedAt, repository.updatedAt)
+ && Objects.equals(this.url, repository.url)
&& Objects.equals(this.watchersCount, repository.watchersCount)
&& Objects.equals(this.website, repository.website);
}
@@ -1380,6 +1403,7 @@ public class Repository implements Serializable {
starsCount,
template,
updatedAt,
+ url,
watchersCount,
website);
}
@@ -1451,6 +1475,7 @@ public class Repository implements Serializable {
sb.append(" starsCount: ").append(toIndentedString(starsCount)).append("\n");
sb.append(" template: ").append(toIndentedString(template)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
+ sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" watchersCount: ").append(toIndentedString(watchersCount)).append("\n");
sb.append(" website: ").append(toIndentedString(website)).append("\n");
sb.append("}");
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/Secret.java b/src/main/java/org/gitnex/tea4j/v2/models/Secret.java
new file mode 100644
index 0000000..d0e2a74
--- /dev/null
+++ b/src/main/java/org/gitnex/tea4j/v2/models/Secret.java
@@ -0,0 +1,108 @@
+/*
+ * Gitea API.
+ * This documentation describes the Gitea API.
+ *
+ * OpenAPI spec version: {{AppVer | JSEscape | Safe}}
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+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.Date;
+import java.util.Objects;
+
+/** Secret represents a secret */
+@Schema(description = "Secret represents a secret")
+public class Secret implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @SerializedName("created_at")
+ private Date createdAt = null;
+
+ @SerializedName("name")
+ private String name = null;
+
+ public Secret createdAt(Date createdAt) {
+ this.createdAt = createdAt;
+ return this;
+ }
+
+ /**
+ * Get createdAt
+ *
+ * @return createdAt
+ */
+ @Schema(description = "")
+ public Date getCreatedAt() {
+ return createdAt;
+ }
+
+ public void setCreatedAt(Date createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ public Secret name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * the secret's name
+ *
+ * @return name
+ */
+ @Schema(description = "the secret's name")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Secret secret = (Secret) o;
+ return Objects.equals(this.createdAt, secret.createdAt)
+ && Objects.equals(this.name, secret.name);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(createdAt, name);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class Secret {\n");
+
+ sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}