Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2026-04-09 00:02:01 +00:00
parent a708efafaf
commit 439c7c4c1d
2 changed files with 97 additions and 0 deletions
+88
View File
@@ -29,6 +29,7 @@ Method | HTTP request | Description
[**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
[**orgDeleteRepos**](OrganizationApi.md#orgDeleteRepos) | **DELETE** orgs/{org}/repos | Delete all repositories in an organization
[**orgDeleteTeam**](OrganizationApi.md#orgDeleteTeam) | **DELETE** teams/{id} | Delete a team
[**orgEdit**](OrganizationApi.md#orgEdit) | **PATCH** orgs/{org} | Edit an organization
[**orgEditHook**](OrganizationApi.md#orgEditHook) | **PATCH** orgs/{org}/hooks/{id} | Update a hook
@@ -2305,6 +2306,93 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
<a name="orgDeleteRepos"></a>
# **orgDeleteRepos**
> Void orgDeleteRepos(org)
Delete all repositories in an organization
### Example
```java
// Import classes:
//import org.gitnex.tea4j.v2.ApiClient;
//import org.gitnex.tea4j.v2.ApiException;
//import org.gitnex.tea4j.v2.Configuration;
//import org.gitnex.tea4j.v2.auth.*;
//import org.gitnex.tea4j.v2.apis.OrganizationApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: AccessToken
ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
AccessToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AccessToken.setApiKeyPrefix("Token");
// Configure API key authorization: AuthorizationHeaderToken
ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
AuthorizationHeaderToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AuthorizationHeaderToken.setApiKeyPrefix("Token");
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
// Configure API key authorization: SudoHeader
ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
SudoHeader.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//SudoHeader.setApiKeyPrefix("Token");
// Configure API key authorization: SudoParam
ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
SudoParam.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//SudoParam.setApiKeyPrefix("Token");
// Configure API key authorization: TOTPHeader
ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
TOTPHeader.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//TOTPHeader.setApiKeyPrefix("Token");
// Configure API key authorization: Token
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
Token.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Token.setApiKeyPrefix("Token");
OrganizationApi apiInstance = new OrganizationApi();
String org = "org_example"; // String | name of the organization
try {
Void result = apiInstance.orgDeleteRepos(org);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrganizationApi#orgDeleteRepos");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**org** | **String**| name of the organization |
### Return type
[**Void**](.md)
### Authorization
[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
### HTTP request headers
- **Content-Type**: Not defined
@@ -342,6 +342,15 @@ public interface OrganizationApi {
Call<Void> orgDeleteMember(
@retrofit2.http.Path("org") String org, @retrofit2.http.Path("username") String username);
/**
* Delete all repositories in an organization
*
* @param org name of the organization (required)
* @return Call&lt;Void&gt;
*/
@DELETE("orgs/{org}/repos")
Call<Void> orgDeleteRepos(@retrofit2.http.Path("org") String org);
/**
* Delete a team
*