mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-05-31 07:01:55 +00:00
Synchronizing API and documentation updates
This commit is contained in:
+100
-5
@@ -2712,7 +2712,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="repoCreateReleaseAttachment"></a>
|
||||
# **repoCreateReleaseAttachment**
|
||||
> Attachment repoCreateReleaseAttachment(attachment, owner, repo, id, name)
|
||||
> Attachment repoCreateReleaseAttachment(owner, repo, id, attachment, name)
|
||||
|
||||
Create a release attachment
|
||||
|
||||
@@ -2768,13 +2768,13 @@ Token.setApiKey("YOUR API KEY");
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
RepositoryApi apiInstance = new RepositoryApi();
|
||||
File attachment = new File("attachment_example"); // File |
|
||||
String owner = "owner_example"; // String | owner of the repo
|
||||
String repo = "repo_example"; // String | name of the repo
|
||||
Long id = 789L; // Long | id of the release
|
||||
File attachment = new File("attachment_example"); // File |
|
||||
String name = "name_example"; // String | name of the attachment
|
||||
try {
|
||||
Attachment result = apiInstance.repoCreateReleaseAttachment(attachment, owner, repo, id, name);
|
||||
Attachment result = apiInstance.repoCreateReleaseAttachment(owner, repo, id, attachment, name);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling RepositoryApi#repoCreateReleaseAttachment");
|
||||
@@ -2786,10 +2786,10 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**attachment** | **File**| |
|
||||
**owner** | **String**| owner of the repo |
|
||||
**repo** | **String**| name of the repo |
|
||||
**id** | **Long**| id of the release |
|
||||
**attachment** | **File**| | [optional]
|
||||
**name** | **String**| name of the attachment | [optional]
|
||||
|
||||
### Return type
|
||||
@@ -2802,7 +2802,102 @@ Name | Type | Description | Notes
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: multipart/form-data
|
||||
- **Content-Type**: multipart/form-data, application/octet-stream
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="repoCreateReleaseAttachment"></a>
|
||||
# **repoCreateReleaseAttachment**
|
||||
> Attachment repoCreateReleaseAttachment(owner, repo, id, body, name)
|
||||
|
||||
Create a release attachment
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
//import org.gitnex.tea4j.v2.ApiClient;
|
||||
//import org.gitnex.tea4j.v2.ApiException;
|
||||
//import org.gitnex.tea4j.v2.Configuration;
|
||||
//import org.gitnex.tea4j.v2.auth.*;
|
||||
//import org.gitnex.tea4j.v2.apis.RepositoryApi;
|
||||
|
||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||
|
||||
// Configure API key authorization: AccessToken
|
||||
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
|
||||
AccessToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AccessToken.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: AuthorizationHeaderToken
|
||||
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
|
||||
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
|
||||
// Configure HTTP basic authorization: BasicAuth
|
||||
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
|
||||
BasicAuth.setUsername("YOUR USERNAME");
|
||||
BasicAuth.setPassword("YOUR PASSWORD");
|
||||
|
||||
// Configure API key authorization: SudoHeader
|
||||
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
|
||||
SudoHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: SudoParam
|
||||
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
|
||||
SudoParam.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//SudoParam.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: TOTPHeader
|
||||
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
|
||||
TOTPHeader.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//TOTPHeader.setApiKeyPrefix("Token");
|
||||
|
||||
// Configure API key authorization: Token
|
||||
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
|
||||
Token.setApiKey("YOUR API KEY");
|
||||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
|
||||
//Token.setApiKeyPrefix("Token");
|
||||
|
||||
RepositoryApi apiInstance = new RepositoryApi();
|
||||
String owner = "owner_example"; // String | owner of the repo
|
||||
String repo = "repo_example"; // String | name of the repo
|
||||
Long id = 789L; // Long | id of the release
|
||||
IdAssetsBody2 body = new IdAssetsBody2(); // IdAssetsBody2 |
|
||||
String name = "name_example"; // String | name of the attachment
|
||||
try {
|
||||
Attachment result = apiInstance.repoCreateReleaseAttachment(owner, repo, id, body, name);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling RepositoryApi#repoCreateReleaseAttachment");
|
||||
e.printStackTrace();
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**owner** | **String**| owner of the repo |
|
||||
**repo** | **String**| name of the repo |
|
||||
**id** | **Long**| id of the release |
|
||||
**body** | [**IdAssetsBody2**](IdAssetsBody2.md)| | [optional]
|
||||
**name** | **String**| name of the attachment | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**Attachment**](Attachment.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**: multipart/form-data, application/octet-stream
|
||||
- **Accept**: application/json
|
||||
|
||||
<a name="repoCreateStatus"></a>
|
||||
|
||||
Reference in New Issue
Block a user