From 0ad7eaf4294659ac19bb92f09f1e17ae730a8eea Mon Sep 17 00:00:00 2001 From: gitnexbot Date: Wed, 18 Jun 2025 09:26:00 +0000 Subject: [PATCH] Synchronizing API and documentation updates --- docs/AccessToken.md | 2 + docs/ActionArtifact.md | 15 + docs/ActionArtifactsResponse.md | 7 + docs/ActionRunner.md | 11 + docs/ActionRunnerLabel.md | 8 + docs/ActionRunnersResponse.md | 7 + docs/ActionVariable.md | 1 + docs/ActionWorkflow.md | 15 + docs/ActionWorkflowRun.md | 8 + docs/AdminApi.md | 344 ++++ docs/CombinedStatus.md | 13 +- docs/CommitStatus.md | 13 +- docs/ContentsResponse.md | 2 + docs/CreateActionWorkflowDispatch.md | 7 + docs/CreateOrUpdateSecretOption.md | 1 + docs/CreateReleaseOption.md | 1 + docs/CreateStatusOption.md | 13 +- docs/CreateVariableOption.md | 1 + docs/GeneralAPISettings.md | 1 + docs/GetFilesOptions.md | 6 + docs/IssueApi.md | 186 ++ docs/LockIssueOption.md | 6 + docs/MigrateRepoOptions.md | 1 + docs/MiscellaneousApi.md | 84 + docs/OrganizationApi.md | 446 +++++ docs/PackageApi.md | 374 ++++ docs/PackageFile.md | 2 +- docs/PublicKey.md | 1 + docs/RenameOrgOption.md | 6 + docs/Repository.md | 2 + docs/RepositoryApi.md | 1780 ++++++++++++++++- docs/Secret.md | 1 + docs/UpdateVariableOption.md | 1 + docs/UserApi.md | 344 ++++ .../org/gitnex/tea4j/v2/apis/AdminApi.java | 34 + .../org/gitnex/tea4j/v2/apis/IssueApi.java | 32 + .../tea4j/v2/apis/MiscellaneousApi.java | 8 + .../gitnex/tea4j/v2/apis/OrganizationApi.java | 53 + .../org/gitnex/tea4j/v2/apis/PackageApi.java | 62 + .../gitnex/tea4j/v2/apis/RepositoryApi.java | 295 ++- .../org/gitnex/tea4j/v2/apis/UserApi.java | 34 + .../tea4j/v2/apis/custom/CustomApi.java | 8 +- .../gitnex/tea4j/v2/models/AccessToken.java | 53 +- .../tea4j/v2/models/ActionArtifact.java | 310 +++ .../v2/models/ActionArtifactsResponse.java | 117 ++ .../gitnex/tea4j/v2/models/ActionRunner.java | 213 ++ .../tea4j/v2/models/ActionRunnerLabel.java | 131 ++ .../v2/models/ActionRunnersResponse.java | 117 ++ .../tea4j/v2/models/ActionVariable.java | 26 +- .../tea4j/v2/models/ActionWorkflow.java | 301 +++ .../tea4j/v2/models/ActionWorkflowRun.java | 131 ++ .../tea4j/v2/models/CombinedStatus.java | 62 +- .../gitnex/tea4j/v2/models/CommitStatus.java | 62 +- .../tea4j/v2/models/ContentsResponse.java | 51 + .../v2/models/CreateAccessTokenOption.java | 5 +- .../models/CreateActionWorkflowDispatch.java | 120 ++ .../v2/models/CreateOrUpdateSecretOption.java | 28 +- .../tea4j/v2/models/CreateReleaseOption.java | 26 +- .../tea4j/v2/models/CreateStatusOption.java | 62 +- .../tea4j/v2/models/CreateVariableOption.java | 28 +- .../tea4j/v2/models/GeneralAPISettings.java | 32 +- .../tea4j/v2/models/GetFilesOptions.java | 94 + .../tea4j/v2/models/LockIssueOption.java | 83 + .../tea4j/v2/models/MigrateRepoOptions.java | 3 +- .../gitnex/tea4j/v2/models/PackageFile.java | 52 +- .../org/gitnex/tea4j/v2/models/PublicKey.java | 27 +- .../tea4j/v2/models/RenameOrgOption.java | 85 + .../gitnex/tea4j/v2/models/Repository.java | 52 + .../org/gitnex/tea4j/v2/models/Secret.java | 26 +- .../tea4j/v2/models/UpdateVariableOption.java | 28 +- 70 files changed, 6485 insertions(+), 76 deletions(-) create mode 100644 docs/ActionArtifact.md create mode 100644 docs/ActionArtifactsResponse.md create mode 100644 docs/ActionRunner.md create mode 100644 docs/ActionRunnerLabel.md create mode 100644 docs/ActionRunnersResponse.md create mode 100644 docs/ActionWorkflow.md create mode 100644 docs/ActionWorkflowRun.md create mode 100644 docs/CreateActionWorkflowDispatch.md create mode 100644 docs/GetFilesOptions.md create mode 100644 docs/LockIssueOption.md create mode 100644 docs/RenameOrgOption.md create mode 100644 src/main/java/org/gitnex/tea4j/v2/models/ActionArtifact.java create mode 100644 src/main/java/org/gitnex/tea4j/v2/models/ActionArtifactsResponse.java create mode 100644 src/main/java/org/gitnex/tea4j/v2/models/ActionRunner.java create mode 100644 src/main/java/org/gitnex/tea4j/v2/models/ActionRunnerLabel.java create mode 100644 src/main/java/org/gitnex/tea4j/v2/models/ActionRunnersResponse.java create mode 100644 src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflow.java create mode 100644 src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowRun.java create mode 100644 src/main/java/org/gitnex/tea4j/v2/models/CreateActionWorkflowDispatch.java create mode 100644 src/main/java/org/gitnex/tea4j/v2/models/GetFilesOptions.java create mode 100644 src/main/java/org/gitnex/tea4j/v2/models/LockIssueOption.java create mode 100644 src/main/java/org/gitnex/tea4j/v2/models/RenameOrgOption.java diff --git a/docs/AccessToken.md b/docs/AccessToken.md index a6146b9..e7991bb 100644 --- a/docs/AccessToken.md +++ b/docs/AccessToken.md @@ -3,7 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**createdAt** | [**Date**](Date.md) | | [optional] **id** | **Long** | | [optional] +**lastUsedAt** | [**Date**](Date.md) | | [optional] **name** | **String** | | [optional] **scopes** | **List<String>** | | [optional] **sha1** | **String** | | [optional] diff --git a/docs/ActionArtifact.md b/docs/ActionArtifact.md new file mode 100644 index 0000000..b61493a --- /dev/null +++ b/docs/ActionArtifact.md @@ -0,0 +1,15 @@ +# ActionArtifact + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**archiveDownloadUrl** | **String** | | [optional] +**createdAt** | [**Date**](Date.md) | | [optional] +**expired** | **Boolean** | | [optional] +**expiresAt** | [**Date**](Date.md) | | [optional] +**id** | **Long** | | [optional] +**name** | **String** | | [optional] +**sizeInBytes** | **Long** | | [optional] +**updatedAt** | [**Date**](Date.md) | | [optional] +**url** | **String** | | [optional] +**workflowRun** | [**ActionWorkflowRun**](ActionWorkflowRun.md) | | [optional] diff --git a/docs/ActionArtifactsResponse.md b/docs/ActionArtifactsResponse.md new file mode 100644 index 0000000..bdfcab0 --- /dev/null +++ b/docs/ActionArtifactsResponse.md @@ -0,0 +1,7 @@ +# ActionArtifactsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**artifacts** | [**List<ActionArtifact>**](ActionArtifact.md) | | [optional] +**totalCount** | **Long** | | [optional] diff --git a/docs/ActionRunner.md b/docs/ActionRunner.md new file mode 100644 index 0000000..fbc6646 --- /dev/null +++ b/docs/ActionRunner.md @@ -0,0 +1,11 @@ +# ActionRunner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**busy** | **Boolean** | | [optional] +**ephemeral** | **Boolean** | | [optional] +**id** | **Long** | | [optional] +**labels** | [**List<ActionRunnerLabel>**](ActionRunnerLabel.md) | | [optional] +**name** | **String** | | [optional] +**status** | **String** | | [optional] diff --git a/docs/ActionRunnerLabel.md b/docs/ActionRunnerLabel.md new file mode 100644 index 0000000..de97df8 --- /dev/null +++ b/docs/ActionRunnerLabel.md @@ -0,0 +1,8 @@ +# ActionRunnerLabel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**name** | **String** | | [optional] +**type** | **String** | | [optional] diff --git a/docs/ActionRunnersResponse.md b/docs/ActionRunnersResponse.md new file mode 100644 index 0000000..b1c24a2 --- /dev/null +++ b/docs/ActionRunnersResponse.md @@ -0,0 +1,7 @@ +# ActionRunnersResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**runners** | [**List<ActionRunner>**](ActionRunner.md) | | [optional] +**totalCount** | **Long** | | [optional] diff --git a/docs/ActionVariable.md b/docs/ActionVariable.md index 51dd12b..5c47cac 100644 --- a/docs/ActionVariable.md +++ b/docs/ActionVariable.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **String** | the value of the variable | [optional] +**description** | **String** | the description of the variable | [optional] **name** | **String** | the name of the variable | [optional] **ownerId** | **Long** | the owner to which the variable belongs | [optional] **repoId** | **Long** | the repository to which the variable belongs | [optional] diff --git a/docs/ActionWorkflow.md b/docs/ActionWorkflow.md new file mode 100644 index 0000000..1f36923 --- /dev/null +++ b/docs/ActionWorkflow.md @@ -0,0 +1,15 @@ +# ActionWorkflow + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**badgeUrl** | **String** | | [optional] +**createdAt** | [**Date**](Date.md) | | [optional] +**deletedAt** | [**Date**](Date.md) | | [optional] +**htmlUrl** | **String** | | [optional] +**id** | **String** | | [optional] +**name** | **String** | | [optional] +**path** | **String** | | [optional] +**state** | **String** | | [optional] +**updatedAt** | [**Date**](Date.md) | | [optional] +**url** | **String** | | [optional] diff --git a/docs/ActionWorkflowRun.md b/docs/ActionWorkflowRun.md new file mode 100644 index 0000000..6c3fd2f --- /dev/null +++ b/docs/ActionWorkflowRun.md @@ -0,0 +1,8 @@ +# ActionWorkflowRun + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**headSha** | **String** | | [optional] +**id** | **Long** | | [optional] +**repositoryId** | **Long** | | [optional] diff --git a/docs/AdminApi.md b/docs/AdminApi.md index 86bf30b..f28472b 100644 --- a/docs/AdminApi.md +++ b/docs/AdminApi.md @@ -10,6 +10,7 @@ Method | HTTP request | Description [**adminCreateOrg**](AdminApi.md#adminCreateOrg) | **POST** admin/users/{username}/orgs | Create an organization [**adminCreatePublicKey**](AdminApi.md#adminCreatePublicKey) | **POST** admin/users/{username}/keys | Add a public key on behalf of a user [**adminCreateRepo**](AdminApi.md#adminCreateRepo) | **POST** admin/users/{username}/repos | Create a repository on behalf of a user +[**adminCreateRunnerRegistrationToken**](AdminApi.md#adminCreateRunnerRegistrationToken) | **POST** admin/actions/runners/registration-token | Get an global actions runner registration token [**adminCreateUser**](AdminApi.md#adminCreateUser) | **POST** admin/users | Create a user [**adminCronList**](AdminApi.md#adminCronList) | **GET** admin/cron | List cron tasks [**adminCronRun**](AdminApi.md#adminCronRun) | **POST** admin/cron/{task} | Run cron task @@ -30,6 +31,9 @@ Method | HTTP request | Description [**adminSearchEmails**](AdminApi.md#adminSearchEmails) | **GET** admin/emails/search | Search all emails [**adminSearchUsers**](AdminApi.md#adminSearchUsers) | **GET** admin/users | Search users according filter conditions [**adminUnadoptedList**](AdminApi.md#adminUnadoptedList) | **GET** admin/unadopted | List unadopted repositories +[**deleteAdminRunner**](AdminApi.md#deleteAdminRunner) | **DELETE** admin/actions/runners/{runner_id} | Delete an global runner +[**getAdminRunner**](AdminApi.md#getAdminRunner) | **GET** admin/actions/runners/{runner_id} | Get an global runner +[**getAdminRunners**](AdminApi.md#getAdminRunners) | **GET** admin/actions/runners | Get all runners # **adminAddUserBadges** @@ -563,6 +567,89 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json + +# **adminCreateRunnerRegistrationToken** +> Void adminCreateRunnerRegistrationToken() + +Get an global actions runner registration token + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.AdminApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +AdminApi apiInstance = new AdminApi(); +try { + Void result = apiInstance.adminCreateRunnerRegistrationToken(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#adminCreateRunnerRegistrationToken"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + # **adminCreateUser** > User adminCreateUser(body) @@ -2337,3 +2424,260 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json + +# **deleteAdminRunner** +> Void deleteAdminRunner(runnerId) + +Delete an global runner + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.AdminApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +AdminApi apiInstance = new AdminApi(); +String runnerId = "runnerId_example"; // String | id of the runner +try { + Void result = apiInstance.deleteAdminRunner(runnerId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#deleteAdminRunner"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **runnerId** | **String**| id of the runner | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +# **getAdminRunner** +> Void getAdminRunner(runnerId) + +Get an global runner + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.AdminApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +AdminApi apiInstance = new AdminApi(); +String runnerId = "runnerId_example"; // String | id of the runner +try { + Void result = apiInstance.getAdminRunner(runnerId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#getAdminRunner"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **runnerId** | **String**| id of the runner | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +# **getAdminRunners** +> Void getAdminRunners() + +Get all runners + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.AdminApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +AdminApi apiInstance = new AdminApi(); +try { + Void result = apiInstance.getAdminRunners(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling AdminApi#getAdminRunners"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + diff --git a/docs/CombinedStatus.md b/docs/CombinedStatus.md index 9b883d8..74b6f53 100644 --- a/docs/CombinedStatus.md +++ b/docs/CombinedStatus.md @@ -6,7 +6,18 @@ Name | Type | Description | Notes **commitUrl** | **String** | | [optional] **repository** | [**Repository**](Repository.md) | | [optional] **sha** | **String** | | [optional] -**state** | **String** | | [optional] +**state** | [**StateEnum**](#StateEnum) | | [optional] **statuses** | [**List<CommitStatus>**](CommitStatus.md) | | [optional] **totalCount** | **Long** | | [optional] **url** | **String** | | [optional] + + +## Enum: StateEnum +Name | Value +---- | ----- +PENDING | "pending" +SUCCESS | "success" +ERROR | "error" +FAILURE | "failure" +WARNING | "warning" +SKIPPED | "skipped" diff --git a/docs/CommitStatus.md b/docs/CommitStatus.md index 09e92f0..1e107c3 100644 --- a/docs/CommitStatus.md +++ b/docs/CommitStatus.md @@ -8,7 +8,18 @@ Name | Type | Description | Notes **creator** | [**User**](User.md) | | [optional] **description** | **String** | | [optional] **id** | **Long** | | [optional] -**status** | **String** | | [optional] +**status** | [**StatusEnum**](#StatusEnum) | | [optional] **targetUrl** | **String** | | [optional] **updatedAt** | [**Date**](Date.md) | | [optional] **url** | **String** | | [optional] + + +## Enum: StatusEnum +Name | Value +---- | ----- +PENDING | "pending" +SUCCESS | "success" +ERROR | "error" +FAILURE | "failure" +WARNING | "warning" +SKIPPED | "skipped" diff --git a/docs/ContentsResponse.md b/docs/ContentsResponse.md index 5639c4e..f8eac2d 100644 --- a/docs/ContentsResponse.md +++ b/docs/ContentsResponse.md @@ -9,7 +9,9 @@ Name | Type | Description | Notes **encoding** | **String** | `encoding` is populated when `type` is `file`, otherwise null | [optional] **gitUrl** | **String** | | [optional] **htmlUrl** | **String** | | [optional] +**lastAuthorDate** | [**Date**](Date.md) | | [optional] **lastCommitSha** | **String** | | [optional] +**lastCommitterDate** | [**Date**](Date.md) | | [optional] **name** | **String** | | [optional] **path** | **String** | | [optional] **sha** | **String** | | [optional] diff --git a/docs/CreateActionWorkflowDispatch.md b/docs/CreateActionWorkflowDispatch.md new file mode 100644 index 0000000..014b380 --- /dev/null +++ b/docs/CreateActionWorkflowDispatch.md @@ -0,0 +1,7 @@ +# CreateActionWorkflowDispatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inputs** | **Map<String, String>** | | [optional] +**ref** | **String** | | diff --git a/docs/CreateOrUpdateSecretOption.md b/docs/CreateOrUpdateSecretOption.md index 4a0051c..5f64283 100644 --- a/docs/CreateOrUpdateSecretOption.md +++ b/docs/CreateOrUpdateSecretOption.md @@ -4,3 +4,4 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | **String** | Data of the secret to update | +**description** | **String** | Description of the secret to update | [optional] diff --git a/docs/CreateReleaseOption.md b/docs/CreateReleaseOption.md index e85acc4..c52929b 100644 --- a/docs/CreateReleaseOption.md +++ b/docs/CreateReleaseOption.md @@ -7,5 +7,6 @@ Name | Type | Description | Notes **draft** | **Boolean** | | [optional] **name** | **String** | | [optional] **prerelease** | **Boolean** | | [optional] +**tagMessage** | **String** | | [optional] **tagName** | **String** | | **targetCommitish** | **String** | | [optional] diff --git a/docs/CreateStatusOption.md b/docs/CreateStatusOption.md index c1d35ef..c79d545 100644 --- a/docs/CreateStatusOption.md +++ b/docs/CreateStatusOption.md @@ -5,5 +5,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **context** | **String** | | [optional] **description** | **String** | | [optional] -**state** | **String** | | [optional] +**state** | [**StateEnum**](#StateEnum) | | [optional] **targetUrl** | **String** | | [optional] + + +## Enum: StateEnum +Name | Value +---- | ----- +PENDING | "pending" +SUCCESS | "success" +ERROR | "error" +FAILURE | "failure" +WARNING | "warning" +SKIPPED | "skipped" diff --git a/docs/CreateVariableOption.md b/docs/CreateVariableOption.md index 4bc49e1..19d895e 100644 --- a/docs/CreateVariableOption.md +++ b/docs/CreateVariableOption.md @@ -3,4 +3,5 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**description** | **String** | Description of the variable to create | [optional] **value** | **String** | Value of the variable to create | diff --git a/docs/GeneralAPISettings.md b/docs/GeneralAPISettings.md index 79c7596..00cd7de 100644 --- a/docs/GeneralAPISettings.md +++ b/docs/GeneralAPISettings.md @@ -5,5 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **defaultGitTreesPerPage** | **Long** | | [optional] **defaultMaxBlobSize** | **Long** | | [optional] +**defaultMaxResponseSize** | **Long** | | [optional] **defaultPagingNum** | **Long** | | [optional] **maxResponseItems** | **Long** | | [optional] diff --git a/docs/GetFilesOptions.md b/docs/GetFilesOptions.md new file mode 100644 index 0000000..e36b7a3 --- /dev/null +++ b/docs/GetFilesOptions.md @@ -0,0 +1,6 @@ +# GetFilesOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**files** | **List<String>** | | [optional] diff --git a/docs/IssueApi.md b/docs/IssueApi.md index eb2e8c5..94eb3eb 100644 --- a/docs/IssueApi.md +++ b/docs/IssueApi.md @@ -56,6 +56,7 @@ Method | HTTP request | Description [**issueListIssueDependencies**](IssueApi.md#issueListIssueDependencies) | **GET** repos/{owner}/{repo}/issues/{index}/dependencies | List an issue's dependencies, i.e all issues that block this issue. [**issueListIssues**](IssueApi.md#issueListIssues) | **GET** repos/{owner}/{repo}/issues | List a repository's issues [**issueListLabels**](IssueApi.md#issueListLabels) | **GET** repos/{owner}/{repo}/labels | Get all of a repository's labels +[**issueLockIssue**](IssueApi.md#issueLockIssue) | **PUT** repos/{owner}/{repo}/issues/{index}/lock | Lock an issue [**issuePostCommentReaction**](IssueApi.md#issuePostCommentReaction) | **POST** repos/{owner}/{repo}/issues/comments/{id}/reactions | Add a reaction to a comment of an issue [**issuePostIssueReaction**](IssueApi.md#issuePostIssueReaction) | **POST** repos/{owner}/{repo}/issues/{index}/reactions | Add a reaction to an issue [**issueRemoveIssueBlocking**](IssueApi.md#issueRemoveIssueBlocking) | **DELETE** repos/{owner}/{repo}/issues/{index}/blocks | Unblock the issue given in the body by the issue in path @@ -68,6 +69,7 @@ Method | HTTP request | Description [**issueStopStopWatch**](IssueApi.md#issueStopStopWatch) | **POST** repos/{owner}/{repo}/issues/{index}/stopwatch/stop | Stop an issue's existing stopwatch. [**issueSubscriptions**](IssueApi.md#issueSubscriptions) | **GET** repos/{owner}/{repo}/issues/{index}/subscriptions | Get users who subscribed on an issue. [**issueTrackedTimes**](IssueApi.md#issueTrackedTimes) | **GET** repos/{owner}/{repo}/issues/{index}/times | List an issue's tracked times +[**issueUnlockIssue**](IssueApi.md#issueUnlockIssue) | **DELETE** repos/{owner}/{repo}/issues/{index}/lock | Unlock an issue [**moveIssuePin**](IssueApi.md#moveIssuePin) | **PATCH** repos/{owner}/{repo}/issues/{index}/pin/{position} | Moves the Pin to the given Position [**pinIssue**](IssueApi.md#pinIssue) | **POST** repos/{owner}/{repo}/issues/{index}/pin | Pin an Issue [**unpinIssue**](IssueApi.md#unpinIssue) | **DELETE** repos/{owner}/{repo}/issues/{index}/pin | Unpin an Issue @@ -4924,6 +4926,99 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json + +# **issueLockIssue** +> Void issueLockIssue(owner, repo, index, body) + +Lock an issue + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long index = 789L; // Long | index of the issue +LockIssueOption body = new LockIssueOption(); // LockIssueOption | +try { + Void result = apiInstance.issueLockIssue(owner, repo, index, body); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueLockIssue"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **index** | **Long**| index of the issue | + **body** | [**LockIssueOption**](LockIssueOption.md)| | [optional] + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + # **issuePostCommentReaction** > Reaction issuePostCommentReaction(owner, repo, id, body) @@ -6070,6 +6165,97 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json + +# **issueUnlockIssue** +> Void issueUnlockIssue(owner, repo, index) + +Unlock an issue + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.IssueApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +IssueApi apiInstance = new IssueApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +Long index = 789L; // Long | index of the issue +try { + Void result = apiInstance.issueUnlockIssue(owner, repo, index); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling IssueApi#issueUnlockIssue"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **index** | **Long**| index of the issue | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + # **moveIssuePin** > Void moveIssuePin(owner, repo, index, position) diff --git a/docs/LockIssueOption.md b/docs/LockIssueOption.md new file mode 100644 index 0000000..d2cdb6a --- /dev/null +++ b/docs/LockIssueOption.md @@ -0,0 +1,6 @@ +# LockIssueOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lockReason** | **String** | | [optional] diff --git a/docs/MigrateRepoOptions.md b/docs/MigrateRepoOptions.md index b5bd5d1..d5d480f 100644 --- a/docs/MigrateRepoOptions.md +++ b/docs/MigrateRepoOptions.md @@ -38,3 +38,4 @@ GOGS | "gogs" ONEDEV | "onedev" GITBUCKET | "gitbucket" CODEBASE | "codebase" +CODECOMMIT | "codecommit" diff --git a/docs/MiscellaneousApi.md b/docs/MiscellaneousApi.md index 703c828..3bc2fb3 100644 --- a/docs/MiscellaneousApi.md +++ b/docs/MiscellaneousApi.md @@ -9,6 +9,7 @@ Method | HTTP request | Description [**getLicenseTemplateInfo**](MiscellaneousApi.md#getLicenseTemplateInfo) | **GET** licenses/{name} | Returns information about a license template [**getNodeInfo**](MiscellaneousApi.md#getNodeInfo) | **GET** nodeinfo | Returns the nodeinfo of the Gitea application [**getSigningKey**](MiscellaneousApi.md#getSigningKey) | **GET** signing-key.gpg | Get default signing-key.gpg +[**getSigningKeySSH**](MiscellaneousApi.md#getSigningKeySSH) | **GET** signing-key.pub | Get default signing-key.pub [**getVersion**](MiscellaneousApi.md#getVersion) | **GET** version | Returns the version of the Gitea application [**listGitignoresTemplates**](MiscellaneousApi.md#listGitignoresTemplates) | **GET** gitignore/templates | Returns a list of all gitignore templates [**listLabelTemplates**](MiscellaneousApi.md#listLabelTemplates) | **GET** label/templates | Returns a list of all label templates @@ -439,6 +440,89 @@ This endpoint does not need any parameter. [AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain + + +# **getSigningKeySSH** +> String getSigningKeySSH() + +Get default signing-key.pub + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.MiscellaneousApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +MiscellaneousApi apiInstance = new MiscellaneousApi(); +try { + String result = apiInstance.getSigningKeySSH(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MiscellaneousApi#getSigningKeySSH"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**String** + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + ### HTTP request headers - **Content-Type**: Not defined diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md index 24ce659..daceba6 100644 --- a/docs/OrganizationApi.md +++ b/docs/OrganizationApi.md @@ -7,8 +7,11 @@ Method | HTTP request | Description [**createOrgRepo**](OrganizationApi.md#createOrgRepo) | **POST** orgs/{org}/repos | Create a repository in an organization [**createOrgRepoDeprecated**](OrganizationApi.md#createOrgRepoDeprecated) | **POST** org/{org}/repos | Create a repository in an organization [**createOrgVariable**](OrganizationApi.md#createOrgVariable) | **POST** orgs/{org}/actions/variables/{variablename} | Create an org-level variable +[**deleteOrgRunner**](OrganizationApi.md#deleteOrgRunner) | **DELETE** orgs/{org}/actions/runners/{runner_id} | Delete an org-level runner [**deleteOrgSecret**](OrganizationApi.md#deleteOrgSecret) | **DELETE** orgs/{org}/actions/secrets/{secretname} | Delete a secret in an organization [**deleteOrgVariable**](OrganizationApi.md#deleteOrgVariable) | **DELETE** orgs/{org}/actions/variables/{variablename} | Delete an org-level variable +[**getOrgRunner**](OrganizationApi.md#getOrgRunner) | **GET** orgs/{org}/actions/runners/{runner_id} | Get an org-level runner +[**getOrgRunners**](OrganizationApi.md#getOrgRunners) | **GET** orgs/{org}/actions/runners | Get org-level runners [**getOrgVariable**](OrganizationApi.md#getOrgVariable) | **GET** orgs/{org}/actions/variables/{variablename} | Get an org-level variable [**getOrgVariablesList**](OrganizationApi.md#getOrgVariablesList) | **GET** orgs/{org}/actions/variables | Get an org-level variables list [**orgAddTeamMember**](OrganizationApi.md#orgAddTeamMember) | **PUT** teams/{id}/members/{username} | Add a team member @@ -17,6 +20,7 @@ Method | HTTP request | Description [**orgCreate**](OrganizationApi.md#orgCreate) | **POST** orgs | Create an organization [**orgCreateHook**](OrganizationApi.md#orgCreateHook) | **POST** orgs/{org}/hooks | Create a hook [**orgCreateLabel**](OrganizationApi.md#orgCreateLabel) | **POST** orgs/{org}/labels | Create a label for an organization +[**orgCreateRunnerRegistrationToken**](OrganizationApi.md#orgCreateRunnerRegistrationToken) | **POST** orgs/{org}/actions/runners/registration-token | Get an organization's actions runner registration token [**orgCreateTeam**](OrganizationApi.md#orgCreateTeam) | **POST** orgs/{org}/teams | Create a team [**orgDelete**](OrganizationApi.md#orgDelete) | **DELETE** orgs/{org} | Delete an organization [**orgDeleteAvatar**](OrganizationApi.md#orgDeleteAvatar) | **DELETE** orgs/{org}/avatar | Delete Avatar @@ -60,6 +64,7 @@ Method | HTTP request | Description [**organizationCheckUserBlock**](OrganizationApi.md#organizationCheckUserBlock) | **GET** orgs/{org}/blocks/{username} | Check if a user is blocked by the organization [**organizationListBlocks**](OrganizationApi.md#organizationListBlocks) | **GET** orgs/{org}/blocks | List users blocked by the organization [**organizationUnblockUser**](OrganizationApi.md#organizationUnblockUser) | **DELETE** orgs/{org}/blocks/{username} | Unblock a user +[**renameOrg**](OrganizationApi.md#renameOrg) | **POST** orgs/{org}/rename | Rename an organization [**teamSearch**](OrganizationApi.md#teamSearch) | **GET** orgs/{org}/teams/search | Search for teams within an organization [**updateOrgSecret**](OrganizationApi.md#updateOrgSecret) | **PUT** orgs/{org}/actions/secrets/{secretname} | Create or Update a secret value in an organization [**updateOrgVariable**](OrganizationApi.md#updateOrgVariable) | **PUT** orgs/{org}/actions/variables/{variablename} | Update an org-level variable @@ -333,6 +338,95 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: Not defined + +# **deleteOrgRunner** +> Void deleteOrgRunner(org, runnerId) + +Delete an org-level runner + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.OrganizationApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +OrganizationApi apiInstance = new OrganizationApi(); +String org = "org_example"; // String | name of the organization +String runnerId = "runnerId_example"; // String | id of the runner +try { + Void result = apiInstance.deleteOrgRunner(org, runnerId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#deleteOrgRunner"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| name of the organization | + **runnerId** | **String**| id of the runner | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + # **deleteOrgSecret** > Void deleteOrgSecret(org, secretname) @@ -511,6 +605,182 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json + +# **getOrgRunner** +> Void getOrgRunner(org, runnerId) + +Get an org-level runner + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.OrganizationApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +OrganizationApi apiInstance = new OrganizationApi(); +String org = "org_example"; // String | name of the organization +String runnerId = "runnerId_example"; // String | id of the runner +try { + Void result = apiInstance.getOrgRunner(org, runnerId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getOrgRunner"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| name of the organization | + **runnerId** | **String**| id of the runner | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +# **getOrgRunners** +> Void getOrgRunners(org) + +Get org-level runners + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.OrganizationApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +OrganizationApi apiInstance = new OrganizationApi(); +String org = "org_example"; // String | name of the organization +try { + Void result = apiInstance.getOrgRunners(org); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getOrgRunners"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| name of the organization | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + # **getOrgVariable** > ActionVariable getOrgVariable(org, variablename) @@ -1225,6 +1495,93 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json + +# **orgCreateRunnerRegistrationToken** +> Void orgCreateRunnerRegistrationToken(org) + +Get an organization's actions runner registration token + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.OrganizationApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +OrganizationApi apiInstance = new OrganizationApi(); +String org = "org_example"; // String | name of the organization +try { + Void result = apiInstance.orgCreateRunnerRegistrationToken(org); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#orgCreateRunnerRegistrationToken"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org** | **String**| name of the organization | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + # **orgCreateTeam** > Team orgCreateTeam(org, body) @@ -5082,6 +5439,95 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: Not defined + +# **renameOrg** +> Void renameOrg(body, org) + +Rename an organization + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.OrganizationApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +OrganizationApi apiInstance = new OrganizationApi(); +RenameOrgOption body = new RenameOrgOption(); // RenameOrgOption | +String org = "org_example"; // String | existing org name +try { + Void result = apiInstance.renameOrg(body, org); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#renameOrg"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**RenameOrgOption**](RenameOrgOption.md)| | + **org** | **String**| existing org name | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: Not defined + # **teamSearch** > InlineResponse200 teamSearch(org, q, includeDesc, page, limit) diff --git a/docs/PackageApi.md b/docs/PackageApi.md index 8b9ef79..a11965e 100644 --- a/docs/PackageApi.md +++ b/docs/PackageApi.md @@ -5,9 +5,13 @@ All URIs are relative to *https://{{AppSubUrl | JSEscape}}/api/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**deletePackage**](PackageApi.md#deletePackage) | **DELETE** packages/{owner}/{type}/{name}/{version} | Delete a package +[**getLatestPackageVersion**](PackageApi.md#getLatestPackageVersion) | **GET** packages/{owner}/{type}/{name}/-/latest | Gets the latest version of a package [**getPackage**](PackageApi.md#getPackage) | **GET** packages/{owner}/{type}/{name}/{version} | Gets a package +[**linkPackage**](PackageApi.md#linkPackage) | **POST** packages/{owner}/{type}/{name}/-/link/{repo_name} | Link a package to a repository [**listPackageFiles**](PackageApi.md#listPackageFiles) | **GET** packages/{owner}/{type}/{name}/{version}/files | Gets all files of a package +[**listPackageVersions**](PackageApi.md#listPackageVersions) | **GET** packages/{owner}/{type}/{name} | Gets all versions of a package [**listPackages**](PackageApi.md#listPackages) | **GET** packages/{owner} | Gets all packages of an owner +[**unlinkPackage**](PackageApi.md#unlinkPackage) | **POST** packages/{owner}/{type}/{name}/-/unlink | Unlink a package from a repository # **deletePackage** @@ -102,6 +106,97 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: Not defined + +# **getLatestPackageVersion** +> ModelPackage getLatestPackageVersion(owner, type, name) + +Gets the latest version of a package + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.PackageApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +PackageApi apiInstance = new PackageApi(); +String owner = "owner_example"; // String | owner of the package +String type = "type_example"; // String | type of the package +String name = "name_example"; // String | name of the package +try { + ModelPackage result = apiInstance.getLatestPackageVersion(owner, type, name); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PackageApi#getLatestPackageVersion"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the package | + **type** | **String**| type of the package | + **name** | **String**| name of the package | + +### Return type + +[**ModelPackage**](ModelPackage.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + # **getPackage** > ModelPackage getPackage(owner, type, name, version) @@ -195,6 +290,99 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json + +# **linkPackage** +> Void linkPackage(owner, type, name, repoName) + +Link a package to a repository + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.PackageApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +PackageApi apiInstance = new PackageApi(); +String owner = "owner_example"; // String | owner of the package +String type = "type_example"; // String | type of the package +String name = "name_example"; // String | name of the package +String repoName = "repoName_example"; // String | name of the repository to link. +try { + Void result = apiInstance.linkPackage(owner, type, name, repoName); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PackageApi#linkPackage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the package | + **type** | **String**| type of the package | + **name** | **String**| name of the package | + **repoName** | **String**| name of the repository to link. | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + # **listPackageFiles** > List<PackageFile> listPackageFiles(owner, type, name, version) @@ -283,6 +471,101 @@ Name | Type | Description | Notes [AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **listPackageVersions** +> List<ModelPackage> listPackageVersions(owner, type, name, page, limit) + +Gets all versions of a package + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.PackageApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +PackageApi apiInstance = new PackageApi(); +String owner = "owner_example"; // String | owner of the package +String type = "type_example"; // String | type of the package +String name = "name_example"; // String | name of the package +Integer page = 56; // Integer | page number of results to return (1-based) +Integer limit = 56; // Integer | page size of results +try { + List result = apiInstance.listPackageVersions(owner, type, name, page, limit); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PackageApi#listPackageVersions"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the package | + **type** | **String**| type of the package | + **name** | **String**| name of the package | + **page** | **Integer**| page number of results to return (1-based) | [optional] + **limit** | **Integer**| page size of results | [optional] + +### Return type + +[**List<ModelPackage>**](ModelPackage.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + ### HTTP request headers - **Content-Type**: Not defined @@ -383,3 +666,94 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json + +# **unlinkPackage** +> Void unlinkPackage(owner, type, name) + +Unlink a package from a repository + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.PackageApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +PackageApi apiInstance = new PackageApi(); +String owner = "owner_example"; // String | owner of the package +String type = "type_example"; // String | type of the package +String name = "name_example"; // String | name of the package +try { + Void result = apiInstance.unlinkPackage(owner, type, name); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PackageApi#unlinkPackage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the package | + **type** | **String**| type of the package | + **name** | **String**| name of the package | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + diff --git a/docs/PackageFile.md b/docs/PackageFile.md index 7355084..bd7bd1d 100644 --- a/docs/PackageFile.md +++ b/docs/PackageFile.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**size** | **Long** | | [optional] **id** | **Long** | | [optional] **md5** | **String** | | [optional] **name** | **String** | | [optional] **sha1** | **String** | | [optional] **sha256** | **String** | | [optional] **sha512** | **String** | | [optional] +**size** | **Long** | | [optional] diff --git a/docs/PublicKey.md b/docs/PublicKey.md index d7e02ce..0d149c1 100644 --- a/docs/PublicKey.md +++ b/docs/PublicKey.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **id** | **Long** | | [optional] **key** | **String** | | [optional] **keyType** | **String** | | [optional] +**lastUsedAt** | [**Date**](Date.md) | | [optional] **readOnly** | **Boolean** | | [optional] **title** | **String** | | [optional] **url** | **String** | | [optional] diff --git a/docs/RenameOrgOption.md b/docs/RenameOrgOption.md new file mode 100644 index 0000000..c437109 --- /dev/null +++ b/docs/RenameOrgOption.md @@ -0,0 +1,6 @@ +# RenameOrgOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**newName** | **String** | New username for this org. This name cannot be in use yet by any other user. | diff --git a/docs/Repository.md b/docs/Repository.md index 8e5bf93..c77df4d 100644 --- a/docs/Repository.md +++ b/docs/Repository.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allowFastForwardOnlyMerge** | **Boolean** | | [optional] +**allowManualMerge** | **Boolean** | | [optional] **allowMergeCommits** | **Boolean** | | [optional] **allowRebase** | **Boolean** | | [optional] **allowRebaseExplicit** | **Boolean** | | [optional] @@ -11,6 +12,7 @@ Name | Type | Description | Notes **allowSquashMerge** | **Boolean** | | [optional] **archived** | **Boolean** | | [optional] **archivedAt** | [**Date**](Date.md) | | [optional] +**autodetectManualMerge** | **Boolean** | | [optional] **avatarUrl** | **String** | | [optional] **cloneUrl** | **String** | | [optional] **createdAt** | [**Date**](Date.md) | | [optional] diff --git a/docs/RepositoryApi.md b/docs/RepositoryApi.md index 5bc52ef..d390be6 100644 --- a/docs/RepositoryApi.md +++ b/docs/RepositoryApi.md @@ -5,14 +5,29 @@ All URIs are relative to *https://{{AppSubUrl | JSEscape}}/api/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**acceptRepoTransfer**](RepositoryApi.md#acceptRepoTransfer) | **POST** repos/{owner}/{repo}/transfer/accept | Accept a repo transfer +[**actionsDisableWorkflow**](RepositoryApi.md#actionsDisableWorkflow) | **PUT** repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable | Disable a workflow +[**actionsDispatchWorkflow**](RepositoryApi.md#actionsDispatchWorkflow) | **POST** repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches | Create a workflow dispatch event +[**actionsEnableWorkflow**](RepositoryApi.md#actionsEnableWorkflow) | **PUT** repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable | Enable a workflow +[**actionsGetWorkflow**](RepositoryApi.md#actionsGetWorkflow) | **GET** repos/{owner}/{repo}/actions/workflows/{workflow_id} | Get a workflow +[**actionsListRepositoryWorkflows**](RepositoryApi.md#actionsListRepositoryWorkflows) | **GET** repos/{owner}/{repo}/actions/workflows | List repository workflows [**createCurrentUserRepo**](RepositoryApi.md#createCurrentUserRepo) | **POST** user/repos | Create a repository [**createFork**](RepositoryApi.md#createFork) | **POST** repos/{owner}/{repo}/forks | Fork a repository [**createRepoVariable**](RepositoryApi.md#createRepoVariable) | **POST** repos/{owner}/{repo}/actions/variables/{variablename} | Create a repo-level variable +[**deleteActionRun**](RepositoryApi.md#deleteActionRun) | **DELETE** repos/{owner}/{repo}/actions/runs/{run} | Delete a workflow run +[**deleteArtifact**](RepositoryApi.md#deleteArtifact) | **DELETE** repos/{owner}/{repo}/actions/artifacts/{artifact_id} | Deletes a specific artifact for a workflow run +[**deleteRepoRunner**](RepositoryApi.md#deleteRepoRunner) | **DELETE** repos/{owner}/{repo}/actions/runners/{runner_id} | Delete an repo-level runner [**deleteRepoSecret**](RepositoryApi.md#deleteRepoSecret) | **DELETE** repos/{owner}/{repo}/actions/secrets/{secretname} | Delete a secret in a repository [**deleteRepoVariable**](RepositoryApi.md#deleteRepoVariable) | **DELETE** repos/{owner}/{repo}/actions/variables/{variablename} | Delete a repo-level variable +[**downloadActionsRunJobLogs**](RepositoryApi.md#downloadActionsRunJobLogs) | **GET** repos/{owner}/{repo}/actions/jobs/{job_id}/logs | Downloads the job logs for a workflow run +[**downloadArtifact**](RepositoryApi.md#downloadArtifact) | **GET** repos/{owner}/{repo}/actions/artifacts/{artifact_id}/zip | Downloads a specific artifact for a workflow run redirects to blob url [**generateRepo**](RepositoryApi.md#generateRepo) | **POST** repos/{template_owner}/{template_repo}/generate | Create a repository using a template [**getAnnotatedTag**](RepositoryApi.md#getAnnotatedTag) | **GET** repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags) +[**getArtifact**](RepositoryApi.md#getArtifact) | **GET** repos/{owner}/{repo}/actions/artifacts/{artifact_id} | Gets a specific artifact for a workflow run +[**getArtifacts**](RepositoryApi.md#getArtifacts) | **GET** repos/{owner}/{repo}/actions/artifacts | Lists all artifacts for a repository +[**getArtifactsOfRun**](RepositoryApi.md#getArtifactsOfRun) | **GET** repos/{owner}/{repo}/actions/runs/{run}/artifacts | Lists all artifacts for a repository run [**getBlob**](RepositoryApi.md#getBlob) | **GET** repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository. +[**getRepoRunner**](RepositoryApi.md#getRepoRunner) | **GET** repos/{owner}/{repo}/actions/runners/{runner_id} | Get an repo-level runner +[**getRepoRunners**](RepositoryApi.md#getRepoRunners) | **GET** repos/{owner}/{repo}/actions/runners | Get repo-level runners [**getRepoVariable**](RepositoryApi.md#getRepoVariable) | **GET** repos/{owner}/{repo}/actions/variables/{variablename} | Get a repo-level variable [**getRepoVariablesList**](RepositoryApi.md#getRepoVariablesList) | **GET** repos/{owner}/{repo}/actions/variables | Get repo-level variables list [**getTree**](RepositoryApi.md#getTree) | **GET** repos/{owner}/{repo}/git/trees/{sha} | Gets the tree of a repository. @@ -39,6 +54,7 @@ Method | HTTP request | Description [**repoCreatePullReviewRequests**](RepositoryApi.md#repoCreatePullReviewRequests) | **POST** repos/{owner}/{repo}/pulls/{index}/requested_reviewers | create review requests for a pull request [**repoCreateRelease**](RepositoryApi.md#repoCreateRelease) | **POST** repos/{owner}/{repo}/releases | Create a release [**repoCreateReleaseAttachment**](RepositoryApi.md#repoCreateReleaseAttachment) | **POST** repos/{owner}/{repo}/releases/{id}/assets | Create a release attachment +[**repoCreateRunnerRegistrationToken**](RepositoryApi.md#repoCreateRunnerRegistrationToken) | **POST** repos/{owner}/{repo}/actions/runners/registration-token | Get a repository's actions runner registration token [**repoCreateStatus**](RepositoryApi.md#repoCreateStatus) | **POST** repos/{owner}/{repo}/statuses/{sha} | Create a commit status [**repoCreateTag**](RepositoryApi.md#repoCreateTag) | **POST** repos/{owner}/{repo}/tags | Create a new git tag in a repository [**repoCreateTagProtection**](RepositoryApi.md#repoCreateTagProtection) | **POST** repos/{owner}/{repo}/tag_protections | Create a tag protections for a repository @@ -87,6 +103,8 @@ Method | HTTP request | Description [**repoGetContents**](RepositoryApi.md#repoGetContents) | **GET** repos/{owner}/{repo}/contents/{filepath} | Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir [**repoGetContentsList**](RepositoryApi.md#repoGetContentsList) | **GET** repos/{owner}/{repo}/contents | Gets the metadata of all the entries of the root dir [**repoGetEditorConfig**](RepositoryApi.md#repoGetEditorConfig) | **GET** repos/{owner}/{repo}/editorconfig/{filepath} | Get the EditorConfig definitions of a file in a repository +[**repoGetFileContents**](RepositoryApi.md#repoGetFileContents) | **GET** repos/{owner}/{repo}/file-contents | Get the metadata and contents of requested files +[**repoGetFileContentsPost**](RepositoryApi.md#repoGetFileContentsPost) | **POST** repos/{owner}/{repo}/file-contents | Get the metadata and contents of requested files [**repoGetGitHook**](RepositoryApi.md#repoGetGitHook) | **GET** repos/{owner}/{repo}/hooks/git/{id} | Get a Git hook [**repoGetHook**](RepositoryApi.md#repoGetHook) | **GET** repos/{owner}/{repo}/hooks/{id} | Get a hook [**repoGetIssueConfig**](RepositoryApi.md#repoGetIssueConfig) | **GET** repos/{owner}/{repo}/issue_config | Returns the issue config for a repo @@ -151,6 +169,7 @@ Method | HTTP request | Description [**repoPushMirrorSync**](RepositoryApi.md#repoPushMirrorSync) | **POST** repos/{owner}/{repo}/push_mirrors-sync | Sync all push mirrored repository [**repoSearch**](RepositoryApi.md#repoSearch) | **GET** repos/search | Search for repositories [**repoSigningKey**](RepositoryApi.md#repoSigningKey) | **GET** repos/{owner}/{repo}/signing-key.gpg | Get signing-key.gpg for given repository +[**repoSigningKeySSH**](RepositoryApi.md#repoSigningKeySSH) | **GET** repos/{owner}/{repo}/signing-key.pub | Get signing-key.pub for given repository [**repoSubmitPullReview**](RepositoryApi.md#repoSubmitPullReview) | **POST** repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Submit a pending review to an pull request [**repoTestHook**](RepositoryApi.md#repoTestHook) | **POST** repos/{owner}/{repo}/hooks/{id}/tests | Test a push webhook [**repoTrackedTimes**](RepositoryApi.md#repoTrackedTimes) | **GET** repos/{owner}/{repo}/times | List a repo's tracked times @@ -255,6 +274,461 @@ Name | Type | Description | Notes [AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **actionsDisableWorkflow** +> Void actionsDisableWorkflow(owner, repo, workflowId) + +Disable a workflow + +### 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 +String workflowId = "workflowId_example"; // String | id of the workflow +try { + Void result = apiInstance.actionsDisableWorkflow(owner, repo, workflowId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#actionsDisableWorkflow"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **workflowId** | **String**| id of the workflow | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +# **actionsDispatchWorkflow** +> Void actionsDispatchWorkflow(owner, repo, workflowId, body) + +Create a workflow dispatch event + +### 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 +String workflowId = "workflowId_example"; // String | id of the workflow +CreateActionWorkflowDispatch body = new CreateActionWorkflowDispatch(); // CreateActionWorkflowDispatch | +try { + Void result = apiInstance.actionsDispatchWorkflow(owner, repo, workflowId, body); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#actionsDispatchWorkflow"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **workflowId** | **String**| id of the workflow | + **body** | [**CreateActionWorkflowDispatch**](CreateActionWorkflowDispatch.md)| | [optional] + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: application/json, text/plain + - **Accept**: Not defined + + +# **actionsEnableWorkflow** +> Void actionsEnableWorkflow(owner, repo, workflowId) + +Enable a workflow + +### 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 +String workflowId = "workflowId_example"; // String | id of the workflow +try { + Void result = apiInstance.actionsEnableWorkflow(owner, repo, workflowId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#actionsEnableWorkflow"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **workflowId** | **String**| id of the workflow | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +# **actionsGetWorkflow** +> ActionWorkflow actionsGetWorkflow(owner, repo, workflowId) + +Get a workflow + +### 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 +String workflowId = "workflowId_example"; // String | id of the workflow +try { + ActionWorkflow result = apiInstance.actionsGetWorkflow(owner, repo, workflowId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#actionsGetWorkflow"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **workflowId** | **String**| id of the workflow | + +### Return type + +[**ActionWorkflow**](ActionWorkflow.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **actionsListRepositoryWorkflows** +> List<ActionWorkflow> actionsListRepositoryWorkflows(owner, repo) + +List repository workflows + +### 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 +try { + List result = apiInstance.actionsListRepositoryWorkflows(owner, repo); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#actionsListRepositoryWorkflows"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + +### Return type + +[**List<ActionWorkflow>**](ActionWorkflow.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 @@ -531,6 +1005,279 @@ Name | Type | Description | Notes - **Content-Type**: application/json, text/plain - **Accept**: Not defined + +# **deleteActionRun** +> Void deleteActionRun(owner, repo, run) + +Delete a workflow run + +### 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 | name of the owner +String repo = "repo_example"; // String | name of the repository +Integer run = 56; // Integer | runid of the workflow run +try { + Void result = apiInstance.deleteActionRun(owner, repo, run); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#deleteActionRun"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| name of the owner | + **repo** | **String**| name of the repository | + **run** | **Integer**| runid of the workflow run | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +# **deleteArtifact** +> Void deleteArtifact(owner, repo, artifactId) + +Deletes a specific artifact for a workflow run + +### 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 | name of the owner +String repo = "repo_example"; // String | name of the repository +String artifactId = "artifactId_example"; // String | id of the artifact +try { + Void result = apiInstance.deleteArtifact(owner, repo, artifactId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#deleteArtifact"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| name of the owner | + **repo** | **String**| name of the repository | + **artifactId** | **String**| id of the artifact | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +# **deleteRepoRunner** +> Void deleteRepoRunner(owner, repo, runnerId) + +Delete an repo-level runner + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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 +String runnerId = "runnerId_example"; // String | id of the runner +try { + Void result = apiInstance.deleteRepoRunner(owner, repo, runnerId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#deleteRepoRunner"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **runnerId** | **String**| id of the runner | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + # **deleteRepoSecret** > Void deleteRepoSecret(owner, repo, secretname) @@ -713,6 +1460,188 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json + +# **downloadActionsRunJobLogs** +> Void downloadActionsRunJobLogs(owner, repo, jobId) + +Downloads the job logs for a workflow run + +### 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 | name of the owner +String repo = "repo_example"; // String | name of the repository +Integer jobId = 56; // Integer | id of the job +try { + Void result = apiInstance.downloadActionsRunJobLogs(owner, repo, jobId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#downloadActionsRunJobLogs"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| name of the owner | + **repo** | **String**| name of the repository | + **jobId** | **Integer**| id of the job | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +# **downloadArtifact** +> Void downloadArtifact(owner, repo, artifactId) + +Downloads a specific artifact for a workflow run redirects to blob url + +### 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 | name of the owner +String repo = "repo_example"; // String | name of the repository +String artifactId = "artifactId_example"; // String | id of the artifact +try { + Void result = apiInstance.downloadArtifact(owner, repo, artifactId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#downloadArtifact"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| name of the owner | + **repo** | **String**| name of the repository | + **artifactId** | **String**| id of the artifact | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + # **generateRepo** > Repository generateRepo(templateOwner, templateRepo, body) @@ -890,6 +1819,281 @@ Name | Type | Description | Notes [AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **getArtifact** +> ActionArtifact getArtifact(owner, repo, artifactId) + +Gets a specific artifact for a workflow run + +### 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 | name of the owner +String repo = "repo_example"; // String | name of the repository +String artifactId = "artifactId_example"; // String | id of the artifact +try { + ActionArtifact result = apiInstance.getArtifact(owner, repo, artifactId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#getArtifact"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| name of the owner | + **repo** | **String**| name of the repository | + **artifactId** | **String**| id of the artifact | + +### Return type + +[**ActionArtifact**](ActionArtifact.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **getArtifacts** +> ActionArtifactsResponse getArtifacts(owner, repo, name) + +Lists all artifacts for a repository + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.RepositoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +RepositoryApi apiInstance = new RepositoryApi(); +String owner = "owner_example"; // String | name of the owner +String repo = "repo_example"; // String | name of the repository +String name = "name_example"; // String | name of the artifact +try { + ActionArtifactsResponse result = apiInstance.getArtifacts(owner, repo, name); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#getArtifacts"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| name of the owner | + **repo** | **String**| name of the repository | + **name** | **String**| name of the artifact | [optional] + +### Return type + +[**ActionArtifactsResponse**](ActionArtifactsResponse.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **getArtifactsOfRun** +> ActionArtifactsResponse getArtifactsOfRun(owner, repo, run, name) + +Lists all artifacts for a repository run + +### 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 | name of the owner +String repo = "repo_example"; // String | name of the repository +Integer run = 56; // Integer | runid of the workflow run +String name = "name_example"; // String | name of the artifact +try { + ActionArtifactsResponse result = apiInstance.getArtifactsOfRun(owner, repo, run, name); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#getArtifactsOfRun"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| name of the owner | + **repo** | **String**| name of the repository | + **run** | **Integer**| runid of the workflow run | + **name** | **String**| name of the artifact | [optional] + +### Return type + +[**ActionArtifactsResponse**](ActionArtifactsResponse.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 @@ -986,6 +2190,186 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json + +# **getRepoRunner** +> Void getRepoRunner(owner, repo, runnerId) + +Get an repo-level runner + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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 +String runnerId = "runnerId_example"; // String | id of the runner +try { + Void result = apiInstance.getRepoRunner(owner, repo, runnerId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#getRepoRunner"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **runnerId** | **String**| id of the runner | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +# **getRepoRunners** +> Void getRepoRunners(owner, repo) + +Get repo-level runners + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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 +try { + Void result = apiInstance.getRepoRunners(owner, repo); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#getRepoRunners"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + # **getRepoVariable** > ActionVariable getRepoVariable(owner, repo, variablename) @@ -3469,6 +4853,95 @@ Name | Type | Description | Notes - **Content-Type**: multipart/form-data, application/octet-stream - **Accept**: application/json + +# **repoCreateRunnerRegistrationToken** +> Void repoCreateRunnerRegistrationToken(owner, repo) + +Get a repository's actions runner registration token + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.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 +try { + Void result = apiInstance.repoCreateRunnerRegistrationToken(owner, repo); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#repoCreateRunnerRegistrationToken"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + # **repoCreateStatus** > CommitStatus repoCreateStatus(owner, repo, sha, body) @@ -6870,7 +8343,7 @@ Name | Type | Description | Notes # **repoGetAllCommits** -> List<Commit> repoGetAllCommits(owner, repo, sha, path, stat, verification, files, page, limit, not) +> List<Commit> repoGetAllCommits(owner, repo, sha, path, since, until, stat, verification, files, page, limit, not) Get a list of all commits from a repository @@ -6930,6 +8403,8 @@ String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo String sha = "sha_example"; // String | SHA or branch to start listing commits from (usually 'master') String path = "path_example"; // String | filepath of a file/dir +Date since = new Date(); // Date | Only commits after this date will be returned (ISO 8601 format) +Date until = new Date(); // Date | Only commits before this date will be returned (ISO 8601 format) Boolean stat = true; // Boolean | include diff stats for every commit (disable for speedup, default 'true') Boolean verification = true; // Boolean | include verification for every commit (disable for speedup, default 'true') Boolean files = true; // Boolean | include a list of affected files for every commit (disable for speedup, default 'true') @@ -6937,7 +8412,7 @@ Integer page = 56; // Integer | page number of results to return (1-based) Integer limit = 56; // Integer | page size of results (ignored if used with 'path') String not = "not_example"; // String | commits that match the given specifier will not be listed. try { - List result = apiInstance.repoGetAllCommits(owner, repo, sha, path, stat, verification, files, page, limit, not); + List result = apiInstance.repoGetAllCommits(owner, repo, sha, path, since, until, stat, verification, files, page, limit, not); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RepositoryApi#repoGetAllCommits"); @@ -6953,6 +8428,8 @@ Name | Type | Description | Notes **repo** | **String**| name of the repo | **sha** | **String**| SHA or branch to start listing commits from (usually 'master') | [optional] **path** | **String**| filepath of a file/dir | [optional] + **since** | **Date**| Only commits after this date will be returned (ISO 8601 format) | [optional] + **until** | **Date**| Only commits before this date will be returned (ISO 8601 format) | [optional] **stat** | **Boolean**| include diff stats for every commit (disable for speedup, default 'true') | [optional] **verification** | **Boolean**| include verification for every commit (disable for speedup, default 'true') | [optional] **files** | **Boolean**| include a list of affected files for every commit (disable for speedup, default 'true') | [optional] @@ -7669,7 +9146,7 @@ RepositoryApi apiInstance = new RepositoryApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo String filepath = "filepath_example"; // String | path of the dir, file, symlink or submodule in the repo -String ref = "ref_example"; // String | The name of the commit/branch/tag. Default the repository’s default branch (usually master) +String ref = "ref_example"; // String | The name of the commit/branch/tag. Default to the repository’s default branch. try { ContentsResponse result = apiInstance.repoGetContents(owner, repo, filepath, ref); System.out.println(result); @@ -7686,7 +9163,7 @@ Name | Type | Description | Notes **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | **filepath** | **String**| path of the dir, file, symlink or submodule in the repo | - **ref** | **String**| The name of the commit/branch/tag. Default the repository’s default branch (usually master) | [optional] + **ref** | **String**| The name of the commit/branch/tag. Default to the repository’s default branch. | [optional] ### Return type @@ -7761,7 +9238,7 @@ Token.setApiKey("YOUR API KEY"); RepositoryApi apiInstance = new RepositoryApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo -String ref = "ref_example"; // String | The name of the commit/branch/tag. Default the repository’s default branch (usually master) +String ref = "ref_example"; // String | The name of the commit/branch/tag. Default to the repository’s default branch. try { List result = apiInstance.repoGetContentsList(owner, repo, ref); System.out.println(result); @@ -7777,7 +9254,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | - **ref** | **String**| The name of the commit/branch/tag. Default the repository’s default branch (usually master) | [optional] + **ref** | **String**| The name of the commit/branch/tag. Default to the repository’s default branch. | [optional] ### Return type @@ -7853,7 +9330,7 @@ RepositoryApi apiInstance = new RepositoryApi(); String owner = "owner_example"; // String | owner of the repo String repo = "repo_example"; // String | name of the repo String filepath = "filepath_example"; // String | filepath of file to get -String ref = "ref_example"; // String | The name of the commit/branch/tag. Default the repository’s default branch (usually master) +String ref = "ref_example"; // String | The name of the commit/branch/tag. Default to the repository’s default branch. try { Void result = apiInstance.repoGetEditorConfig(owner, repo, filepath, ref); System.out.println(result); @@ -7870,7 +9347,7 @@ Name | Type | Description | Notes **owner** | **String**| owner of the repo | **repo** | **String**| name of the repo | **filepath** | **String**| filepath of file to get | - **ref** | **String**| The name of the commit/branch/tag. Default the repository’s default branch (usually master) | [optional] + **ref** | **String**| The name of the commit/branch/tag. Default to the repository’s default branch. | [optional] ### Return type @@ -7885,6 +9362,196 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: Not defined + +# **repoGetFileContents** +> List<ContentsResponse> repoGetFileContents(owner, repo, body, ref) + +Get the metadata and contents of requested files + +See the POST method. This GET method supports to use JSON encoded request body in query parameter. + +### 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 +String body = "body_example"; // String | The JSON encoded body (see the POST request): {\"files\": [\"filename1\", \"filename2\"]} +String ref = "ref_example"; // String | The name of the commit/branch/tag. Default to the repository’s default branch. +try { + List result = apiInstance.repoGetFileContents(owner, repo, body, ref); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#repoGetFileContents"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **body** | **String**| The JSON encoded body (see the POST request): {\"files\": [\"filename1\", \"filename2\"]} | + **ref** | **String**| The name of the commit/branch/tag. Default to the repository’s default branch. | [optional] + +### Return type + +[**List<ContentsResponse>**](ContentsResponse.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **repoGetFileContentsPost** +> List<ContentsResponse> repoGetFileContentsPost(body, owner, repo, ref) + +Get the metadata and contents of requested files + +Uses automatic pagination based on default page size and max response size and returns the maximum allowed number of files. Files which could not be retrieved are null. Files which are too large are being returned with `encoding == null`, `content == null` and `size > 0`, they can be requested separately by using the `download_url`. + +### 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(); +GetFilesOptions body = new GetFilesOptions(); // GetFilesOptions | +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +String ref = "ref_example"; // String | The name of the commit/branch/tag. Default to the repository’s default branch. +try { + List result = apiInstance.repoGetFileContentsPost(body, owner, repo, ref); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#repoGetFileContentsPost"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**GetFilesOptions**](GetFilesOptions.md)| | + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + **ref** | **String**| The name of the commit/branch/tag. Default to the repository’s default branch. | [optional] + +### Return type + +[**List<ContentsResponse>**](ContentsResponse.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 + # **repoGetGitHook** > GitHook repoGetGitHook(owner, repo, id) @@ -11745,7 +13412,7 @@ Name | Type | Description | Notes # **repoListPullRequests** -> List<PullRequest> repoListPullRequests(owner, repo, state, sort, milestone, labels, poster, page, limit) +> List<PullRequest> repoListPullRequests(owner, repo, baseBranch, state, sort, milestone, labels, poster, page, limit) List a repo's pull requests @@ -11803,6 +13470,7 @@ Token.setApiKey("YOUR API KEY"); RepositoryApi apiInstance = new RepositoryApi(); String owner = "owner_example"; // String | Owner of the repo String repo = "repo_example"; // String | Name of the repo +String baseBranch = "baseBranch_example"; // String | Filter by target base branch of the pull request String state = "open"; // String | State of pull request String sort = "sort_example"; // String | Type of sort Long milestone = 789L; // Long | ID of the milestone @@ -11811,7 +13479,7 @@ String poster = "poster_example"; // String | Filter by pull request author Integer page = 1; // Integer | Page number of results to return (1-based) Integer limit = 56; // Integer | Page size of results try { - List result = apiInstance.repoListPullRequests(owner, repo, state, sort, milestone, labels, poster, page, limit); + List result = apiInstance.repoListPullRequests(owner, repo, baseBranch, state, sort, milestone, labels, poster, page, limit); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RepositoryApi#repoListPullRequests"); @@ -11825,8 +13493,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| Owner of the repo | **repo** | **String**| Name of the repo | + **baseBranch** | **String**| Filter by target base branch of the pull request | [optional] **state** | **String**| State of pull request | [optional] [default to open] [enum: open, closed, all] - **sort** | **String**| Type of sort | [optional] [enum: oldest, recentupdate, leastupdate, mostcomment, leastcomment, priority] + **sort** | **String**| Type of sort | [optional] [enum: oldest, recentupdate, recentclose, leastupdate, mostcomment, leastcomment, priority] **milestone** | **Long**| ID of the milestone | [optional] **labels** | [**List<Long>**](Long.md)| Label IDs | [optional] **poster** | **String**| Filter by pull request author | [optional] @@ -13802,6 +15471,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**: Not defined + - **Accept**: text/plain + + +# **repoSigningKeySSH** +> String repoSigningKeySSH(owner, repo) + +Get signing-key.pub for given repository + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.RepositoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +RepositoryApi apiInstance = new RepositoryApi(); +String owner = "owner_example"; // String | owner of the repo +String repo = "repo_example"; // String | name of the repo +try { + String result = apiInstance.repoSigningKeySSH(owner, repo); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#repoSigningKeySSH"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repo | + +### Return type + +**String** + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + ### HTTP request headers - **Content-Type**: Not defined diff --git a/docs/Secret.md b/docs/Secret.md index f71cb49..2bf13ef 100644 --- a/docs/Secret.md +++ b/docs/Secret.md @@ -4,4 +4,5 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | [**Date**](Date.md) | | [optional] +**description** | **String** | the secret's description | [optional] **name** | **String** | the secret's name | [optional] diff --git a/docs/UpdateVariableOption.md b/docs/UpdateVariableOption.md index 0929dbe..6743b84 100644 --- a/docs/UpdateVariableOption.md +++ b/docs/UpdateVariableOption.md @@ -3,5 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**description** | **String** | Description of the variable to update | [optional] **name** | **String** | New name for the variable. If the field is empty, the variable name won't be updated. | [optional] **value** | **String** | Value of the variable to update | diff --git a/docs/UserApi.md b/docs/UserApi.md index 306fbc8..b62b0d8 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -6,8 +6,11 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**createCurrentUserRepo**](UserApi.md#createCurrentUserRepo) | **POST** user/repos | Create a repository [**createUserVariable**](UserApi.md#createUserVariable) | **POST** user/actions/variables/{variablename} | Create a user-level variable +[**deleteUserRunner**](UserApi.md#deleteUserRunner) | **DELETE** user/actions/runners/{runner_id} | Delete an user-level runner [**deleteUserSecret**](UserApi.md#deleteUserSecret) | **DELETE** user/actions/secrets/{secretname} | Delete a secret in a user scope [**deleteUserVariable**](UserApi.md#deleteUserVariable) | **DELETE** user/actions/variables/{variablename} | Delete a user-level variable which is created by current doer +[**getUserRunner**](UserApi.md#getUserRunner) | **GET** user/actions/runners/{runner_id} | Get an user-level runner +[**getUserRunners**](UserApi.md#getUserRunners) | **GET** user/actions/runners | Get user-level runners [**getUserSettings**](UserApi.md#getUserSettings) | **GET** user/settings | Get user settings [**getUserVariable**](UserApi.md#getUserVariable) | **GET** user/actions/variables/{variablename} | Get a user-level variable which is created by current doer [**getUserVariablesList**](UserApi.md#getUserVariablesList) | **GET** user/actions/variables | Get the user-level list of variables which is created by current doer @@ -21,6 +24,7 @@ Method | HTTP request | Description [**userCheckUserBlock**](UserApi.md#userCheckUserBlock) | **GET** user/blocks/{username} | Check if a user is blocked by the authenticated user [**userCreateHook**](UserApi.md#userCreateHook) | **POST** user/hooks | Create a hook [**userCreateOAuth2Application**](UserApi.md#userCreateOAuth2Application) | **POST** user/applications/oauth2 | creates a new OAuth2 application +[**userCreateRunnerRegistrationToken**](UserApi.md#userCreateRunnerRegistrationToken) | **POST** user/actions/runners/registration-token | Get an user's actions runner registration token [**userCreateToken**](UserApi.md#userCreateToken) | **POST** users/{username}/tokens | Create an access token [**userCurrentCheckFollowing**](UserApi.md#userCurrentCheckFollowing) | **GET** user/following/{username} | Check whether a user is followed by the authenticated user [**userCurrentCheckStarring**](UserApi.md#userCurrentCheckStarring) | **GET** user/starred/{owner}/{repo} | Whether the authenticated is starring the repo @@ -251,6 +255,93 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: Not defined + +# **deleteUserRunner** +> Void deleteUserRunner(runnerId) + +Delete an user-level runner + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.UserApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +UserApi apiInstance = new UserApi(); +String runnerId = "runnerId_example"; // String | id of the runner +try { + Void result = apiInstance.deleteUserRunner(runnerId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserApi#deleteUserRunner"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **runnerId** | **String**| id of the runner | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + # **deleteUserSecret** > Void deleteUserSecret(secretname) @@ -420,6 +511,176 @@ Name | Type | Description | Notes [AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +# **getUserRunner** +> Void getUserRunner(runnerId) + +Get an user-level runner + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.UserApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +UserApi apiInstance = new UserApi(); +String runnerId = "runnerId_example"; // String | id of the runner +try { + Void result = apiInstance.getUserRunner(runnerId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserApi#getUserRunner"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **runnerId** | **String**| id of the runner | + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +# **getUserRunners** +> Void getUserRunners() + +Get user-level runners + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.UserApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +UserApi apiInstance = new UserApi(); +try { + Void result = apiInstance.getUserRunners(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserApi#getUserRunners"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + ### HTTP request headers - **Content-Type**: Not defined @@ -1558,6 +1819,89 @@ Name | Type | Description | Notes - **Content-Type**: application/json, text/plain - **Accept**: application/json + +# **userCreateRunnerRegistrationToken** +> Void userCreateRunnerRegistrationToken() + +Get an user's actions runner registration token + +### Example +```java +// Import classes: +//import org.gitnex.tea4j.v2.ApiClient; +//import org.gitnex.tea4j.v2.ApiException; +//import org.gitnex.tea4j.v2.Configuration; +//import org.gitnex.tea4j.v2.auth.*; +//import org.gitnex.tea4j.v2.apis.UserApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: AccessToken +ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken"); +AccessToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AccessToken.setApiKeyPrefix("Token"); + +// Configure API key authorization: AuthorizationHeaderToken +ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken"); +AuthorizationHeaderToken.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//AuthorizationHeaderToken.setApiKeyPrefix("Token"); +// Configure HTTP basic authorization: BasicAuth +HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); +BasicAuth.setUsername("YOUR USERNAME"); +BasicAuth.setPassword("YOUR PASSWORD"); + +// Configure API key authorization: SudoHeader +ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader"); +SudoHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: SudoParam +ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam"); +SudoParam.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//SudoParam.setApiKeyPrefix("Token"); + +// Configure API key authorization: TOTPHeader +ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader"); +TOTPHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//TOTPHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: Token +ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token"); +Token.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//Token.setApiKeyPrefix("Token"); + +UserApi apiInstance = new UserApi(); +try { + Void result = apiInstance.userCreateRunnerRegistrationToken(); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UserApi#userCreateRunnerRegistrationToken"); + e.printStackTrace(); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**Void**](.md) + +### Authorization + +[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + # **userCreateToken** > AccessToken userCreateToken(username, body) diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java index 82360b0..9e136d9 100644 --- a/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java +++ b/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java @@ -92,6 +92,14 @@ public interface AdminApi { Call adminCreateRepo( @retrofit2.http.Body CreateRepoOption body, @retrofit2.http.Path("username") String username); + /** + * Get an global actions runner registration token + * + * @return Call<Void> + */ + @POST("admin/actions/runners/registration-token") + Call adminCreateRunnerRegistrationToken(); + /** * Create a user * @@ -318,4 +326,30 @@ public interface AdminApi { @retrofit2.http.Query("page") Integer page, @retrofit2.http.Query("limit") Integer limit, @retrofit2.http.Query("pattern") String pattern); + + /** + * Delete an global runner + * + * @param runnerId id of the runner (required) + * @return Call<Void> + */ + @DELETE("admin/actions/runners/{runner_id}") + Call deleteAdminRunner(@retrofit2.http.Path("runner_id") String runnerId); + + /** + * Get an global runner + * + * @param runnerId id of the runner (required) + * @return Call<Void> + */ + @GET("admin/actions/runners/{runner_id}") + Call getAdminRunner(@retrofit2.http.Path("runner_id") String runnerId); + + /** + * Get all runners + * + * @return Call<Void> + */ + @GET("admin/actions/runners") + Call getAdminRunners(); } diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/IssueApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/IssueApi.java index a4a5010..b56cae5 100644 --- a/src/main/java/org/gitnex/tea4j/v2/apis/IssueApi.java +++ b/src/main/java/org/gitnex/tea4j/v2/apis/IssueApi.java @@ -23,6 +23,7 @@ import org.gitnex.tea4j.v2.models.IssueDeadline; import org.gitnex.tea4j.v2.models.IssueLabelsOption; import org.gitnex.tea4j.v2.models.IssueMeta; import org.gitnex.tea4j.v2.models.Label; +import org.gitnex.tea4j.v2.models.LockIssueOption; import org.gitnex.tea4j.v2.models.Milestone; import org.gitnex.tea4j.v2.models.Reaction; import org.gitnex.tea4j.v2.models.TimelineComment; @@ -916,6 +917,23 @@ public interface IssueApi { @retrofit2.http.Query("page") Integer page, @retrofit2.http.Query("limit") Integer limit); + /** + * Lock an issue + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param index index of the issue (required) + * @param body (optional) + * @return Call<Void> + */ + @Headers({"Content-Type:application/json"}) + @PUT("repos/{owner}/{repo}/issues/{index}/lock") + Call issueLockIssue( + @retrofit2.http.Path("owner") String owner, + @retrofit2.http.Path("repo") String repo, + @retrofit2.http.Path("index") Long index, + @retrofit2.http.Body LockIssueOption body); + /** * Add a reaction to a comment of an issue * @@ -1152,6 +1170,20 @@ public interface IssueApi { @retrofit2.http.Query("page") Integer page, @retrofit2.http.Query("limit") Integer limit); + /** + * Unlock an issue + * + * @param owner owner of the repo (required) + * @param repo name of the repo (required) + * @param index index of the issue (required) + * @return Call<Void> + */ + @DELETE("repos/{owner}/{repo}/issues/{index}/lock") + Call issueUnlockIssue( + @retrofit2.http.Path("owner") String owner, + @retrofit2.http.Path("repo") String repo, + @retrofit2.http.Path("index") Long index); + /** * Moves the Pin to the given Position * diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/MiscellaneousApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/MiscellaneousApi.java index 78622bf..be26b4c 100644 --- a/src/main/java/org/gitnex/tea4j/v2/apis/MiscellaneousApi.java +++ b/src/main/java/org/gitnex/tea4j/v2/apis/MiscellaneousApi.java @@ -57,6 +57,14 @@ public interface MiscellaneousApi { @GET("signing-key.gpg") Call getSigningKey(); + /** + * Get default signing-key.pub + * + * @return Call<String> + */ + @GET("signing-key.pub") + Call getSigningKeySSH(); + /** * Returns the version of the Gitea application * diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java index 7b03162..c576f4e 100644 --- a/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java +++ b/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java @@ -21,6 +21,7 @@ import org.gitnex.tea4j.v2.models.InlineResponse200; import org.gitnex.tea4j.v2.models.Label; import org.gitnex.tea4j.v2.models.Organization; import org.gitnex.tea4j.v2.models.OrganizationPermissions; +import org.gitnex.tea4j.v2.models.RenameOrgOption; import org.gitnex.tea4j.v2.models.Repository; import org.gitnex.tea4j.v2.models.Secret; import org.gitnex.tea4j.v2.models.Team; @@ -70,6 +71,17 @@ public interface OrganizationApi { @retrofit2.http.Path("variablename") String variablename, @retrofit2.http.Body CreateVariableOption body); + /** + * Delete an org-level runner + * + * @param org name of the organization (required) + * @param runnerId id of the runner (required) + * @return Call<Void> + */ + @DELETE("orgs/{org}/actions/runners/{runner_id}") + Call deleteOrgRunner( + @retrofit2.http.Path("org") String org, @retrofit2.http.Path("runner_id") String runnerId); + /** * Delete a secret in an organization * @@ -93,6 +105,26 @@ public interface OrganizationApi { @retrofit2.http.Path("org") String org, @retrofit2.http.Path("variablename") String variablename); + /** + * Get an org-level runner + * + * @param org name of the organization (required) + * @param runnerId id of the runner (required) + * @return Call<Void> + */ + @GET("orgs/{org}/actions/runners/{runner_id}") + Call getOrgRunner( + @retrofit2.http.Path("org") String org, @retrofit2.http.Path("runner_id") String runnerId); + + /** + * Get org-level runners + * + * @param org name of the organization (required) + * @return Call<Void> + */ + @GET("orgs/{org}/actions/runners") + Call getOrgRunners(@retrofit2.http.Path("org") String org); + /** * Get an org-level variable * @@ -189,6 +221,15 @@ public interface OrganizationApi { Call