diff --git a/docs/AdminApi.md b/docs/AdminApi.md index ab1df87..429d717 100644 --- a/docs/AdminApi.md +++ b/docs/AdminApi.md @@ -24,7 +24,6 @@ Method | HTTP request | Description [**adminGetAllEmails**](AdminApi.md#adminGetAllEmails) | **GET** admin/emails | List all emails [**adminGetAllOrgs**](AdminApi.md#adminGetAllOrgs) | **GET** admin/orgs | List all organizations [**adminGetHook**](AdminApi.md#adminGetHook) | **GET** admin/hooks/{id} | Get a hook -[**adminGetRunnerRegistrationToken**](AdminApi.md#adminGetRunnerRegistrationToken) | **GET** admin/runners/registration-token | Get a global actions runner registration token [**adminListHooks**](AdminApi.md#adminListHooks) | **GET** admin/hooks | List system's webhooks [**adminListUserBadges**](AdminApi.md#adminListUserBadges) | **GET** admin/users/{username}/badges | List a user's badges [**adminRenameUser**](AdminApi.md#adminRenameUser) | **POST** admin/users/{username}/rename | Rename a user @@ -1801,89 +1800,6 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json - -# **adminGetRunnerRegistrationToken** -> Void adminGetRunnerRegistrationToken() - -Get a 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.adminGetRunnerRegistrationToken(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdminApi#adminGetRunnerRegistrationToken"); - 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 - # **adminListHooks** > List<Hook> adminListHooks(page, limit, type) diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md index 1e2d80b..c1029eb 100644 --- a/docs/OrganizationApi.md +++ b/docs/OrganizationApi.md @@ -38,7 +38,6 @@ Method | HTTP request | Description [**orgGetAll**](OrganizationApi.md#orgGetAll) | **GET** orgs | Get list of organizations [**orgGetHook**](OrganizationApi.md#orgGetHook) | **GET** orgs/{org}/hooks/{id} | Get a hook [**orgGetLabel**](OrganizationApi.md#orgGetLabel) | **GET** orgs/{org}/labels/{id} | Get a single label -[**orgGetRunnerRegistrationToken**](OrganizationApi.md#orgGetRunnerRegistrationToken) | **GET** orgs/{org}/actions/runners/registration-token | Get an organization's actions runner registration token [**orgGetTeam**](OrganizationApi.md#orgGetTeam) | **GET** teams/{id} | Get a team [**orgGetUserPermissions**](OrganizationApi.md#orgGetUserPermissions) | **GET** users/{username}/orgs/{org}/permissions | Get user permissions in organization [**orgIsMember**](OrganizationApi.md#orgIsMember) | **GET** orgs/{org}/members/{username} | Check if a user is a member of an organization @@ -3109,93 +3108,6 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json - -# **orgGetRunnerRegistrationToken** -> Void orgGetRunnerRegistrationToken(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.orgGetRunnerRegistrationToken(org); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#orgGetRunnerRegistrationToken"); - 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 - # **orgGetTeam** > Team orgGetTeam(id) diff --git a/docs/RepositoryApi.md b/docs/RepositoryApi.md index 42c92dc..428e975 100644 --- a/docs/RepositoryApi.md +++ b/docs/RepositoryApi.md @@ -134,7 +134,6 @@ Method | HTTP request | Description [**repoGetReleaseByTag**](RepositoryApi.md#repoGetReleaseByTag) | **GET** repos/{owner}/{repo}/releases/tags/{tag} | Get a release by tag name [**repoGetRepoPermissions**](RepositoryApi.md#repoGetRepoPermissions) | **GET** repos/{owner}/{repo}/collaborators/{collaborator}/permission | Get repository permissions for a user [**repoGetReviewers**](RepositoryApi.md#repoGetReviewers) | **GET** repos/{owner}/{repo}/reviewers | Return all users that can be requested to review in this repo -[**repoGetRunnerRegistrationToken**](RepositoryApi.md#repoGetRunnerRegistrationToken) | **GET** repos/{owner}/{repo}/actions/runners/registration-token | Get a repository's actions runner registration token [**repoGetSingleCommit**](RepositoryApi.md#repoGetSingleCommit) | **GET** repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository [**repoGetTag**](RepositoryApi.md#repoGetTag) | **GET** repos/{owner}/{repo}/tags/{tag} | Get the tag of a repository by tag name [**repoGetTagProtection**](RepositoryApi.md#repoGetTagProtection) | **GET** repos/{owner}/{repo}/tag_protections/{id} | Get a specific tag protection for the repository @@ -191,6 +190,8 @@ Method | HTTP request | Description [**repoUpdatePullRequest**](RepositoryApi.md#repoUpdatePullRequest) | **POST** repos/{owner}/{repo}/pulls/{index}/update | Merge PR's baseBranch into headBranch [**repoUpdateTopics**](RepositoryApi.md#repoUpdateTopics) | **PUT** repos/{owner}/{repo}/topics | Replace list of topics for a repository [**repoValidateIssueConfig**](RepositoryApi.md#repoValidateIssueConfig) | **GET** repos/{owner}/{repo}/issue_config/validate | Returns the validation information for a issue config +[**rerunWorkflowJob**](RepositoryApi.md#rerunWorkflowJob) | **POST** repos/{owner}/{repo}/actions/runs/{run}/jobs/{job_id}/rerun | Reruns a specific workflow job in a run +[**rerunWorkflowRun**](RepositoryApi.md#rerunWorkflowRun) | **POST** repos/{owner}/{repo}/actions/runs/{run}/rerun | Reruns an entire workflow run [**topicSearch**](RepositoryApi.md#topicSearch) | **GET** topics/search | search topics via keyword [**updateRepoSecret**](RepositoryApi.md#updateRepoSecret) | **PUT** repos/{owner}/{repo}/actions/secrets/{secretname} | Create or Update a secret value in a repository [**updateRepoVariable**](RepositoryApi.md#updateRepoVariable) | **PUT** repos/{owner}/{repo}/actions/variables/{variablename} | Update a repo-level variable @@ -12256,95 +12257,6 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json - -# **repoGetRunnerRegistrationToken** -> Void repoGetRunnerRegistrationToken(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.repoGetRunnerRegistrationToken(owner, repo); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RepositoryApi#repoGetRunnerRegistrationToken"); - 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 - # **repoGetSingleCommit** > Commit repoGetSingleCommit(owner, repo, sha, stat, verification, files) @@ -17538,6 +17450,190 @@ 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 + + +# **rerunWorkflowJob** +> ActionWorkflowJob rerunWorkflowJob(owner, repo, run, jobId) + +Reruns a specific workflow job in a 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 | owner of the repo +String repo = "repo_example"; // String | name of the repository +Integer run = 56; // Integer | id of the run +Integer jobId = 56; // Integer | id of the job +try { + ActionWorkflowJob result = apiInstance.rerunWorkflowJob(owner, repo, run, jobId); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#rerunWorkflowJob"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repository | + **run** | **Integer**| id of the run | + **jobId** | **Integer**| id of the job | + +### Return type + +[**ActionWorkflowJob**](ActionWorkflowJob.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 + + +# **rerunWorkflowRun** +> ActionWorkflowRun rerunWorkflowRun(owner, repo, run) + +Reruns an entire 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 | owner of the repo +String repo = "repo_example"; // String | name of the repository +Integer run = 56; // Integer | id of the run +try { + ActionWorkflowRun result = apiInstance.rerunWorkflowRun(owner, repo, run); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling RepositoryApi#rerunWorkflowRun"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| owner of the repo | + **repo** | **String**| name of the repository | + **run** | **Integer**| id of the run | + +### Return type + +[**ActionWorkflowRun**](ActionWorkflowRun.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 diff --git a/docs/UserApi.md b/docs/UserApi.md index c3799c5..935a24a 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -60,7 +60,6 @@ Method | HTTP request | Description [**userGetHook**](UserApi.md#userGetHook) | **GET** user/hooks/{id} | Get a hook [**userGetOAuth2Application**](UserApi.md#userGetOAuth2Application) | **GET** user/applications/oauth2/{id} | get an OAuth2 Application [**userGetOauth2Application**](UserApi.md#userGetOauth2Application) | **GET** user/applications/oauth2 | List the authenticated user's oauth2 applications -[**userGetRunnerRegistrationToken**](UserApi.md#userGetRunnerRegistrationToken) | **GET** user/actions/runners/registration-token | Get an user's actions runner registration token [**userGetStopWatches**](UserApi.md#userGetStopWatches) | **GET** user/stopwatches | Get list of all existing stopwatches [**userGetTokens**](UserApi.md#userGetTokens) | **GET** users/{username}/tokens | List the authenticated user's access tokens [**userListActivityFeeds**](UserApi.md#userListActivityFeeds) | **GET** users/{username}/activities/feeds | List a user's activity feeds @@ -4993,89 +4992,6 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json - -# **userGetRunnerRegistrationToken** -> Void userGetRunnerRegistrationToken() - -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.userGetRunnerRegistrationToken(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling UserApi#userGetRunnerRegistrationToken"); - 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 - # **userGetStopWatches** > List<StopWatch> userGetStopWatches(page, limit) 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 920a85d..f800c8e 100644 --- a/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java +++ b/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java @@ -242,14 +242,6 @@ public interface AdminApi { @GET("admin/hooks/{id}") Call adminGetHook(@retrofit2.http.Path("id") Long id); - /** - * Get a global actions runner registration token - * - * @return Call<Void> - */ - @GET("admin/runners/registration-token") - Call adminGetRunnerRegistrationToken(); - /** * List system's webhooks * 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 bbe88c6..80108e9 100644 --- a/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java +++ b/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java @@ -441,15 +441,6 @@ public interface OrganizationApi { Call