update generated api docs and models
Refresh the generated client sources, documentation, and test layout to match the latest API schema changes. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
1347f7d472
commit
059f86cfc1
|
|
@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **Long** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**scopes** | **List<String>** | | [optional]
|
||||
**sha1** | **String** | | [optional]
|
||||
**tokenLastEight** | **String** | | [optional]
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
# Activity
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**actUser** | [**User**](User.md) | | [optional]
|
||||
**actUserId** | **Long** | | [optional]
|
||||
**comment** | [**Comment**](Comment.md) | | [optional]
|
||||
**commentId** | **Long** | | [optional]
|
||||
**content** | **String** | | [optional]
|
||||
**created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
|
||||
**id** | **Long** | | [optional]
|
||||
**isPrivate** | **Boolean** | | [optional]
|
||||
**opType** | **String** | | [optional]
|
||||
**refName** | **String** | | [optional]
|
||||
**repo** | [**Repository**](Repository.md) | | [optional]
|
||||
**repoId** | **Long** | | [optional]
|
||||
**userId** | **Long** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -4,13 +4,13 @@ All URIs are relative to *http://localhost/api/v1*
|
|||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**activitypubPerson**](ActivitypubApi.md#activitypubPerson) | **GET** /activitypub/user/{username} | Returns the Person actor for a user
|
||||
[**activitypubPersonInbox**](ActivitypubApi.md#activitypubPersonInbox) | **POST** /activitypub/user/{username}/inbox | Send to the inbox
|
||||
[**activitypubPerson**](ActivitypubApi.md#activitypubPerson) | **GET** /activitypub/user-id/{user-id} | Returns the Person actor for a user
|
||||
[**activitypubPersonInbox**](ActivitypubApi.md#activitypubPersonInbox) | **POST** /activitypub/user-id/{user-id}/inbox | Send to the inbox
|
||||
|
||||
|
||||
<a name="activitypubPerson"></a>
|
||||
# **activitypubPerson**
|
||||
> ActivityPub activitypubPerson(username)
|
||||
> ActivityPub activitypubPerson(userId)
|
||||
|
||||
Returns the Person actor for a user
|
||||
|
||||
|
|
@ -67,9 +67,9 @@ Token.setApiKey("YOUR API KEY");
|
|||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
ActivitypubApi apiInstance = new ActivitypubApi();
|
||||
String username = "username_example"; // String | username of the user
|
||||
Integer userId = 56; // Integer | user ID of the user
|
||||
try {
|
||||
ActivityPub result = apiInstance.activitypubPerson(username);
|
||||
ActivityPub result = apiInstance.activitypubPerson(userId);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling ActivitypubApi#activitypubPerson");
|
||||
|
|
@ -81,7 +81,7 @@ try {
|
|||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**username** | **String**| username of the user |
|
||||
**userId** | **Integer**| user ID of the user |
|
||||
|
||||
### Return type
|
||||
|
||||
|
|
@ -98,7 +98,7 @@ Name | Type | Description | Notes
|
|||
|
||||
<a name="activitypubPersonInbox"></a>
|
||||
# **activitypubPersonInbox**
|
||||
> activitypubPersonInbox(username)
|
||||
> activitypubPersonInbox(userId)
|
||||
|
||||
Send to the inbox
|
||||
|
||||
|
|
@ -155,9 +155,9 @@ Token.setApiKey("YOUR API KEY");
|
|||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
ActivitypubApi apiInstance = new ActivitypubApi();
|
||||
String username = "username_example"; // String | username of the user
|
||||
Integer userId = 56; // Integer | user ID of the user
|
||||
try {
|
||||
apiInstance.activitypubPersonInbox(username);
|
||||
apiInstance.activitypubPersonInbox(userId);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling ActivitypubApi#activitypubPersonInbox");
|
||||
e.printStackTrace();
|
||||
|
|
@ -168,7 +168,7 @@ try {
|
|||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**username** | **String**| username of the user |
|
||||
**userId** | **Integer**| user ID of the user |
|
||||
|
||||
### Return type
|
||||
|
||||
|
|
|
|||
746
docs/AdminApi.md
746
docs/AdminApi.md
|
|
@ -5,18 +5,26 @@ All URIs are relative to *http://localhost/api/v1*
|
|||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**adminAdoptRepository**](AdminApi.md#adminAdoptRepository) | **POST** /admin/unadopted/{owner}/{repo} | Adopt unadopted files as a repository
|
||||
[**adminCreateHook**](AdminApi.md#adminCreateHook) | **POST** /admin/hooks | Create a hook
|
||||
[**adminCreateOrg**](AdminApi.md#adminCreateOrg) | **POST** /admin/users/{username}/orgs | Create an organization
|
||||
[**adminCreatePublicKey**](AdminApi.md#adminCreatePublicKey) | **POST** /admin/users/{username}/keys | Add a public key on behalf of a user
|
||||
[**adminCreateRepo**](AdminApi.md#adminCreateRepo) | **POST** /admin/users/{username}/repos | Create a repository on behalf of a user
|
||||
[**adminCreateUser**](AdminApi.md#adminCreateUser) | **POST** /admin/users | Create a user
|
||||
[**adminCronList**](AdminApi.md#adminCronList) | **GET** /admin/cron | List cron tasks
|
||||
[**adminCronRun**](AdminApi.md#adminCronRun) | **POST** /admin/cron/{task} | Run cron task
|
||||
[**adminDeleteHook**](AdminApi.md#adminDeleteHook) | **DELETE** /admin/hooks/{id} | Delete a hook
|
||||
[**adminDeleteUnadoptedRepository**](AdminApi.md#adminDeleteUnadoptedRepository) | **DELETE** /admin/unadopted/{owner}/{repo} | Delete unadopted files
|
||||
[**adminDeleteUser**](AdminApi.md#adminDeleteUser) | **DELETE** /admin/users/{username} | Delete a user
|
||||
[**adminDeleteUserPublicKey**](AdminApi.md#adminDeleteUserPublicKey) | **DELETE** /admin/users/{username}/keys/{id} | Delete a user's public key
|
||||
[**adminEditHook**](AdminApi.md#adminEditHook) | **PATCH** /admin/hooks/{id} | Update a hook
|
||||
[**adminEditUser**](AdminApi.md#adminEditUser) | **PATCH** /admin/users/{username} | Edit an existing user
|
||||
[**adminGetAllEmails**](AdminApi.md#adminGetAllEmails) | **GET** /admin/emails | List all emails
|
||||
[**adminGetAllOrgs**](AdminApi.md#adminGetAllOrgs) | **GET** /admin/orgs | List all organizations
|
||||
[**adminGetAllUsers**](AdminApi.md#adminGetAllUsers) | **GET** /admin/users | List all users
|
||||
[**adminGetHook**](AdminApi.md#adminGetHook) | **GET** /admin/hooks/{id} | Get a hook
|
||||
[**adminListHooks**](AdminApi.md#adminListHooks) | **GET** /admin/hooks | List system's webhooks
|
||||
[**adminRenameUser**](AdminApi.md#adminRenameUser) | **POST** /admin/users/{username}/rename | Rename a user
|
||||
[**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
|
||||
|
||||
|
||||
|
|
@ -109,6 +117,94 @@ null (empty response body)
|
|||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="adminCreateHook"></a>
|
||||
# **adminCreateHook**
|
||||
> Hook adminCreateHook(body)
|
||||
|
||||
Create a hook
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.AdminApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
AdminApi apiInstance = new AdminApi();
|
||||
CreateHookOption body = new CreateHookOption(); // CreateHookOption |
|
||||
try {
|
||||
Hook result = apiInstance.adminCreateHook(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AdminApi#adminCreateHook");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**CreateHookOption**](CreateHookOption.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
[**Hook**](Hook.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="adminCreateOrg"></a>
|
||||
# **adminCreateOrg**
|
||||
> Organization adminCreateOrg(username, organization)
|
||||
|
|
@ -639,6 +735,93 @@ null (empty response body)
|
|||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="adminDeleteHook"></a>
|
||||
# **adminDeleteHook**
|
||||
> adminDeleteHook(id)
|
||||
|
||||
Delete a hook
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.AdminApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
AdminApi apiInstance = new AdminApi();
|
||||
Long id = 789L; // Long | id of the hook to delete
|
||||
try {
|
||||
apiInstance.adminDeleteHook(id);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AdminApi#adminDeleteHook");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**id** | **Long**| id of the hook to delete |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
|
|
@ -735,7 +918,7 @@ null (empty response body)
|
|||
|
||||
<a name="adminDeleteUser"></a>
|
||||
# **adminDeleteUser**
|
||||
> adminDeleteUser(username)
|
||||
> adminDeleteUser(username, purge)
|
||||
|
||||
Delete a user
|
||||
|
||||
|
|
@ -793,8 +976,9 @@ Token.setApiKey("YOUR API KEY");
|
|||
|
||||
AdminApi apiInstance = new AdminApi();
|
||||
String username = "username_example"; // String | username of user to delete
|
||||
Boolean purge = true; // Boolean | purge the user from the system completely
|
||||
try {
|
||||
apiInstance.adminDeleteUser(username);
|
||||
apiInstance.adminDeleteUser(username, purge);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AdminApi#adminDeleteUser");
|
||||
e.printStackTrace();
|
||||
|
|
@ -806,6 +990,7 @@ try {
|
|||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**username** | **String**| username of user to delete |
|
||||
**purge** | **Boolean**| purge the user from the system completely | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
|
|
@ -909,6 +1094,96 @@ null (empty response body)
|
|||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="adminEditHook"></a>
|
||||
# **adminEditHook**
|
||||
> Hook adminEditHook(id, body)
|
||||
|
||||
Update a hook
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.AdminApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
AdminApi apiInstance = new AdminApi();
|
||||
Long id = 789L; // Long | id of the hook to update
|
||||
EditHookOption body = new EditHookOption(); // EditHookOption |
|
||||
try {
|
||||
Hook result = apiInstance.adminEditHook(id, body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AdminApi#adminEditHook");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**id** | **Long**| id of the hook to update |
|
||||
**body** | [**EditHookOption**](EditHookOption.md)| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**Hook**](Hook.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="adminEditUser"></a>
|
||||
# **adminEditUser**
|
||||
> User adminEditUser(username, body)
|
||||
|
|
@ -999,6 +1274,96 @@ Name | Type | Description | Notes
|
|||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="adminGetAllEmails"></a>
|
||||
# **adminGetAllEmails**
|
||||
> List<Email> adminGetAllEmails(page, limit)
|
||||
|
||||
List all emails
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.AdminApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
AdminApi apiInstance = new AdminApi();
|
||||
Integer page = 56; // Integer | page number of results to return (1-based)
|
||||
Integer limit = 56; // Integer | page size of results
|
||||
try {
|
||||
List<Email> result = apiInstance.adminGetAllEmails(page, limit);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AdminApi#adminGetAllEmails");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**page** | **Integer**| page number of results to return (1-based) | [optional]
|
||||
**limit** | **Integer**| page size of results | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<Email>**](Email.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="adminGetAllOrgs"></a>
|
||||
# **adminGetAllOrgs**
|
||||
> List<Organization> adminGetAllOrgs(page, limit)
|
||||
|
|
@ -1089,11 +1454,99 @@ Name | Type | Description | Notes
|
|||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="adminGetAllUsers"></a>
|
||||
# **adminGetAllUsers**
|
||||
> List<User> adminGetAllUsers(page, limit)
|
||||
<a name="adminGetHook"></a>
|
||||
# **adminGetHook**
|
||||
> Hook adminGetHook(id)
|
||||
|
||||
List all users
|
||||
Get a hook
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.AdminApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
AdminApi apiInstance = new AdminApi();
|
||||
Long id = 789L; // Long | id of the hook to get
|
||||
try {
|
||||
Hook result = apiInstance.adminGetHook(id);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AdminApi#adminGetHook");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**id** | **Long**| id of the hook to get |
|
||||
|
||||
### Return type
|
||||
|
||||
[**Hook**](Hook.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="adminListHooks"></a>
|
||||
# **adminListHooks**
|
||||
> List<Hook> adminListHooks(page, limit)
|
||||
|
||||
List system's webhooks
|
||||
|
||||
### Example
|
||||
```java
|
||||
|
|
@ -1151,10 +1604,10 @@ AdminApi apiInstance = new AdminApi();
|
|||
Integer page = 56; // Integer | page number of results to return (1-based)
|
||||
Integer limit = 56; // Integer | page size of results
|
||||
try {
|
||||
List<User> result = apiInstance.adminGetAllUsers(page, limit);
|
||||
List<Hook> result = apiInstance.adminListHooks(page, limit);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AdminApi#adminGetAllUsers");
|
||||
System.err.println("Exception when calling AdminApi#adminListHooks");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
|
@ -1168,6 +1621,281 @@ Name | Type | Description | Notes
|
|||
|
||||
### Return type
|
||||
|
||||
[**List<Hook>**](Hook.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="adminRenameUser"></a>
|
||||
# **adminRenameUser**
|
||||
> adminRenameUser(username, body)
|
||||
|
||||
Rename a user
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.AdminApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
AdminApi apiInstance = new AdminApi();
|
||||
String username = "username_example"; // String | existing username of user
|
||||
RenameUserOption body = new RenameUserOption(); // RenameUserOption |
|
||||
try {
|
||||
apiInstance.adminRenameUser(username, body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AdminApi#adminRenameUser");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**username** | **String**| existing username of user |
|
||||
**body** | [**RenameUserOption**](RenameUserOption.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="adminSearchEmails"></a>
|
||||
# **adminSearchEmails**
|
||||
> List<Email> adminSearchEmails(q, page, limit)
|
||||
|
||||
Search all emails
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.AdminApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
AdminApi apiInstance = new AdminApi();
|
||||
String q = "q_example"; // String | keyword
|
||||
Integer page = 56; // Integer | page number of results to return (1-based)
|
||||
Integer limit = 56; // Integer | page size of results
|
||||
try {
|
||||
List<Email> result = apiInstance.adminSearchEmails(q, page, limit);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AdminApi#adminSearchEmails");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**q** | **String**| keyword | [optional]
|
||||
**page** | **Integer**| page number of results to return (1-based) | [optional]
|
||||
**limit** | **Integer**| page size of results | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<Email>**](Email.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="adminSearchUsers"></a>
|
||||
# **adminSearchUsers**
|
||||
> List<User> adminSearchUsers(sourceId, loginName, page, limit)
|
||||
|
||||
Search users according filter conditions
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.AdminApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
AdminApi apiInstance = new AdminApi();
|
||||
Long sourceId = 789L; // Long | ID of the user's login source to search for
|
||||
String loginName = "loginName_example"; // String | user's login name to search for
|
||||
Integer page = 56; // Integer | page number of results to return (1-based)
|
||||
Integer limit = 56; // Integer | page size of results
|
||||
try {
|
||||
List<User> result = apiInstance.adminSearchUsers(sourceId, loginName, page, limit);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AdminApi#adminSearchUsers");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**sourceId** | **Long**| ID of the user's login source to search for | [optional]
|
||||
**loginName** | **String**| user's login name to search for | [optional]
|
||||
**page** | **Integer**| page number of results to return (1-based) | [optional]
|
||||
**limit** | **Integer**| page size of results | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<User>**](User.md)
|
||||
|
||||
### Authorization
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ Name | Type | Description | Notes
|
|||
**blockOnOfficialReviewRequests** | **Boolean** | | [optional]
|
||||
**blockOnOutdatedBranch** | **Boolean** | | [optional]
|
||||
**blockOnRejectedReviews** | **Boolean** | | [optional]
|
||||
**branchName** | **String** | | [optional]
|
||||
**branchName** | **String** | Deprecated: true | [optional]
|
||||
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
|
||||
**dismissStaleApprovals** | **Boolean** | | [optional]
|
||||
**enableApprovalsWhitelist** | **Boolean** | | [optional]
|
||||
|
|
@ -25,6 +25,7 @@ Name | Type | Description | Notes
|
|||
**pushWhitelistUsernames** | **List<String>** | | [optional]
|
||||
**requireSignedCommits** | **Boolean** | | [optional]
|
||||
**requiredApprovals** | **Long** | | [optional]
|
||||
**ruleName** | **String** | | [optional]
|
||||
**statusCheckContexts** | **List<String>** | | [optional]
|
||||
**unprotectedFilePatterns** | **String** | | [optional]
|
||||
**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
# ChangeFileOperation
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**content** | **String** | new or updated file content, must be base64 encoded | [optional]
|
||||
**fromPath** | **String** | old path of the file to move | [optional]
|
||||
**operation** | [**OperationEnum**](#OperationEnum) | indicates what to do with the file |
|
||||
**path** | **String** | path to the existing or new file |
|
||||
**sha** | **String** | sha is the SHA for the file that already exists, required for update or delete | [optional]
|
||||
|
||||
|
||||
<a name="OperationEnum"></a>
|
||||
## Enum: OperationEnum
|
||||
Name | Value
|
||||
---- | -----
|
||||
CREATE | "create"
|
||||
UPDATE | "update"
|
||||
DELETE | "delete"
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
# ChangeFilesOptions
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**author** | [**Identity**](Identity.md) | | [optional]
|
||||
**branch** | **String** | branch (optional) to base this file from. if not given, the default branch is used | [optional]
|
||||
**committer** | [**Identity**](Identity.md) | | [optional]
|
||||
**dates** | [**CommitDateOptions**](CommitDateOptions.md) | | [optional]
|
||||
**files** | [**List<ChangeFileOperation>**](ChangeFileOperation.md) | list of file operations |
|
||||
**message** | **String** | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional]
|
||||
**newBranch** | **String** | new_branch (optional) will make a new branch from `branch` before creating the file | [optional]
|
||||
**signoff** | **Boolean** | Add a Signed-off-by trailer by the committer at the end of the commit log message. | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**assets** | [**List<Attachment>**](Attachment.md) | | [optional]
|
||||
**body** | **String** | | [optional]
|
||||
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
|
||||
**htmlUrl** | **String** | | [optional]
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**filename** | **String** | | [optional]
|
||||
**status** | **String** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **String** | | [optional]
|
||||
**name** | **String** | |
|
||||
**scopes** | **List<String>** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ Name | Type | Description | Notes
|
|||
**blockOnOfficialReviewRequests** | **Boolean** | | [optional]
|
||||
**blockOnOutdatedBranch** | **Boolean** | | [optional]
|
||||
**blockOnRejectedReviews** | **Boolean** | | [optional]
|
||||
**branchName** | **String** | | [optional]
|
||||
**branchName** | **String** | Deprecated: true | [optional]
|
||||
**dismissStaleApprovals** | **Boolean** | | [optional]
|
||||
**enableApprovalsWhitelist** | **Boolean** | | [optional]
|
||||
**enableMergeWhitelist** | **Boolean** | | [optional]
|
||||
|
|
@ -24,6 +24,7 @@ Name | Type | Description | Notes
|
|||
**pushWhitelistUsernames** | **List<String>** | | [optional]
|
||||
**requireSignedCommits** | **Boolean** | | [optional]
|
||||
**requiredApprovals** | **Long** | | [optional]
|
||||
**ruleName** | **String** | | [optional]
|
||||
**statusCheckContexts** | **List<String>** | | [optional]
|
||||
**unprotectedFilePatterns** | **String** | | [optional]
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@
|
|||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**newBranchName** | **String** | Name of the branch to create |
|
||||
**oldBranchName** | **String** | Name of the old branch to create from | [optional]
|
||||
**oldBranchName** | **String** | Deprecated: true Name of the old branch to create from | [optional]
|
||||
**oldRefName** | **String** | Name of the old branch/tag/commit to create from | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**active** | **Boolean** | | [optional]
|
||||
**authorizationHeader** | **String** | | [optional]
|
||||
**branchFilter** | **String** | | [optional]
|
||||
**config** | [**CreateHookOptionConfig**](CreateHookOptionConfig.md) | |
|
||||
**events** | **List<String>** | | [optional]
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||
------------ | ------------- | ------------- | -------------
|
||||
**color** | **String** | |
|
||||
**description** | **String** | | [optional]
|
||||
**exclusive** | **Boolean** | | [optional]
|
||||
**isArchived** | **Boolean** | | [optional]
|
||||
**name** | **String** | |
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
# CreateOrUpdateSecretOption
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**data** | **String** | Data of the secret to update |
|
||||
|
||||
|
||||
|
||||
|
|
@ -5,6 +5,7 @@
|
|||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**description** | **String** | | [optional]
|
||||
**email** | **String** | | [optional]
|
||||
**fullName** | **String** | | [optional]
|
||||
**location** | **String** | | [optional]
|
||||
**repoAdminChangeTeamAccess** | **Boolean** | | [optional]
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|||
**remoteAddress** | **String** | | [optional]
|
||||
**remotePassword** | **String** | | [optional]
|
||||
**remoteUsername** | **String** | | [optional]
|
||||
**syncOnCommit** | **Boolean** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | For explicitly setting the user creation timestamp. Useful when users are migrated from other systems. When omitted, the user's creation timestamp will be set to \"now\". | [optional]
|
||||
**email** | **String** | |
|
||||
**fullName** | **String** | | [optional]
|
||||
**loginName** | **String** | | [optional]
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**active** | **Boolean** | | [optional]
|
||||
**authorizationHeader** | **String** | | [optional]
|
||||
**branchFilter** | **String** | | [optional]
|
||||
**config** | **Map<String, String>** | | [optional]
|
||||
**events** | **List<String>** | | [optional]
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||
------------ | ------------- | ------------- | -------------
|
||||
**color** | **String** | | [optional]
|
||||
**description** | **String** | | [optional]
|
||||
**exclusive** | **Boolean** | | [optional]
|
||||
**isArchived** | **Boolean** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**description** | **String** | | [optional]
|
||||
**email** | **String** | | [optional]
|
||||
**fullName** | **String** | | [optional]
|
||||
**location** | **String** | | [optional]
|
||||
**repoAdminChangeTeamAccess** | **Boolean** | | [optional]
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|||
**allowSquashMerge** | **Boolean** | either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. | [optional]
|
||||
**archived** | **Boolean** | set to `true` to archive this repository. | [optional]
|
||||
**autodetectManualMerge** | **Boolean** | either `true` to enable AutodetectManualMerge, or `false` to prevent it. Note: In some special cases, misjudgments can occur. | [optional]
|
||||
**defaultAllowMaintainerEdit** | **Boolean** | set to `true` to allow edits from maintainers by default | [optional]
|
||||
**defaultBranch** | **String** | sets the default branch for this repository. | [optional]
|
||||
**defaultDeleteBranchAfterMerge** | **Boolean** | set to `true` to delete pr branch after merge by default | [optional]
|
||||
**defaultMergeStyle** | **String** | set to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", or \"squash\". | [optional]
|
||||
|
|
@ -19,9 +20,12 @@ Name | Type | Description | Notes
|
|||
**enablePrune** | **Boolean** | enable prune - remove obsolete remote-tracking references | [optional]
|
||||
**externalTracker** | [**ExternalTracker**](ExternalTracker.md) | | [optional]
|
||||
**externalWiki** | [**ExternalWiki**](ExternalWiki.md) | | [optional]
|
||||
**hasActions** | **Boolean** | either `true` to enable actions unit, or `false` to disable them. | [optional]
|
||||
**hasIssues** | **Boolean** | either `true` to enable issues for this repository or `false` to disable them. | [optional]
|
||||
**hasPackages** | **Boolean** | either `true` to enable packages unit, or `false` to disable them. | [optional]
|
||||
**hasProjects** | **Boolean** | either `true` to enable project unit, or `false` to disable them. | [optional]
|
||||
**hasPullRequests** | **Boolean** | either `true` to allow pull requests, or `false` to prevent pull request. | [optional]
|
||||
**hasReleases** | **Boolean** | either `true` to enable releases unit, or `false` to disable them. | [optional]
|
||||
**hasWiki** | **Boolean** | either `true` to enable the wiki for this repository or `false` to disable it. | [optional]
|
||||
**ignoreWhitespaceConflicts** | **Boolean** | either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace. | [optional]
|
||||
**internalTracker** | [**InternalTracker**](InternalTracker.md) | | [optional]
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||
------------ | ------------- | ------------- | -------------
|
||||
**email** | **String** | | [optional]
|
||||
**primary** | **Boolean** | | [optional]
|
||||
**userId** | **Long** | | [optional]
|
||||
**username** | **String** | | [optional]
|
||||
**verified** | **Boolean** | | [optional]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
# FilesResponse
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**commit** | [**FileCommitResponse**](FileCommitResponse.md) | | [optional]
|
||||
**files** | [**List<ContentsResponse>**](ContentsResponse.md) | | [optional]
|
||||
**verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|||
**name** | **String** | Name of the repository to create |
|
||||
**owner** | **String** | The organization or person who will own the new repository |
|
||||
**_private** | **Boolean** | Whether the repository is private | [optional]
|
||||
**protectedBranch** | **Boolean** | include protected branches in template repo | [optional]
|
||||
**topics** | **Boolean** | include topics in template repo | [optional]
|
||||
**webhooks** | **Boolean** | include webhooks in template repo | [optional]
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
# GitignoreTemplateInfo
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **String** | | [optional]
|
||||
**source** | **String** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -5,6 +5,8 @@
|
|||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**active** | **Boolean** | | [optional]
|
||||
**authorizationHeader** | **String** | | [optional]
|
||||
**branchFilter** | **String** | | [optional]
|
||||
**config** | **Map<String, String>** | | [optional]
|
||||
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
|
||||
**events** | **List<String>** | | [optional]
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**assets** | [**List<Attachment>**](Attachment.md) | | [optional]
|
||||
**assignee** | [**User**](User.md) | | [optional]
|
||||
**assignees** | [**List<User>**](User.md) | | [optional]
|
||||
**body** | **String** | | [optional]
|
||||
|
|
@ -19,6 +20,7 @@ Name | Type | Description | Notes
|
|||
**number** | **Long** | | [optional]
|
||||
**originalAuthor** | **String** | | [optional]
|
||||
**originalAuthorId** | **Long** | | [optional]
|
||||
**pinOrder** | **Long** | | [optional]
|
||||
**pullRequest** | [**PullRequestMeta**](PullRequestMeta.md) | | [optional]
|
||||
**ref** | **String** | | [optional]
|
||||
**repository** | [**RepositoryMeta**](RepositoryMeta.md) | | [optional]
|
||||
|
|
|
|||
1810
docs/IssueApi.md
1810
docs/IssueApi.md
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
# IssueConfig
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**blankIssuesEnabled** | **Boolean** | | [optional]
|
||||
**contactLinks** | [**List<IssueConfigContactLink>**](IssueConfigContactLink.md) | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
# IssueConfigContactLink
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**about** | **String** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**url** | **String** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
# IssueConfigValidation
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**message** | **String** | | [optional]
|
||||
**valid** | **Boolean** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
# IssueMeta
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**index** | **Long** | | [optional]
|
||||
**owner** | **String** | | [optional]
|
||||
**repo** | **String** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -6,7 +6,9 @@ Name | Type | Description | Notes
|
|||
------------ | ------------- | ------------- | -------------
|
||||
**color** | **String** | | [optional]
|
||||
**description** | **String** | | [optional]
|
||||
**exclusive** | **Boolean** | | [optional]
|
||||
**id** | **Long** | | [optional]
|
||||
**isArchived** | **Boolean** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**url** | **String** | | [optional]
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
# LabelTemplate
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**color** | **String** | | [optional]
|
||||
**description** | **String** | | [optional]
|
||||
**exclusive** | **Boolean** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
# LicenseTemplateInfo
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**body** | **String** | | [optional]
|
||||
**implementation** | **String** | | [optional]
|
||||
**key** | **String** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**url** | **String** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
# LicensesTemplateListEntry
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**key** | **String** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**url** | **String** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**context** | **String** | Context to render in: body | [optional]
|
||||
**mode** | **String** | Mode to render in: body | [optional]
|
||||
**mode** | **String** | Mode to render (comment, gfm, markdown) in: body | [optional]
|
||||
**text** | **String** | Text markdown to render in: body | [optional]
|
||||
**wiki** | **Boolean** | Is it a wiki page ? in: body | [optional]
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
# MarkupOption
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**context** | **String** | Context to render in: body | [optional]
|
||||
**filePath** | **String** | File path for detecting extension in file mode in: body | [optional]
|
||||
**mode** | **String** | Mode to render (comment, gfm, markdown, file) in: body | [optional]
|
||||
**text** | **String** | Text markup to render in: body | [optional]
|
||||
**wiki** | **Boolean** | Is it a wiki page ? in: body | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -34,6 +34,10 @@ GIT | "git"
|
|||
GITHUB | "github"
|
||||
GITEA | "gitea"
|
||||
GITLAB | "gitlab"
|
||||
GOGS | "gogs"
|
||||
ONEDEV | "onedev"
|
||||
GITBUCKET | "gitbucket"
|
||||
CODEBASE | "codebase"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,13 +4,284 @@ All URIs are relative to *http://localhost/api/v1*
|
|||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**getGitignoreTemplateInfo**](MiscellaneousApi.md#getGitignoreTemplateInfo) | **GET** /gitignore/templates/{name} | Returns information about a gitignore template
|
||||
[**getLabelTemplateInfo**](MiscellaneousApi.md#getLabelTemplateInfo) | **GET** /label/templates/{name} | Returns all labels in a template
|
||||
[**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
|
||||
[**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
|
||||
[**listLicenseTemplates**](MiscellaneousApi.md#listLicenseTemplates) | **GET** /licenses | Returns a list of all license templates
|
||||
[**renderMarkdown**](MiscellaneousApi.md#renderMarkdown) | **POST** /markdown | Render a markdown document as HTML
|
||||
[**renderMarkdownRaw**](MiscellaneousApi.md#renderMarkdownRaw) | **POST** /markdown/raw | Render raw markdown as HTML
|
||||
[**renderMarkup**](MiscellaneousApi.md#renderMarkup) | **POST** /markup | Render a markup document as HTML
|
||||
|
||||
|
||||
<a name="getGitignoreTemplateInfo"></a>
|
||||
# **getGitignoreTemplateInfo**
|
||||
> GitignoreTemplateInfo getGitignoreTemplateInfo(name)
|
||||
|
||||
Returns information about a gitignore template
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.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();
|
||||
String name = "name_example"; // String | name of the template
|
||||
try {
|
||||
GitignoreTemplateInfo result = apiInstance.getGitignoreTemplateInfo(name);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling MiscellaneousApi#getGitignoreTemplateInfo");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**name** | **String**| name of the template |
|
||||
|
||||
### Return type
|
||||
|
||||
[**GitignoreTemplateInfo**](GitignoreTemplateInfo.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="getLabelTemplateInfo"></a>
|
||||
# **getLabelTemplateInfo**
|
||||
> List<LabelTemplate> getLabelTemplateInfo(name)
|
||||
|
||||
Returns all labels in a template
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.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();
|
||||
String name = "name_example"; // String | name of the template
|
||||
try {
|
||||
List<LabelTemplate> result = apiInstance.getLabelTemplateInfo(name);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling MiscellaneousApi#getLabelTemplateInfo");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**name** | **String**| name of the template |
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<LabelTemplate>**](LabelTemplate.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="getLicenseTemplateInfo"></a>
|
||||
# **getLicenseTemplateInfo**
|
||||
> LicenseTemplateInfo getLicenseTemplateInfo(name)
|
||||
|
||||
Returns information about a license template
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.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();
|
||||
String name = "name_example"; // String | name of the license
|
||||
try {
|
||||
LicenseTemplateInfo result = apiInstance.getLicenseTemplateInfo(name);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling MiscellaneousApi#getLicenseTemplateInfo");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**name** | **String**| name of the license |
|
||||
|
||||
### Return type
|
||||
|
||||
[**LicenseTemplateInfo**](LicenseTemplateInfo.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="getNodeInfo"></a>
|
||||
# **getNodeInfo**
|
||||
> NodeInfo getNodeInfo()
|
||||
|
|
@ -258,6 +529,258 @@ 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**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="listGitignoresTemplates"></a>
|
||||
# **listGitignoresTemplates**
|
||||
> List<String> listGitignoresTemplates()
|
||||
|
||||
Returns a list of all gitignore templates
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.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 {
|
||||
List<String> result = apiInstance.listGitignoresTemplates();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling MiscellaneousApi#listGitignoresTemplates");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
**List<String>**
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="listLabelTemplates"></a>
|
||||
# **listLabelTemplates**
|
||||
> List<String> listLabelTemplates()
|
||||
|
||||
Returns a list of all label templates
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.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 {
|
||||
List<String> result = apiInstance.listLabelTemplates();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling MiscellaneousApi#listLabelTemplates");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
**List<String>**
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="listLicenseTemplates"></a>
|
||||
# **listLicenseTemplates**
|
||||
> List<LicensesTemplateListEntry> listLicenseTemplates()
|
||||
|
||||
Returns a list of all license templates
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.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 {
|
||||
List<LicensesTemplateListEntry> result = apiInstance.listLicenseTemplates();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling MiscellaneousApi#listLicenseTemplates");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<LicensesTemplateListEntry>**](LicensesTemplateListEntry.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
|
||||
|
|
@ -439,3 +962,91 @@ Name | Type | Description | Notes
|
|||
- **Content-Type**: text/plain
|
||||
- **Accept**: text/html
|
||||
|
||||
<a name="renderMarkup"></a>
|
||||
# **renderMarkup**
|
||||
> String renderMarkup(body)
|
||||
|
||||
Render a markup document as HTML
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.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();
|
||||
MarkupOption body = new MarkupOption(); // MarkupOption |
|
||||
try {
|
||||
String result = apiInstance.renderMarkup(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling MiscellaneousApi#renderMarkup");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**MarkupOption**](MarkupOption.md)| | [optional]
|
||||
|
||||
### 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**: application/json
|
||||
- **Accept**: text/html
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|||
------------ | ------------- | ------------- | -------------
|
||||
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
|
||||
**creator** | [**User**](User.md) | | [optional]
|
||||
**htmlUrl** | **String** | | [optional]
|
||||
**id** | **Long** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**owner** | [**User**](User.md) | | [optional]
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
# NewIssuePinsAllowed
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**issues** | **Boolean** | | [optional]
|
||||
**pullRequests** | **Boolean** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|||
------------ | ------------- | ------------- | -------------
|
||||
**avatarUrl** | **String** | | [optional]
|
||||
**description** | **String** | | [optional]
|
||||
**email** | **String** | | [optional]
|
||||
**fullName** | **String** | | [optional]
|
||||
**id** | **Long** | | [optional]
|
||||
**location** | **String** | | [optional]
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ Method | HTTP request | Description
|
|||
------------- | ------------- | -------------
|
||||
[**createOrgRepo**](OrganizationApi.md#createOrgRepo) | **POST** /orgs/{org}/repos | Create a repository in an organization
|
||||
[**createOrgRepoDeprecated**](OrganizationApi.md#createOrgRepoDeprecated) | **POST** /org/{org}/repos | Create a repository in an organization
|
||||
[**deleteOrgSecret**](OrganizationApi.md#deleteOrgSecret) | **DELETE** /orgs/{org}/actions/secrets/{secretname} | Delete a secret in an organization
|
||||
[**orgAddTeamMember**](OrganizationApi.md#orgAddTeamMember) | **PUT** /teams/{id}/members/{username} | Add a team member
|
||||
[**orgAddTeamRepository**](OrganizationApi.md#orgAddTeamRepository) | **PUT** /teams/{id}/repos/{org}/{repo} | Add a repository to a team
|
||||
[**orgConcealMember**](OrganizationApi.md#orgConcealMember) | **DELETE** /orgs/{org}/public_members/{username} | Conceal a user's membership
|
||||
|
|
@ -14,6 +15,7 @@ Method | HTTP request | Description
|
|||
[**orgCreateLabel**](OrganizationApi.md#orgCreateLabel) | **POST** /orgs/{org}/labels | Create a label for an organization
|
||||
[**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
|
||||
[**orgDeleteHook**](OrganizationApi.md#orgDeleteHook) | **DELETE** /orgs/{org}/hooks/{id} | Delete a hook
|
||||
[**orgDeleteLabel**](OrganizationApi.md#orgDeleteLabel) | **DELETE** /orgs/{org}/labels/{id} | Delete a label
|
||||
[**orgDeleteMember**](OrganizationApi.md#orgDeleteMember) | **DELETE** /orgs/{org}/members/{username} | Remove a member from an organization
|
||||
|
|
@ -30,12 +32,15 @@ Method | HTTP request | Description
|
|||
[**orgGetUserPermissions**](OrganizationApi.md#orgGetUserPermissions) | **GET** /users/{username}/orgs/{org}/permissions | Get user permissions in organization
|
||||
[**orgIsMember**](OrganizationApi.md#orgIsMember) | **GET** /orgs/{org}/members/{username} | Check if a user is a member of an organization
|
||||
[**orgIsPublicMember**](OrganizationApi.md#orgIsPublicMember) | **GET** /orgs/{org}/public_members/{username} | Check if a user is a public member of an organization
|
||||
[**orgListActionsSecrets**](OrganizationApi.md#orgListActionsSecrets) | **GET** /orgs/{org}/actions/secrets | List an organization's actions secrets
|
||||
[**orgListActivityFeeds**](OrganizationApi.md#orgListActivityFeeds) | **GET** /orgs/{org}/activities/feeds | List an organization's activity feeds
|
||||
[**orgListCurrentUserOrgs**](OrganizationApi.md#orgListCurrentUserOrgs) | **GET** /user/orgs | List the current user's organizations
|
||||
[**orgListHooks**](OrganizationApi.md#orgListHooks) | **GET** /orgs/{org}/hooks | List an organization's webhooks
|
||||
[**orgListLabels**](OrganizationApi.md#orgListLabels) | **GET** /orgs/{org}/labels | List an organization's labels
|
||||
[**orgListMembers**](OrganizationApi.md#orgListMembers) | **GET** /orgs/{org}/members | List an organization's members
|
||||
[**orgListPublicMembers**](OrganizationApi.md#orgListPublicMembers) | **GET** /orgs/{org}/public_members | List an organization's public members
|
||||
[**orgListRepos**](OrganizationApi.md#orgListRepos) | **GET** /orgs/{org}/repos | List an organization's repos
|
||||
[**orgListTeamActivityFeeds**](OrganizationApi.md#orgListTeamActivityFeeds) | **GET** /teams/{id}/activities/feeds | List a team's activity feeds
|
||||
[**orgListTeamMember**](OrganizationApi.md#orgListTeamMember) | **GET** /teams/{id}/members/{username} | List a particular member of team
|
||||
[**orgListTeamMembers**](OrganizationApi.md#orgListTeamMembers) | **GET** /teams/{id}/members | List a team's members
|
||||
[**orgListTeamRepo**](OrganizationApi.md#orgListTeamRepo) | **GET** /teams/{id}/repos/{org}/{repo} | List a particular repo of team
|
||||
|
|
@ -45,7 +50,9 @@ Method | HTTP request | Description
|
|||
[**orgPublicizeMember**](OrganizationApi.md#orgPublicizeMember) | **PUT** /orgs/{org}/public_members/{username} | Publicize a user's membership
|
||||
[**orgRemoveTeamMember**](OrganizationApi.md#orgRemoveTeamMember) | **DELETE** /teams/{id}/members/{username} | Remove a team member
|
||||
[**orgRemoveTeamRepository**](OrganizationApi.md#orgRemoveTeamRepository) | **DELETE** /teams/{id}/repos/{org}/{repo} | Remove a repository from a team
|
||||
[**orgUpdateAvatar**](OrganizationApi.md#orgUpdateAvatar) | **POST** /orgs/{org}/avatar | Update Avatar
|
||||
[**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
|
||||
|
||||
|
||||
<a name="createOrgRepo"></a>
|
||||
|
|
@ -223,6 +230,95 @@ Name | Type | Description | Notes
|
|||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="deleteOrgSecret"></a>
|
||||
# **deleteOrgSecret**
|
||||
> deleteOrgSecret(org, secretname)
|
||||
|
||||
Delete a secret in an organization
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.OrganizationApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
OrganizationApi apiInstance = new OrganizationApi();
|
||||
String org = "org_example"; // String | name of organization
|
||||
String secretname = "secretname_example"; // String | name of the secret
|
||||
try {
|
||||
apiInstance.deleteOrgSecret(org, secretname);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling OrganizationApi#deleteOrgSecret");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**org** | **String**| name of organization |
|
||||
**secretname** | **String**| name of the secret |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
|
|
@ -937,6 +1033,93 @@ null (empty response body)
|
|||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="orgDeleteAvatar"></a>
|
||||
# **orgDeleteAvatar**
|
||||
> orgDeleteAvatar(org)
|
||||
|
||||
Delete Avatar
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.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 {
|
||||
apiInstance.orgDeleteAvatar(org);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling OrganizationApi#orgDeleteAvatar");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**org** | **String**| name of the organization |
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
|
|
@ -2374,6 +2557,192 @@ null (empty response body)
|
|||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json, text/html
|
||||
|
||||
<a name="orgListActionsSecrets"></a>
|
||||
# **orgListActionsSecrets**
|
||||
> List<Secret> orgListActionsSecrets(org, page, limit)
|
||||
|
||||
List an organization's actions secrets
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.OrganizationApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
OrganizationApi apiInstance = new OrganizationApi();
|
||||
String org = "org_example"; // String | name of the organization
|
||||
Integer page = 56; // Integer | page number of results to return (1-based)
|
||||
Integer limit = 56; // Integer | page size of results
|
||||
try {
|
||||
List<Secret> result = apiInstance.orgListActionsSecrets(org, page, limit);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling OrganizationApi#orgListActionsSecrets");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**org** | **String**| name of the organization |
|
||||
**page** | **Integer**| page number of results to return (1-based) | [optional]
|
||||
**limit** | **Integer**| page size of results | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<Secret>**](Secret.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="orgListActivityFeeds"></a>
|
||||
# **orgListActivityFeeds**
|
||||
> List<Activity> orgListActivityFeeds(org, date, page, limit)
|
||||
|
||||
List an organization's activity feeds
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.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 org
|
||||
LocalDate date = LocalDate.now(); // LocalDate | the date of the activities to be found
|
||||
Integer page = 56; // Integer | page number of results to return (1-based)
|
||||
Integer limit = 56; // Integer | page size of results
|
||||
try {
|
||||
List<Activity> result = apiInstance.orgListActivityFeeds(org, date, page, limit);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling OrganizationApi#orgListActivityFeeds");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**org** | **String**| name of the org |
|
||||
**date** | **LocalDate**| the date of the activities to be found | [optional]
|
||||
**page** | **Integer**| page number of results to return (1-based) | [optional]
|
||||
**limit** | **Integer**| page size of results | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<Activity>**](Activity.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="orgListCurrentUserOrgs"></a>
|
||||
# **orgListCurrentUserOrgs**
|
||||
> List<Organization> orgListCurrentUserOrgs(page, limit)
|
||||
|
|
@ -2919,6 +3288,100 @@ 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**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="orgListTeamActivityFeeds"></a>
|
||||
# **orgListTeamActivityFeeds**
|
||||
> List<Activity> orgListTeamActivityFeeds(id, date, page, limit)
|
||||
|
||||
List a team's activity feeds
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.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();
|
||||
Long id = 789L; // Long | id of the team
|
||||
LocalDate date = LocalDate.now(); // LocalDate | the date of the activities to be found
|
||||
Integer page = 56; // Integer | page number of results to return (1-based)
|
||||
Integer limit = 56; // Integer | page size of results
|
||||
try {
|
||||
List<Activity> result = apiInstance.orgListTeamActivityFeeds(id, date, page, limit);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling OrganizationApi#orgListTeamActivityFeeds");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**id** | **Long**| id of the team |
|
||||
**date** | **LocalDate**| the date of the activities to be found | [optional]
|
||||
**page** | **Integer**| page number of results to return (1-based) | [optional]
|
||||
**limit** | **Integer**| page size of results | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**List<Activity>**](Activity.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
|
||||
|
|
@ -3740,6 +4203,95 @@ null (empty response body)
|
|||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="orgUpdateAvatar"></a>
|
||||
# **orgUpdateAvatar**
|
||||
> orgUpdateAvatar(org, body)
|
||||
|
||||
Update Avatar
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.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
|
||||
UpdateUserAvatarOption body = new UpdateUserAvatarOption(); // UpdateUserAvatarOption |
|
||||
try {
|
||||
apiInstance.orgUpdateAvatar(org, body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling OrganizationApi#orgUpdateAvatar");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**org** | **String**| name of the organization |
|
||||
**body** | [**UpdateUserAvatarOption**](UpdateUserAvatarOption.md)| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, text/plain
|
||||
|
|
@ -3841,3 +4393,94 @@ Name | Type | Description | Notes
|
|||
- **Content-Type**: application/json, text/plain
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="updateOrgSecret"></a>
|
||||
# **updateOrgSecret**
|
||||
> updateOrgSecret(org, secretname, body)
|
||||
|
||||
Create or Update a secret value in an organization
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import io.gitea.ApiClient;
|
||||
//import io.gitea.ApiException;
|
||||
//import io.gitea.Configuration;
|
||||
//import io.gitea.auth.*;
|
||||
//import io.gitea.api.OrganizationApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
OrganizationApi apiInstance = new OrganizationApi();
|
||||
String org = "org_example"; // String | name of organization
|
||||
String secretname = "secretname_example"; // String | name of the secret
|
||||
CreateOrUpdateSecretOption body = new CreateOrUpdateSecretOption(); // CreateOrUpdateSecretOption |
|
||||
try {
|
||||
apiInstance.updateOrgSecret(org, secretname, body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling OrganizationApi#updateOrgSecret");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**org** | **String**| name of organization |
|
||||
**secretname** | **String**| name of the secret |
|
||||
**body** | [**CreateOrUpdateSecretOption**](CreateOrUpdateSecretOption.md)| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [TOTPHeader](../README.md#TOTPHeader), [Token](../README.md#Token)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
|
|
|||
|
|
@ -371,7 +371,7 @@ Name | Type | Description | Notes
|
|||
**owner** | **String**| owner of the packages |
|
||||
**page** | **Integer**| page number of results to return (1-based) | [optional]
|
||||
**limit** | **Integer**| page size of results | [optional]
|
||||
**type** | **String**| package type filter | [optional] [enum: composer, conan, container, generic, helm, maven, npm, nuget, pub, pypi, rubygems, vagrant]
|
||||
**type** | **String**| package type filter | [optional] [enum: alpine, cargo, chef, composer, conan, conda, container, cran, debian, generic, go, helm, maven, npm, nuget, pub, pypi, rpm, rubygems, swift, vagrant]
|
||||
**q** | **String**| name filter | [optional]
|
||||
|
||||
### Return type
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@ Name | Type | Description | Notes
|
|||
**milestone** | [**Milestone**](Milestone.md) | | [optional]
|
||||
**number** | **Long** | | [optional]
|
||||
**patchUrl** | **String** | | [optional]
|
||||
**pinOrder** | **Long** | | [optional]
|
||||
**requestedReviewers** | [**List<User>**](User.md) | | [optional]
|
||||
**state** | **String** | | [optional]
|
||||
**title** | **String** | | [optional]
|
||||
**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
|||
**state** | **String** | | [optional]
|
||||
**submittedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
|
||||
**team** | [**Team**](Team.md) | | [optional]
|
||||
**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
|
||||
**user** | [**User**](User.md) | | [optional]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|||
**remoteAddress** | **String** | | [optional]
|
||||
**remoteName** | **String** | | [optional]
|
||||
**repoName** | **String** | | [optional]
|
||||
**syncOnCommit** | **Boolean** | | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ Name | Type | Description | Notes
|
|||
**tagName** | **String** | | [optional]
|
||||
**tarballUrl** | **String** | | [optional]
|
||||
**targetCommitish** | **String** | | [optional]
|
||||
**uploadUrl** | **String** | | [optional]
|
||||
**url** | **String** | | [optional]
|
||||
**zipballUrl** | **String** | | [optional]
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
# RenameUserOption
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**newUsername** | **String** | New username for this user. This name cannot be in use yet by any other user. |
|
||||
|
||||
|
||||
|
||||
|
|
@ -10,9 +10,11 @@ Name | Type | Description | Notes
|
|||
**allowRebaseUpdate** | **Boolean** | | [optional]
|
||||
**allowSquashMerge** | **Boolean** | | [optional]
|
||||
**archived** | **Boolean** | | [optional]
|
||||
**archivedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
|
||||
**avatarUrl** | **String** | | [optional]
|
||||
**cloneUrl** | **String** | | [optional]
|
||||
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
|
||||
**defaultAllowMaintainerEdit** | **Boolean** | | [optional]
|
||||
**defaultBranch** | **String** | | [optional]
|
||||
**defaultDeleteBranchAfterMerge** | **Boolean** | | [optional]
|
||||
**defaultMergeStyle** | **String** | | [optional]
|
||||
|
|
@ -23,9 +25,12 @@ Name | Type | Description | Notes
|
|||
**fork** | **Boolean** | | [optional]
|
||||
**forksCount** | **Long** | | [optional]
|
||||
**fullName** | **String** | | [optional]
|
||||
**hasActions** | **Boolean** | | [optional]
|
||||
**hasIssues** | **Boolean** | | [optional]
|
||||
**hasPackages** | **Boolean** | | [optional]
|
||||
**hasProjects** | **Boolean** | | [optional]
|
||||
**hasPullRequests** | **Boolean** | | [optional]
|
||||
**hasReleases** | **Boolean** | | [optional]
|
||||
**hasWiki** | **Boolean** | | [optional]
|
||||
**htmlUrl** | **String** | | [optional]
|
||||
**id** | **Long** | | [optional]
|
||||
|
|
@ -34,6 +39,7 @@ Name | Type | Description | Notes
|
|||
**internalTracker** | [**InternalTracker**](InternalTracker.md) | | [optional]
|
||||
**language** | **String** | | [optional]
|
||||
**languagesUrl** | **String** | | [optional]
|
||||
**link** | **String** | | [optional]
|
||||
**mirror** | **Boolean** | | [optional]
|
||||
**mirrorInterval** | **String** | | [optional]
|
||||
**mirrorUpdated** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
|
||||
|
|
@ -52,6 +58,7 @@ Name | Type | Description | Notes
|
|||
**starsCount** | **Long** | | [optional]
|
||||
**template** | **Boolean** | | [optional]
|
||||
**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
|
||||
**url** | **String** | | [optional]
|
||||
**watchersCount** | **Long** | | [optional]
|
||||
**website** | **String** | | [optional]
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
# Secret
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
|
||||
**name** | **String** | the secret's name | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
# UpdateRepoAvatarOption
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**image** | **String** | image must be base64 encoded | [optional]
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
# UpdateUserAvatarOption
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**image** | **String** | image must be base64 encoded | [optional]
|
||||
|
||||
|
||||
|
||||
903
docs/UserApi.md
903
docs/UserApi.md
File diff suppressed because it is too large
Load Diff
44
pom.xml
44
pom.xml
|
|
@ -4,7 +4,7 @@
|
|||
<artifactId>java-gitea-api</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>java-gitea-api</name>
|
||||
<version>1.19.0-SNAPSHOT</version>
|
||||
<version>1.21.1</version>
|
||||
<url>https://github.com/zeripath/java-gitea-api</url>
|
||||
<description>Swagger Java Client for Gitea</description>
|
||||
<scm>
|
||||
|
|
@ -221,17 +221,17 @@
|
|||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.sonatype.plugins</groupId>
|
||||
<artifactId>nexus-staging-maven-plugin</artifactId>
|
||||
<version>1.6.7</version>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<serverId>ossrh</serverId>
|
||||
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
|
||||
<autoReleaseAfterClose>true</autoReleaseAfterClose>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- <plugin>-->
|
||||
<!-- <groupId>org.sonatype.plugins</groupId>-->
|
||||
<!-- <artifactId>nexus-staging-maven-plugin</artifactId>-->
|
||||
<!-- <version>1.6.7</version>-->
|
||||
<!-- <extensions>true</extensions>-->
|
||||
<!-- <configuration>-->
|
||||
<!-- <serverId>ossrh</serverId>-->
|
||||
<!-- <nexusUrl>https://oss.sonatype.org/</nexusUrl>-->
|
||||
<!-- <autoReleaseAfterClose>true</autoReleaseAfterClose>-->
|
||||
<!-- </configuration>-->
|
||||
<!-- </plugin>-->
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
|
@ -332,16 +332,16 @@
|
|||
<version>${javax-annotation.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<distributionManagement>
|
||||
<snapshotRepository>
|
||||
<id>ossrh</id>
|
||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
||||
</snapshotRepository>
|
||||
<repository>
|
||||
<id>ossrh</id>
|
||||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
<!-- <distributionManagement>-->
|
||||
<!-- <snapshotRepository>-->
|
||||
<!-- <id>ossrh</id>-->
|
||||
<!-- <url>https://oss.sonatype.org/content/repositories/snapshots</url>-->
|
||||
<!-- </snapshotRepository>-->
|
||||
<!-- <repository>-->
|
||||
<!-- <id>ossrh</id>-->
|
||||
<!-- <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>-->
|
||||
<!-- </repository>-->
|
||||
<!-- </distributionManagement>-->
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
@ -56,18 +56,18 @@ public class ActivitypubApi {
|
|||
|
||||
/**
|
||||
* Build call for activitypubPerson
|
||||
* @param username username of the user (required)
|
||||
* @param userId user ID of the user (required)
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call activitypubPersonCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
public com.squareup.okhttp.Call activitypubPersonCall(Integer userId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/activitypub/user/{username}"
|
||||
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
|
||||
String localVarPath = "/activitypub/user-id/{user-id}"
|
||||
.replaceAll("\\{" + "user-id" + "\\}", apiClient.escapeString(userId.toString()));
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
|
@ -105,15 +105,15 @@ public class ActivitypubApi {
|
|||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call activitypubPersonValidateBeforeCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
private com.squareup.okhttp.Call activitypubPersonValidateBeforeCall(Integer userId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new ApiException("Missing the required parameter 'username' when calling activitypubPerson(Async)");
|
||||
// verify the required parameter 'userId' is set
|
||||
if (userId == null) {
|
||||
throw new ApiException("Missing the required parameter 'userId' when calling activitypubPerson(Async)");
|
||||
}
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = activitypubPersonCall(username, progressListener, progressRequestListener);
|
||||
com.squareup.okhttp.Call call = activitypubPersonCall(userId, progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
|
@ -121,24 +121,24 @@ public class ActivitypubApi {
|
|||
/**
|
||||
* Returns the Person actor for a user
|
||||
*
|
||||
* @param username username of the user (required)
|
||||
* @param userId user ID of the user (required)
|
||||
* @return ActivityPub
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ActivityPub activitypubPerson(String username) throws ApiException {
|
||||
ApiResponse<ActivityPub> resp = activitypubPersonWithHttpInfo(username);
|
||||
public ActivityPub activitypubPerson(Integer userId) throws ApiException {
|
||||
ApiResponse<ActivityPub> resp = activitypubPersonWithHttpInfo(userId);
|
||||
return resp.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Person actor for a user
|
||||
*
|
||||
* @param username username of the user (required)
|
||||
* @param userId user ID of the user (required)
|
||||
* @return ApiResponse<ActivityPub>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<ActivityPub> activitypubPersonWithHttpInfo(String username) throws ApiException {
|
||||
com.squareup.okhttp.Call call = activitypubPersonValidateBeforeCall(username, null, null);
|
||||
public ApiResponse<ActivityPub> activitypubPersonWithHttpInfo(Integer userId) throws ApiException {
|
||||
com.squareup.okhttp.Call call = activitypubPersonValidateBeforeCall(userId, null, null);
|
||||
Type localVarReturnType = new TypeToken<ActivityPub>(){}.getType();
|
||||
return apiClient.execute(call, localVarReturnType);
|
||||
}
|
||||
|
|
@ -146,12 +146,12 @@ public class ActivitypubApi {
|
|||
/**
|
||||
* Returns the Person actor for a user (asynchronously)
|
||||
*
|
||||
* @param username username of the user (required)
|
||||
* @param userId user ID of the user (required)
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call activitypubPersonAsync(String username, final ApiCallback<ActivityPub> callback) throws ApiException {
|
||||
public com.squareup.okhttp.Call activitypubPersonAsync(Integer userId, final ApiCallback<ActivityPub> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
|
@ -172,25 +172,25 @@ public class ActivitypubApi {
|
|||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = activitypubPersonValidateBeforeCall(username, progressListener, progressRequestListener);
|
||||
com.squareup.okhttp.Call call = activitypubPersonValidateBeforeCall(userId, progressListener, progressRequestListener);
|
||||
Type localVarReturnType = new TypeToken<ActivityPub>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for activitypubPersonInbox
|
||||
* @param username username of the user (required)
|
||||
* @param userId user ID of the user (required)
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call activitypubPersonInboxCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
public com.squareup.okhttp.Call activitypubPersonInboxCall(Integer userId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/activitypub/user/{username}/inbox"
|
||||
.replaceAll("\\{" + "username" + "\\}", apiClient.escapeString(username.toString()));
|
||||
String localVarPath = "/activitypub/user-id/{user-id}/inbox"
|
||||
.replaceAll("\\{" + "user-id" + "\\}", apiClient.escapeString(userId.toString()));
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
|
@ -228,15 +228,15 @@ public class ActivitypubApi {
|
|||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call activitypubPersonInboxValidateBeforeCall(String username, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
private com.squareup.okhttp.Call activitypubPersonInboxValidateBeforeCall(Integer userId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new ApiException("Missing the required parameter 'username' when calling activitypubPersonInbox(Async)");
|
||||
// verify the required parameter 'userId' is set
|
||||
if (userId == null) {
|
||||
throw new ApiException("Missing the required parameter 'userId' when calling activitypubPersonInbox(Async)");
|
||||
}
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = activitypubPersonInboxCall(username, progressListener, progressRequestListener);
|
||||
com.squareup.okhttp.Call call = activitypubPersonInboxCall(userId, progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
|
@ -244,34 +244,34 @@ public class ActivitypubApi {
|
|||
/**
|
||||
* Send to the inbox
|
||||
*
|
||||
* @param username username of the user (required)
|
||||
* @param userId user ID of the user (required)
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public void activitypubPersonInbox(String username) throws ApiException {
|
||||
activitypubPersonInboxWithHttpInfo(username);
|
||||
public void activitypubPersonInbox(Integer userId) throws ApiException {
|
||||
activitypubPersonInboxWithHttpInfo(userId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send to the inbox
|
||||
*
|
||||
* @param username username of the user (required)
|
||||
* @param userId user ID of the user (required)
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<Void> activitypubPersonInboxWithHttpInfo(String username) throws ApiException {
|
||||
com.squareup.okhttp.Call call = activitypubPersonInboxValidateBeforeCall(username, null, null);
|
||||
public ApiResponse<Void> activitypubPersonInboxWithHttpInfo(Integer userId) throws ApiException {
|
||||
com.squareup.okhttp.Call call = activitypubPersonInboxValidateBeforeCall(userId, null, null);
|
||||
return apiClient.execute(call);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send to the inbox (asynchronously)
|
||||
*
|
||||
* @param username username of the user (required)
|
||||
* @param userId user ID of the user (required)
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call activitypubPersonInboxAsync(String username, final ApiCallback<Void> callback) throws ApiException {
|
||||
public com.squareup.okhttp.Call activitypubPersonInboxAsync(Integer userId, final ApiCallback<Void> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
|
@ -292,7 +292,7 @@ public class ActivitypubApi {
|
|||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = activitypubPersonInboxValidateBeforeCall(username, progressListener, progressRequestListener);
|
||||
com.squareup.okhttp.Call call = activitypubPersonInboxValidateBeforeCall(userId, progressListener, progressRequestListener);
|
||||
apiClient.executeAsync(call, callback);
|
||||
return call;
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
@ -27,7 +27,12 @@ import com.google.gson.reflect.TypeToken;
|
|||
import java.io.IOException;
|
||||
|
||||
|
||||
import io.gitea.model.GitignoreTemplateInfo;
|
||||
import io.gitea.model.LabelTemplate;
|
||||
import io.gitea.model.LicenseTemplateInfo;
|
||||
import io.gitea.model.LicensesTemplateListEntry;
|
||||
import io.gitea.model.MarkdownOption;
|
||||
import io.gitea.model.MarkupOption;
|
||||
import io.gitea.model.NodeInfo;
|
||||
import io.gitea.model.ServerVersion;
|
||||
|
||||
|
|
@ -56,6 +61,375 @@ public class MiscellaneousApi {
|
|||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build call for getGitignoreTemplateInfo
|
||||
* @param name name of the template (required)
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call getGitignoreTemplateInfoCall(String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/gitignore/templates/{name}"
|
||||
.replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString()));
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json", "text/plain"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
if(progressListener != null) {
|
||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||
@Override
|
||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||
return originalResponse.newBuilder()
|
||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||
.build();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
|
||||
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call getGitignoreTemplateInfoValidateBeforeCall(String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
// verify the required parameter 'name' is set
|
||||
if (name == null) {
|
||||
throw new ApiException("Missing the required parameter 'name' when calling getGitignoreTemplateInfo(Async)");
|
||||
}
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = getGitignoreTemplateInfoCall(name, progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns information about a gitignore template
|
||||
*
|
||||
* @param name name of the template (required)
|
||||
* @return GitignoreTemplateInfo
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public GitignoreTemplateInfo getGitignoreTemplateInfo(String name) throws ApiException {
|
||||
ApiResponse<GitignoreTemplateInfo> resp = getGitignoreTemplateInfoWithHttpInfo(name);
|
||||
return resp.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns information about a gitignore template
|
||||
*
|
||||
* @param name name of the template (required)
|
||||
* @return ApiResponse<GitignoreTemplateInfo>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<GitignoreTemplateInfo> getGitignoreTemplateInfoWithHttpInfo(String name) throws ApiException {
|
||||
com.squareup.okhttp.Call call = getGitignoreTemplateInfoValidateBeforeCall(name, null, null);
|
||||
Type localVarReturnType = new TypeToken<GitignoreTemplateInfo>(){}.getType();
|
||||
return apiClient.execute(call, localVarReturnType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns information about a gitignore template (asynchronously)
|
||||
*
|
||||
* @param name name of the template (required)
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call getGitignoreTemplateInfoAsync(String name, final ApiCallback<GitignoreTemplateInfo> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
||||
if (callback != null) {
|
||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||
@Override
|
||||
public void update(long bytesRead, long contentLength, boolean done) {
|
||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||
}
|
||||
};
|
||||
|
||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||
@Override
|
||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = getGitignoreTemplateInfoValidateBeforeCall(name, progressListener, progressRequestListener);
|
||||
Type localVarReturnType = new TypeToken<GitignoreTemplateInfo>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for getLabelTemplateInfo
|
||||
* @param name name of the template (required)
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call getLabelTemplateInfoCall(String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/label/templates/{name}"
|
||||
.replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString()));
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json", "text/plain"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
if(progressListener != null) {
|
||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||
@Override
|
||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||
return originalResponse.newBuilder()
|
||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||
.build();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
|
||||
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call getLabelTemplateInfoValidateBeforeCall(String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
// verify the required parameter 'name' is set
|
||||
if (name == null) {
|
||||
throw new ApiException("Missing the required parameter 'name' when calling getLabelTemplateInfo(Async)");
|
||||
}
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = getLabelTemplateInfoCall(name, progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all labels in a template
|
||||
*
|
||||
* @param name name of the template (required)
|
||||
* @return List<LabelTemplate>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public List<LabelTemplate> getLabelTemplateInfo(String name) throws ApiException {
|
||||
ApiResponse<List<LabelTemplate>> resp = getLabelTemplateInfoWithHttpInfo(name);
|
||||
return resp.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all labels in a template
|
||||
*
|
||||
* @param name name of the template (required)
|
||||
* @return ApiResponse<List<LabelTemplate>>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<List<LabelTemplate>> getLabelTemplateInfoWithHttpInfo(String name) throws ApiException {
|
||||
com.squareup.okhttp.Call call = getLabelTemplateInfoValidateBeforeCall(name, null, null);
|
||||
Type localVarReturnType = new TypeToken<List<LabelTemplate>>(){}.getType();
|
||||
return apiClient.execute(call, localVarReturnType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all labels in a template (asynchronously)
|
||||
*
|
||||
* @param name name of the template (required)
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call getLabelTemplateInfoAsync(String name, final ApiCallback<List<LabelTemplate>> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
||||
if (callback != null) {
|
||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||
@Override
|
||||
public void update(long bytesRead, long contentLength, boolean done) {
|
||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||
}
|
||||
};
|
||||
|
||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||
@Override
|
||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = getLabelTemplateInfoValidateBeforeCall(name, progressListener, progressRequestListener);
|
||||
Type localVarReturnType = new TypeToken<List<LabelTemplate>>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for getLicenseTemplateInfo
|
||||
* @param name name of the license (required)
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call getLicenseTemplateInfoCall(String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/licenses/{name}"
|
||||
.replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString()));
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json", "text/plain"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
if(progressListener != null) {
|
||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||
@Override
|
||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||
return originalResponse.newBuilder()
|
||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||
.build();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
|
||||
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call getLicenseTemplateInfoValidateBeforeCall(String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
// verify the required parameter 'name' is set
|
||||
if (name == null) {
|
||||
throw new ApiException("Missing the required parameter 'name' when calling getLicenseTemplateInfo(Async)");
|
||||
}
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = getLicenseTemplateInfoCall(name, progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns information about a license template
|
||||
*
|
||||
* @param name name of the license (required)
|
||||
* @return LicenseTemplateInfo
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public LicenseTemplateInfo getLicenseTemplateInfo(String name) throws ApiException {
|
||||
ApiResponse<LicenseTemplateInfo> resp = getLicenseTemplateInfoWithHttpInfo(name);
|
||||
return resp.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns information about a license template
|
||||
*
|
||||
* @param name name of the license (required)
|
||||
* @return ApiResponse<LicenseTemplateInfo>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<LicenseTemplateInfo> getLicenseTemplateInfoWithHttpInfo(String name) throws ApiException {
|
||||
com.squareup.okhttp.Call call = getLicenseTemplateInfoValidateBeforeCall(name, null, null);
|
||||
Type localVarReturnType = new TypeToken<LicenseTemplateInfo>(){}.getType();
|
||||
return apiClient.execute(call, localVarReturnType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns information about a license template (asynchronously)
|
||||
*
|
||||
* @param name name of the license (required)
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call getLicenseTemplateInfoAsync(String name, final ApiCallback<LicenseTemplateInfo> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
||||
if (callback != null) {
|
||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||
@Override
|
||||
public void update(long bytesRead, long contentLength, boolean done) {
|
||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||
}
|
||||
};
|
||||
|
||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||
@Override
|
||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = getLicenseTemplateInfoValidateBeforeCall(name, progressListener, progressRequestListener);
|
||||
Type localVarReturnType = new TypeToken<LicenseTemplateInfo>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for getNodeInfo
|
||||
* @param progressListener Progress listener
|
||||
|
|
@ -395,6 +769,345 @@ public class MiscellaneousApi {
|
|||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for listGitignoresTemplates
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call listGitignoresTemplatesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/gitignore/templates";
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json", "text/plain"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
if(progressListener != null) {
|
||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||
@Override
|
||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||
return originalResponse.newBuilder()
|
||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||
.build();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
|
||||
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call listGitignoresTemplatesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = listGitignoresTemplatesCall(progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all gitignore templates
|
||||
*
|
||||
* @return List<String>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public List<String> listGitignoresTemplates() throws ApiException {
|
||||
ApiResponse<List<String>> resp = listGitignoresTemplatesWithHttpInfo();
|
||||
return resp.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all gitignore templates
|
||||
*
|
||||
* @return ApiResponse<List<String>>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<List<String>> listGitignoresTemplatesWithHttpInfo() throws ApiException {
|
||||
com.squareup.okhttp.Call call = listGitignoresTemplatesValidateBeforeCall(null, null);
|
||||
Type localVarReturnType = new TypeToken<List<String>>(){}.getType();
|
||||
return apiClient.execute(call, localVarReturnType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all gitignore templates (asynchronously)
|
||||
*
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call listGitignoresTemplatesAsync(final ApiCallback<List<String>> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
||||
if (callback != null) {
|
||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||
@Override
|
||||
public void update(long bytesRead, long contentLength, boolean done) {
|
||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||
}
|
||||
};
|
||||
|
||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||
@Override
|
||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = listGitignoresTemplatesValidateBeforeCall(progressListener, progressRequestListener);
|
||||
Type localVarReturnType = new TypeToken<List<String>>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for listLabelTemplates
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call listLabelTemplatesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/label/templates";
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json", "text/plain"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
if(progressListener != null) {
|
||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||
@Override
|
||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||
return originalResponse.newBuilder()
|
||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||
.build();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
|
||||
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call listLabelTemplatesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = listLabelTemplatesCall(progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all label templates
|
||||
*
|
||||
* @return List<String>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public List<String> listLabelTemplates() throws ApiException {
|
||||
ApiResponse<List<String>> resp = listLabelTemplatesWithHttpInfo();
|
||||
return resp.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all label templates
|
||||
*
|
||||
* @return ApiResponse<List<String>>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<List<String>> listLabelTemplatesWithHttpInfo() throws ApiException {
|
||||
com.squareup.okhttp.Call call = listLabelTemplatesValidateBeforeCall(null, null);
|
||||
Type localVarReturnType = new TypeToken<List<String>>(){}.getType();
|
||||
return apiClient.execute(call, localVarReturnType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all label templates (asynchronously)
|
||||
*
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call listLabelTemplatesAsync(final ApiCallback<List<String>> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
||||
if (callback != null) {
|
||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||
@Override
|
||||
public void update(long bytesRead, long contentLength, boolean done) {
|
||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||
}
|
||||
};
|
||||
|
||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||
@Override
|
||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = listLabelTemplatesValidateBeforeCall(progressListener, progressRequestListener);
|
||||
Type localVarReturnType = new TypeToken<List<String>>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for listLicenseTemplates
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call listLicenseTemplatesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/licenses";
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json", "text/plain"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
if(progressListener != null) {
|
||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||
@Override
|
||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||
return originalResponse.newBuilder()
|
||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||
.build();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
|
||||
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call listLicenseTemplatesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = listLicenseTemplatesCall(progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all license templates
|
||||
*
|
||||
* @return List<LicensesTemplateListEntry>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public List<LicensesTemplateListEntry> listLicenseTemplates() throws ApiException {
|
||||
ApiResponse<List<LicensesTemplateListEntry>> resp = listLicenseTemplatesWithHttpInfo();
|
||||
return resp.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all license templates
|
||||
*
|
||||
* @return ApiResponse<List<LicensesTemplateListEntry>>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<List<LicensesTemplateListEntry>> listLicenseTemplatesWithHttpInfo() throws ApiException {
|
||||
com.squareup.okhttp.Call call = listLicenseTemplatesValidateBeforeCall(null, null);
|
||||
Type localVarReturnType = new TypeToken<List<LicensesTemplateListEntry>>(){}.getType();
|
||||
return apiClient.execute(call, localVarReturnType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all license templates (asynchronously)
|
||||
*
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call listLicenseTemplatesAsync(final ApiCallback<List<LicensesTemplateListEntry>> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
||||
if (callback != null) {
|
||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||
@Override
|
||||
public void update(long bytesRead, long contentLength, boolean done) {
|
||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||
}
|
||||
};
|
||||
|
||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||
@Override
|
||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = listLicenseTemplatesValidateBeforeCall(progressListener, progressRequestListener);
|
||||
Type localVarReturnType = new TypeToken<List<LicensesTemplateListEntry>>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for renderMarkdown
|
||||
* @param body (optional)
|
||||
|
|
@ -634,4 +1347,121 @@ public class MiscellaneousApi {
|
|||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for renderMarkup
|
||||
* @param body (optional)
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call renderMarkupCall(MarkupOption body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/markup";
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"text/html"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
if(progressListener != null) {
|
||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||
@Override
|
||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||
return originalResponse.newBuilder()
|
||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||
.build();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
|
||||
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call renderMarkupValidateBeforeCall(MarkupOption body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = renderMarkupCall(body, progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Render a markup document as HTML
|
||||
*
|
||||
* @param body (optional)
|
||||
* @return String
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public String renderMarkup(MarkupOption body) throws ApiException {
|
||||
ApiResponse<String> resp = renderMarkupWithHttpInfo(body);
|
||||
return resp.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Render a markup document as HTML
|
||||
*
|
||||
* @param body (optional)
|
||||
* @return ApiResponse<String>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<String> renderMarkupWithHttpInfo(MarkupOption body) throws ApiException {
|
||||
com.squareup.okhttp.Call call = renderMarkupValidateBeforeCall(body, null, null);
|
||||
Type localVarReturnType = new TypeToken<String>(){}.getType();
|
||||
return apiClient.execute(call, localVarReturnType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Render a markup document as HTML (asynchronously)
|
||||
*
|
||||
* @param body (optional)
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call renderMarkupAsync(MarkupOption body, final ApiCallback<String> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
||||
if (callback != null) {
|
||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||
@Override
|
||||
public void update(long bytesRead, long contentLength, boolean done) {
|
||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||
}
|
||||
};
|
||||
|
||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||
@Override
|
||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = renderMarkupValidateBeforeCall(body, progressListener, progressRequestListener);
|
||||
Type localVarReturnType = new TypeToken<String>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
@ -27,8 +27,10 @@ import com.google.gson.reflect.TypeToken;
|
|||
import java.io.IOException;
|
||||
|
||||
|
||||
import io.gitea.model.Activity;
|
||||
import io.gitea.model.CreateHookOption;
|
||||
import io.gitea.model.CreateLabelOption;
|
||||
import io.gitea.model.CreateOrUpdateSecretOption;
|
||||
import io.gitea.model.CreateOrgOption;
|
||||
import io.gitea.model.CreateRepoOption;
|
||||
import io.gitea.model.CreateTeamOption;
|
||||
|
|
@ -39,10 +41,13 @@ import io.gitea.model.EditTeamOption;
|
|||
import io.gitea.model.Hook;
|
||||
import io.gitea.model.InlineResponse200;
|
||||
import io.gitea.model.Label;
|
||||
import org.threeten.bp.LocalDate;
|
||||
import io.gitea.model.Organization;
|
||||
import io.gitea.model.OrganizationPermissions;
|
||||
import io.gitea.model.Repository;
|
||||
import io.gitea.model.Secret;
|
||||
import io.gitea.model.Team;
|
||||
import io.gitea.model.UpdateUserAvatarOption;
|
||||
import io.gitea.model.User;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
|
@ -333,6 +338,135 @@ public class OrganizationApi {
|
|||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for deleteOrgSecret
|
||||
* @param org name of organization (required)
|
||||
* @param secretname name of the secret (required)
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call deleteOrgSecretCall(String org, String secretname, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/orgs/{org}/actions/secrets/{secretname}"
|
||||
.replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString()))
|
||||
.replaceAll("\\{" + "secretname" + "\\}", apiClient.escapeString(secretname.toString()));
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
if(progressListener != null) {
|
||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||
@Override
|
||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||
return originalResponse.newBuilder()
|
||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||
.build();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
|
||||
return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call deleteOrgSecretValidateBeforeCall(String org, String secretname, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
// verify the required parameter 'org' is set
|
||||
if (org == null) {
|
||||
throw new ApiException("Missing the required parameter 'org' when calling deleteOrgSecret(Async)");
|
||||
}
|
||||
|
||||
// verify the required parameter 'secretname' is set
|
||||
if (secretname == null) {
|
||||
throw new ApiException("Missing the required parameter 'secretname' when calling deleteOrgSecret(Async)");
|
||||
}
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = deleteOrgSecretCall(org, secretname, progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a secret in an organization
|
||||
*
|
||||
* @param org name of organization (required)
|
||||
* @param secretname name of the secret (required)
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public void deleteOrgSecret(String org, String secretname) throws ApiException {
|
||||
deleteOrgSecretWithHttpInfo(org, secretname);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a secret in an organization
|
||||
*
|
||||
* @param org name of organization (required)
|
||||
* @param secretname name of the secret (required)
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<Void> deleteOrgSecretWithHttpInfo(String org, String secretname) throws ApiException {
|
||||
com.squareup.okhttp.Call call = deleteOrgSecretValidateBeforeCall(org, secretname, null, null);
|
||||
return apiClient.execute(call);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a secret in an organization (asynchronously)
|
||||
*
|
||||
* @param org name of organization (required)
|
||||
* @param secretname name of the secret (required)
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call deleteOrgSecretAsync(String org, String secretname, final ApiCallback<Void> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
||||
if (callback != null) {
|
||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||
@Override
|
||||
public void update(long bytesRead, long contentLength, boolean done) {
|
||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||
}
|
||||
};
|
||||
|
||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||
@Override
|
||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = deleteOrgSecretValidateBeforeCall(org, secretname, progressListener, progressRequestListener);
|
||||
apiClient.executeAsync(call, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for orgAddTeamMember
|
||||
* @param id id of the team (required)
|
||||
|
|
@ -1357,6 +1491,125 @@ public class OrganizationApi {
|
|||
apiClient.executeAsync(call, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for orgDeleteAvatar
|
||||
* @param org name of the organization (required)
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call orgDeleteAvatarCall(String org, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/orgs/{org}/avatar"
|
||||
.replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString()));
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json", "text/plain"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
if(progressListener != null) {
|
||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||
@Override
|
||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||
return originalResponse.newBuilder()
|
||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||
.build();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
|
||||
return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call orgDeleteAvatarValidateBeforeCall(String org, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
// verify the required parameter 'org' is set
|
||||
if (org == null) {
|
||||
throw new ApiException("Missing the required parameter 'org' when calling orgDeleteAvatar(Async)");
|
||||
}
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = orgDeleteAvatarCall(org, progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete Avatar
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public void orgDeleteAvatar(String org) throws ApiException {
|
||||
orgDeleteAvatarWithHttpInfo(org);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete Avatar
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<Void> orgDeleteAvatarWithHttpInfo(String org) throws ApiException {
|
||||
com.squareup.okhttp.Call call = orgDeleteAvatarValidateBeforeCall(org, null, null);
|
||||
return apiClient.execute(call);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete Avatar (asynchronously)
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call orgDeleteAvatarAsync(String org, final ApiCallback<Void> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
||||
if (callback != null) {
|
||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||
@Override
|
||||
public void update(long bytesRead, long contentLength, boolean done) {
|
||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||
}
|
||||
};
|
||||
|
||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||
@Override
|
||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = orgDeleteAvatarValidateBeforeCall(org, progressListener, progressRequestListener);
|
||||
apiClient.executeAsync(call, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for orgDeleteHook
|
||||
* @param org name of the organization (required)
|
||||
|
|
@ -3424,6 +3677,282 @@ public class OrganizationApi {
|
|||
apiClient.executeAsync(call, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for orgListActionsSecrets
|
||||
* @param org name of the organization (required)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call orgListActionsSecretsCall(String org, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/orgs/{org}/actions/secrets"
|
||||
.replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString()));
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
if (page != null)
|
||||
localVarQueryParams.addAll(apiClient.parameterToPair("page", page));
|
||||
if (limit != null)
|
||||
localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit));
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json", "text/plain"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
if(progressListener != null) {
|
||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||
@Override
|
||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||
return originalResponse.newBuilder()
|
||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||
.build();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
|
||||
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call orgListActionsSecretsValidateBeforeCall(String org, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
// verify the required parameter 'org' is set
|
||||
if (org == null) {
|
||||
throw new ApiException("Missing the required parameter 'org' when calling orgListActionsSecrets(Async)");
|
||||
}
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = orgListActionsSecretsCall(org, page, limit, progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* List an organization's actions secrets
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @return List<Secret>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public List<Secret> orgListActionsSecrets(String org, Integer page, Integer limit) throws ApiException {
|
||||
ApiResponse<List<Secret>> resp = orgListActionsSecretsWithHttpInfo(org, page, limit);
|
||||
return resp.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* List an organization's actions secrets
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @return ApiResponse<List<Secret>>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<List<Secret>> orgListActionsSecretsWithHttpInfo(String org, Integer page, Integer limit) throws ApiException {
|
||||
com.squareup.okhttp.Call call = orgListActionsSecretsValidateBeforeCall(org, page, limit, null, null);
|
||||
Type localVarReturnType = new TypeToken<List<Secret>>(){}.getType();
|
||||
return apiClient.execute(call, localVarReturnType);
|
||||
}
|
||||
|
||||
/**
|
||||
* List an organization's actions secrets (asynchronously)
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call orgListActionsSecretsAsync(String org, Integer page, Integer limit, final ApiCallback<List<Secret>> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
||||
if (callback != null) {
|
||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||
@Override
|
||||
public void update(long bytesRead, long contentLength, boolean done) {
|
||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||
}
|
||||
};
|
||||
|
||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||
@Override
|
||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = orgListActionsSecretsValidateBeforeCall(org, page, limit, progressListener, progressRequestListener);
|
||||
Type localVarReturnType = new TypeToken<List<Secret>>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for orgListActivityFeeds
|
||||
* @param org name of the org (required)
|
||||
* @param date the date of the activities to be found (optional)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call orgListActivityFeedsCall(String org, LocalDate date, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/orgs/{org}/activities/feeds"
|
||||
.replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString()));
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
if (date != null)
|
||||
localVarQueryParams.addAll(apiClient.parameterToPair("date", date));
|
||||
if (page != null)
|
||||
localVarQueryParams.addAll(apiClient.parameterToPair("page", page));
|
||||
if (limit != null)
|
||||
localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit));
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json", "text/plain"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
if(progressListener != null) {
|
||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||
@Override
|
||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||
return originalResponse.newBuilder()
|
||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||
.build();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
|
||||
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call orgListActivityFeedsValidateBeforeCall(String org, LocalDate date, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
// verify the required parameter 'org' is set
|
||||
if (org == null) {
|
||||
throw new ApiException("Missing the required parameter 'org' when calling orgListActivityFeeds(Async)");
|
||||
}
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = orgListActivityFeedsCall(org, date, page, limit, progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* List an organization's activity feeds
|
||||
*
|
||||
* @param org name of the org (required)
|
||||
* @param date the date of the activities to be found (optional)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @return List<Activity>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public List<Activity> orgListActivityFeeds(String org, LocalDate date, Integer page, Integer limit) throws ApiException {
|
||||
ApiResponse<List<Activity>> resp = orgListActivityFeedsWithHttpInfo(org, date, page, limit);
|
||||
return resp.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* List an organization's activity feeds
|
||||
*
|
||||
* @param org name of the org (required)
|
||||
* @param date the date of the activities to be found (optional)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @return ApiResponse<List<Activity>>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<List<Activity>> orgListActivityFeedsWithHttpInfo(String org, LocalDate date, Integer page, Integer limit) throws ApiException {
|
||||
com.squareup.okhttp.Call call = orgListActivityFeedsValidateBeforeCall(org, date, page, limit, null, null);
|
||||
Type localVarReturnType = new TypeToken<List<Activity>>(){}.getType();
|
||||
return apiClient.execute(call, localVarReturnType);
|
||||
}
|
||||
|
||||
/**
|
||||
* List an organization's activity feeds (asynchronously)
|
||||
*
|
||||
* @param org name of the org (required)
|
||||
* @param date the date of the activities to be found (optional)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call orgListActivityFeedsAsync(String org, LocalDate date, Integer page, Integer limit, final ApiCallback<List<Activity>> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
||||
if (callback != null) {
|
||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||
@Override
|
||||
public void update(long bytesRead, long contentLength, boolean done) {
|
||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||
}
|
||||
};
|
||||
|
||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||
@Override
|
||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = orgListActivityFeedsValidateBeforeCall(org, date, page, limit, progressListener, progressRequestListener);
|
||||
Type localVarReturnType = new TypeToken<List<Activity>>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for orgListCurrentUserOrgs
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
|
|
@ -4224,6 +4753,147 @@ public class OrganizationApi {
|
|||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for orgListTeamActivityFeeds
|
||||
* @param id id of the team (required)
|
||||
* @param date the date of the activities to be found (optional)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call orgListTeamActivityFeedsCall(Long id, LocalDate date, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/teams/{id}/activities/feeds"
|
||||
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
if (date != null)
|
||||
localVarQueryParams.addAll(apiClient.parameterToPair("date", date));
|
||||
if (page != null)
|
||||
localVarQueryParams.addAll(apiClient.parameterToPair("page", page));
|
||||
if (limit != null)
|
||||
localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit));
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json", "text/plain"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
if(progressListener != null) {
|
||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||
@Override
|
||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||
return originalResponse.newBuilder()
|
||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||
.build();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
|
||||
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call orgListTeamActivityFeedsValidateBeforeCall(Long id, LocalDate date, Integer page, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
// verify the required parameter 'id' is set
|
||||
if (id == null) {
|
||||
throw new ApiException("Missing the required parameter 'id' when calling orgListTeamActivityFeeds(Async)");
|
||||
}
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = orgListTeamActivityFeedsCall(id, date, page, limit, progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* List a team's activity feeds
|
||||
*
|
||||
* @param id id of the team (required)
|
||||
* @param date the date of the activities to be found (optional)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @return List<Activity>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public List<Activity> orgListTeamActivityFeeds(Long id, LocalDate date, Integer page, Integer limit) throws ApiException {
|
||||
ApiResponse<List<Activity>> resp = orgListTeamActivityFeedsWithHttpInfo(id, date, page, limit);
|
||||
return resp.getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* List a team's activity feeds
|
||||
*
|
||||
* @param id id of the team (required)
|
||||
* @param date the date of the activities to be found (optional)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @return ApiResponse<List<Activity>>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<List<Activity>> orgListTeamActivityFeedsWithHttpInfo(Long id, LocalDate date, Integer page, Integer limit) throws ApiException {
|
||||
com.squareup.okhttp.Call call = orgListTeamActivityFeedsValidateBeforeCall(id, date, page, limit, null, null);
|
||||
Type localVarReturnType = new TypeToken<List<Activity>>(){}.getType();
|
||||
return apiClient.execute(call, localVarReturnType);
|
||||
}
|
||||
|
||||
/**
|
||||
* List a team's activity feeds (asynchronously)
|
||||
*
|
||||
* @param id id of the team (required)
|
||||
* @param date the date of the activities to be found (optional)
|
||||
* @param page page number of results to return (1-based) (optional)
|
||||
* @param limit page size of results (optional)
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call orgListTeamActivityFeedsAsync(Long id, LocalDate date, Integer page, Integer limit, final ApiCallback<List<Activity>> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
||||
if (callback != null) {
|
||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||
@Override
|
||||
public void update(long bytesRead, long contentLength, boolean done) {
|
||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||
}
|
||||
};
|
||||
|
||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||
@Override
|
||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = orgListTeamActivityFeedsValidateBeforeCall(id, date, page, limit, progressListener, progressRequestListener);
|
||||
Type localVarReturnType = new TypeToken<List<Activity>>(){}.getType();
|
||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for orgListTeamMember
|
||||
* @param id id of the team (required)
|
||||
|
|
@ -5437,6 +6107,129 @@ public class OrganizationApi {
|
|||
apiClient.executeAsync(call, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for orgUpdateAvatar
|
||||
* @param org name of the organization (required)
|
||||
* @param body (optional)
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call orgUpdateAvatarCall(String org, UpdateUserAvatarOption body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/orgs/{org}/avatar"
|
||||
.replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString()));
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json", "text/plain"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
if(progressListener != null) {
|
||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||
@Override
|
||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||
return originalResponse.newBuilder()
|
||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||
.build();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
|
||||
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call orgUpdateAvatarValidateBeforeCall(String org, UpdateUserAvatarOption body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
// verify the required parameter 'org' is set
|
||||
if (org == null) {
|
||||
throw new ApiException("Missing the required parameter 'org' when calling orgUpdateAvatar(Async)");
|
||||
}
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = orgUpdateAvatarCall(org, body, progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Update Avatar
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @param body (optional)
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public void orgUpdateAvatar(String org, UpdateUserAvatarOption body) throws ApiException {
|
||||
orgUpdateAvatarWithHttpInfo(org, body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update Avatar
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @param body (optional)
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<Void> orgUpdateAvatarWithHttpInfo(String org, UpdateUserAvatarOption body) throws ApiException {
|
||||
com.squareup.okhttp.Call call = orgUpdateAvatarValidateBeforeCall(org, body, null, null);
|
||||
return apiClient.execute(call);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update Avatar (asynchronously)
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @param body (optional)
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call orgUpdateAvatarAsync(String org, UpdateUserAvatarOption body, final ApiCallback<Void> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
||||
if (callback != null) {
|
||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||
@Override
|
||||
public void update(long bytesRead, long contentLength, boolean done) {
|
||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||
}
|
||||
};
|
||||
|
||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||
@Override
|
||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = orgUpdateAvatarValidateBeforeCall(org, body, progressListener, progressRequestListener);
|
||||
apiClient.executeAsync(call, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for teamSearch
|
||||
* @param org name of the organization (required)
|
||||
|
|
@ -5584,4 +6377,137 @@ public class OrganizationApi {
|
|||
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||
return call;
|
||||
}
|
||||
/**
|
||||
* Build call for updateOrgSecret
|
||||
* @param org name of organization (required)
|
||||
* @param secretname name of the secret (required)
|
||||
* @param body (optional)
|
||||
* @param progressListener Progress listener
|
||||
* @param progressRequestListener Progress request listener
|
||||
* @return Call to execute
|
||||
* @throws ApiException If fail to serialize the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call updateOrgSecretCall(String org, String secretname, CreateOrUpdateSecretOption body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/orgs/{org}/actions/secrets/{secretname}"
|
||||
.replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString()))
|
||||
.replaceAll("\\{" + "secretname" + "\\}", apiClient.escapeString(secretname.toString()));
|
||||
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||
|
||||
if(progressListener != null) {
|
||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||
@Override
|
||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||
return originalResponse.newBuilder()
|
||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||
.build();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
String[] localVarAuthNames = new String[] { "AccessToken", "AuthorizationHeaderToken", "BasicAuth", "SudoHeader", "SudoParam", "TOTPHeader", "Token" };
|
||||
return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
private com.squareup.okhttp.Call updateOrgSecretValidateBeforeCall(String org, String secretname, CreateOrUpdateSecretOption body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||
|
||||
// verify the required parameter 'org' is set
|
||||
if (org == null) {
|
||||
throw new ApiException("Missing the required parameter 'org' when calling updateOrgSecret(Async)");
|
||||
}
|
||||
|
||||
// verify the required parameter 'secretname' is set
|
||||
if (secretname == null) {
|
||||
throw new ApiException("Missing the required parameter 'secretname' when calling updateOrgSecret(Async)");
|
||||
}
|
||||
|
||||
|
||||
com.squareup.okhttp.Call call = updateOrgSecretCall(org, secretname, body, progressListener, progressRequestListener);
|
||||
return call;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Create or Update a secret value in an organization
|
||||
*
|
||||
* @param org name of organization (required)
|
||||
* @param secretname name of the secret (required)
|
||||
* @param body (optional)
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public void updateOrgSecret(String org, String secretname, CreateOrUpdateSecretOption body) throws ApiException {
|
||||
updateOrgSecretWithHttpInfo(org, secretname, body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create or Update a secret value in an organization
|
||||
*
|
||||
* @param org name of organization (required)
|
||||
* @param secretname name of the secret (required)
|
||||
* @param body (optional)
|
||||
* @return ApiResponse<Void>
|
||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||
*/
|
||||
public ApiResponse<Void> updateOrgSecretWithHttpInfo(String org, String secretname, CreateOrUpdateSecretOption body) throws ApiException {
|
||||
com.squareup.okhttp.Call call = updateOrgSecretValidateBeforeCall(org, secretname, body, null, null);
|
||||
return apiClient.execute(call);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create or Update a secret value in an organization (asynchronously)
|
||||
*
|
||||
* @param org name of organization (required)
|
||||
* @param secretname name of the secret (required)
|
||||
* @param body (optional)
|
||||
* @param callback The callback to be executed when the API call finishes
|
||||
* @return The request call
|
||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||
*/
|
||||
public com.squareup.okhttp.Call updateOrgSecretAsync(String org, String secretname, CreateOrUpdateSecretOption body, final ApiCallback<Void> callback) throws ApiException {
|
||||
|
||||
ProgressResponseBody.ProgressListener progressListener = null;
|
||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||
|
||||
if (callback != null) {
|
||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||
@Override
|
||||
public void update(long bytesRead, long contentLength, boolean done) {
|
||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||
}
|
||||
};
|
||||
|
||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||
@Override
|
||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
com.squareup.okhttp.Call call = updateOrgSecretValidateBeforeCall(org, secretname, body, progressListener, progressRequestListener);
|
||||
apiClient.executeAsync(call, callback);
|
||||
return call;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
@ -23,6 +23,8 @@ import com.google.gson.stream.JsonWriter;
|
|||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* AccessToken
|
||||
|
|
@ -35,6 +37,9 @@ public class AccessToken {
|
|||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@SerializedName("scopes")
|
||||
private List<String> scopes = null;
|
||||
|
||||
@SerializedName("sha1")
|
||||
private String sha1 = null;
|
||||
|
||||
|
|
@ -77,6 +82,32 @@ public class AccessToken {
|
|||
this.name = name;
|
||||
}
|
||||
|
||||
public AccessToken scopes(List<String> scopes) {
|
||||
this.scopes = scopes;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AccessToken addScopesItem(String scopesItem) {
|
||||
if (this.scopes == null) {
|
||||
this.scopes = new ArrayList<String>();
|
||||
}
|
||||
this.scopes.add(scopesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get scopes
|
||||
* @return scopes
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public List<String> getScopes() {
|
||||
return scopes;
|
||||
}
|
||||
|
||||
public void setScopes(List<String> scopes) {
|
||||
this.scopes = scopes;
|
||||
}
|
||||
|
||||
public AccessToken sha1(String sha1) {
|
||||
this.sha1 = sha1;
|
||||
return this;
|
||||
|
|
@ -125,13 +156,14 @@ public class AccessToken {
|
|||
AccessToken accessToken = (AccessToken) o;
|
||||
return Objects.equals(this.id, accessToken.id) &&
|
||||
Objects.equals(this.name, accessToken.name) &&
|
||||
Objects.equals(this.scopes, accessToken.scopes) &&
|
||||
Objects.equals(this.sha1, accessToken.sha1) &&
|
||||
Objects.equals(this.tokenLastEight, accessToken.tokenLastEight);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, name, sha1, tokenLastEight);
|
||||
return Objects.hash(id, name, scopes, sha1, tokenLastEight);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -142,6 +174,7 @@ public class AccessToken {
|
|||
|
||||
sb.append(" id: ").append(toIndentedString(id)).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");
|
||||
sb.append(" tokenLastEight: ").append(toIndentedString(tokenLastEight)).append("\n");
|
||||
sb.append("}");
|
||||
|
|
|
|||
|
|
@ -0,0 +1,374 @@
|
|||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* 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 io.gitea.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
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.gitea.model.Comment;
|
||||
import io.gitea.model.Repository;
|
||||
import io.gitea.model.User;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.IOException;
|
||||
import org.threeten.bp.OffsetDateTime;
|
||||
|
||||
/**
|
||||
* Activity
|
||||
*/
|
||||
|
||||
public class Activity {
|
||||
@SerializedName("act_user")
|
||||
private User actUser = null;
|
||||
|
||||
@SerializedName("act_user_id")
|
||||
private Long actUserId = null;
|
||||
|
||||
@SerializedName("comment")
|
||||
private Comment comment = null;
|
||||
|
||||
@SerializedName("comment_id")
|
||||
private Long commentId = null;
|
||||
|
||||
@SerializedName("content")
|
||||
private String content = null;
|
||||
|
||||
@SerializedName("created")
|
||||
private OffsetDateTime created = null;
|
||||
|
||||
@SerializedName("id")
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("is_private")
|
||||
private Boolean isPrivate = null;
|
||||
|
||||
@SerializedName("op_type")
|
||||
private String opType = null;
|
||||
|
||||
@SerializedName("ref_name")
|
||||
private String refName = null;
|
||||
|
||||
@SerializedName("repo")
|
||||
private Repository repo = null;
|
||||
|
||||
@SerializedName("repo_id")
|
||||
private Long repoId = null;
|
||||
|
||||
@SerializedName("user_id")
|
||||
private Long userId = null;
|
||||
|
||||
public Activity actUser(User actUser) {
|
||||
this.actUser = actUser;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get actUser
|
||||
* @return actUser
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public User getActUser() {
|
||||
return actUser;
|
||||
}
|
||||
|
||||
public void setActUser(User actUser) {
|
||||
this.actUser = actUser;
|
||||
}
|
||||
|
||||
public Activity actUserId(Long actUserId) {
|
||||
this.actUserId = actUserId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get actUserId
|
||||
* @return actUserId
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Long getActUserId() {
|
||||
return actUserId;
|
||||
}
|
||||
|
||||
public void setActUserId(Long actUserId) {
|
||||
this.actUserId = actUserId;
|
||||
}
|
||||
|
||||
public Activity comment(Comment comment) {
|
||||
this.comment = comment;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get comment
|
||||
* @return comment
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Comment getComment() {
|
||||
return comment;
|
||||
}
|
||||
|
||||
public void setComment(Comment comment) {
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
public Activity commentId(Long commentId) {
|
||||
this.commentId = commentId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get commentId
|
||||
* @return commentId
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Long getCommentId() {
|
||||
return commentId;
|
||||
}
|
||||
|
||||
public void setCommentId(Long commentId) {
|
||||
this.commentId = commentId;
|
||||
}
|
||||
|
||||
public Activity content(String content) {
|
||||
this.content = content;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get content
|
||||
* @return content
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public Activity created(OffsetDateTime created) {
|
||||
this.created = created;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get created
|
||||
* @return created
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public OffsetDateTime getCreated() {
|
||||
return created;
|
||||
}
|
||||
|
||||
public void setCreated(OffsetDateTime created) {
|
||||
this.created = created;
|
||||
}
|
||||
|
||||
public Activity id(Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Activity isPrivate(Boolean isPrivate) {
|
||||
this.isPrivate = isPrivate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isPrivate
|
||||
* @return isPrivate
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isIsPrivate() {
|
||||
return isPrivate;
|
||||
}
|
||||
|
||||
public void setIsPrivate(Boolean isPrivate) {
|
||||
this.isPrivate = isPrivate;
|
||||
}
|
||||
|
||||
public Activity opType(String opType) {
|
||||
this.opType = opType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get opType
|
||||
* @return opType
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getOpType() {
|
||||
return opType;
|
||||
}
|
||||
|
||||
public void setOpType(String opType) {
|
||||
this.opType = opType;
|
||||
}
|
||||
|
||||
public Activity refName(String refName) {
|
||||
this.refName = refName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get refName
|
||||
* @return refName
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getRefName() {
|
||||
return refName;
|
||||
}
|
||||
|
||||
public void setRefName(String refName) {
|
||||
this.refName = refName;
|
||||
}
|
||||
|
||||
public Activity repo(Repository repo) {
|
||||
this.repo = repo;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get repo
|
||||
* @return repo
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Repository getRepo() {
|
||||
return repo;
|
||||
}
|
||||
|
||||
public void setRepo(Repository repo) {
|
||||
this.repo = repo;
|
||||
}
|
||||
|
||||
public Activity repoId(Long repoId) {
|
||||
this.repoId = repoId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get repoId
|
||||
* @return repoId
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Long getRepoId() {
|
||||
return repoId;
|
||||
}
|
||||
|
||||
public void setRepoId(Long repoId) {
|
||||
this.repoId = repoId;
|
||||
}
|
||||
|
||||
public Activity userId(Long userId) {
|
||||
this.userId = userId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get userId
|
||||
* @return userId
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Activity activity = (Activity) o;
|
||||
return Objects.equals(this.actUser, activity.actUser) &&
|
||||
Objects.equals(this.actUserId, activity.actUserId) &&
|
||||
Objects.equals(this.comment, activity.comment) &&
|
||||
Objects.equals(this.commentId, activity.commentId) &&
|
||||
Objects.equals(this.content, activity.content) &&
|
||||
Objects.equals(this.created, activity.created) &&
|
||||
Objects.equals(this.id, activity.id) &&
|
||||
Objects.equals(this.isPrivate, activity.isPrivate) &&
|
||||
Objects.equals(this.opType, activity.opType) &&
|
||||
Objects.equals(this.refName, activity.refName) &&
|
||||
Objects.equals(this.repo, activity.repo) &&
|
||||
Objects.equals(this.repoId, activity.repoId) &&
|
||||
Objects.equals(this.userId, activity.userId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(actUser, actUserId, comment, commentId, content, created, id, isPrivate, opType, refName, repo, repoId, userId);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Activity {\n");
|
||||
|
||||
sb.append(" actUser: ").append(toIndentedString(actUser)).append("\n");
|
||||
sb.append(" actUserId: ").append(toIndentedString(actUserId)).append("\n");
|
||||
sb.append(" comment: ").append(toIndentedString(comment)).append("\n");
|
||||
sb.append(" commentId: ").append(toIndentedString(commentId)).append("\n");
|
||||
sb.append(" content: ").append(toIndentedString(content)).append("\n");
|
||||
sb.append(" created: ").append(toIndentedString(created)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" isPrivate: ").append(toIndentedString(isPrivate)).append("\n");
|
||||
sb.append(" opType: ").append(toIndentedString(opType)).append("\n");
|
||||
sb.append(" refName: ").append(toIndentedString(refName)).append("\n");
|
||||
sb.append(" repo: ").append(toIndentedString(repo)).append("\n");
|
||||
sb.append(" repoId: ").append(toIndentedString(repoId)).append("\n");
|
||||
sb.append(" userId: ").append(toIndentedString(userId)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
@ -96,6 +96,9 @@ public class BranchProtection {
|
|||
@SerializedName("required_approvals")
|
||||
private Long requiredApprovals = null;
|
||||
|
||||
@SerializedName("rule_name")
|
||||
private String ruleName = null;
|
||||
|
||||
@SerializedName("status_check_contexts")
|
||||
private List<String> statusCheckContexts = null;
|
||||
|
||||
|
|
@ -217,10 +220,10 @@ public class BranchProtection {
|
|||
}
|
||||
|
||||
/**
|
||||
* Get branchName
|
||||
* Deprecated: true
|
||||
* @return branchName
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
@ApiModelProperty(value = "Deprecated: true")
|
||||
public String getBranchName() {
|
||||
return branchName;
|
||||
}
|
||||
|
|
@ -531,6 +534,24 @@ public class BranchProtection {
|
|||
this.requiredApprovals = requiredApprovals;
|
||||
}
|
||||
|
||||
public BranchProtection ruleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ruleName
|
||||
* @return ruleName
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getRuleName() {
|
||||
return ruleName;
|
||||
}
|
||||
|
||||
public void setRuleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
public BranchProtection statusCheckContexts(List<String> statusCheckContexts) {
|
||||
this.statusCheckContexts = statusCheckContexts;
|
||||
return this;
|
||||
|
|
@ -624,6 +645,7 @@ public class BranchProtection {
|
|||
Objects.equals(this.pushWhitelistUsernames, branchProtection.pushWhitelistUsernames) &&
|
||||
Objects.equals(this.requireSignedCommits, branchProtection.requireSignedCommits) &&
|
||||
Objects.equals(this.requiredApprovals, branchProtection.requiredApprovals) &&
|
||||
Objects.equals(this.ruleName, branchProtection.ruleName) &&
|
||||
Objects.equals(this.statusCheckContexts, branchProtection.statusCheckContexts) &&
|
||||
Objects.equals(this.unprotectedFilePatterns, branchProtection.unprotectedFilePatterns) &&
|
||||
Objects.equals(this.updatedAt, branchProtection.updatedAt);
|
||||
|
|
@ -631,7 +653,7 @@ public class BranchProtection {
|
|||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, branchName, createdAt, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, statusCheckContexts, unprotectedFilePatterns, updatedAt);
|
||||
return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, branchName, createdAt, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, ruleName, statusCheckContexts, unprotectedFilePatterns, updatedAt);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -661,6 +683,7 @@ public class BranchProtection {
|
|||
sb.append(" pushWhitelistUsernames: ").append(toIndentedString(pushWhitelistUsernames)).append("\n");
|
||||
sb.append(" requireSignedCommits: ").append(toIndentedString(requireSignedCommits)).append("\n");
|
||||
sb.append(" requiredApprovals: ").append(toIndentedString(requiredApprovals)).append("\n");
|
||||
sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n");
|
||||
sb.append(" statusCheckContexts: ").append(toIndentedString(statusCheckContexts)).append("\n");
|
||||
sb.append(" unprotectedFilePatterns: ").append(toIndentedString(unprotectedFilePatterns)).append("\n");
|
||||
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
|
||||
|
|
|
|||
|
|
@ -0,0 +1,236 @@
|
|||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* 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 io.gitea.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
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.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* ChangeFileOperation for creating, updating or deleting a file
|
||||
*/
|
||||
@ApiModel(description = "ChangeFileOperation for creating, updating or deleting a file")
|
||||
|
||||
public class ChangeFileOperation {
|
||||
@SerializedName("content")
|
||||
private String content = null;
|
||||
|
||||
@SerializedName("from_path")
|
||||
private String fromPath = null;
|
||||
|
||||
/**
|
||||
* indicates what to do with the file
|
||||
*/
|
||||
@JsonAdapter(OperationEnum.Adapter.class)
|
||||
public enum OperationEnum {
|
||||
CREATE("create"),
|
||||
|
||||
UPDATE("update"),
|
||||
|
||||
DELETE("delete");
|
||||
|
||||
private String value;
|
||||
|
||||
OperationEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
|
||||
public static OperationEnum fromValue(String text) {
|
||||
for (OperationEnum b : OperationEnum.values()) {
|
||||
if (String.valueOf(b.value).equals(text)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static class Adapter extends TypeAdapter<OperationEnum> {
|
||||
@Override
|
||||
public void write(final JsonWriter jsonWriter, final OperationEnum enumeration) throws IOException {
|
||||
jsonWriter.value(enumeration.getValue());
|
||||
}
|
||||
|
||||
@Override
|
||||
public OperationEnum read(final JsonReader jsonReader) throws IOException {
|
||||
String value = jsonReader.nextString();
|
||||
return OperationEnum.fromValue(String.valueOf(value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SerializedName("operation")
|
||||
private OperationEnum operation = null;
|
||||
|
||||
@SerializedName("path")
|
||||
private String path = null;
|
||||
|
||||
@SerializedName("sha")
|
||||
private String sha = null;
|
||||
|
||||
public ChangeFileOperation content(String content) {
|
||||
this.content = content;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* new or updated file content, must be base64 encoded
|
||||
* @return content
|
||||
**/
|
||||
@ApiModelProperty(value = "new or updated file content, must be base64 encoded")
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public ChangeFileOperation fromPath(String fromPath) {
|
||||
this.fromPath = fromPath;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* old path of the file to move
|
||||
* @return fromPath
|
||||
**/
|
||||
@ApiModelProperty(value = "old path of the file to move")
|
||||
public String getFromPath() {
|
||||
return fromPath;
|
||||
}
|
||||
|
||||
public void setFromPath(String fromPath) {
|
||||
this.fromPath = fromPath;
|
||||
}
|
||||
|
||||
public ChangeFileOperation operation(OperationEnum operation) {
|
||||
this.operation = operation;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* indicates what to do with the file
|
||||
* @return operation
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "indicates what to do with the file")
|
||||
public OperationEnum getOperation() {
|
||||
return operation;
|
||||
}
|
||||
|
||||
public void setOperation(OperationEnum operation) {
|
||||
this.operation = operation;
|
||||
}
|
||||
|
||||
public ChangeFileOperation path(String path) {
|
||||
this.path = path;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* path to the existing or new file
|
||||
* @return path
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "path to the existing or new file")
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public ChangeFileOperation sha(String sha) {
|
||||
this.sha = sha;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* sha is the SHA for the file that already exists, required for update or delete
|
||||
* @return sha
|
||||
**/
|
||||
@ApiModelProperty(value = "sha is the SHA for the file that already exists, required for update or delete")
|
||||
public String getSha() {
|
||||
return sha;
|
||||
}
|
||||
|
||||
public void setSha(String sha) {
|
||||
this.sha = sha;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ChangeFileOperation changeFileOperation = (ChangeFileOperation) o;
|
||||
return Objects.equals(this.content, changeFileOperation.content) &&
|
||||
Objects.equals(this.fromPath, changeFileOperation.fromPath) &&
|
||||
Objects.equals(this.operation, changeFileOperation.operation) &&
|
||||
Objects.equals(this.path, changeFileOperation.path) &&
|
||||
Objects.equals(this.sha, changeFileOperation.sha);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(content, fromPath, operation, path, sha);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ChangeFileOperation {\n");
|
||||
|
||||
sb.append(" content: ").append(toIndentedString(content)).append("\n");
|
||||
sb.append(" fromPath: ").append(toIndentedString(fromPath)).append("\n");
|
||||
sb.append(" operation: ").append(toIndentedString(operation)).append("\n");
|
||||
sb.append(" path: ").append(toIndentedString(path)).append("\n");
|
||||
sb.append(" sha: ").append(toIndentedString(sha)).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,266 @@
|
|||
/*
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* 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 io.gitea.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
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.gitea.model.ChangeFileOperation;
|
||||
import io.gitea.model.CommitDateOptions;
|
||||
import io.gitea.model.Identity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ChangeFilesOptions options for creating, updating or deleting multiple files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
|
||||
*/
|
||||
@ApiModel(description = "ChangeFilesOptions options for creating, updating or deleting multiple files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)")
|
||||
|
||||
public class ChangeFilesOptions {
|
||||
@SerializedName("author")
|
||||
private Identity author = null;
|
||||
|
||||
@SerializedName("branch")
|
||||
private String branch = null;
|
||||
|
||||
@SerializedName("committer")
|
||||
private Identity committer = null;
|
||||
|
||||
@SerializedName("dates")
|
||||
private CommitDateOptions dates = null;
|
||||
|
||||
@SerializedName("files")
|
||||
private List<ChangeFileOperation> files = new ArrayList<ChangeFileOperation>();
|
||||
|
||||
@SerializedName("message")
|
||||
private String message = null;
|
||||
|
||||
@SerializedName("new_branch")
|
||||
private String newBranch = null;
|
||||
|
||||
@SerializedName("signoff")
|
||||
private Boolean signoff = null;
|
||||
|
||||
public ChangeFilesOptions author(Identity author) {
|
||||
this.author = author;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get author
|
||||
* @return author
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Identity getAuthor() {
|
||||
return author;
|
||||
}
|
||||
|
||||
public void setAuthor(Identity author) {
|
||||
this.author = author;
|
||||
}
|
||||
|
||||
public ChangeFilesOptions branch(String branch) {
|
||||
this.branch = branch;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* branch (optional) to base this file from. if not given, the default branch is used
|
||||
* @return branch
|
||||
**/
|
||||
@ApiModelProperty(value = "branch (optional) to base this file from. if not given, the default branch is used")
|
||||
public String getBranch() {
|
||||
return branch;
|
||||
}
|
||||
|
||||
public void setBranch(String branch) {
|
||||
this.branch = branch;
|
||||
}
|
||||
|
||||
public ChangeFilesOptions committer(Identity committer) {
|
||||
this.committer = committer;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get committer
|
||||
* @return committer
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public Identity getCommitter() {
|
||||
return committer;
|
||||
}
|
||||
|
||||
public void setCommitter(Identity committer) {
|
||||
this.committer = committer;
|
||||
}
|
||||
|
||||
public ChangeFilesOptions dates(CommitDateOptions dates) {
|
||||
this.dates = dates;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get dates
|
||||
* @return dates
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public CommitDateOptions getDates() {
|
||||
return dates;
|
||||
}
|
||||
|
||||
public void setDates(CommitDateOptions dates) {
|
||||
this.dates = dates;
|
||||
}
|
||||
|
||||
public ChangeFilesOptions files(List<ChangeFileOperation> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ChangeFilesOptions addFilesItem(ChangeFileOperation filesItem) {
|
||||
this.files.add(filesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* list of file operations
|
||||
* @return files
|
||||
**/
|
||||
@ApiModelProperty(required = true, value = "list of file operations")
|
||||
public List<ChangeFileOperation> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<ChangeFileOperation> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
public ChangeFilesOptions message(String message) {
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* message (optional) for the commit of this file. if not supplied, a default message will be used
|
||||
* @return message
|
||||
**/
|
||||
@ApiModelProperty(value = "message (optional) for the commit of this file. if not supplied, a default message will be used")
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public ChangeFilesOptions newBranch(String newBranch) {
|
||||
this.newBranch = newBranch;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* new_branch (optional) will make a new branch from `branch` before creating the file
|
||||
* @return newBranch
|
||||
**/
|
||||
@ApiModelProperty(value = "new_branch (optional) will make a new branch from `branch` before creating the file")
|
||||
public String getNewBranch() {
|
||||
return newBranch;
|
||||
}
|
||||
|
||||
public void setNewBranch(String newBranch) {
|
||||
this.newBranch = newBranch;
|
||||
}
|
||||
|
||||
public ChangeFilesOptions signoff(Boolean signoff) {
|
||||
this.signoff = signoff;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a Signed-off-by trailer by the committer at the end of the commit log message.
|
||||
* @return signoff
|
||||
**/
|
||||
@ApiModelProperty(value = "Add a Signed-off-by trailer by the committer at the end of the commit log message.")
|
||||
public Boolean isSignoff() {
|
||||
return signoff;
|
||||
}
|
||||
|
||||
public void setSignoff(Boolean signoff) {
|
||||
this.signoff = signoff;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ChangeFilesOptions changeFilesOptions = (ChangeFilesOptions) o;
|
||||
return Objects.equals(this.author, changeFilesOptions.author) &&
|
||||
Objects.equals(this.branch, changeFilesOptions.branch) &&
|
||||
Objects.equals(this.committer, changeFilesOptions.committer) &&
|
||||
Objects.equals(this.dates, changeFilesOptions.dates) &&
|
||||
Objects.equals(this.files, changeFilesOptions.files) &&
|
||||
Objects.equals(this.message, changeFilesOptions.message) &&
|
||||
Objects.equals(this.newBranch, changeFilesOptions.newBranch) &&
|
||||
Objects.equals(this.signoff, changeFilesOptions.signoff);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(author, branch, committer, dates, files, message, newBranch, signoff);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ChangeFilesOptions {\n");
|
||||
|
||||
sb.append(" author: ").append(toIndentedString(author)).append("\n");
|
||||
sb.append(" branch: ").append(toIndentedString(branch)).append("\n");
|
||||
sb.append(" committer: ").append(toIndentedString(committer)).append("\n");
|
||||
sb.append(" dates: ").append(toIndentedString(dates)).append("\n");
|
||||
sb.append(" files: ").append(toIndentedString(files)).append("\n");
|
||||
sb.append(" message: ").append(toIndentedString(message)).append("\n");
|
||||
sb.append(" newBranch: ").append(toIndentedString(newBranch)).append("\n");
|
||||
sb.append(" signoff: ").append(toIndentedString(signoff)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
@ -20,10 +20,13 @@ 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.gitea.model.Attachment;
|
||||
import io.gitea.model.User;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.threeten.bp.OffsetDateTime;
|
||||
|
||||
/**
|
||||
|
|
@ -32,6 +35,9 @@ import org.threeten.bp.OffsetDateTime;
|
|||
@ApiModel(description = "Comment represents a comment on a commit or issue")
|
||||
|
||||
public class Comment {
|
||||
@SerializedName("assets")
|
||||
private List<Attachment> assets = null;
|
||||
|
||||
@SerializedName("body")
|
||||
private String body = null;
|
||||
|
||||
|
|
@ -62,6 +68,32 @@ public class Comment {
|
|||
@SerializedName("user")
|
||||
private User user = null;
|
||||
|
||||
public Comment assets(List<Attachment> assets) {
|
||||
this.assets = assets;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Comment addAssetsItem(Attachment assetsItem) {
|
||||
if (this.assets == null) {
|
||||
this.assets = new ArrayList<Attachment>();
|
||||
}
|
||||
this.assets.add(assetsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get assets
|
||||
* @return assets
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Attachment> getAssets() {
|
||||
return assets;
|
||||
}
|
||||
|
||||
public void setAssets(List<Attachment> assets) {
|
||||
this.assets = assets;
|
||||
}
|
||||
|
||||
public Comment body(String body) {
|
||||
this.body = body;
|
||||
return this;
|
||||
|
|
@ -252,7 +284,8 @@ public class Comment {
|
|||
return false;
|
||||
}
|
||||
Comment comment = (Comment) o;
|
||||
return Objects.equals(this.body, comment.body) &&
|
||||
return Objects.equals(this.assets, comment.assets) &&
|
||||
Objects.equals(this.body, comment.body) &&
|
||||
Objects.equals(this.createdAt, comment.createdAt) &&
|
||||
Objects.equals(this.htmlUrl, comment.htmlUrl) &&
|
||||
Objects.equals(this.id, comment.id) &&
|
||||
|
|
@ -266,7 +299,7 @@ public class Comment {
|
|||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(body, createdAt, htmlUrl, id, issueUrl, originalAuthor, originalAuthorId, pullRequestUrl, updatedAt, user);
|
||||
return Objects.hash(assets, body, createdAt, htmlUrl, id, issueUrl, originalAuthor, originalAuthorId, pullRequestUrl, updatedAt, user);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -275,6 +308,7 @@ public class Comment {
|
|||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Comment {\n");
|
||||
|
||||
sb.append(" assets: ").append(toIndentedString(assets)).append("\n");
|
||||
sb.append(" body: ").append(toIndentedString(body)).append("\n");
|
||||
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
||||
sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n");
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
@ -33,6 +33,9 @@ public class CommitAffectedFiles {
|
|||
@SerializedName("filename")
|
||||
private String filename = null;
|
||||
|
||||
@SerializedName("status")
|
||||
private String status = null;
|
||||
|
||||
public CommitAffectedFiles filename(String filename) {
|
||||
this.filename = filename;
|
||||
return this;
|
||||
|
|
@ -51,6 +54,24 @@ public class CommitAffectedFiles {
|
|||
this.filename = filename;
|
||||
}
|
||||
|
||||
public CommitAffectedFiles status(String status) {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get status
|
||||
* @return status
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
|
|
@ -61,12 +82,13 @@ public class CommitAffectedFiles {
|
|||
return false;
|
||||
}
|
||||
CommitAffectedFiles commitAffectedFiles = (CommitAffectedFiles) o;
|
||||
return Objects.equals(this.filename, commitAffectedFiles.filename);
|
||||
return Objects.equals(this.filename, commitAffectedFiles.filename) &&
|
||||
Objects.equals(this.status, commitAffectedFiles.status);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(filename);
|
||||
return Objects.hash(filename, status);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -76,6 +98,7 @@ public class CommitAffectedFiles {
|
|||
sb.append("class CommitAffectedFiles {\n");
|
||||
|
||||
sb.append(" filename: ").append(toIndentedString(filename)).append("\n");
|
||||
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
@ -23,6 +23,8 @@ import com.google.gson.stream.JsonWriter;
|
|||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* CreateAccessTokenOption options when create access token
|
||||
|
|
@ -33,6 +35,9 @@ public class CreateAccessTokenOption {
|
|||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@SerializedName("scopes")
|
||||
private List<String> scopes = null;
|
||||
|
||||
public CreateAccessTokenOption name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
|
|
@ -42,7 +47,7 @@ public class CreateAccessTokenOption {
|
|||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
|
@ -51,6 +56,32 @@ public class CreateAccessTokenOption {
|
|||
this.name = name;
|
||||
}
|
||||
|
||||
public CreateAccessTokenOption scopes(List<String> scopes) {
|
||||
this.scopes = scopes;
|
||||
return this;
|
||||
}
|
||||
|
||||
public CreateAccessTokenOption addScopesItem(String scopesItem) {
|
||||
if (this.scopes == null) {
|
||||
this.scopes = new ArrayList<String>();
|
||||
}
|
||||
this.scopes.add(scopesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get scopes
|
||||
* @return scopes
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public List<String> getScopes() {
|
||||
return scopes;
|
||||
}
|
||||
|
||||
public void setScopes(List<String> scopes) {
|
||||
this.scopes = scopes;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
|
|
@ -61,12 +92,13 @@ public class CreateAccessTokenOption {
|
|||
return false;
|
||||
}
|
||||
CreateAccessTokenOption createAccessTokenOption = (CreateAccessTokenOption) o;
|
||||
return Objects.equals(this.name, createAccessTokenOption.name);
|
||||
return Objects.equals(this.name, createAccessTokenOption.name) &&
|
||||
Objects.equals(this.scopes, createAccessTokenOption.scopes);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(name);
|
||||
return Objects.hash(name, scopes);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -76,6 +108,7 @@ public class CreateAccessTokenOption {
|
|||
sb.append("class CreateAccessTokenOption {\n");
|
||||
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" scopes: ").append(toIndentedString(scopes)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
@ -92,6 +92,9 @@ public class CreateBranchProtectionOption {
|
|||
@SerializedName("required_approvals")
|
||||
private Long requiredApprovals = null;
|
||||
|
||||
@SerializedName("rule_name")
|
||||
private String ruleName = null;
|
||||
|
||||
@SerializedName("status_check_contexts")
|
||||
private List<String> statusCheckContexts = null;
|
||||
|
||||
|
|
@ -210,10 +213,10 @@ public class CreateBranchProtectionOption {
|
|||
}
|
||||
|
||||
/**
|
||||
* Get branchName
|
||||
* Deprecated: true
|
||||
* @return branchName
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
@ApiModelProperty(value = "Deprecated: true")
|
||||
public String getBranchName() {
|
||||
return branchName;
|
||||
}
|
||||
|
|
@ -506,6 +509,24 @@ public class CreateBranchProtectionOption {
|
|||
this.requiredApprovals = requiredApprovals;
|
||||
}
|
||||
|
||||
public CreateBranchProtectionOption ruleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ruleName
|
||||
* @return ruleName
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getRuleName() {
|
||||
return ruleName;
|
||||
}
|
||||
|
||||
public void setRuleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
public CreateBranchProtectionOption statusCheckContexts(List<String> statusCheckContexts) {
|
||||
this.statusCheckContexts = statusCheckContexts;
|
||||
return this;
|
||||
|
|
@ -580,13 +601,14 @@ public class CreateBranchProtectionOption {
|
|||
Objects.equals(this.pushWhitelistUsernames, createBranchProtectionOption.pushWhitelistUsernames) &&
|
||||
Objects.equals(this.requireSignedCommits, createBranchProtectionOption.requireSignedCommits) &&
|
||||
Objects.equals(this.requiredApprovals, createBranchProtectionOption.requiredApprovals) &&
|
||||
Objects.equals(this.ruleName, createBranchProtectionOption.ruleName) &&
|
||||
Objects.equals(this.statusCheckContexts, createBranchProtectionOption.statusCheckContexts) &&
|
||||
Objects.equals(this.unprotectedFilePatterns, createBranchProtectionOption.unprotectedFilePatterns);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, branchName, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, statusCheckContexts, unprotectedFilePatterns);
|
||||
return Objects.hash(approvalsWhitelistTeams, approvalsWhitelistUsername, blockOnOfficialReviewRequests, blockOnOutdatedBranch, blockOnRejectedReviews, branchName, dismissStaleApprovals, enableApprovalsWhitelist, enableMergeWhitelist, enablePush, enablePushWhitelist, enableStatusCheck, mergeWhitelistTeams, mergeWhitelistUsernames, protectedFilePatterns, pushWhitelistDeployKeys, pushWhitelistTeams, pushWhitelistUsernames, requireSignedCommits, requiredApprovals, ruleName, statusCheckContexts, unprotectedFilePatterns);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -615,6 +637,7 @@ public class CreateBranchProtectionOption {
|
|||
sb.append(" pushWhitelistUsernames: ").append(toIndentedString(pushWhitelistUsernames)).append("\n");
|
||||
sb.append(" requireSignedCommits: ").append(toIndentedString(requireSignedCommits)).append("\n");
|
||||
sb.append(" requiredApprovals: ").append(toIndentedString(requiredApprovals)).append("\n");
|
||||
sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n");
|
||||
sb.append(" statusCheckContexts: ").append(toIndentedString(statusCheckContexts)).append("\n");
|
||||
sb.append(" unprotectedFilePatterns: ").append(toIndentedString(unprotectedFilePatterns)).append("\n");
|
||||
sb.append("}");
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
@ -36,6 +36,9 @@ public class CreateBranchRepoOption {
|
|||
@SerializedName("old_branch_name")
|
||||
private String oldBranchName = null;
|
||||
|
||||
@SerializedName("old_ref_name")
|
||||
private String oldRefName = null;
|
||||
|
||||
public CreateBranchRepoOption newBranchName(String newBranchName) {
|
||||
this.newBranchName = newBranchName;
|
||||
return this;
|
||||
|
|
@ -60,10 +63,10 @@ public class CreateBranchRepoOption {
|
|||
}
|
||||
|
||||
/**
|
||||
* Name of the old branch to create from
|
||||
* Deprecated: true Name of the old branch to create from
|
||||
* @return oldBranchName
|
||||
**/
|
||||
@ApiModelProperty(value = "Name of the old branch to create from")
|
||||
@ApiModelProperty(value = "Deprecated: true Name of the old branch to create from")
|
||||
public String getOldBranchName() {
|
||||
return oldBranchName;
|
||||
}
|
||||
|
|
@ -72,6 +75,24 @@ public class CreateBranchRepoOption {
|
|||
this.oldBranchName = oldBranchName;
|
||||
}
|
||||
|
||||
public CreateBranchRepoOption oldRefName(String oldRefName) {
|
||||
this.oldRefName = oldRefName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of the old branch/tag/commit to create from
|
||||
* @return oldRefName
|
||||
**/
|
||||
@ApiModelProperty(value = "Name of the old branch/tag/commit to create from")
|
||||
public String getOldRefName() {
|
||||
return oldRefName;
|
||||
}
|
||||
|
||||
public void setOldRefName(String oldRefName) {
|
||||
this.oldRefName = oldRefName;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
|
|
@ -83,12 +104,13 @@ public class CreateBranchRepoOption {
|
|||
}
|
||||
CreateBranchRepoOption createBranchRepoOption = (CreateBranchRepoOption) o;
|
||||
return Objects.equals(this.newBranchName, createBranchRepoOption.newBranchName) &&
|
||||
Objects.equals(this.oldBranchName, createBranchRepoOption.oldBranchName);
|
||||
Objects.equals(this.oldBranchName, createBranchRepoOption.oldBranchName) &&
|
||||
Objects.equals(this.oldRefName, createBranchRepoOption.oldRefName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(newBranchName, oldBranchName);
|
||||
return Objects.hash(newBranchName, oldBranchName, oldRefName);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -99,6 +121,7 @@ public class CreateBranchRepoOption {
|
|||
|
||||
sb.append(" newBranchName: ").append(toIndentedString(newBranchName)).append("\n");
|
||||
sb.append(" oldBranchName: ").append(toIndentedString(oldBranchName)).append("\n");
|
||||
sb.append(" oldRefName: ").append(toIndentedString(oldRefName)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Gitea API.
|
||||
* Gitea API
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: 1.18.0
|
||||
* OpenAPI spec version: 1.21.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
|
@ -36,6 +36,9 @@ public class CreateHookOption {
|
|||
@SerializedName("active")
|
||||
private Boolean active = false;
|
||||
|
||||
@SerializedName("authorization_header")
|
||||
private String authorizationHeader = null;
|
||||
|
||||
@SerializedName("branch_filter")
|
||||
private String branchFilter = null;
|
||||
|
||||
|
|
@ -129,6 +132,24 @@ public class CreateHookOption {
|
|||
this.active = active;
|
||||
}
|
||||
|
||||
public CreateHookOption authorizationHeader(String authorizationHeader) {
|
||||
this.authorizationHeader = authorizationHeader;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get authorizationHeader
|
||||
* @return authorizationHeader
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
public String getAuthorizationHeader() {
|
||||
return authorizationHeader;
|
||||
}
|
||||
|
||||
public void setAuthorizationHeader(String authorizationHeader) {
|
||||
this.authorizationHeader = authorizationHeader;
|
||||
}
|
||||
|
||||
public CreateHookOption branchFilter(String branchFilter) {
|
||||
this.branchFilter = branchFilter;
|
||||
return this;
|
||||
|
|
@ -220,6 +241,7 @@ public class CreateHookOption {
|
|||
}
|
||||
CreateHookOption createHookOption = (CreateHookOption) o;
|
||||
return Objects.equals(this.active, createHookOption.active) &&
|
||||
Objects.equals(this.authorizationHeader, createHookOption.authorizationHeader) &&
|
||||
Objects.equals(this.branchFilter, createHookOption.branchFilter) &&
|
||||
Objects.equals(this.config, createHookOption.config) &&
|
||||
Objects.equals(this.events, createHookOption.events) &&
|
||||
|
|
@ -228,7 +250,7 @@ public class CreateHookOption {
|
|||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(active, branchFilter, config, events, type);
|
||||
return Objects.hash(active, authorizationHeader, branchFilter, config, events, type);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -238,6 +260,7 @@ public class CreateHookOption {
|
|||
sb.append("class CreateHookOption {\n");
|
||||
|
||||
sb.append(" active: ").append(toIndentedString(active)).append("\n");
|
||||
sb.append(" authorizationHeader: ").append(toIndentedString(authorizationHeader)).append("\n");
|
||||
sb.append(" branchFilter: ").append(toIndentedString(branchFilter)).append("\n");
|
||||
sb.append(" config: ").append(toIndentedString(config)).append("\n");
|
||||
sb.append(" events: ").append(toIndentedString(events)).append("\n");
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue