mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-06-12 12:30:37 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**createdAt** | [**Date**](Date.md) | | [optional]
|
||||
**id** | **Long** | | [optional]
|
||||
**lastUsedAt** | [**Date**](Date.md) | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**scopes** | **List<String>** | | [optional]
|
||||
**sha1** | **String** | | [optional]
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# ActionArtifact
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**archiveDownloadUrl** | **String** | | [optional]
|
||||
**createdAt** | [**Date**](Date.md) | | [optional]
|
||||
**expired** | **Boolean** | | [optional]
|
||||
**expiresAt** | [**Date**](Date.md) | | [optional]
|
||||
**id** | **Long** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**sizeInBytes** | **Long** | | [optional]
|
||||
**updatedAt** | [**Date**](Date.md) | | [optional]
|
||||
**url** | **String** | | [optional]
|
||||
**workflowRun** | [**ActionWorkflowRun**](ActionWorkflowRun.md) | | [optional]
|
||||
@@ -0,0 +1,7 @@
|
||||
# ActionArtifactsResponse
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**artifacts** | [**List<ActionArtifact>**](ActionArtifact.md) | | [optional]
|
||||
**totalCount** | **Long** | | [optional]
|
||||
@@ -0,0 +1,11 @@
|
||||
# ActionRunner
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**busy** | **Boolean** | | [optional]
|
||||
**ephemeral** | **Boolean** | | [optional]
|
||||
**id** | **Long** | | [optional]
|
||||
**labels** | [**List<ActionRunnerLabel>**](ActionRunnerLabel.md) | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**status** | **String** | | [optional]
|
||||
@@ -0,0 +1,8 @@
|
||||
# ActionRunnerLabel
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **Long** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**type** | **String** | | [optional]
|
||||
@@ -0,0 +1,7 @@
|
||||
# ActionRunnersResponse
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**runners** | [**List<ActionRunner>**](ActionRunner.md) | | [optional]
|
||||
**totalCount** | **Long** | | [optional]
|
||||
@@ -4,6 +4,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**data** | **String** | the value of the variable | [optional]
|
||||
**description** | **String** | the description of the variable | [optional]
|
||||
**name** | **String** | the name of the variable | [optional]
|
||||
**ownerId** | **Long** | the owner to which the variable belongs | [optional]
|
||||
**repoId** | **Long** | the repository to which the variable belongs | [optional]
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# ActionWorkflow
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**badgeUrl** | **String** | | [optional]
|
||||
**createdAt** | [**Date**](Date.md) | | [optional]
|
||||
**deletedAt** | [**Date**](Date.md) | | [optional]
|
||||
**htmlUrl** | **String** | | [optional]
|
||||
**id** | **String** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**path** | **String** | | [optional]
|
||||
**state** | **String** | | [optional]
|
||||
**updatedAt** | [**Date**](Date.md) | | [optional]
|
||||
**url** | **String** | | [optional]
|
||||
@@ -0,0 +1,8 @@
|
||||
# ActionWorkflowRun
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**headSha** | **String** | | [optional]
|
||||
**id** | **Long** | | [optional]
|
||||
**repositoryId** | **Long** | | [optional]
|
||||
@@ -10,6 +10,7 @@ Method | HTTP request | Description
|
||||
[**adminCreateOrg**](AdminApi.md#adminCreateOrg) | **POST** admin/users/{username}/orgs | Create an organization
|
||||
[**adminCreatePublicKey**](AdminApi.md#adminCreatePublicKey) | **POST** admin/users/{username}/keys | Add a public key on behalf of a user
|
||||
[**adminCreateRepo**](AdminApi.md#adminCreateRepo) | **POST** admin/users/{username}/repos | Create a repository on behalf of a user
|
||||
[**adminCreateRunnerRegistrationToken**](AdminApi.md#adminCreateRunnerRegistrationToken) | **POST** admin/actions/runners/registration-token | Get an global actions runner registration token
|
||||
[**adminCreateUser**](AdminApi.md#adminCreateUser) | **POST** admin/users | Create a user
|
||||
[**adminCronList**](AdminApi.md#adminCronList) | **GET** admin/cron | List cron tasks
|
||||
[**adminCronRun**](AdminApi.md#adminCronRun) | **POST** admin/cron/{task} | Run cron task
|
||||
@@ -30,6 +31,9 @@ Method | HTTP request | Description
|
||||
[**adminSearchEmails**](AdminApi.md#adminSearchEmails) | **GET** admin/emails/search | Search all emails
|
||||
[**adminSearchUsers**](AdminApi.md#adminSearchUsers) | **GET** admin/users | Search users according filter conditions
|
||||
[**adminUnadoptedList**](AdminApi.md#adminUnadoptedList) | **GET** admin/unadopted | List unadopted repositories
|
||||
[**deleteAdminRunner**](AdminApi.md#deleteAdminRunner) | **DELETE** admin/actions/runners/{runner_id} | Delete an global runner
|
||||
[**getAdminRunner**](AdminApi.md#getAdminRunner) | **GET** admin/actions/runners/{runner_id} | Get an global runner
|
||||
[**getAdminRunners**](AdminApi.md#getAdminRunners) | **GET** admin/actions/runners | Get all runners
|
||||
|
||||
<a name="adminAddUserBadges"></a>
|
||||
# **adminAddUserBadges**
|
||||
@@ -563,6 +567,89 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="adminCreateRunnerRegistrationToken"></a>
|
||||
# **adminCreateRunnerRegistrationToken**
|
||||
> Void adminCreateRunnerRegistrationToken()
|
||||
|
||||
Get an global actions runner registration token
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import org.gitnex.tea4j.v2.ApiClient;
|
||||
//import org.gitnex.tea4j.v2.ApiException;
|
||||
//import org.gitnex.tea4j.v2.Configuration;
|
||||
//import org.gitnex.tea4j.v2.auth.*;
|
||||
//import org.gitnex.tea4j.v2.apis.AdminApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
AdminApi apiInstance = new AdminApi();
|
||||
try {
|
||||
Void result = apiInstance.adminCreateRunnerRegistrationToken();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AdminApi#adminCreateRunnerRegistrationToken");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### 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
|
||||
|
||||
<a name="adminCreateUser"></a>
|
||||
# **adminCreateUser**
|
||||
> User adminCreateUser(body)
|
||||
@@ -2337,3 +2424,260 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="deleteAdminRunner"></a>
|
||||
# **deleteAdminRunner**
|
||||
> Void deleteAdminRunner(runnerId)
|
||||
|
||||
Delete an global runner
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import org.gitnex.tea4j.v2.ApiClient;
|
||||
//import org.gitnex.tea4j.v2.ApiException;
|
||||
//import org.gitnex.tea4j.v2.Configuration;
|
||||
//import org.gitnex.tea4j.v2.auth.*;
|
||||
//import org.gitnex.tea4j.v2.apis.AdminApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
AdminApi apiInstance = new AdminApi();
|
||||
String runnerId = "runnerId_example"; // String | id of the runner
|
||||
try {
|
||||
Void result = apiInstance.deleteAdminRunner(runnerId);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AdminApi#deleteAdminRunner");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**runnerId** | **String**| id of the runner |
|
||||
|
||||
### 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
|
||||
|
||||
<a name="getAdminRunner"></a>
|
||||
# **getAdminRunner**
|
||||
> Void getAdminRunner(runnerId)
|
||||
|
||||
Get an global runner
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import org.gitnex.tea4j.v2.ApiClient;
|
||||
//import org.gitnex.tea4j.v2.ApiException;
|
||||
//import org.gitnex.tea4j.v2.Configuration;
|
||||
//import org.gitnex.tea4j.v2.auth.*;
|
||||
//import org.gitnex.tea4j.v2.apis.AdminApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
AdminApi apiInstance = new AdminApi();
|
||||
String runnerId = "runnerId_example"; // String | id of the runner
|
||||
try {
|
||||
Void result = apiInstance.getAdminRunner(runnerId);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AdminApi#getAdminRunner");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**runnerId** | **String**| id of the runner |
|
||||
|
||||
### 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
|
||||
|
||||
<a name="getAdminRunners"></a>
|
||||
# **getAdminRunners**
|
||||
> Void getAdminRunners()
|
||||
|
||||
Get all runners
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import org.gitnex.tea4j.v2.ApiClient;
|
||||
//import org.gitnex.tea4j.v2.ApiException;
|
||||
//import org.gitnex.tea4j.v2.Configuration;
|
||||
//import org.gitnex.tea4j.v2.auth.*;
|
||||
//import org.gitnex.tea4j.v2.apis.AdminApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
AdminApi apiInstance = new AdminApi();
|
||||
try {
|
||||
Void result = apiInstance.getAdminRunners();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AdminApi#getAdminRunners");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
+12
-1
@@ -6,7 +6,18 @@ Name | Type | Description | Notes
|
||||
**commitUrl** | **String** | | [optional]
|
||||
**repository** | [**Repository**](Repository.md) | | [optional]
|
||||
**sha** | **String** | | [optional]
|
||||
**state** | **String** | | [optional]
|
||||
**state** | [**StateEnum**](#StateEnum) | | [optional]
|
||||
**statuses** | [**List<CommitStatus>**](CommitStatus.md) | | [optional]
|
||||
**totalCount** | **Long** | | [optional]
|
||||
**url** | **String** | | [optional]
|
||||
|
||||
<a name="StateEnum"></a>
|
||||
## Enum: StateEnum
|
||||
Name | Value
|
||||
---- | -----
|
||||
PENDING | "pending"
|
||||
SUCCESS | "success"
|
||||
ERROR | "error"
|
||||
FAILURE | "failure"
|
||||
WARNING | "warning"
|
||||
SKIPPED | "skipped"
|
||||
|
||||
+12
-1
@@ -8,7 +8,18 @@ Name | Type | Description | Notes
|
||||
**creator** | [**User**](User.md) | | [optional]
|
||||
**description** | **String** | | [optional]
|
||||
**id** | **Long** | | [optional]
|
||||
**status** | **String** | | [optional]
|
||||
**status** | [**StatusEnum**](#StatusEnum) | | [optional]
|
||||
**targetUrl** | **String** | | [optional]
|
||||
**updatedAt** | [**Date**](Date.md) | | [optional]
|
||||
**url** | **String** | | [optional]
|
||||
|
||||
<a name="StatusEnum"></a>
|
||||
## Enum: StatusEnum
|
||||
Name | Value
|
||||
---- | -----
|
||||
PENDING | "pending"
|
||||
SUCCESS | "success"
|
||||
ERROR | "error"
|
||||
FAILURE | "failure"
|
||||
WARNING | "warning"
|
||||
SKIPPED | "skipped"
|
||||
|
||||
@@ -9,7 +9,9 @@ Name | Type | Description | Notes
|
||||
**encoding** | **String** | `encoding` is populated when `type` is `file`, otherwise null | [optional]
|
||||
**gitUrl** | **String** | | [optional]
|
||||
**htmlUrl** | **String** | | [optional]
|
||||
**lastAuthorDate** | [**Date**](Date.md) | | [optional]
|
||||
**lastCommitSha** | **String** | | [optional]
|
||||
**lastCommitterDate** | [**Date**](Date.md) | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**path** | **String** | | [optional]
|
||||
**sha** | **String** | | [optional]
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# CreateActionWorkflowDispatch
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**inputs** | **Map<String, String>** | | [optional]
|
||||
**ref** | **String** | |
|
||||
@@ -4,3 +4,4 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**data** | **String** | Data of the secret to update |
|
||||
**description** | **String** | Description of the secret to update | [optional]
|
||||
|
||||
@@ -7,5 +7,6 @@ Name | Type | Description | Notes
|
||||
**draft** | **Boolean** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**prerelease** | **Boolean** | | [optional]
|
||||
**tagMessage** | **String** | | [optional]
|
||||
**tagName** | **String** | |
|
||||
**targetCommitish** | **String** | | [optional]
|
||||
|
||||
@@ -5,5 +5,16 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**context** | **String** | | [optional]
|
||||
**description** | **String** | | [optional]
|
||||
**state** | **String** | | [optional]
|
||||
**state** | [**StateEnum**](#StateEnum) | | [optional]
|
||||
**targetUrl** | **String** | | [optional]
|
||||
|
||||
<a name="StateEnum"></a>
|
||||
## Enum: StateEnum
|
||||
Name | Value
|
||||
---- | -----
|
||||
PENDING | "pending"
|
||||
SUCCESS | "success"
|
||||
ERROR | "error"
|
||||
FAILURE | "failure"
|
||||
WARNING | "warning"
|
||||
SKIPPED | "skipped"
|
||||
|
||||
@@ -3,4 +3,5 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**description** | **String** | Description of the variable to create | [optional]
|
||||
**value** | **String** | Value of the variable to create |
|
||||
|
||||
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**defaultGitTreesPerPage** | **Long** | | [optional]
|
||||
**defaultMaxBlobSize** | **Long** | | [optional]
|
||||
**defaultMaxResponseSize** | **Long** | | [optional]
|
||||
**defaultPagingNum** | **Long** | | [optional]
|
||||
**maxResponseItems** | **Long** | | [optional]
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# GetFilesOptions
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**files** | **List<String>** | | [optional]
|
||||
@@ -56,6 +56,7 @@ Method | HTTP request | Description
|
||||
[**issueListIssueDependencies**](IssueApi.md#issueListIssueDependencies) | **GET** repos/{owner}/{repo}/issues/{index}/dependencies | List an issue's dependencies, i.e all issues that block this issue.
|
||||
[**issueListIssues**](IssueApi.md#issueListIssues) | **GET** repos/{owner}/{repo}/issues | List a repository's issues
|
||||
[**issueListLabels**](IssueApi.md#issueListLabels) | **GET** repos/{owner}/{repo}/labels | Get all of a repository's labels
|
||||
[**issueLockIssue**](IssueApi.md#issueLockIssue) | **PUT** repos/{owner}/{repo}/issues/{index}/lock | Lock an issue
|
||||
[**issuePostCommentReaction**](IssueApi.md#issuePostCommentReaction) | **POST** repos/{owner}/{repo}/issues/comments/{id}/reactions | Add a reaction to a comment of an issue
|
||||
[**issuePostIssueReaction**](IssueApi.md#issuePostIssueReaction) | **POST** repos/{owner}/{repo}/issues/{index}/reactions | Add a reaction to an issue
|
||||
[**issueRemoveIssueBlocking**](IssueApi.md#issueRemoveIssueBlocking) | **DELETE** repos/{owner}/{repo}/issues/{index}/blocks | Unblock the issue given in the body by the issue in path
|
||||
@@ -68,6 +69,7 @@ Method | HTTP request | Description
|
||||
[**issueStopStopWatch**](IssueApi.md#issueStopStopWatch) | **POST** repos/{owner}/{repo}/issues/{index}/stopwatch/stop | Stop an issue's existing stopwatch.
|
||||
[**issueSubscriptions**](IssueApi.md#issueSubscriptions) | **GET** repos/{owner}/{repo}/issues/{index}/subscriptions | Get users who subscribed on an issue.
|
||||
[**issueTrackedTimes**](IssueApi.md#issueTrackedTimes) | **GET** repos/{owner}/{repo}/issues/{index}/times | List an issue's tracked times
|
||||
[**issueUnlockIssue**](IssueApi.md#issueUnlockIssue) | **DELETE** repos/{owner}/{repo}/issues/{index}/lock | Unlock an issue
|
||||
[**moveIssuePin**](IssueApi.md#moveIssuePin) | **PATCH** repos/{owner}/{repo}/issues/{index}/pin/{position} | Moves the Pin to the given Position
|
||||
[**pinIssue**](IssueApi.md#pinIssue) | **POST** repos/{owner}/{repo}/issues/{index}/pin | Pin an Issue
|
||||
[**unpinIssue**](IssueApi.md#unpinIssue) | **DELETE** repos/{owner}/{repo}/issues/{index}/pin | Unpin an Issue
|
||||
@@ -4924,6 +4926,99 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="issueLockIssue"></a>
|
||||
# **issueLockIssue**
|
||||
> Void issueLockIssue(owner, repo, index, body)
|
||||
|
||||
Lock an issue
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import org.gitnex.tea4j.v2.ApiClient;
|
||||
//import org.gitnex.tea4j.v2.ApiException;
|
||||
//import org.gitnex.tea4j.v2.Configuration;
|
||||
//import org.gitnex.tea4j.v2.auth.*;
|
||||
//import org.gitnex.tea4j.v2.apis.IssueApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
IssueApi apiInstance = new IssueApi();
|
||||
String owner = "owner_example"; // String | owner of the repo
|
||||
String repo = "repo_example"; // String | name of the repo
|
||||
Long index = 789L; // Long | index of the issue
|
||||
LockIssueOption body = new LockIssueOption(); // LockIssueOption |
|
||||
try {
|
||||
Void result = apiInstance.issueLockIssue(owner, repo, index, body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling IssueApi#issueLockIssue");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**owner** | **String**| owner of the repo |
|
||||
**repo** | **String**| name of the repo |
|
||||
**index** | **Long**| index of the issue |
|
||||
**body** | [**LockIssueOption**](LockIssueOption.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
|
||||
|
||||
<a name="issuePostCommentReaction"></a>
|
||||
# **issuePostCommentReaction**
|
||||
> Reaction issuePostCommentReaction(owner, repo, id, body)
|
||||
@@ -6070,6 +6165,97 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="issueUnlockIssue"></a>
|
||||
# **issueUnlockIssue**
|
||||
> Void issueUnlockIssue(owner, repo, index)
|
||||
|
||||
Unlock an issue
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import org.gitnex.tea4j.v2.ApiClient;
|
||||
//import org.gitnex.tea4j.v2.ApiException;
|
||||
//import org.gitnex.tea4j.v2.Configuration;
|
||||
//import org.gitnex.tea4j.v2.auth.*;
|
||||
//import org.gitnex.tea4j.v2.apis.IssueApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
IssueApi apiInstance = new IssueApi();
|
||||
String owner = "owner_example"; // String | owner of the repo
|
||||
String repo = "repo_example"; // String | name of the repo
|
||||
Long index = 789L; // Long | index of the issue
|
||||
try {
|
||||
Void result = apiInstance.issueUnlockIssue(owner, repo, index);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling IssueApi#issueUnlockIssue");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**owner** | **String**| owner of the repo |
|
||||
**repo** | **String**| name of the repo |
|
||||
**index** | **Long**| index of the issue |
|
||||
|
||||
### 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
|
||||
|
||||
<a name="moveIssuePin"></a>
|
||||
# **moveIssuePin**
|
||||
> Void moveIssuePin(owner, repo, index, position)
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# LockIssueOption
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**lockReason** | **String** | | [optional]
|
||||
@@ -38,3 +38,4 @@ GOGS | "gogs"
|
||||
ONEDEV | "onedev"
|
||||
GITBUCKET | "gitbucket"
|
||||
CODEBASE | "codebase"
|
||||
CODECOMMIT | "codecommit"
|
||||
|
||||
@@ -9,6 +9,7 @@ Method | HTTP request | Description
|
||||
[**getLicenseTemplateInfo**](MiscellaneousApi.md#getLicenseTemplateInfo) | **GET** licenses/{name} | Returns information about a license template
|
||||
[**getNodeInfo**](MiscellaneousApi.md#getNodeInfo) | **GET** nodeinfo | Returns the nodeinfo of the Gitea application
|
||||
[**getSigningKey**](MiscellaneousApi.md#getSigningKey) | **GET** signing-key.gpg | Get default signing-key.gpg
|
||||
[**getSigningKeySSH**](MiscellaneousApi.md#getSigningKeySSH) | **GET** signing-key.pub | Get default signing-key.pub
|
||||
[**getVersion**](MiscellaneousApi.md#getVersion) | **GET** version | Returns the version of the Gitea application
|
||||
[**listGitignoresTemplates**](MiscellaneousApi.md#listGitignoresTemplates) | **GET** gitignore/templates | Returns a list of all gitignore templates
|
||||
[**listLabelTemplates**](MiscellaneousApi.md#listLabelTemplates) | **GET** label/templates | Returns a list of all label templates
|
||||
@@ -439,6 +440,89 @@ This endpoint does not need any parameter.
|
||||
|
||||
[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**: text/plain
|
||||
|
||||
<a name="getSigningKeySSH"></a>
|
||||
# **getSigningKeySSH**
|
||||
> String getSigningKeySSH()
|
||||
|
||||
Get default signing-key.pub
|
||||
|
||||
### 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.MiscellaneousApi;
|
||||
|
||||
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");
|
||||
|
||||
MiscellaneousApi apiInstance = new MiscellaneousApi();
|
||||
try {
|
||||
String result = apiInstance.getSigningKeySSH();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling MiscellaneousApi#getSigningKeySSH");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
**String**
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
|
||||
@@ -7,8 +7,11 @@ 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
|
||||
[**createOrgVariable**](OrganizationApi.md#createOrgVariable) | **POST** orgs/{org}/actions/variables/{variablename} | Create an org-level variable
|
||||
[**deleteOrgRunner**](OrganizationApi.md#deleteOrgRunner) | **DELETE** orgs/{org}/actions/runners/{runner_id} | Delete an org-level runner
|
||||
[**deleteOrgSecret**](OrganizationApi.md#deleteOrgSecret) | **DELETE** orgs/{org}/actions/secrets/{secretname} | Delete a secret in an organization
|
||||
[**deleteOrgVariable**](OrganizationApi.md#deleteOrgVariable) | **DELETE** orgs/{org}/actions/variables/{variablename} | Delete an org-level variable
|
||||
[**getOrgRunner**](OrganizationApi.md#getOrgRunner) | **GET** orgs/{org}/actions/runners/{runner_id} | Get an org-level runner
|
||||
[**getOrgRunners**](OrganizationApi.md#getOrgRunners) | **GET** orgs/{org}/actions/runners | Get org-level runners
|
||||
[**getOrgVariable**](OrganizationApi.md#getOrgVariable) | **GET** orgs/{org}/actions/variables/{variablename} | Get an org-level variable
|
||||
[**getOrgVariablesList**](OrganizationApi.md#getOrgVariablesList) | **GET** orgs/{org}/actions/variables | Get an org-level variables list
|
||||
[**orgAddTeamMember**](OrganizationApi.md#orgAddTeamMember) | **PUT** teams/{id}/members/{username} | Add a team member
|
||||
@@ -17,6 +20,7 @@ Method | HTTP request | Description
|
||||
[**orgCreate**](OrganizationApi.md#orgCreate) | **POST** orgs | Create an organization
|
||||
[**orgCreateHook**](OrganizationApi.md#orgCreateHook) | **POST** orgs/{org}/hooks | Create a hook
|
||||
[**orgCreateLabel**](OrganizationApi.md#orgCreateLabel) | **POST** orgs/{org}/labels | Create a label for an organization
|
||||
[**orgCreateRunnerRegistrationToken**](OrganizationApi.md#orgCreateRunnerRegistrationToken) | **POST** orgs/{org}/actions/runners/registration-token | Get an organization's actions runner registration token
|
||||
[**orgCreateTeam**](OrganizationApi.md#orgCreateTeam) | **POST** orgs/{org}/teams | Create a team
|
||||
[**orgDelete**](OrganizationApi.md#orgDelete) | **DELETE** orgs/{org} | Delete an organization
|
||||
[**orgDeleteAvatar**](OrganizationApi.md#orgDeleteAvatar) | **DELETE** orgs/{org}/avatar | Delete Avatar
|
||||
@@ -60,6 +64,7 @@ Method | HTTP request | Description
|
||||
[**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
|
||||
[**renameOrg**](OrganizationApi.md#renameOrg) | **POST** orgs/{org}/rename | Rename an organization
|
||||
[**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
|
||||
[**updateOrgVariable**](OrganizationApi.md#updateOrgVariable) | **PUT** orgs/{org}/actions/variables/{variablename} | Update an org-level variable
|
||||
@@ -333,6 +338,95 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
<a name="deleteOrgRunner"></a>
|
||||
# **deleteOrgRunner**
|
||||
> Void deleteOrgRunner(org, runnerId)
|
||||
|
||||
Delete an org-level runner
|
||||
|
||||
### 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 runnerId = "runnerId_example"; // String | id of the runner
|
||||
try {
|
||||
Void result = apiInstance.deleteOrgRunner(org, runnerId);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling OrganizationApi#deleteOrgRunner");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**org** | **String**| name of the organization |
|
||||
**runnerId** | **String**| id of the runner |
|
||||
|
||||
### 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
|
||||
|
||||
<a name="deleteOrgSecret"></a>
|
||||
# **deleteOrgSecret**
|
||||
> Void deleteOrgSecret(org, secretname)
|
||||
@@ -511,6 +605,182 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="getOrgRunner"></a>
|
||||
# **getOrgRunner**
|
||||
> Void getOrgRunner(org, runnerId)
|
||||
|
||||
Get an org-level runner
|
||||
|
||||
### 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 runnerId = "runnerId_example"; // String | id of the runner
|
||||
try {
|
||||
Void result = apiInstance.getOrgRunner(org, runnerId);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling OrganizationApi#getOrgRunner");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**org** | **String**| name of the organization |
|
||||
**runnerId** | **String**| id of the runner |
|
||||
|
||||
### 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
|
||||
|
||||
<a name="getOrgRunners"></a>
|
||||
# **getOrgRunners**
|
||||
> Void getOrgRunners(org)
|
||||
|
||||
Get org-level runners
|
||||
|
||||
### 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
|
||||
try {
|
||||
Void result = apiInstance.getOrgRunners(org);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling OrganizationApi#getOrgRunners");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**org** | **String**| name of the organization |
|
||||
|
||||
### 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
|
||||
|
||||
<a name="getOrgVariable"></a>
|
||||
# **getOrgVariable**
|
||||
> ActionVariable getOrgVariable(org, variablename)
|
||||
@@ -1225,6 +1495,93 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="orgCreateRunnerRegistrationToken"></a>
|
||||
# **orgCreateRunnerRegistrationToken**
|
||||
> Void orgCreateRunnerRegistrationToken(org)
|
||||
|
||||
Get an organization's actions runner registration token
|
||||
|
||||
### 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
|
||||
try {
|
||||
Void result = apiInstance.orgCreateRunnerRegistrationToken(org);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling OrganizationApi#orgCreateRunnerRegistrationToken");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**org** | **String**| name of the organization |
|
||||
|
||||
### 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
|
||||
|
||||
<a name="orgCreateTeam"></a>
|
||||
# **orgCreateTeam**
|
||||
> Team orgCreateTeam(org, body)
|
||||
@@ -5082,6 +5439,95 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
<a name="renameOrg"></a>
|
||||
# **renameOrg**
|
||||
> Void renameOrg(body, org)
|
||||
|
||||
Rename 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();
|
||||
RenameOrgOption body = new RenameOrgOption(); // RenameOrgOption |
|
||||
String org = "org_example"; // String | existing org name
|
||||
try {
|
||||
Void result = apiInstance.renameOrg(body, org);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling OrganizationApi#renameOrg");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**RenameOrgOption**](RenameOrgOption.md)| |
|
||||
**org** | **String**| existing org name |
|
||||
|
||||
### 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, text/plain
|
||||
- **Accept**: Not defined
|
||||
|
||||
<a name="teamSearch"></a>
|
||||
# **teamSearch**
|
||||
> InlineResponse200 teamSearch(org, q, includeDesc, page, limit)
|
||||
|
||||
@@ -5,9 +5,13 @@ All URIs are relative to *https://{{AppSubUrl | JSEscape}}/api/v1*
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**deletePackage**](PackageApi.md#deletePackage) | **DELETE** packages/{owner}/{type}/{name}/{version} | Delete a package
|
||||
[**getLatestPackageVersion**](PackageApi.md#getLatestPackageVersion) | **GET** packages/{owner}/{type}/{name}/-/latest | Gets the latest version of a package
|
||||
[**getPackage**](PackageApi.md#getPackage) | **GET** packages/{owner}/{type}/{name}/{version} | Gets a package
|
||||
[**linkPackage**](PackageApi.md#linkPackage) | **POST** packages/{owner}/{type}/{name}/-/link/{repo_name} | Link a package to a repository
|
||||
[**listPackageFiles**](PackageApi.md#listPackageFiles) | **GET** packages/{owner}/{type}/{name}/{version}/files | Gets all files of a package
|
||||
[**listPackageVersions**](PackageApi.md#listPackageVersions) | **GET** packages/{owner}/{type}/{name} | Gets all versions of a package
|
||||
[**listPackages**](PackageApi.md#listPackages) | **GET** packages/{owner} | Gets all packages of an owner
|
||||
[**unlinkPackage**](PackageApi.md#unlinkPackage) | **POST** packages/{owner}/{type}/{name}/-/unlink | Unlink a package from a repository
|
||||
|
||||
<a name="deletePackage"></a>
|
||||
# **deletePackage**
|
||||
@@ -102,6 +106,97 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
<a name="getLatestPackageVersion"></a>
|
||||
# **getLatestPackageVersion**
|
||||
> ModelPackage getLatestPackageVersion(owner, type, name)
|
||||
|
||||
Gets the latest version of a package
|
||||
|
||||
### 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.PackageApi;
|
||||
|
||||
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");
|
||||
|
||||
PackageApi apiInstance = new PackageApi();
|
||||
String owner = "owner_example"; // String | owner of the package
|
||||
String type = "type_example"; // String | type of the package
|
||||
String name = "name_example"; // String | name of the package
|
||||
try {
|
||||
ModelPackage result = apiInstance.getLatestPackageVersion(owner, type, name);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PackageApi#getLatestPackageVersion");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**owner** | **String**| owner of the package |
|
||||
**type** | **String**| type of the package |
|
||||
**name** | **String**| name of the package |
|
||||
|
||||
### Return type
|
||||
|
||||
[**ModelPackage**](ModelPackage.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
|
||||
|
||||
<a name="getPackage"></a>
|
||||
# **getPackage**
|
||||
> ModelPackage getPackage(owner, type, name, version)
|
||||
@@ -195,6 +290,99 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="linkPackage"></a>
|
||||
# **linkPackage**
|
||||
> Void linkPackage(owner, type, name, repoName)
|
||||
|
||||
Link a package to 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.PackageApi;
|
||||
|
||||
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");
|
||||
|
||||
PackageApi apiInstance = new PackageApi();
|
||||
String owner = "owner_example"; // String | owner of the package
|
||||
String type = "type_example"; // String | type of the package
|
||||
String name = "name_example"; // String | name of the package
|
||||
String repoName = "repoName_example"; // String | name of the repository to link.
|
||||
try {
|
||||
Void result = apiInstance.linkPackage(owner, type, name, repoName);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PackageApi#linkPackage");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**owner** | **String**| owner of the package |
|
||||
**type** | **String**| type of the package |
|
||||
**name** | **String**| name of the package |
|
||||
**repoName** | **String**| name of the repository to link. |
|
||||
|
||||
### 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
|
||||
|
||||
<a name="listPackageFiles"></a>
|
||||
# **listPackageFiles**
|
||||
> List<PackageFile> listPackageFiles(owner, type, name, version)
|
||||
@@ -283,6 +471,101 @@ 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
|
||||
|
||||
<a name="listPackageVersions"></a>
|
||||
# **listPackageVersions**
|
||||
> List<ModelPackage> listPackageVersions(owner, type, name, page, limit)
|
||||
|
||||
Gets all versions of a package
|
||||
|
||||
### 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.PackageApi;
|
||||
|
||||
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");
|
||||
|
||||
PackageApi apiInstance = new PackageApi();
|
||||
String owner = "owner_example"; // String | owner of the package
|
||||
String type = "type_example"; // String | type of the package
|
||||
String name = "name_example"; // String | name of the package
|
||||
Integer page = 56; // Integer | page number of results to return (1-based)
|
||||
Integer limit = 56; // Integer | page size of results
|
||||
try {
|
||||
List<ModelPackage> result = apiInstance.listPackageVersions(owner, type, name, page, limit);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PackageApi#listPackageVersions");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**owner** | **String**| owner of the package |
|
||||
**type** | **String**| type of the package |
|
||||
**name** | **String**| name of the package |
|
||||
**page** | **Integer**| page number of results to return (1-based) | [optional]
|
||||
**limit** | **Integer**| page size of results | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<ModelPackage>**](ModelPackage.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
|
||||
@@ -383,3 +666,94 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="unlinkPackage"></a>
|
||||
# **unlinkPackage**
|
||||
> Void unlinkPackage(owner, type, name)
|
||||
|
||||
Unlink a package from 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.PackageApi;
|
||||
|
||||
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");
|
||||
|
||||
PackageApi apiInstance = new PackageApi();
|
||||
String owner = "owner_example"; // String | owner of the package
|
||||
String type = "type_example"; // String | type of the package
|
||||
String name = "name_example"; // String | name of the package
|
||||
try {
|
||||
Void result = apiInstance.unlinkPackage(owner, type, name);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PackageApi#unlinkPackage");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**owner** | **String**| owner of the package |
|
||||
**type** | **String**| type of the package |
|
||||
**name** | **String**| name of the package |
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
+1
-1
@@ -3,10 +3,10 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**size** | **Long** | | [optional]
|
||||
**id** | **Long** | | [optional]
|
||||
**md5** | **String** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**sha1** | **String** | | [optional]
|
||||
**sha256** | **String** | | [optional]
|
||||
**sha512** | **String** | | [optional]
|
||||
**size** | **Long** | | [optional]
|
||||
|
||||
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
||||
**id** | **Long** | | [optional]
|
||||
**key** | **String** | | [optional]
|
||||
**keyType** | **String** | | [optional]
|
||||
**lastUsedAt** | [**Date**](Date.md) | | [optional]
|
||||
**readOnly** | **Boolean** | | [optional]
|
||||
**title** | **String** | | [optional]
|
||||
**url** | **String** | | [optional]
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# RenameOrgOption
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**newName** | **String** | New username for this org. This name cannot be in use yet by any other user. |
|
||||
@@ -4,6 +4,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**allowFastForwardOnlyMerge** | **Boolean** | | [optional]
|
||||
**allowManualMerge** | **Boolean** | | [optional]
|
||||
**allowMergeCommits** | **Boolean** | | [optional]
|
||||
**allowRebase** | **Boolean** | | [optional]
|
||||
**allowRebaseExplicit** | **Boolean** | | [optional]
|
||||
@@ -11,6 +12,7 @@ Name | Type | Description | Notes
|
||||
**allowSquashMerge** | **Boolean** | | [optional]
|
||||
**archived** | **Boolean** | | [optional]
|
||||
**archivedAt** | [**Date**](Date.md) | | [optional]
|
||||
**autodetectManualMerge** | **Boolean** | | [optional]
|
||||
**avatarUrl** | **String** | | [optional]
|
||||
**cloneUrl** | **String** | | [optional]
|
||||
**createdAt** | [**Date**](Date.md) | | [optional]
|
||||
|
||||
+1769
-11
File diff suppressed because it is too large
Load Diff
@@ -4,4 +4,5 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**createdAt** | [**Date**](Date.md) | | [optional]
|
||||
**description** | **String** | the secret's description | [optional]
|
||||
**name** | **String** | the secret's name | [optional]
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**description** | **String** | Description of the variable to update | [optional]
|
||||
**name** | **String** | New name for the variable. If the field is empty, the variable name won't be updated. | [optional]
|
||||
**value** | **String** | Value of the variable to update |
|
||||
|
||||
+344
@@ -6,8 +6,11 @@ Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**createCurrentUserRepo**](UserApi.md#createCurrentUserRepo) | **POST** user/repos | Create a repository
|
||||
[**createUserVariable**](UserApi.md#createUserVariable) | **POST** user/actions/variables/{variablename} | Create a user-level variable
|
||||
[**deleteUserRunner**](UserApi.md#deleteUserRunner) | **DELETE** user/actions/runners/{runner_id} | Delete an user-level runner
|
||||
[**deleteUserSecret**](UserApi.md#deleteUserSecret) | **DELETE** user/actions/secrets/{secretname} | Delete a secret in a user scope
|
||||
[**deleteUserVariable**](UserApi.md#deleteUserVariable) | **DELETE** user/actions/variables/{variablename} | Delete a user-level variable which is created by current doer
|
||||
[**getUserRunner**](UserApi.md#getUserRunner) | **GET** user/actions/runners/{runner_id} | Get an user-level runner
|
||||
[**getUserRunners**](UserApi.md#getUserRunners) | **GET** user/actions/runners | Get user-level runners
|
||||
[**getUserSettings**](UserApi.md#getUserSettings) | **GET** user/settings | Get user settings
|
||||
[**getUserVariable**](UserApi.md#getUserVariable) | **GET** user/actions/variables/{variablename} | Get a user-level variable which is created by current doer
|
||||
[**getUserVariablesList**](UserApi.md#getUserVariablesList) | **GET** user/actions/variables | Get the user-level list of variables which is created by current doer
|
||||
@@ -21,6 +24,7 @@ Method | HTTP request | Description
|
||||
[**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
|
||||
[**userCreateRunnerRegistrationToken**](UserApi.md#userCreateRunnerRegistrationToken) | **POST** user/actions/runners/registration-token | Get an user's actions runner registration token
|
||||
[**userCreateToken**](UserApi.md#userCreateToken) | **POST** users/{username}/tokens | Create an access token
|
||||
[**userCurrentCheckFollowing**](UserApi.md#userCurrentCheckFollowing) | **GET** user/following/{username} | Check whether a user is followed by the authenticated user
|
||||
[**userCurrentCheckStarring**](UserApi.md#userCurrentCheckStarring) | **GET** user/starred/{owner}/{repo} | Whether the authenticated is starring the repo
|
||||
@@ -251,6 +255,93 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
<a name="deleteUserRunner"></a>
|
||||
# **deleteUserRunner**
|
||||
> Void deleteUserRunner(runnerId)
|
||||
|
||||
Delete an user-level runner
|
||||
|
||||
### 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 runnerId = "runnerId_example"; // String | id of the runner
|
||||
try {
|
||||
Void result = apiInstance.deleteUserRunner(runnerId);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#deleteUserRunner");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**runnerId** | **String**| id of the runner |
|
||||
|
||||
### 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
|
||||
|
||||
<a name="deleteUserSecret"></a>
|
||||
# **deleteUserSecret**
|
||||
> Void deleteUserSecret(secretname)
|
||||
@@ -420,6 +511,176 @@ 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
|
||||
|
||||
<a name="getUserRunner"></a>
|
||||
# **getUserRunner**
|
||||
> Void getUserRunner(runnerId)
|
||||
|
||||
Get an user-level runner
|
||||
|
||||
### 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 runnerId = "runnerId_example"; // String | id of the runner
|
||||
try {
|
||||
Void result = apiInstance.getUserRunner(runnerId);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#getUserRunner");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**runnerId** | **String**| id of the runner |
|
||||
|
||||
### 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
|
||||
|
||||
<a name="getUserRunners"></a>
|
||||
# **getUserRunners**
|
||||
> Void getUserRunners()
|
||||
|
||||
Get user-level runners
|
||||
|
||||
### 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();
|
||||
try {
|
||||
Void result = apiInstance.getUserRunners();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#getUserRunners");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### 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
|
||||
@@ -1558,6 +1819,89 @@ Name | Type | Description | Notes
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="userCreateRunnerRegistrationToken"></a>
|
||||
# **userCreateRunnerRegistrationToken**
|
||||
> Void userCreateRunnerRegistrationToken()
|
||||
|
||||
Get an user's actions runner registration token
|
||||
|
||||
### 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();
|
||||
try {
|
||||
Void result = apiInstance.userCreateRunnerRegistrationToken();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#userCreateRunnerRegistrationToken");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### 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
|
||||
|
||||
<a name="userCreateToken"></a>
|
||||
# **userCreateToken**
|
||||
> AccessToken userCreateToken(username, body)
|
||||
|
||||
@@ -92,6 +92,14 @@ public interface AdminApi {
|
||||
Call<Repository> adminCreateRepo(
|
||||
@retrofit2.http.Body CreateRepoOption body, @retrofit2.http.Path("username") String username);
|
||||
|
||||
/**
|
||||
* Get an global actions runner registration token
|
||||
*
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@POST("admin/actions/runners/registration-token")
|
||||
Call<Void> adminCreateRunnerRegistrationToken();
|
||||
|
||||
/**
|
||||
* Create a user
|
||||
*
|
||||
@@ -318,4 +326,30 @@ public interface AdminApi {
|
||||
@retrofit2.http.Query("page") Integer page,
|
||||
@retrofit2.http.Query("limit") Integer limit,
|
||||
@retrofit2.http.Query("pattern") String pattern);
|
||||
|
||||
/**
|
||||
* Delete an global runner
|
||||
*
|
||||
* @param runnerId id of the runner (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@DELETE("admin/actions/runners/{runner_id}")
|
||||
Call<Void> deleteAdminRunner(@retrofit2.http.Path("runner_id") String runnerId);
|
||||
|
||||
/**
|
||||
* Get an global runner
|
||||
*
|
||||
* @param runnerId id of the runner (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@GET("admin/actions/runners/{runner_id}")
|
||||
Call<Void> getAdminRunner(@retrofit2.http.Path("runner_id") String runnerId);
|
||||
|
||||
/**
|
||||
* Get all runners
|
||||
*
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@GET("admin/actions/runners")
|
||||
Call<Void> getAdminRunners();
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ import org.gitnex.tea4j.v2.models.IssueDeadline;
|
||||
import org.gitnex.tea4j.v2.models.IssueLabelsOption;
|
||||
import org.gitnex.tea4j.v2.models.IssueMeta;
|
||||
import org.gitnex.tea4j.v2.models.Label;
|
||||
import org.gitnex.tea4j.v2.models.LockIssueOption;
|
||||
import org.gitnex.tea4j.v2.models.Milestone;
|
||||
import org.gitnex.tea4j.v2.models.Reaction;
|
||||
import org.gitnex.tea4j.v2.models.TimelineComment;
|
||||
@@ -916,6 +917,23 @@ public interface IssueApi {
|
||||
@retrofit2.http.Query("page") Integer page,
|
||||
@retrofit2.http.Query("limit") Integer limit);
|
||||
|
||||
/**
|
||||
* Lock an issue
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param index index of the issue (required)
|
||||
* @param body (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@PUT("repos/{owner}/{repo}/issues/{index}/lock")
|
||||
Call<Void> issueLockIssue(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("index") Long index,
|
||||
@retrofit2.http.Body LockIssueOption body);
|
||||
|
||||
/**
|
||||
* Add a reaction to a comment of an issue
|
||||
*
|
||||
@@ -1152,6 +1170,20 @@ public interface IssueApi {
|
||||
@retrofit2.http.Query("page") Integer page,
|
||||
@retrofit2.http.Query("limit") Integer limit);
|
||||
|
||||
/**
|
||||
* Unlock an issue
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param index index of the issue (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@DELETE("repos/{owner}/{repo}/issues/{index}/lock")
|
||||
Call<Void> issueUnlockIssue(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("index") Long index);
|
||||
|
||||
/**
|
||||
* Moves the Pin to the given Position
|
||||
*
|
||||
|
||||
@@ -57,6 +57,14 @@ public interface MiscellaneousApi {
|
||||
@GET("signing-key.gpg")
|
||||
Call<String> getSigningKey();
|
||||
|
||||
/**
|
||||
* Get default signing-key.pub
|
||||
*
|
||||
* @return Call<String>
|
||||
*/
|
||||
@GET("signing-key.pub")
|
||||
Call<String> getSigningKeySSH();
|
||||
|
||||
/**
|
||||
* Returns the version of the Gitea application
|
||||
*
|
||||
|
||||
@@ -21,6 +21,7 @@ import org.gitnex.tea4j.v2.models.InlineResponse200;
|
||||
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.RenameOrgOption;
|
||||
import org.gitnex.tea4j.v2.models.Repository;
|
||||
import org.gitnex.tea4j.v2.models.Secret;
|
||||
import org.gitnex.tea4j.v2.models.Team;
|
||||
@@ -70,6 +71,17 @@ public interface OrganizationApi {
|
||||
@retrofit2.http.Path("variablename") String variablename,
|
||||
@retrofit2.http.Body CreateVariableOption body);
|
||||
|
||||
/**
|
||||
* Delete an org-level runner
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @param runnerId id of the runner (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@DELETE("orgs/{org}/actions/runners/{runner_id}")
|
||||
Call<Void> deleteOrgRunner(
|
||||
@retrofit2.http.Path("org") String org, @retrofit2.http.Path("runner_id") String runnerId);
|
||||
|
||||
/**
|
||||
* Delete a secret in an organization
|
||||
*
|
||||
@@ -93,6 +105,26 @@ public interface OrganizationApi {
|
||||
@retrofit2.http.Path("org") String org,
|
||||
@retrofit2.http.Path("variablename") String variablename);
|
||||
|
||||
/**
|
||||
* Get an org-level runner
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @param runnerId id of the runner (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@GET("orgs/{org}/actions/runners/{runner_id}")
|
||||
Call<Void> getOrgRunner(
|
||||
@retrofit2.http.Path("org") String org, @retrofit2.http.Path("runner_id") String runnerId);
|
||||
|
||||
/**
|
||||
* Get org-level runners
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@GET("orgs/{org}/actions/runners")
|
||||
Call<Void> getOrgRunners(@retrofit2.http.Path("org") String org);
|
||||
|
||||
/**
|
||||
* Get an org-level variable
|
||||
*
|
||||
@@ -189,6 +221,15 @@ public interface OrganizationApi {
|
||||
Call<Label> orgCreateLabel(
|
||||
@retrofit2.http.Path("org") String org, @retrofit2.http.Body CreateLabelOption body);
|
||||
|
||||
/**
|
||||
* Get an organization's actions runner registration token
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@POST("orgs/{org}/actions/runners/registration-token")
|
||||
Call<Void> orgCreateRunnerRegistrationToken(@retrofit2.http.Path("org") String org);
|
||||
|
||||
/**
|
||||
* Create a team
|
||||
*
|
||||
@@ -714,6 +755,18 @@ public interface OrganizationApi {
|
||||
Call<Void> organizationUnblockUser(
|
||||
@retrofit2.http.Path("org") String org, @retrofit2.http.Path("username") String username);
|
||||
|
||||
/**
|
||||
* Rename an organization
|
||||
*
|
||||
* @param body (required)
|
||||
* @param org existing org name (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@POST("orgs/{org}/rename")
|
||||
Call<Void> renameOrg(
|
||||
@retrofit2.http.Body RenameOrgOption body, @retrofit2.http.Path("org") String org);
|
||||
|
||||
/**
|
||||
* Search for teams within an organization
|
||||
*
|
||||
|
||||
@@ -24,6 +24,20 @@ public interface PackageApi {
|
||||
@retrofit2.http.Path("name") String name,
|
||||
@retrofit2.http.Path("version") String version);
|
||||
|
||||
/**
|
||||
* Gets the latest version of a package
|
||||
*
|
||||
* @param owner owner of the package (required)
|
||||
* @param type type of the package (required)
|
||||
* @param name name of the package (required)
|
||||
* @return Call<ModelPackage>
|
||||
*/
|
||||
@GET("packages/{owner}/{type}/{name}/-/latest")
|
||||
Call<ModelPackage> getLatestPackageVersion(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("type") String type,
|
||||
@retrofit2.http.Path("name") String name);
|
||||
|
||||
/**
|
||||
* Gets a package
|
||||
*
|
||||
@@ -40,6 +54,22 @@ public interface PackageApi {
|
||||
@retrofit2.http.Path("name") String name,
|
||||
@retrofit2.http.Path("version") String version);
|
||||
|
||||
/**
|
||||
* Link a package to a repository
|
||||
*
|
||||
* @param owner owner of the package (required)
|
||||
* @param type type of the package (required)
|
||||
* @param name name of the package (required)
|
||||
* @param repoName name of the repository to link. (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@POST("packages/{owner}/{type}/{name}/-/link/{repo_name}")
|
||||
Call<Void> linkPackage(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("type") String type,
|
||||
@retrofit2.http.Path("name") String name,
|
||||
@retrofit2.http.Path("repo_name") String repoName);
|
||||
|
||||
/**
|
||||
* Gets all files of a package
|
||||
*
|
||||
@@ -56,6 +86,24 @@ public interface PackageApi {
|
||||
@retrofit2.http.Path("name") String name,
|
||||
@retrofit2.http.Path("version") String version);
|
||||
|
||||
/**
|
||||
* Gets all versions of a package
|
||||
*
|
||||
* @param owner owner of the package (required)
|
||||
* @param type type of the package (required)
|
||||
* @param name name of the package (required)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @return Call<List<ModelPackage>>
|
||||
*/
|
||||
@GET("packages/{owner}/{type}/{name}")
|
||||
Call<List<ModelPackage>> listPackageVersions(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("type") String type,
|
||||
@retrofit2.http.Path("name") String name,
|
||||
@retrofit2.http.Query("page") Integer page,
|
||||
@retrofit2.http.Query("limit") Integer limit);
|
||||
|
||||
/**
|
||||
* Gets all packages of an owner
|
||||
*
|
||||
@@ -73,4 +121,18 @@ public interface PackageApi {
|
||||
@retrofit2.http.Query("limit") Integer limit,
|
||||
@retrofit2.http.Query("type") String type,
|
||||
@retrofit2.http.Query("q") String q);
|
||||
|
||||
/**
|
||||
* Unlink a package from a repository
|
||||
*
|
||||
* @param owner owner of the package (required)
|
||||
* @param type type of the package (required)
|
||||
* @param name name of the package (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@POST("packages/{owner}/{type}/{name}/-/unlink")
|
||||
Call<Void> unlinkPackage(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("type") String type,
|
||||
@retrofit2.http.Path("name") String name);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,11 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import okhttp3.RequestBody;
|
||||
import org.gitnex.tea4j.v2.CollectionFormats.*;
|
||||
import org.gitnex.tea4j.v2.models.ActionArtifact;
|
||||
import org.gitnex.tea4j.v2.models.ActionArtifactsResponse;
|
||||
import org.gitnex.tea4j.v2.models.ActionTaskResponse;
|
||||
import org.gitnex.tea4j.v2.models.ActionVariable;
|
||||
import org.gitnex.tea4j.v2.models.ActionWorkflow;
|
||||
import org.gitnex.tea4j.v2.models.Activity;
|
||||
import org.gitnex.tea4j.v2.models.AddCollaboratorOption;
|
||||
import org.gitnex.tea4j.v2.models.AnnotatedTag;
|
||||
@@ -21,6 +24,7 @@ import org.gitnex.tea4j.v2.models.Commit;
|
||||
import org.gitnex.tea4j.v2.models.CommitStatus;
|
||||
import org.gitnex.tea4j.v2.models.Compare;
|
||||
import org.gitnex.tea4j.v2.models.ContentsResponse;
|
||||
import org.gitnex.tea4j.v2.models.CreateActionWorkflowDispatch;
|
||||
import org.gitnex.tea4j.v2.models.CreateBranchProtectionOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateBranchRepoOption;
|
||||
import org.gitnex.tea4j.v2.models.CreateFileOptions;
|
||||
@@ -53,6 +57,7 @@ import org.gitnex.tea4j.v2.models.FileDeleteResponse;
|
||||
import org.gitnex.tea4j.v2.models.FileResponse;
|
||||
import org.gitnex.tea4j.v2.models.FilesResponse;
|
||||
import org.gitnex.tea4j.v2.models.GenerateRepoOption;
|
||||
import org.gitnex.tea4j.v2.models.GetFilesOptions;
|
||||
import org.gitnex.tea4j.v2.models.GitBlobResponse;
|
||||
import org.gitnex.tea4j.v2.models.GitHook;
|
||||
import org.gitnex.tea4j.v2.models.GitTreeResponse;
|
||||
@@ -113,6 +118,76 @@ public interface RepositoryApi {
|
||||
Call<Repository> acceptRepoTransfer(
|
||||
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
|
||||
|
||||
/**
|
||||
* Disable a workflow
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param workflowId id of the workflow (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@PUT("repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable")
|
||||
Call<Void> actionsDisableWorkflow(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("workflow_id") String workflowId);
|
||||
|
||||
/**
|
||||
* Create a workflow dispatch event
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param workflowId id of the workflow (required)
|
||||
* @param body (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@POST("repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches")
|
||||
Call<Void> actionsDispatchWorkflow(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("workflow_id") String workflowId,
|
||||
@retrofit2.http.Body CreateActionWorkflowDispatch body);
|
||||
|
||||
/**
|
||||
* Enable a workflow
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param workflowId id of the workflow (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@PUT("repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable")
|
||||
Call<Void> actionsEnableWorkflow(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("workflow_id") String workflowId);
|
||||
|
||||
/**
|
||||
* Get a workflow
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param workflowId id of the workflow (required)
|
||||
* @return Call<ActionWorkflow>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/actions/workflows/{workflow_id}")
|
||||
Call<ActionWorkflow> actionsGetWorkflow(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("workflow_id") String workflowId);
|
||||
|
||||
/**
|
||||
* List repository workflows
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @return Call<List<ActionWorkflow>>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/actions/workflows")
|
||||
Call<List<ActionWorkflow>> actionsListRepositoryWorkflows(
|
||||
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
|
||||
|
||||
/**
|
||||
* Create a repository
|
||||
*
|
||||
@@ -155,6 +230,48 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Path("variablename") String variablename,
|
||||
@retrofit2.http.Body CreateVariableOption body);
|
||||
|
||||
/**
|
||||
* Delete a workflow run
|
||||
*
|
||||
* @param owner name of the owner (required)
|
||||
* @param repo name of the repository (required)
|
||||
* @param run runid of the workflow run (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@DELETE("repos/{owner}/{repo}/actions/runs/{run}")
|
||||
Call<Void> deleteActionRun(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("run") Integer run);
|
||||
|
||||
/**
|
||||
* Deletes a specific artifact for a workflow run
|
||||
*
|
||||
* @param owner name of the owner (required)
|
||||
* @param repo name of the repository (required)
|
||||
* @param artifactId id of the artifact (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@DELETE("repos/{owner}/{repo}/actions/artifacts/{artifact_id}")
|
||||
Call<Void> deleteArtifact(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("artifact_id") String artifactId);
|
||||
|
||||
/**
|
||||
* Delete an repo-level runner
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param runnerId id of the runner (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@DELETE("repos/{owner}/{repo}/actions/runners/{runner_id}")
|
||||
Call<Void> deleteRepoRunner(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("runner_id") String runnerId);
|
||||
|
||||
/**
|
||||
* Delete a secret in a repository
|
||||
*
|
||||
@@ -183,6 +300,34 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("variablename") String variablename);
|
||||
|
||||
/**
|
||||
* Downloads the job logs for a workflow run
|
||||
*
|
||||
* @param owner name of the owner (required)
|
||||
* @param repo name of the repository (required)
|
||||
* @param jobId id of the job (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/actions/jobs/{job_id}/logs")
|
||||
Call<Void> downloadActionsRunJobLogs(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("job_id") Integer jobId);
|
||||
|
||||
/**
|
||||
* Downloads a specific artifact for a workflow run redirects to blob url
|
||||
*
|
||||
* @param owner name of the owner (required)
|
||||
* @param repo name of the repository (required)
|
||||
* @param artifactId id of the artifact (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/actions/artifacts/{artifact_id}/zip")
|
||||
Call<Void> downloadArtifact(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("artifact_id") String artifactId);
|
||||
|
||||
/**
|
||||
* Create a repository using a template
|
||||
*
|
||||
@@ -213,6 +358,50 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("sha") String sha);
|
||||
|
||||
/**
|
||||
* Gets a specific artifact for a workflow run
|
||||
*
|
||||
* @param owner name of the owner (required)
|
||||
* @param repo name of the repository (required)
|
||||
* @param artifactId id of the artifact (required)
|
||||
* @return Call<ActionArtifact>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/actions/artifacts/{artifact_id}")
|
||||
Call<ActionArtifact> getArtifact(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("artifact_id") String artifactId);
|
||||
|
||||
/**
|
||||
* Lists all artifacts for a repository
|
||||
*
|
||||
* @param owner name of the owner (required)
|
||||
* @param repo name of the repository (required)
|
||||
* @param name name of the artifact (optional)
|
||||
* @return Call<ActionArtifactsResponse>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/actions/artifacts")
|
||||
Call<ActionArtifactsResponse> getArtifacts(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Query("name") String name);
|
||||
|
||||
/**
|
||||
* Lists all artifacts for a repository run
|
||||
*
|
||||
* @param owner name of the owner (required)
|
||||
* @param repo name of the repository (required)
|
||||
* @param run runid of the workflow run (required)
|
||||
* @param name name of the artifact (optional)
|
||||
* @return Call<ActionArtifactsResponse>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/actions/runs/{run}/artifacts")
|
||||
Call<ActionArtifactsResponse> getArtifactsOfRun(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("run") Integer run,
|
||||
@retrofit2.http.Query("name") String name);
|
||||
|
||||
/**
|
||||
* Gets the blob of a repository.
|
||||
*
|
||||
@@ -227,6 +416,31 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("sha") String sha);
|
||||
|
||||
/**
|
||||
* Get an repo-level runner
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param runnerId id of the runner (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/actions/runners/{runner_id}")
|
||||
Call<Void> getRepoRunner(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("runner_id") String runnerId);
|
||||
|
||||
/**
|
||||
* Get repo-level runners
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/actions/runners")
|
||||
Call<Void> getRepoRunners(
|
||||
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
|
||||
|
||||
/**
|
||||
* Get a repo-level variable
|
||||
*
|
||||
@@ -646,6 +860,17 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Body IdAssetsBody2 body,
|
||||
@retrofit2.http.Query("name") String name);
|
||||
|
||||
/**
|
||||
* Get a repository's actions runner registration token
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@POST("repos/{owner}/{repo}/actions/runners/registration-token")
|
||||
Call<Void> repoCreateRunnerRegistrationToken(
|
||||
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
|
||||
|
||||
/**
|
||||
* Create a commit status
|
||||
*
|
||||
@@ -1218,6 +1443,8 @@ public interface RepositoryApi {
|
||||
* @param repo name of the repo (required)
|
||||
* @param sha SHA or branch to start listing commits from (usually 'master') (optional)
|
||||
* @param path filepath of a file/dir (optional)
|
||||
* @param since Only commits after this date will be returned (ISO 8601 format) (optional)
|
||||
* @param until Only commits before this date will be returned (ISO 8601 format) (optional)
|
||||
* @param stat include diff stats for every commit (disable for speedup, default 'true')
|
||||
* (optional)
|
||||
* @param verification include verification for every commit (disable for speedup, default
|
||||
@@ -1235,6 +1462,8 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Query("sha") String sha,
|
||||
@retrofit2.http.Query("path") String path,
|
||||
@retrofit2.http.Query("since") Date since,
|
||||
@retrofit2.http.Query("until") Date until,
|
||||
@retrofit2.http.Query("stat") Boolean stat,
|
||||
@retrofit2.http.Query("verification") Boolean verification,
|
||||
@retrofit2.http.Query("files") Boolean files,
|
||||
@@ -1344,8 +1573,8 @@ public interface RepositoryApi {
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param filepath path of the dir, file, symlink or submodule in the repo (required)
|
||||
* @param ref The name of the commit/branch/tag. Default the repository’s default branch (usually
|
||||
* master) (optional)
|
||||
* @param ref The name of the commit/branch/tag. Default to the repository’s default branch.
|
||||
* (optional)
|
||||
* @return Call<ContentsResponse>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/contents/{filepath}")
|
||||
@@ -1360,8 +1589,8 @@ public interface RepositoryApi {
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param ref The name of the commit/branch/tag. Default the repository’s default branch (usually
|
||||
* master) (optional)
|
||||
* @param ref The name of the commit/branch/tag. Default to the repository’s default branch.
|
||||
* (optional)
|
||||
* @return Call<List<ContentsResponse>>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/contents")
|
||||
@@ -1376,8 +1605,8 @@ public interface RepositoryApi {
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param filepath filepath of file to get (required)
|
||||
* @param ref The name of the commit/branch/tag. Default the repository’s default branch (usually
|
||||
* master) (optional)
|
||||
* @param ref The name of the commit/branch/tag. Default to the repository’s default branch.
|
||||
* (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/editorconfig/{filepath}")
|
||||
@@ -1387,6 +1616,47 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Path("filepath") String filepath,
|
||||
@retrofit2.http.Query("ref") String ref);
|
||||
|
||||
/**
|
||||
* Get the metadata and contents of requested files See the POST method. This GET method supports
|
||||
* to use JSON encoded request body in query parameter.
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param body The JSON encoded body (see the POST request): {\"files\":
|
||||
* [\"filename1\", \"filename2\"]} (required)
|
||||
* @param ref The name of the commit/branch/tag. Default to the repository’s default branch.
|
||||
* (optional)
|
||||
* @return Call<List<ContentsResponse>>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/file-contents")
|
||||
Call<List<ContentsResponse>> repoGetFileContents(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Query("body") String body,
|
||||
@retrofit2.http.Query("ref") String ref);
|
||||
|
||||
/**
|
||||
* Get the metadata and contents of requested files Uses automatic pagination based on default
|
||||
* page size and max response size and returns the maximum allowed number of files. Files which
|
||||
* could not be retrieved are null. Files which are too large are being returned with
|
||||
* `encoding == null`, `content == null` and `size
|
||||
* > 0`, they can be requested separately by using the `download_url`.
|
||||
*
|
||||
* @param body (required)
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param ref The name of the commit/branch/tag. Default to the repository’s default branch.
|
||||
* (optional)
|
||||
* @return Call<List<ContentsResponse>>
|
||||
*/
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@POST("repos/{owner}/{repo}/file-contents")
|
||||
Call<List<ContentsResponse>> repoGetFileContentsPost(
|
||||
@retrofit2.http.Body GetFilesOptions body,
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Query("ref") String ref);
|
||||
|
||||
/**
|
||||
* Get a Git hook
|
||||
*
|
||||
@@ -2015,6 +2285,7 @@ public interface RepositoryApi {
|
||||
*
|
||||
* @param owner Owner of the repo (required)
|
||||
* @param repo Name of the repo (required)
|
||||
* @param baseBranch Filter by target base branch of the pull request (optional)
|
||||
* @param state State of pull request (optional, default to open)
|
||||
* @param sort Type of sort (optional)
|
||||
* @param milestone ID of the milestone (optional)
|
||||
@@ -2028,6 +2299,7 @@ public interface RepositoryApi {
|
||||
Call<List<PullRequest>> repoListPullRequests(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Query("base_branch") String baseBranch,
|
||||
@retrofit2.http.Query("state") String state,
|
||||
@retrofit2.http.Query("sort") String sort,
|
||||
@retrofit2.http.Query("milestone") Long milestone,
|
||||
@@ -2388,6 +2660,17 @@ public interface RepositoryApi {
|
||||
Call<String> repoSigningKey(
|
||||
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
|
||||
|
||||
/**
|
||||
* Get signing-key.pub for given repository
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @return Call<String>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/signing-key.pub")
|
||||
Call<String> repoSigningKeySSH(
|
||||
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
|
||||
|
||||
/**
|
||||
* Submit a pending review to an pull request
|
||||
*
|
||||
|
||||
@@ -60,6 +60,15 @@ public interface UserApi {
|
||||
@retrofit2.http.Path("variablename") String variablename,
|
||||
@retrofit2.http.Body CreateVariableOption body);
|
||||
|
||||
/**
|
||||
* Delete an user-level runner
|
||||
*
|
||||
* @param runnerId id of the runner (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@DELETE("user/actions/runners/{runner_id}")
|
||||
Call<Void> deleteUserRunner(@retrofit2.http.Path("runner_id") String runnerId);
|
||||
|
||||
/**
|
||||
* Delete a secret in a user scope
|
||||
*
|
||||
@@ -78,6 +87,23 @@ public interface UserApi {
|
||||
@DELETE("user/actions/variables/{variablename}")
|
||||
Call<Void> deleteUserVariable(@retrofit2.http.Path("variablename") String variablename);
|
||||
|
||||
/**
|
||||
* Get an user-level runner
|
||||
*
|
||||
* @param runnerId id of the runner (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@GET("user/actions/runners/{runner_id}")
|
||||
Call<Void> getUserRunner(@retrofit2.http.Path("runner_id") String runnerId);
|
||||
|
||||
/**
|
||||
* Get user-level runners
|
||||
*
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@GET("user/actions/runners")
|
||||
Call<Void> getUserRunners();
|
||||
|
||||
/**
|
||||
* Get user settings
|
||||
*
|
||||
@@ -213,6 +239,14 @@ public interface UserApi {
|
||||
Call<OAuth2Application> userCreateOAuth2Application(
|
||||
@retrofit2.http.Body CreateOAuth2ApplicationOptions body);
|
||||
|
||||
/**
|
||||
* Get an user's actions runner registration token
|
||||
*
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@POST("user/actions/runners/registration-token")
|
||||
Call<Void> userCreateRunnerRegistrationToken();
|
||||
|
||||
/**
|
||||
* Create an access token
|
||||
*
|
||||
|
||||
@@ -117,8 +117,12 @@ public interface CustomApi {
|
||||
Call<UserSettings> customUpdateUserSettings(@Body UserSettingsOptions userSettingsOptions);
|
||||
|
||||
@Headers({"Content-Type:application/json"})
|
||||
@HTTP(method = "DELETE", path = "repos/{owner}/{repo}/issues/{index}/dependencies", hasBody = true)
|
||||
Call<Void> customIssueRemoveIssueDependencies(@retrofit2.http.Path("owner") String owner,
|
||||
@HTTP(
|
||||
method = "DELETE",
|
||||
path = "repos/{owner}/{repo}/issues/{index}/dependencies",
|
||||
hasBody = true)
|
||||
Call<Void> issueRemoveIssueDependencies2(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("index") String index,
|
||||
@retrofit2.http.Body IssueMeta body);
|
||||
|
||||
@@ -16,6 +16,7 @@ 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.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
@@ -23,9 +24,15 @@ import java.util.Objects;
|
||||
public class AccessToken implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("created_at")
|
||||
private Date createdAt = null;
|
||||
|
||||
@SerializedName("id")
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("last_used_at")
|
||||
private Date lastUsedAt = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@@ -38,6 +45,25 @@ public class AccessToken implements Serializable {
|
||||
@SerializedName("token_last_eight")
|
||||
private String tokenLastEight = null;
|
||||
|
||||
public AccessToken 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 AccessToken id(Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -57,6 +83,25 @@ public class AccessToken implements Serializable {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public AccessToken lastUsedAt(Date lastUsedAt) {
|
||||
this.lastUsedAt = lastUsedAt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastUsedAt
|
||||
*
|
||||
* @return lastUsedAt
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Date getLastUsedAt() {
|
||||
return lastUsedAt;
|
||||
}
|
||||
|
||||
public void setLastUsedAt(Date lastUsedAt) {
|
||||
this.lastUsedAt = lastUsedAt;
|
||||
}
|
||||
|
||||
public AccessToken name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
@@ -150,7 +195,9 @@ public class AccessToken implements Serializable {
|
||||
return false;
|
||||
}
|
||||
AccessToken accessToken = (AccessToken) o;
|
||||
return Objects.equals(this.id, accessToken.id)
|
||||
return Objects.equals(this.createdAt, accessToken.createdAt)
|
||||
&& Objects.equals(this.id, accessToken.id)
|
||||
&& Objects.equals(this.lastUsedAt, accessToken.lastUsedAt)
|
||||
&& Objects.equals(this.name, accessToken.name)
|
||||
&& Objects.equals(this.scopes, accessToken.scopes)
|
||||
&& Objects.equals(this.sha1, accessToken.sha1)
|
||||
@@ -159,7 +206,7 @@ public class AccessToken implements Serializable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, name, scopes, sha1, tokenLastEight);
|
||||
return Objects.hash(createdAt, id, lastUsedAt, name, scopes, sha1, tokenLastEight);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -167,7 +214,9 @@ public class AccessToken implements Serializable {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AccessToken {\n");
|
||||
|
||||
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" lastUsedAt: ").append(toIndentedString(lastUsedAt)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" scopes: ").append(toIndentedString(scopes)).append("\n");
|
||||
sb.append(" sha1: ").append(toIndentedString(sha1)).append("\n");
|
||||
|
||||
@@ -0,0 +1,310 @@
|
||||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape}}
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
|
||||
/** ActionArtifact represents a ActionArtifact */
|
||||
@Schema(description = "ActionArtifact represents a ActionArtifact")
|
||||
public class ActionArtifact implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("archive_download_url")
|
||||
private String archiveDownloadUrl = null;
|
||||
|
||||
@SerializedName("created_at")
|
||||
private Date createdAt = null;
|
||||
|
||||
@SerializedName("expired")
|
||||
private Boolean expired = null;
|
||||
|
||||
@SerializedName("expires_at")
|
||||
private Date expiresAt = null;
|
||||
|
||||
@SerializedName("id")
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@SerializedName("size_in_bytes")
|
||||
private Long sizeInBytes = null;
|
||||
|
||||
@SerializedName("updated_at")
|
||||
private Date updatedAt = null;
|
||||
|
||||
@SerializedName("url")
|
||||
private String url = null;
|
||||
|
||||
@SerializedName("workflow_run")
|
||||
private ActionWorkflowRun workflowRun = null;
|
||||
|
||||
public ActionArtifact archiveDownloadUrl(String archiveDownloadUrl) {
|
||||
this.archiveDownloadUrl = archiveDownloadUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get archiveDownloadUrl
|
||||
*
|
||||
* @return archiveDownloadUrl
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getArchiveDownloadUrl() {
|
||||
return archiveDownloadUrl;
|
||||
}
|
||||
|
||||
public void setArchiveDownloadUrl(String archiveDownloadUrl) {
|
||||
this.archiveDownloadUrl = archiveDownloadUrl;
|
||||
}
|
||||
|
||||
public ActionArtifact 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 ActionArtifact expired(Boolean expired) {
|
||||
this.expired = expired;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get expired
|
||||
*
|
||||
* @return expired
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Boolean isExpired() {
|
||||
return expired;
|
||||
}
|
||||
|
||||
public void setExpired(Boolean expired) {
|
||||
this.expired = expired;
|
||||
}
|
||||
|
||||
public ActionArtifact expiresAt(Date expiresAt) {
|
||||
this.expiresAt = expiresAt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get expiresAt
|
||||
*
|
||||
* @return expiresAt
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Date getExpiresAt() {
|
||||
return expiresAt;
|
||||
}
|
||||
|
||||
public void setExpiresAt(Date expiresAt) {
|
||||
this.expiresAt = expiresAt;
|
||||
}
|
||||
|
||||
public ActionArtifact id(Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return id
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ActionArtifact name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ActionArtifact sizeInBytes(Long sizeInBytes) {
|
||||
this.sizeInBytes = sizeInBytes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get sizeInBytes
|
||||
*
|
||||
* @return sizeInBytes
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Long getSizeInBytes() {
|
||||
return sizeInBytes;
|
||||
}
|
||||
|
||||
public void setSizeInBytes(Long sizeInBytes) {
|
||||
this.sizeInBytes = sizeInBytes;
|
||||
}
|
||||
|
||||
public ActionArtifact updatedAt(Date updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get updatedAt
|
||||
*
|
||||
* @return updatedAt
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Date getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Date updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public ActionArtifact 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 ActionArtifact workflowRun(ActionWorkflowRun workflowRun) {
|
||||
this.workflowRun = workflowRun;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get workflowRun
|
||||
*
|
||||
* @return workflowRun
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public ActionWorkflowRun getWorkflowRun() {
|
||||
return workflowRun;
|
||||
}
|
||||
|
||||
public void setWorkflowRun(ActionWorkflowRun workflowRun) {
|
||||
this.workflowRun = workflowRun;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ActionArtifact actionArtifact = (ActionArtifact) o;
|
||||
return Objects.equals(this.archiveDownloadUrl, actionArtifact.archiveDownloadUrl)
|
||||
&& Objects.equals(this.createdAt, actionArtifact.createdAt)
|
||||
&& Objects.equals(this.expired, actionArtifact.expired)
|
||||
&& Objects.equals(this.expiresAt, actionArtifact.expiresAt)
|
||||
&& Objects.equals(this.id, actionArtifact.id)
|
||||
&& Objects.equals(this.name, actionArtifact.name)
|
||||
&& Objects.equals(this.sizeInBytes, actionArtifact.sizeInBytes)
|
||||
&& Objects.equals(this.updatedAt, actionArtifact.updatedAt)
|
||||
&& Objects.equals(this.url, actionArtifact.url)
|
||||
&& Objects.equals(this.workflowRun, actionArtifact.workflowRun);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
archiveDownloadUrl,
|
||||
createdAt,
|
||||
expired,
|
||||
expiresAt,
|
||||
id,
|
||||
name,
|
||||
sizeInBytes,
|
||||
updatedAt,
|
||||
url,
|
||||
workflowRun);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionArtifact {\n");
|
||||
|
||||
sb.append(" archiveDownloadUrl: ").append(toIndentedString(archiveDownloadUrl)).append("\n");
|
||||
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
||||
sb.append(" expired: ").append(toIndentedString(expired)).append("\n");
|
||||
sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" sizeInBytes: ").append(toIndentedString(sizeInBytes)).append("\n");
|
||||
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
|
||||
sb.append(" url: ").append(toIndentedString(url)).append("\n");
|
||||
sb.append(" workflowRun: ").append(toIndentedString(workflowRun)).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 ");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape}}
|
||||
*
|
||||
*
|
||||
* 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.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/** ActionArtifactsResponse returns ActionArtifacts */
|
||||
@Schema(description = "ActionArtifactsResponse returns ActionArtifacts")
|
||||
public class ActionArtifactsResponse implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("artifacts")
|
||||
private List<ActionArtifact> artifacts = null;
|
||||
|
||||
@SerializedName("total_count")
|
||||
private Long totalCount = null;
|
||||
|
||||
public ActionArtifactsResponse artifacts(List<ActionArtifact> artifacts) {
|
||||
this.artifacts = artifacts;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ActionArtifactsResponse addArtifactsItem(ActionArtifact artifactsItem) {
|
||||
if (this.artifacts == null) {
|
||||
this.artifacts = new ArrayList<>();
|
||||
}
|
||||
this.artifacts.add(artifactsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get artifacts
|
||||
*
|
||||
* @return artifacts
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public List<ActionArtifact> getArtifacts() {
|
||||
return artifacts;
|
||||
}
|
||||
|
||||
public void setArtifacts(List<ActionArtifact> artifacts) {
|
||||
this.artifacts = artifacts;
|
||||
}
|
||||
|
||||
public ActionArtifactsResponse totalCount(Long totalCount) {
|
||||
this.totalCount = totalCount;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get totalCount
|
||||
*
|
||||
* @return totalCount
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Long getTotalCount() {
|
||||
return totalCount;
|
||||
}
|
||||
|
||||
public void setTotalCount(Long totalCount) {
|
||||
this.totalCount = totalCount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ActionArtifactsResponse actionArtifactsResponse = (ActionArtifactsResponse) o;
|
||||
return Objects.equals(this.artifacts, actionArtifactsResponse.artifacts)
|
||||
&& Objects.equals(this.totalCount, actionArtifactsResponse.totalCount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(artifacts, totalCount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionArtifactsResponse {\n");
|
||||
|
||||
sb.append(" artifacts: ").append(toIndentedString(artifacts)).append("\n");
|
||||
sb.append(" totalCount: ").append(toIndentedString(totalCount)).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 ");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape}}
|
||||
*
|
||||
*
|
||||
* 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.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/** ActionRunner represents a Runner */
|
||||
@Schema(description = "ActionRunner represents a Runner")
|
||||
public class ActionRunner implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("busy")
|
||||
private Boolean busy = null;
|
||||
|
||||
@SerializedName("ephemeral")
|
||||
private Boolean ephemeral = null;
|
||||
|
||||
@SerializedName("id")
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("labels")
|
||||
private List<ActionRunnerLabel> labels = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@SerializedName("status")
|
||||
private String status = null;
|
||||
|
||||
public ActionRunner busy(Boolean busy) {
|
||||
this.busy = busy;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get busy
|
||||
*
|
||||
* @return busy
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Boolean isBusy() {
|
||||
return busy;
|
||||
}
|
||||
|
||||
public void setBusy(Boolean busy) {
|
||||
this.busy = busy;
|
||||
}
|
||||
|
||||
public ActionRunner ephemeral(Boolean ephemeral) {
|
||||
this.ephemeral = ephemeral;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ephemeral
|
||||
*
|
||||
* @return ephemeral
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Boolean isEphemeral() {
|
||||
return ephemeral;
|
||||
}
|
||||
|
||||
public void setEphemeral(Boolean ephemeral) {
|
||||
this.ephemeral = ephemeral;
|
||||
}
|
||||
|
||||
public ActionRunner id(Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return id
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ActionRunner labels(List<ActionRunnerLabel> labels) {
|
||||
this.labels = labels;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ActionRunner addLabelsItem(ActionRunnerLabel labelsItem) {
|
||||
if (this.labels == null) {
|
||||
this.labels = new ArrayList<>();
|
||||
}
|
||||
this.labels.add(labelsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get labels
|
||||
*
|
||||
* @return labels
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public List<ActionRunnerLabel> getLabels() {
|
||||
return labels;
|
||||
}
|
||||
|
||||
public void setLabels(List<ActionRunnerLabel> labels) {
|
||||
this.labels = labels;
|
||||
}
|
||||
|
||||
public ActionRunner name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ActionRunner status(String status) {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get status
|
||||
*
|
||||
* @return status
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ActionRunner actionRunner = (ActionRunner) o;
|
||||
return Objects.equals(this.busy, actionRunner.busy)
|
||||
&& Objects.equals(this.ephemeral, actionRunner.ephemeral)
|
||||
&& Objects.equals(this.id, actionRunner.id)
|
||||
&& Objects.equals(this.labels, actionRunner.labels)
|
||||
&& Objects.equals(this.name, actionRunner.name)
|
||||
&& Objects.equals(this.status, actionRunner.status);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(busy, ephemeral, id, labels, name, status);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionRunner {\n");
|
||||
|
||||
sb.append(" busy: ").append(toIndentedString(busy)).append("\n");
|
||||
sb.append(" ephemeral: ").append(toIndentedString(ephemeral)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" labels: ").append(toIndentedString(labels)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" status: ").append(toIndentedString(status)).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 ");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape}}
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
|
||||
/** ActionRunnerLabel represents a Runner Label */
|
||||
@Schema(description = "ActionRunnerLabel represents a Runner Label")
|
||||
public class ActionRunnerLabel implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("id")
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@SerializedName("type")
|
||||
private String type = null;
|
||||
|
||||
public ActionRunnerLabel id(Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return id
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ActionRunnerLabel name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ActionRunnerLabel type(String type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get type
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ActionRunnerLabel actionRunnerLabel = (ActionRunnerLabel) o;
|
||||
return Objects.equals(this.id, actionRunnerLabel.id)
|
||||
&& Objects.equals(this.name, actionRunnerLabel.name)
|
||||
&& Objects.equals(this.type, actionRunnerLabel.type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, name, type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionRunnerLabel {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" type: ").append(toIndentedString(type)).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 ");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape}}
|
||||
*
|
||||
*
|
||||
* 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.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/** ActionRunnersResponse returns Runners */
|
||||
@Schema(description = "ActionRunnersResponse returns Runners")
|
||||
public class ActionRunnersResponse implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("runners")
|
||||
private List<ActionRunner> runners = null;
|
||||
|
||||
@SerializedName("total_count")
|
||||
private Long totalCount = null;
|
||||
|
||||
public ActionRunnersResponse runners(List<ActionRunner> runners) {
|
||||
this.runners = runners;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ActionRunnersResponse addRunnersItem(ActionRunner runnersItem) {
|
||||
if (this.runners == null) {
|
||||
this.runners = new ArrayList<>();
|
||||
}
|
||||
this.runners.add(runnersItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get runners
|
||||
*
|
||||
* @return runners
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public List<ActionRunner> getRunners() {
|
||||
return runners;
|
||||
}
|
||||
|
||||
public void setRunners(List<ActionRunner> runners) {
|
||||
this.runners = runners;
|
||||
}
|
||||
|
||||
public ActionRunnersResponse totalCount(Long totalCount) {
|
||||
this.totalCount = totalCount;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get totalCount
|
||||
*
|
||||
* @return totalCount
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Long getTotalCount() {
|
||||
return totalCount;
|
||||
}
|
||||
|
||||
public void setTotalCount(Long totalCount) {
|
||||
this.totalCount = totalCount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ActionRunnersResponse actionRunnersResponse = (ActionRunnersResponse) o;
|
||||
return Objects.equals(this.runners, actionRunnersResponse.runners)
|
||||
&& Objects.equals(this.totalCount, actionRunnersResponse.totalCount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(runners, totalCount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionRunnersResponse {\n");
|
||||
|
||||
sb.append(" runners: ").append(toIndentedString(runners)).append("\n");
|
||||
sb.append(" totalCount: ").append(toIndentedString(totalCount)).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 ");
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,9 @@ public class ActionVariable implements Serializable {
|
||||
@SerializedName("data")
|
||||
private String data = null;
|
||||
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@@ -53,6 +56,25 @@ public class ActionVariable implements Serializable {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public ActionVariable description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the description of the variable
|
||||
*
|
||||
* @return description
|
||||
*/
|
||||
@Schema(description = "the description of the variable")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public ActionVariable name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
@@ -120,6 +142,7 @@ public class ActionVariable implements Serializable {
|
||||
}
|
||||
ActionVariable actionVariable = (ActionVariable) o;
|
||||
return Objects.equals(this.data, actionVariable.data)
|
||||
&& Objects.equals(this.description, actionVariable.description)
|
||||
&& Objects.equals(this.name, actionVariable.name)
|
||||
&& Objects.equals(this.ownerId, actionVariable.ownerId)
|
||||
&& Objects.equals(this.repoId, actionVariable.repoId);
|
||||
@@ -127,7 +150,7 @@ public class ActionVariable implements Serializable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(data, name, ownerId, repoId);
|
||||
return Objects.hash(data, description, name, ownerId, repoId);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -136,6 +159,7 @@ public class ActionVariable implements Serializable {
|
||||
sb.append("class ActionVariable {\n");
|
||||
|
||||
sb.append(" data: ").append(toIndentedString(data)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n");
|
||||
sb.append(" repoId: ").append(toIndentedString(repoId)).append("\n");
|
||||
|
||||
@@ -0,0 +1,301 @@
|
||||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape}}
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
|
||||
/** ActionWorkflow represents a ActionWorkflow */
|
||||
@Schema(description = "ActionWorkflow represents a ActionWorkflow")
|
||||
public class ActionWorkflow implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("badge_url")
|
||||
private String badgeUrl = null;
|
||||
|
||||
@SerializedName("created_at")
|
||||
private Date createdAt = null;
|
||||
|
||||
@SerializedName("deleted_at")
|
||||
private Date deletedAt = null;
|
||||
|
||||
@SerializedName("html_url")
|
||||
private String htmlUrl = null;
|
||||
|
||||
@SerializedName("id")
|
||||
private String id = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@SerializedName("path")
|
||||
private String path = null;
|
||||
|
||||
@SerializedName("state")
|
||||
private String state = null;
|
||||
|
||||
@SerializedName("updated_at")
|
||||
private Date updatedAt = null;
|
||||
|
||||
@SerializedName("url")
|
||||
private String url = null;
|
||||
|
||||
public ActionWorkflow badgeUrl(String badgeUrl) {
|
||||
this.badgeUrl = badgeUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get badgeUrl
|
||||
*
|
||||
* @return badgeUrl
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getBadgeUrl() {
|
||||
return badgeUrl;
|
||||
}
|
||||
|
||||
public void setBadgeUrl(String badgeUrl) {
|
||||
this.badgeUrl = badgeUrl;
|
||||
}
|
||||
|
||||
public ActionWorkflow 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 ActionWorkflow deletedAt(Date deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get deletedAt
|
||||
*
|
||||
* @return deletedAt
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Date getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Date deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public ActionWorkflow 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 ActionWorkflow id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return id
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ActionWorkflow name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ActionWorkflow path(String path) {
|
||||
this.path = path;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get path
|
||||
*
|
||||
* @return path
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public ActionWorkflow state(String state) {
|
||||
this.state = state;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get state
|
||||
*
|
||||
* @return state
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public ActionWorkflow updatedAt(Date updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get updatedAt
|
||||
*
|
||||
* @return updatedAt
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Date getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Date updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public ActionWorkflow 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;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ActionWorkflow actionWorkflow = (ActionWorkflow) o;
|
||||
return Objects.equals(this.badgeUrl, actionWorkflow.badgeUrl)
|
||||
&& Objects.equals(this.createdAt, actionWorkflow.createdAt)
|
||||
&& Objects.equals(this.deletedAt, actionWorkflow.deletedAt)
|
||||
&& Objects.equals(this.htmlUrl, actionWorkflow.htmlUrl)
|
||||
&& Objects.equals(this.id, actionWorkflow.id)
|
||||
&& Objects.equals(this.name, actionWorkflow.name)
|
||||
&& Objects.equals(this.path, actionWorkflow.path)
|
||||
&& Objects.equals(this.state, actionWorkflow.state)
|
||||
&& Objects.equals(this.updatedAt, actionWorkflow.updatedAt)
|
||||
&& Objects.equals(this.url, actionWorkflow.url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
badgeUrl, createdAt, deletedAt, htmlUrl, id, name, path, state, updatedAt, url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionWorkflow {\n");
|
||||
|
||||
sb.append(" badgeUrl: ").append(toIndentedString(badgeUrl)).append("\n");
|
||||
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
||||
sb.append(" deletedAt: ").append(toIndentedString(deletedAt)).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(" path: ").append(toIndentedString(path)).append("\n");
|
||||
sb.append(" state: ").append(toIndentedString(state)).append("\n");
|
||||
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
|
||||
sb.append(" url: ").append(toIndentedString(url)).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 ");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape}}
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
|
||||
/** ActionWorkflowRun represents a WorkflowRun */
|
||||
@Schema(description = "ActionWorkflowRun represents a WorkflowRun")
|
||||
public class ActionWorkflowRun implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("head_sha")
|
||||
private String headSha = null;
|
||||
|
||||
@SerializedName("id")
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("repository_id")
|
||||
private Long repositoryId = null;
|
||||
|
||||
public ActionWorkflowRun headSha(String headSha) {
|
||||
this.headSha = headSha;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get headSha
|
||||
*
|
||||
* @return headSha
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getHeadSha() {
|
||||
return headSha;
|
||||
}
|
||||
|
||||
public void setHeadSha(String headSha) {
|
||||
this.headSha = headSha;
|
||||
}
|
||||
|
||||
public ActionWorkflowRun id(Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return id
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ActionWorkflowRun repositoryId(Long repositoryId) {
|
||||
this.repositoryId = repositoryId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get repositoryId
|
||||
*
|
||||
* @return repositoryId
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Long getRepositoryId() {
|
||||
return repositoryId;
|
||||
}
|
||||
|
||||
public void setRepositoryId(Long repositoryId) {
|
||||
this.repositoryId = repositoryId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ActionWorkflowRun actionWorkflowRun = (ActionWorkflowRun) o;
|
||||
return Objects.equals(this.headSha, actionWorkflowRun.headSha)
|
||||
&& Objects.equals(this.id, actionWorkflowRun.id)
|
||||
&& Objects.equals(this.repositoryId, actionWorkflowRun.repositoryId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(headSha, id, repositoryId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ActionWorkflowRun {\n");
|
||||
|
||||
sb.append(" headSha: ").append(toIndentedString(headSha)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" repositoryId: ").append(toIndentedString(repositoryId)).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 ");
|
||||
}
|
||||
}
|
||||
@@ -12,8 +12,13 @@
|
||||
|
||||
package org.gitnex.tea4j.v2.models;
|
||||
|
||||
import com.google.gson.TypeAdapter;
|
||||
import com.google.gson.annotations.JsonAdapter;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import com.google.gson.stream.JsonReader;
|
||||
import com.google.gson.stream.JsonWriter;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -34,8 +39,57 @@ public class CombinedStatus implements Serializable {
|
||||
@SerializedName("sha")
|
||||
private String sha = null;
|
||||
|
||||
/** Gets or Sets state */
|
||||
@JsonAdapter(StateEnum.Adapter.class)
|
||||
public enum StateEnum {
|
||||
PENDING("pending"),
|
||||
SUCCESS("success"),
|
||||
ERROR("error"),
|
||||
FAILURE("failure"),
|
||||
WARNING("warning"),
|
||||
SKIPPED("skipped");
|
||||
|
||||
private String value;
|
||||
|
||||
StateEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
|
||||
public static StateEnum fromValue(String input) {
|
||||
for (StateEnum b : StateEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static class Adapter extends TypeAdapter<StateEnum> {
|
||||
@Override
|
||||
public void write(final JsonWriter jsonWriter, final StateEnum enumeration)
|
||||
throws IOException {
|
||||
jsonWriter.value(String.valueOf(enumeration.getValue()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public StateEnum read(final JsonReader jsonReader) throws IOException {
|
||||
Object value = jsonReader.nextString();
|
||||
return StateEnum.fromValue((String) (value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SerializedName("state")
|
||||
private String state = null;
|
||||
private StateEnum state = null;
|
||||
|
||||
@SerializedName("statuses")
|
||||
private List<CommitStatus> statuses = null;
|
||||
@@ -103,7 +157,7 @@ public class CombinedStatus implements Serializable {
|
||||
this.sha = sha;
|
||||
}
|
||||
|
||||
public CombinedStatus state(String state) {
|
||||
public CombinedStatus state(StateEnum state) {
|
||||
this.state = state;
|
||||
return this;
|
||||
}
|
||||
@@ -114,11 +168,11 @@ public class CombinedStatus implements Serializable {
|
||||
* @return state
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getState() {
|
||||
public StateEnum getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
public void setState(StateEnum state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,8 +12,13 @@
|
||||
|
||||
package org.gitnex.tea4j.v2.models;
|
||||
|
||||
import com.google.gson.TypeAdapter;
|
||||
import com.google.gson.annotations.JsonAdapter;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import com.google.gson.stream.JsonReader;
|
||||
import com.google.gson.stream.JsonWriter;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.Objects;
|
||||
@@ -38,8 +43,57 @@ public class CommitStatus implements Serializable {
|
||||
@SerializedName("id")
|
||||
private Long id = null;
|
||||
|
||||
/** Gets or Sets status */
|
||||
@JsonAdapter(StatusEnum.Adapter.class)
|
||||
public enum StatusEnum {
|
||||
PENDING("pending"),
|
||||
SUCCESS("success"),
|
||||
ERROR("error"),
|
||||
FAILURE("failure"),
|
||||
WARNING("warning"),
|
||||
SKIPPED("skipped");
|
||||
|
||||
private String value;
|
||||
|
||||
StatusEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
|
||||
public static StatusEnum fromValue(String input) {
|
||||
for (StatusEnum b : StatusEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static class Adapter extends TypeAdapter<StatusEnum> {
|
||||
@Override
|
||||
public void write(final JsonWriter jsonWriter, final StatusEnum enumeration)
|
||||
throws IOException {
|
||||
jsonWriter.value(String.valueOf(enumeration.getValue()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public StatusEnum read(final JsonReader jsonReader) throws IOException {
|
||||
Object value = jsonReader.nextString();
|
||||
return StatusEnum.fromValue((String) (value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SerializedName("status")
|
||||
private String status = null;
|
||||
private StatusEnum status = null;
|
||||
|
||||
@SerializedName("target_url")
|
||||
private String targetUrl = null;
|
||||
@@ -145,7 +199,7 @@ public class CommitStatus implements Serializable {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public CommitStatus status(String status) {
|
||||
public CommitStatus status(StatusEnum status) {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
@@ -156,11 +210,11 @@ public class CommitStatus implements Serializable {
|
||||
* @return status
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getStatus() {
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
public void setStatus(StatusEnum status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
@@ -46,9 +47,15 @@ public class ContentsResponse implements Serializable {
|
||||
@SerializedName("html_url")
|
||||
private String htmlUrl = null;
|
||||
|
||||
@SerializedName("last_author_date")
|
||||
private Date lastAuthorDate = null;
|
||||
|
||||
@SerializedName("last_commit_sha")
|
||||
private String lastCommitSha = null;
|
||||
|
||||
@SerializedName("last_committer_date")
|
||||
private Date lastCommitterDate = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@@ -187,6 +194,25 @@ public class ContentsResponse implements Serializable {
|
||||
this.htmlUrl = htmlUrl;
|
||||
}
|
||||
|
||||
public ContentsResponse lastAuthorDate(Date lastAuthorDate) {
|
||||
this.lastAuthorDate = lastAuthorDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastAuthorDate
|
||||
*
|
||||
* @return lastAuthorDate
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Date getLastAuthorDate() {
|
||||
return lastAuthorDate;
|
||||
}
|
||||
|
||||
public void setLastAuthorDate(Date lastAuthorDate) {
|
||||
this.lastAuthorDate = lastAuthorDate;
|
||||
}
|
||||
|
||||
public ContentsResponse lastCommitSha(String lastCommitSha) {
|
||||
this.lastCommitSha = lastCommitSha;
|
||||
return this;
|
||||
@@ -206,6 +232,25 @@ public class ContentsResponse implements Serializable {
|
||||
this.lastCommitSha = lastCommitSha;
|
||||
}
|
||||
|
||||
public ContentsResponse lastCommitterDate(Date lastCommitterDate) {
|
||||
this.lastCommitterDate = lastCommitterDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastCommitterDate
|
||||
*
|
||||
* @return lastCommitterDate
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Date getLastCommitterDate() {
|
||||
return lastCommitterDate;
|
||||
}
|
||||
|
||||
public void setLastCommitterDate(Date lastCommitterDate) {
|
||||
this.lastCommitterDate = lastCommitterDate;
|
||||
}
|
||||
|
||||
public ContentsResponse name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
@@ -376,7 +421,9 @@ public class ContentsResponse implements Serializable {
|
||||
&& Objects.equals(this.encoding, contentsResponse.encoding)
|
||||
&& Objects.equals(this.gitUrl, contentsResponse.gitUrl)
|
||||
&& Objects.equals(this.htmlUrl, contentsResponse.htmlUrl)
|
||||
&& Objects.equals(this.lastAuthorDate, contentsResponse.lastAuthorDate)
|
||||
&& Objects.equals(this.lastCommitSha, contentsResponse.lastCommitSha)
|
||||
&& Objects.equals(this.lastCommitterDate, contentsResponse.lastCommitterDate)
|
||||
&& Objects.equals(this.name, contentsResponse.name)
|
||||
&& Objects.equals(this.path, contentsResponse.path)
|
||||
&& Objects.equals(this.sha, contentsResponse.sha)
|
||||
@@ -396,7 +443,9 @@ public class ContentsResponse implements Serializable {
|
||||
encoding,
|
||||
gitUrl,
|
||||
htmlUrl,
|
||||
lastAuthorDate,
|
||||
lastCommitSha,
|
||||
lastCommitterDate,
|
||||
name,
|
||||
path,
|
||||
sha,
|
||||
@@ -418,7 +467,9 @@ public class ContentsResponse implements Serializable {
|
||||
sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n");
|
||||
sb.append(" gitUrl: ").append(toIndentedString(gitUrl)).append("\n");
|
||||
sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n");
|
||||
sb.append(" lastAuthorDate: ").append(toIndentedString(lastAuthorDate)).append("\n");
|
||||
sb.append(" lastCommitSha: ").append(toIndentedString(lastCommitSha)).append("\n");
|
||||
sb.append(" lastCommitterDate: ").append(toIndentedString(lastCommitterDate)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" path: ").append(toIndentedString(path)).append("\n");
|
||||
sb.append(" sha: ").append(toIndentedString(sha)).append("\n");
|
||||
|
||||
@@ -67,7 +67,10 @@ public class CreateAccessTokenOption implements Serializable {
|
||||
*
|
||||
* @return scopes
|
||||
*/
|
||||
@Schema(description = "")
|
||||
@Schema(
|
||||
example =
|
||||
"[\"all\",\"read:activitypub\",\"read:issue\",\"write:misc\",\"read:notification\",\"read:organization\",\"read:package\",\"read:repository\",\"read:user\"]",
|
||||
description = "")
|
||||
public List<String> getScopes() {
|
||||
return scopes;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape}}
|
||||
*
|
||||
*
|
||||
* 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.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
/** CreateActionWorkflowDispatch represents the payload for triggering a workflow dispatch event */
|
||||
@Schema(
|
||||
description =
|
||||
"CreateActionWorkflowDispatch represents the payload for triggering a workflow dispatch"
|
||||
+ " event")
|
||||
public class CreateActionWorkflowDispatch implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("inputs")
|
||||
private Map<String, String> inputs = null;
|
||||
|
||||
@SerializedName("ref")
|
||||
private String ref = null;
|
||||
|
||||
public CreateActionWorkflowDispatch inputs(Map<String, String> inputs) {
|
||||
this.inputs = inputs;
|
||||
return this;
|
||||
}
|
||||
|
||||
public CreateActionWorkflowDispatch putInputsItem(String key, String inputsItem) {
|
||||
if (this.inputs == null) {
|
||||
this.inputs = new HashMap<>();
|
||||
}
|
||||
this.inputs.put(key, inputsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get inputs
|
||||
*
|
||||
* @return inputs
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Map<String, String> getInputs() {
|
||||
return inputs;
|
||||
}
|
||||
|
||||
public void setInputs(Map<String, String> inputs) {
|
||||
this.inputs = inputs;
|
||||
}
|
||||
|
||||
public CreateActionWorkflowDispatch ref(String ref) {
|
||||
this.ref = ref;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ref
|
||||
*
|
||||
* @return ref
|
||||
*/
|
||||
@Schema(example = "refs/heads/main", required = true, description = "")
|
||||
public String getRef() {
|
||||
return ref;
|
||||
}
|
||||
|
||||
public void setRef(String ref) {
|
||||
this.ref = ref;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CreateActionWorkflowDispatch createActionWorkflowDispatch = (CreateActionWorkflowDispatch) o;
|
||||
return Objects.equals(this.inputs, createActionWorkflowDispatch.inputs)
|
||||
&& Objects.equals(this.ref, createActionWorkflowDispatch.ref);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(inputs, ref);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CreateActionWorkflowDispatch {\n");
|
||||
|
||||
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
|
||||
sb.append(" ref: ").append(toIndentedString(ref)).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 ");
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,9 @@ public class CreateOrUpdateSecretOption implements Serializable {
|
||||
@SerializedName("data")
|
||||
private String data = null;
|
||||
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
||||
public CreateOrUpdateSecretOption data(String data) {
|
||||
this.data = data;
|
||||
return this;
|
||||
@@ -44,6 +47,25 @@ public class CreateOrUpdateSecretOption implements Serializable {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public CreateOrUpdateSecretOption description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Description of the secret to update
|
||||
*
|
||||
* @return description
|
||||
*/
|
||||
@Schema(description = "Description of the secret to update")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -53,12 +75,13 @@ public class CreateOrUpdateSecretOption implements Serializable {
|
||||
return false;
|
||||
}
|
||||
CreateOrUpdateSecretOption createOrUpdateSecretOption = (CreateOrUpdateSecretOption) o;
|
||||
return Objects.equals(this.data, createOrUpdateSecretOption.data);
|
||||
return Objects.equals(this.data, createOrUpdateSecretOption.data)
|
||||
&& Objects.equals(this.description, createOrUpdateSecretOption.description);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(data);
|
||||
return Objects.hash(data, description);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -67,6 +90,7 @@ public class CreateOrUpdateSecretOption implements Serializable {
|
||||
sb.append("class CreateOrUpdateSecretOption {\n");
|
||||
|
||||
sb.append(" data: ").append(toIndentedString(data)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -34,6 +34,9 @@ public class CreateReleaseOption implements Serializable {
|
||||
@SerializedName("prerelease")
|
||||
private Boolean prerelease = null;
|
||||
|
||||
@SerializedName("tag_message")
|
||||
private String tagMessage = null;
|
||||
|
||||
@SerializedName("tag_name")
|
||||
private String tagName = null;
|
||||
|
||||
@@ -116,6 +119,25 @@ public class CreateReleaseOption implements Serializable {
|
||||
this.prerelease = prerelease;
|
||||
}
|
||||
|
||||
public CreateReleaseOption tagMessage(String tagMessage) {
|
||||
this.tagMessage = tagMessage;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get tagMessage
|
||||
*
|
||||
* @return tagMessage
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getTagMessage() {
|
||||
return tagMessage;
|
||||
}
|
||||
|
||||
public void setTagMessage(String tagMessage) {
|
||||
this.tagMessage = tagMessage;
|
||||
}
|
||||
|
||||
public CreateReleaseOption tagName(String tagName) {
|
||||
this.tagName = tagName;
|
||||
return this;
|
||||
@@ -167,13 +189,14 @@ public class CreateReleaseOption implements Serializable {
|
||||
&& Objects.equals(this.draft, createReleaseOption.draft)
|
||||
&& Objects.equals(this.name, createReleaseOption.name)
|
||||
&& Objects.equals(this.prerelease, createReleaseOption.prerelease)
|
||||
&& Objects.equals(this.tagMessage, createReleaseOption.tagMessage)
|
||||
&& Objects.equals(this.tagName, createReleaseOption.tagName)
|
||||
&& Objects.equals(this.targetCommitish, createReleaseOption.targetCommitish);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(body, draft, name, prerelease, tagName, targetCommitish);
|
||||
return Objects.hash(body, draft, name, prerelease, tagMessage, tagName, targetCommitish);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -185,6 +208,7 @@ public class CreateReleaseOption implements Serializable {
|
||||
sb.append(" draft: ").append(toIndentedString(draft)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" prerelease: ").append(toIndentedString(prerelease)).append("\n");
|
||||
sb.append(" tagMessage: ").append(toIndentedString(tagMessage)).append("\n");
|
||||
sb.append(" tagName: ").append(toIndentedString(tagName)).append("\n");
|
||||
sb.append(" targetCommitish: ").append(toIndentedString(targetCommitish)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
@@ -12,8 +12,13 @@
|
||||
|
||||
package org.gitnex.tea4j.v2.models;
|
||||
|
||||
import com.google.gson.TypeAdapter;
|
||||
import com.google.gson.annotations.JsonAdapter;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import com.google.gson.stream.JsonReader;
|
||||
import com.google.gson.stream.JsonWriter;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.util.Objects;
|
||||
|
||||
@@ -30,8 +35,57 @@ public class CreateStatusOption implements Serializable {
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
||||
/** Gets or Sets state */
|
||||
@JsonAdapter(StateEnum.Adapter.class)
|
||||
public enum StateEnum {
|
||||
PENDING("pending"),
|
||||
SUCCESS("success"),
|
||||
ERROR("error"),
|
||||
FAILURE("failure"),
|
||||
WARNING("warning"),
|
||||
SKIPPED("skipped");
|
||||
|
||||
private String value;
|
||||
|
||||
StateEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
|
||||
public static StateEnum fromValue(String input) {
|
||||
for (StateEnum b : StateEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static class Adapter extends TypeAdapter<StateEnum> {
|
||||
@Override
|
||||
public void write(final JsonWriter jsonWriter, final StateEnum enumeration)
|
||||
throws IOException {
|
||||
jsonWriter.value(String.valueOf(enumeration.getValue()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public StateEnum read(final JsonReader jsonReader) throws IOException {
|
||||
Object value = jsonReader.nextString();
|
||||
return StateEnum.fromValue((String) (value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SerializedName("state")
|
||||
private String state = null;
|
||||
private StateEnum state = null;
|
||||
|
||||
@SerializedName("target_url")
|
||||
private String targetUrl = null;
|
||||
@@ -74,7 +128,7 @@ public class CreateStatusOption implements Serializable {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public CreateStatusOption state(String state) {
|
||||
public CreateStatusOption state(StateEnum state) {
|
||||
this.state = state;
|
||||
return this;
|
||||
}
|
||||
@@ -85,11 +139,11 @@ public class CreateStatusOption implements Serializable {
|
||||
* @return state
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getState() {
|
||||
public StateEnum getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
public void setState(StateEnum state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,9 +22,31 @@ import java.util.Objects;
|
||||
public class CreateVariableOption implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
||||
@SerializedName("value")
|
||||
private String value = null;
|
||||
|
||||
public CreateVariableOption description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Description of the variable to create
|
||||
*
|
||||
* @return description
|
||||
*/
|
||||
@Schema(description = "Description of the variable to create")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public CreateVariableOption value(String value) {
|
||||
this.value = value;
|
||||
return this;
|
||||
@@ -53,12 +75,13 @@ public class CreateVariableOption implements Serializable {
|
||||
return false;
|
||||
}
|
||||
CreateVariableOption createVariableOption = (CreateVariableOption) o;
|
||||
return Objects.equals(this.value, createVariableOption.value);
|
||||
return Objects.equals(this.description, createVariableOption.description)
|
||||
&& Objects.equals(this.value, createVariableOption.value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
return Objects.hash(description, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -66,6 +89,7 @@ public class CreateVariableOption implements Serializable {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CreateVariableOption {\n");
|
||||
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" value: ").append(toIndentedString(value)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -28,6 +28,9 @@ public class GeneralAPISettings implements Serializable {
|
||||
@SerializedName("default_max_blob_size")
|
||||
private Long defaultMaxBlobSize = null;
|
||||
|
||||
@SerializedName("default_max_response_size")
|
||||
private Long defaultMaxResponseSize = null;
|
||||
|
||||
@SerializedName("default_paging_num")
|
||||
private Long defaultPagingNum = null;
|
||||
|
||||
@@ -72,6 +75,25 @@ public class GeneralAPISettings implements Serializable {
|
||||
this.defaultMaxBlobSize = defaultMaxBlobSize;
|
||||
}
|
||||
|
||||
public GeneralAPISettings defaultMaxResponseSize(Long defaultMaxResponseSize) {
|
||||
this.defaultMaxResponseSize = defaultMaxResponseSize;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get defaultMaxResponseSize
|
||||
*
|
||||
* @return defaultMaxResponseSize
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Long getDefaultMaxResponseSize() {
|
||||
return defaultMaxResponseSize;
|
||||
}
|
||||
|
||||
public void setDefaultMaxResponseSize(Long defaultMaxResponseSize) {
|
||||
this.defaultMaxResponseSize = defaultMaxResponseSize;
|
||||
}
|
||||
|
||||
public GeneralAPISettings defaultPagingNum(Long defaultPagingNum) {
|
||||
this.defaultPagingNum = defaultPagingNum;
|
||||
return this;
|
||||
@@ -121,6 +143,7 @@ public class GeneralAPISettings implements Serializable {
|
||||
GeneralAPISettings generalAPISettings = (GeneralAPISettings) o;
|
||||
return Objects.equals(this.defaultGitTreesPerPage, generalAPISettings.defaultGitTreesPerPage)
|
||||
&& Objects.equals(this.defaultMaxBlobSize, generalAPISettings.defaultMaxBlobSize)
|
||||
&& Objects.equals(this.defaultMaxResponseSize, generalAPISettings.defaultMaxResponseSize)
|
||||
&& Objects.equals(this.defaultPagingNum, generalAPISettings.defaultPagingNum)
|
||||
&& Objects.equals(this.maxResponseItems, generalAPISettings.maxResponseItems);
|
||||
}
|
||||
@@ -128,7 +151,11 @@ public class GeneralAPISettings implements Serializable {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
defaultGitTreesPerPage, defaultMaxBlobSize, defaultPagingNum, maxResponseItems);
|
||||
defaultGitTreesPerPage,
|
||||
defaultMaxBlobSize,
|
||||
defaultMaxResponseSize,
|
||||
defaultPagingNum,
|
||||
maxResponseItems);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -140,6 +167,9 @@ public class GeneralAPISettings implements Serializable {
|
||||
.append(toIndentedString(defaultGitTreesPerPage))
|
||||
.append("\n");
|
||||
sb.append(" defaultMaxBlobSize: ").append(toIndentedString(defaultMaxBlobSize)).append("\n");
|
||||
sb.append(" defaultMaxResponseSize: ")
|
||||
.append(toIndentedString(defaultMaxResponseSize))
|
||||
.append("\n");
|
||||
sb.append(" defaultPagingNum: ").append(toIndentedString(defaultPagingNum)).append("\n");
|
||||
sb.append(" maxResponseItems: ").append(toIndentedString(maxResponseItems)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape}}
|
||||
*
|
||||
*
|
||||
* 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.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/** GetFilesOptions options for retrieving metadate and content of multiple files */
|
||||
@Schema(
|
||||
description = "GetFilesOptions options for retrieving metadate and content of multiple files")
|
||||
public class GetFilesOptions implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("files")
|
||||
private List<String> files = null;
|
||||
|
||||
public GetFilesOptions files(List<String> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
|
||||
public GetFilesOptions addFilesItem(String filesItem) {
|
||||
if (this.files == null) {
|
||||
this.files = new ArrayList<>();
|
||||
}
|
||||
this.files.add(filesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get files
|
||||
*
|
||||
* @return files
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public List<String> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<String> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
GetFilesOptions getFilesOptions = (GetFilesOptions) o;
|
||||
return Objects.equals(this.files, getFilesOptions.files);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(files);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class GetFilesOptions {\n");
|
||||
|
||||
sb.append(" files: ").append(toIndentedString(files)).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 ");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape}}
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
|
||||
/** LockIssueOption options to lock an issue */
|
||||
@Schema(description = "LockIssueOption options to lock an issue")
|
||||
public class LockIssueOption implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("lock_reason")
|
||||
private String lockReason = null;
|
||||
|
||||
public LockIssueOption lockReason(String lockReason) {
|
||||
this.lockReason = lockReason;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lockReason
|
||||
*
|
||||
* @return lockReason
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getLockReason() {
|
||||
return lockReason;
|
||||
}
|
||||
|
||||
public void setLockReason(String lockReason) {
|
||||
this.lockReason = lockReason;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
LockIssueOption lockIssueOption = (LockIssueOption) o;
|
||||
return Objects.equals(this.lockReason, lockIssueOption.lockReason);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(lockReason);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class LockIssueOption {\n");
|
||||
|
||||
sb.append(" lockReason: ").append(toIndentedString(lockReason)).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 ");
|
||||
}
|
||||
}
|
||||
@@ -99,7 +99,8 @@ public class MigrateRepoOptions implements Serializable {
|
||||
GOGS("gogs"),
|
||||
ONEDEV("onedev"),
|
||||
GITBUCKET("gitbucket"),
|
||||
CODEBASE("codebase");
|
||||
CODEBASE("codebase"),
|
||||
CODECOMMIT("codecommit");
|
||||
|
||||
private String value;
|
||||
|
||||
|
||||
@@ -22,9 +22,6 @@ import java.util.Objects;
|
||||
public class PackageFile implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("Size")
|
||||
private Long size = null;
|
||||
|
||||
@SerializedName("id")
|
||||
private Long id = null;
|
||||
|
||||
@@ -43,24 +40,8 @@ public class PackageFile implements Serializable {
|
||||
@SerializedName("sha512")
|
||||
private String sha512 = null;
|
||||
|
||||
public PackageFile size(Long size) {
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get size
|
||||
*
|
||||
* @return size
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Long getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(Long size) {
|
||||
this.size = size;
|
||||
}
|
||||
@SerializedName("size")
|
||||
private Long size = null;
|
||||
|
||||
public PackageFile id(Long id) {
|
||||
this.id = id;
|
||||
@@ -176,6 +157,25 @@ public class PackageFile implements Serializable {
|
||||
this.sha512 = sha512;
|
||||
}
|
||||
|
||||
public PackageFile size(Long size) {
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get size
|
||||
*
|
||||
* @return size
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Long getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(Long size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
@@ -185,18 +185,18 @@ public class PackageFile implements Serializable {
|
||||
return false;
|
||||
}
|
||||
PackageFile packageFile = (PackageFile) o;
|
||||
return Objects.equals(this.size, packageFile.size)
|
||||
&& Objects.equals(this.id, packageFile.id)
|
||||
return Objects.equals(this.id, packageFile.id)
|
||||
&& Objects.equals(this.md5, packageFile.md5)
|
||||
&& Objects.equals(this.name, packageFile.name)
|
||||
&& Objects.equals(this.sha1, packageFile.sha1)
|
||||
&& Objects.equals(this.sha256, packageFile.sha256)
|
||||
&& Objects.equals(this.sha512, packageFile.sha512);
|
||||
&& Objects.equals(this.sha512, packageFile.sha512)
|
||||
&& Objects.equals(this.size, packageFile.size);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(size, id, md5, name, sha1, sha256, sha512);
|
||||
return Objects.hash(id, md5, name, sha1, sha256, sha512, size);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -204,13 +204,13 @@ public class PackageFile implements Serializable {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class PackageFile {\n");
|
||||
|
||||
sb.append(" size: ").append(toIndentedString(size)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" md5: ").append(toIndentedString(md5)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" sha1: ").append(toIndentedString(sha1)).append("\n");
|
||||
sb.append(" sha256: ").append(toIndentedString(sha256)).append("\n");
|
||||
sb.append(" sha512: ").append(toIndentedString(sha512)).append("\n");
|
||||
sb.append(" size: ").append(toIndentedString(size)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -38,6 +38,9 @@ public class PublicKey implements Serializable {
|
||||
@SerializedName("key_type")
|
||||
private String keyType = null;
|
||||
|
||||
@SerializedName("last_used_at")
|
||||
private Date lastUsedAt = null;
|
||||
|
||||
@SerializedName("read_only")
|
||||
private Boolean readOnly = null;
|
||||
|
||||
@@ -145,6 +148,25 @@ public class PublicKey implements Serializable {
|
||||
this.keyType = keyType;
|
||||
}
|
||||
|
||||
public PublicKey lastUsedAt(Date lastUsedAt) {
|
||||
this.lastUsedAt = lastUsedAt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastUsedAt
|
||||
*
|
||||
* @return lastUsedAt
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Date getLastUsedAt() {
|
||||
return lastUsedAt;
|
||||
}
|
||||
|
||||
public void setLastUsedAt(Date lastUsedAt) {
|
||||
this.lastUsedAt = lastUsedAt;
|
||||
}
|
||||
|
||||
public PublicKey readOnly(Boolean readOnly) {
|
||||
this.readOnly = readOnly;
|
||||
return this;
|
||||
@@ -235,6 +257,7 @@ public class PublicKey implements Serializable {
|
||||
&& Objects.equals(this.id, publicKey.id)
|
||||
&& Objects.equals(this.key, publicKey.key)
|
||||
&& Objects.equals(this.keyType, publicKey.keyType)
|
||||
&& Objects.equals(this.lastUsedAt, publicKey.lastUsedAt)
|
||||
&& Objects.equals(this.readOnly, publicKey.readOnly)
|
||||
&& Objects.equals(this.title, publicKey.title)
|
||||
&& Objects.equals(this.url, publicKey.url)
|
||||
@@ -243,7 +266,8 @@ public class PublicKey implements Serializable {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(createdAt, fingerprint, id, key, keyType, readOnly, title, url, user);
|
||||
return Objects.hash(
|
||||
createdAt, fingerprint, id, key, keyType, lastUsedAt, readOnly, title, url, user);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -256,6 +280,7 @@ public class PublicKey implements Serializable {
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" key: ").append(toIndentedString(key)).append("\n");
|
||||
sb.append(" keyType: ").append(toIndentedString(keyType)).append("\n");
|
||||
sb.append(" lastUsedAt: ").append(toIndentedString(lastUsedAt)).append("\n");
|
||||
sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n");
|
||||
sb.append(" title: ").append(toIndentedString(title)).append("\n");
|
||||
sb.append(" url: ").append(toIndentedString(url)).append("\n");
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape}}
|
||||
*
|
||||
*
|
||||
* 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;
|
||||
|
||||
/** RenameOrgOption options when renaming an organization */
|
||||
@Schema(description = "RenameOrgOption options when renaming an organization")
|
||||
public class RenameOrgOption implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("new_name")
|
||||
private String newName = null;
|
||||
|
||||
public RenameOrgOption newName(String newName) {
|
||||
this.newName = newName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* New username for this org. This name cannot be in use yet by any other user.
|
||||
*
|
||||
* @return newName
|
||||
*/
|
||||
@Schema(
|
||||
required = true,
|
||||
description = "New username for this org. This name cannot be in use yet by any other user.")
|
||||
public String getNewName() {
|
||||
return newName;
|
||||
}
|
||||
|
||||
public void setNewName(String newName) {
|
||||
this.newName = newName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
RenameOrgOption renameOrgOption = (RenameOrgOption) o;
|
||||
return Objects.equals(this.newName, renameOrgOption.newName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(newName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class RenameOrgOption {\n");
|
||||
|
||||
sb.append(" newName: ").append(toIndentedString(newName)).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 ");
|
||||
}
|
||||
}
|
||||
@@ -33,6 +33,9 @@ public class Repository implements Serializable {
|
||||
@SerializedName("allow_fast_forward_only_merge")
|
||||
private Boolean allowFastForwardOnlyMerge = null;
|
||||
|
||||
@SerializedName("allow_manual_merge")
|
||||
private Boolean allowManualMerge = null;
|
||||
|
||||
@SerializedName("allow_merge_commits")
|
||||
private Boolean allowMergeCommits = null;
|
||||
|
||||
@@ -54,6 +57,9 @@ public class Repository implements Serializable {
|
||||
@SerializedName("archived_at")
|
||||
private Date archivedAt = null;
|
||||
|
||||
@SerializedName("autodetect_manual_merge")
|
||||
private Boolean autodetectManualMerge = null;
|
||||
|
||||
@SerializedName("avatar_url")
|
||||
private String avatarUrl = null;
|
||||
|
||||
@@ -280,6 +286,25 @@ public class Repository implements Serializable {
|
||||
this.allowFastForwardOnlyMerge = allowFastForwardOnlyMerge;
|
||||
}
|
||||
|
||||
public Repository allowManualMerge(Boolean allowManualMerge) {
|
||||
this.allowManualMerge = allowManualMerge;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get allowManualMerge
|
||||
*
|
||||
* @return allowManualMerge
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Boolean isAllowManualMerge() {
|
||||
return allowManualMerge;
|
||||
}
|
||||
|
||||
public void setAllowManualMerge(Boolean allowManualMerge) {
|
||||
this.allowManualMerge = allowManualMerge;
|
||||
}
|
||||
|
||||
public Repository allowMergeCommits(Boolean allowMergeCommits) {
|
||||
this.allowMergeCommits = allowMergeCommits;
|
||||
return this;
|
||||
@@ -413,6 +438,25 @@ public class Repository implements Serializable {
|
||||
this.archivedAt = archivedAt;
|
||||
}
|
||||
|
||||
public Repository autodetectManualMerge(Boolean autodetectManualMerge) {
|
||||
this.autodetectManualMerge = autodetectManualMerge;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get autodetectManualMerge
|
||||
*
|
||||
* @return autodetectManualMerge
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Boolean isAutodetectManualMerge() {
|
||||
return autodetectManualMerge;
|
||||
}
|
||||
|
||||
public void setAutodetectManualMerge(Boolean autodetectManualMerge) {
|
||||
this.autodetectManualMerge = autodetectManualMerge;
|
||||
}
|
||||
|
||||
public Repository avatarUrl(String avatarUrl) {
|
||||
this.avatarUrl = avatarUrl;
|
||||
return this;
|
||||
@@ -1465,6 +1509,7 @@ public class Repository implements Serializable {
|
||||
}
|
||||
Repository repository = (Repository) o;
|
||||
return Objects.equals(this.allowFastForwardOnlyMerge, repository.allowFastForwardOnlyMerge)
|
||||
&& Objects.equals(this.allowManualMerge, repository.allowManualMerge)
|
||||
&& Objects.equals(this.allowMergeCommits, repository.allowMergeCommits)
|
||||
&& Objects.equals(this.allowRebase, repository.allowRebase)
|
||||
&& Objects.equals(this.allowRebaseExplicit, repository.allowRebaseExplicit)
|
||||
@@ -1472,6 +1517,7 @@ public class Repository implements Serializable {
|
||||
&& Objects.equals(this.allowSquashMerge, repository.allowSquashMerge)
|
||||
&& Objects.equals(this.archived, repository.archived)
|
||||
&& Objects.equals(this.archivedAt, repository.archivedAt)
|
||||
&& Objects.equals(this.autodetectManualMerge, repository.autodetectManualMerge)
|
||||
&& Objects.equals(this.avatarUrl, repository.avatarUrl)
|
||||
&& Objects.equals(this.cloneUrl, repository.cloneUrl)
|
||||
&& Objects.equals(this.createdAt, repository.createdAt)
|
||||
@@ -1533,6 +1579,7 @@ public class Repository implements Serializable {
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
allowFastForwardOnlyMerge,
|
||||
allowManualMerge,
|
||||
allowMergeCommits,
|
||||
allowRebase,
|
||||
allowRebaseExplicit,
|
||||
@@ -1540,6 +1587,7 @@ public class Repository implements Serializable {
|
||||
allowSquashMerge,
|
||||
archived,
|
||||
archivedAt,
|
||||
autodetectManualMerge,
|
||||
avatarUrl,
|
||||
cloneUrl,
|
||||
createdAt,
|
||||
@@ -1604,6 +1652,7 @@ public class Repository implements Serializable {
|
||||
sb.append(" allowFastForwardOnlyMerge: ")
|
||||
.append(toIndentedString(allowFastForwardOnlyMerge))
|
||||
.append("\n");
|
||||
sb.append(" allowManualMerge: ").append(toIndentedString(allowManualMerge)).append("\n");
|
||||
sb.append(" allowMergeCommits: ").append(toIndentedString(allowMergeCommits)).append("\n");
|
||||
sb.append(" allowRebase: ").append(toIndentedString(allowRebase)).append("\n");
|
||||
sb.append(" allowRebaseExplicit: ")
|
||||
@@ -1613,6 +1662,9 @@ public class Repository implements Serializable {
|
||||
sb.append(" allowSquashMerge: ").append(toIndentedString(allowSquashMerge)).append("\n");
|
||||
sb.append(" archived: ").append(toIndentedString(archived)).append("\n");
|
||||
sb.append(" archivedAt: ").append(toIndentedString(archivedAt)).append("\n");
|
||||
sb.append(" autodetectManualMerge: ")
|
||||
.append(toIndentedString(autodetectManualMerge))
|
||||
.append("\n");
|
||||
sb.append(" avatarUrl: ").append(toIndentedString(avatarUrl)).append("\n");
|
||||
sb.append(" cloneUrl: ").append(toIndentedString(cloneUrl)).append("\n");
|
||||
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
||||
|
||||
@@ -26,6 +26,9 @@ public class Secret implements Serializable {
|
||||
@SerializedName("created_at")
|
||||
private Date createdAt = null;
|
||||
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@@ -48,6 +51,25 @@ public class Secret implements Serializable {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Secret description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* the secret's description
|
||||
*
|
||||
* @return description
|
||||
*/
|
||||
@Schema(description = "the secret's description")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Secret name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
@@ -77,12 +99,13 @@ public class Secret implements Serializable {
|
||||
}
|
||||
Secret secret = (Secret) o;
|
||||
return Objects.equals(this.createdAt, secret.createdAt)
|
||||
&& Objects.equals(this.description, secret.description)
|
||||
&& Objects.equals(this.name, secret.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(createdAt, name);
|
||||
return Objects.hash(createdAt, description, name);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -91,6 +114,7 @@ public class Secret implements Serializable {
|
||||
sb.append("class Secret {\n");
|
||||
|
||||
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -22,12 +22,34 @@ import java.util.Objects;
|
||||
public class UpdateVariableOption implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@SerializedName("value")
|
||||
private String value = null;
|
||||
|
||||
public UpdateVariableOption description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Description of the variable to update
|
||||
*
|
||||
* @return description
|
||||
*/
|
||||
@Schema(description = "Description of the variable to update")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public UpdateVariableOption name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
@@ -77,13 +99,14 @@ public class UpdateVariableOption implements Serializable {
|
||||
return false;
|
||||
}
|
||||
UpdateVariableOption updateVariableOption = (UpdateVariableOption) o;
|
||||
return Objects.equals(this.name, updateVariableOption.name)
|
||||
return Objects.equals(this.description, updateVariableOption.description)
|
||||
&& Objects.equals(this.name, updateVariableOption.name)
|
||||
&& Objects.equals(this.value, updateVariableOption.value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(name, value);
|
||||
return Objects.hash(description, name, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -91,6 +114,7 @@ public class UpdateVariableOption implements Serializable {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class UpdateVariableOption {\n");
|
||||
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" value: ").append(toIndentedString(value)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
Reference in New Issue
Block a user