diff --git a/docs/ActionRunner.md b/docs/ActionRunner.md
index fbc6646..519b0c7 100644
--- a/docs/ActionRunner.md
+++ b/docs/ActionRunner.md
@@ -4,6 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**busy** | **Boolean** | | [optional]
+**disabled** | **Boolean** | | [optional]
**ephemeral** | **Boolean** | | [optional]
**id** | **Long** | | [optional]
**labels** | [**List<ActionRunnerLabel>**](ActionRunnerLabel.md) | | [optional]
diff --git a/docs/AdminApi.md b/docs/AdminApi.md
index 429d717..de03fc8 100644
--- a/docs/AdminApi.md
+++ b/docs/AdminApi.md
@@ -35,6 +35,7 @@ Method | HTTP request | Description
[**getAdminRunners**](AdminApi.md#getAdminRunners) | **GET** admin/actions/runners | Get all runners
[**listAdminWorkflowJobs**](AdminApi.md#listAdminWorkflowJobs) | **GET** admin/actions/jobs | Lists all jobs
[**listAdminWorkflowRuns**](AdminApi.md#listAdminWorkflowRuns) | **GET** admin/actions/runs | Lists all runs
+[**updateAdminRunner**](AdminApi.md#updateAdminRunner) | **PATCH** admin/actions/runners/{runner_id} | Update a global runner
# **adminAddUserBadges**
@@ -2536,7 +2537,7 @@ Name | Type | Description | Notes
# **getAdminRunners**
-> Void getAdminRunners()
+> Void getAdminRunners(disabled)
Get all runners
@@ -2592,8 +2593,9 @@ Token.setApiKey("YOUR API KEY");
//Token.setApiKeyPrefix("Token");
AdminApi apiInstance = new AdminApi();
+Boolean disabled = true; // Boolean | filter by disabled status (true or false)
try {
- Void result = apiInstance.getAdminRunners();
+ Void result = apiInstance.getAdminRunners(disabled);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#getAdminRunners");
@@ -2602,7 +2604,10 @@ try {
```
### Parameters
-This endpoint does not need any parameter.
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **disabled** | **Boolean**| filter by disabled status (true or false) | [optional]
### Return type
@@ -2807,3 +2812,92 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/json
+
+# **updateAdminRunner**
+> Void updateAdminRunner(runnerId, body)
+
+Update a 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
+EditActionRunnerOption body = new EditActionRunnerOption(); // EditActionRunnerOption |
+try {
+ Void result = apiInstance.updateAdminRunner(runnerId, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling AdminApi#updateAdminRunner");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **runnerId** | **String**| id of the runner |
+ **body** | [**EditActionRunnerOption**](EditActionRunnerOption.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
+
diff --git a/docs/EditActionRunnerOption.md b/docs/EditActionRunnerOption.md
new file mode 100644
index 0000000..425cb75
--- /dev/null
+++ b/docs/EditActionRunnerOption.md
@@ -0,0 +1,6 @@
+# EditActionRunnerOption
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**disabled** | **Boolean** | |
diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md
index c1029eb..8505c1d 100644
--- a/docs/OrganizationApi.md
+++ b/docs/OrganizationApi.md
@@ -67,6 +67,7 @@ Method | HTTP request | Description
[**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
+[**updateOrgRunner**](OrganizationApi.md#updateOrgRunner) | **PATCH** orgs/{org}/actions/runners/{runner_id} | Update an org-level runner
[**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
@@ -697,7 +698,7 @@ Name | Type | Description | Notes
# **getOrgRunners**
-> Void getOrgRunners(org)
+> Void getOrgRunners(org, disabled)
Get org-level runners
@@ -754,8 +755,9 @@ Token.setApiKey("YOUR API KEY");
OrganizationApi apiInstance = new OrganizationApi();
String org = "org_example"; // String | name of the organization
+Boolean disabled = true; // Boolean | filter by disabled status (true or false)
try {
- Void result = apiInstance.getOrgRunners(org);
+ Void result = apiInstance.getOrgRunners(org, disabled);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrganizationApi#getOrgRunners");
@@ -768,6 +770,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**org** | **String**| name of the organization |
+ **disabled** | **Boolean**| filter by disabled status (true or false) | [optional]
### Return type
@@ -5731,6 +5734,97 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/json
+
+# **updateOrgRunner**
+> Void updateOrgRunner(org, runnerId, body)
+
+Update 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
+EditActionRunnerOption body = new EditActionRunnerOption(); // EditActionRunnerOption |
+try {
+ Void result = apiInstance.updateOrgRunner(org, runnerId, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#updateOrgRunner");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org** | **String**| name of the organization |
+ **runnerId** | **String**| id of the runner |
+ **body** | [**EditActionRunnerOption**](EditActionRunnerOption.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
+
# **updateOrgSecret**
> Void updateOrgSecret(org, secretname, body)
diff --git a/docs/RepositoryApi.md b/docs/RepositoryApi.md
index ef54a09..37e61d9 100644
--- a/docs/RepositoryApi.md
+++ b/docs/RepositoryApi.md
@@ -15,7 +15,7 @@ Method | HTTP request | Description
[**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
+[**deleteRepoRunner**](RepositoryApi.md#deleteRepoRunner) | **DELETE** repos/{owner}/{repo}/actions/runners/{runner_id} | Delete a 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
@@ -26,7 +26,7 @@ Method | HTTP request | Description
[**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
+[**getRepoRunner**](RepositoryApi.md#getRepoRunner) | **GET** repos/{owner}/{repo}/actions/runners/{runner_id} | Get a 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
@@ -193,6 +193,7 @@ Method | HTTP request | Description
[**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
+[**updateRepoRunner**](RepositoryApi.md#updateRepoRunner) | **PATCH** repos/{owner}/{repo}/actions/runners/{runner_id} | Update a repo-level runner
[**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
[**userCurrentCheckSubscription**](RepositoryApi.md#userCurrentCheckSubscription) | **GET** repos/{owner}/{repo}/subscription | Check if the current user is watching a repo
@@ -1203,7 +1204,7 @@ Name | Type | Description | Notes
# **deleteRepoRunner**
> Void deleteRepoRunner(owner, repo, runnerId)
-Delete an repo-level runner
+Delete a repo-level runner
### Example
```java
@@ -2206,7 +2207,7 @@ Name | Type | Description | Notes
# **getRepoRunner**
> Void getRepoRunner(owner, repo, runnerId)
-Get an repo-level runner
+Get a repo-level runner
### Example
```java
@@ -2295,7 +2296,7 @@ Name | Type | Description | Notes
# **getRepoRunners**
-> Void getRepoRunners(owner, repo)
+> Void getRepoRunners(owner, repo, disabled)
Get repo-level runners
@@ -2353,8 +2354,9 @@ 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
+Boolean disabled = true; // Boolean | filter by disabled status (true or false)
try {
- Void result = apiInstance.getRepoRunners(owner, repo);
+ Void result = apiInstance.getRepoRunners(owner, repo, disabled);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#getRepoRunners");
@@ -2368,6 +2370,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**owner** | **String**| owner of the repo |
**repo** | **String**| name of the repo |
+ **disabled** | **Boolean**| filter by disabled status (true or false) | [optional]
### Return type
@@ -17730,6 +17733,99 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/json
+
+# **updateRepoRunner**
+> Void updateRepoRunner(owner, repo, runnerId, body)
+
+Update a 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
+EditActionRunnerOption body = new EditActionRunnerOption(); // EditActionRunnerOption |
+try {
+ Void result = apiInstance.updateRepoRunner(owner, repo, runnerId, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#updateRepoRunner");
+ 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 |
+ **body** | [**EditActionRunnerOption**](EditActionRunnerOption.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
+
# **updateRepoSecret**
> Void updateRepoSecret(owner, repo, secretname, body)
diff --git a/docs/UserApi.md b/docs/UserApi.md
index 935a24a..9816a72 100644
--- a/docs/UserApi.md
+++ b/docs/UserApi.md
@@ -6,10 +6,10 @@ 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
+[**deleteUserRunner**](UserApi.md#deleteUserRunner) | **DELETE** user/actions/runners/{runner_id} | Delete a 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
+[**getUserRunner**](UserApi.md#getUserRunner) | **GET** user/actions/runners/{runner_id} | Get a 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
@@ -17,6 +17,7 @@ Method | HTTP request | Description
[**getUserWorkflowJobs**](UserApi.md#getUserWorkflowJobs) | **GET** user/actions/jobs | Get workflow jobs
[**getUserWorkflowRuns**](UserApi.md#getUserWorkflowRuns) | **GET** user/actions/runs | Get workflow runs
[**getVerificationToken**](UserApi.md#getVerificationToken) | **GET** user/gpg_key_token | Get a Token to verify
+[**updateUserRunner**](UserApi.md#updateUserRunner) | **PATCH** user/actions/runners/{runner_id} | Update a user-level runner
[**updateUserSecret**](UserApi.md#updateUserSecret) | **PUT** user/actions/secrets/{secretname} | Create or Update a secret value in a user scope
[**updateUserSettings**](UserApi.md#updateUserSettings) | **PATCH** user/settings | Update user settings
[**updateUserVariable**](UserApi.md#updateUserVariable) | **PUT** user/actions/variables/{variablename} | Update a user-level variable which is created by current doer
@@ -260,7 +261,7 @@ Name | Type | Description | Notes
# **deleteUserRunner**
> Void deleteUserRunner(runnerId)
-Delete an user-level runner
+Delete a user-level runner
### Example
```java
@@ -521,7 +522,7 @@ Name | Type | Description | Notes
# **getUserRunner**
> Void getUserRunner(runnerId)
-Get an user-level runner
+Get a user-level runner
### Example
```java
@@ -606,7 +607,7 @@ Name | Type | Description | Notes
# **getUserRunners**
-> Void getUserRunners()
+> Void getUserRunners(disabled)
Get user-level runners
@@ -662,8 +663,9 @@ Token.setApiKey("YOUR API KEY");
//Token.setApiKeyPrefix("Token");
UserApi apiInstance = new UserApi();
+Boolean disabled = true; // Boolean | filter by disabled status (true or false)
try {
- Void result = apiInstance.getUserRunners();
+ Void result = apiInstance.getUserRunners(disabled);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#getUserRunners");
@@ -672,7 +674,10 @@ try {
```
### Parameters
-This endpoint does not need any parameter.
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **disabled** | **Boolean**| filter by disabled status (true or false) | [optional]
### Return type
@@ -1219,6 +1224,95 @@ This endpoint does not need any parameter.
- **Content-Type**: Not defined
- **Accept**: text/plain
+
+# **updateUserRunner**
+> Void updateUserRunner(runnerId, body)
+
+Update a 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
+EditActionRunnerOption body = new EditActionRunnerOption(); // EditActionRunnerOption |
+try {
+ Void result = apiInstance.updateUserRunner(runnerId, body);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#updateUserRunner");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **runnerId** | **String**| id of the runner |
+ **body** | [**EditActionRunnerOption**](EditActionRunnerOption.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
+
# **updateUserSecret**
> Void updateUserSecret(secretname, 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 f800c8e..ff0fbc8 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java
@@ -11,6 +11,7 @@ import org.gitnex.tea4j.v2.models.CreateOrgOption;
import org.gitnex.tea4j.v2.models.CreateRepoOption;
import org.gitnex.tea4j.v2.models.CreateUserOption;
import org.gitnex.tea4j.v2.models.Cron;
+import org.gitnex.tea4j.v2.models.EditActionRunnerOption;
import org.gitnex.tea4j.v2.models.EditHookOption;
import org.gitnex.tea4j.v2.models.EditUserOption;
import org.gitnex.tea4j.v2.models.Email;
@@ -365,10 +366,11 @@ public interface AdminApi {
/**
* Get all runners
*
+ * @param disabled filter by disabled status (true or false) (optional)
* @return Call<Void>
*/
@GET("admin/actions/runners")
- Call getAdminRunners();
+ Call getAdminRunners(@retrofit2.http.Query("disabled") Boolean disabled);
/**
* Lists all jobs
@@ -407,4 +409,17 @@ public interface AdminApi {
@retrofit2.http.Query("head_sha") String headSha,
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
+
+ /**
+ * Update a global runner
+ *
+ * @param runnerId id of the runner (required)
+ * @param body (optional)
+ * @return Call<Void>
+ */
+ @Headers({"Content-Type:application/json"})
+ @PATCH("admin/actions/runners/{runner_id}")
+ Call updateAdminRunner(
+ @retrofit2.http.Path("runner_id") String runnerId,
+ @retrofit2.http.Body EditActionRunnerOption body);
}
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 80108e9..1dcbf5c 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java
@@ -14,6 +14,7 @@ import org.gitnex.tea4j.v2.models.CreateOrgOption;
import org.gitnex.tea4j.v2.models.CreateRepoOption;
import org.gitnex.tea4j.v2.models.CreateTeamOption;
import org.gitnex.tea4j.v2.models.CreateVariableOption;
+import org.gitnex.tea4j.v2.models.EditActionRunnerOption;
import org.gitnex.tea4j.v2.models.EditHookOption;
import org.gitnex.tea4j.v2.models.EditLabelOption;
import org.gitnex.tea4j.v2.models.EditOrgOption;
@@ -122,10 +123,12 @@ public interface OrganizationApi {
* Get org-level runners
*
* @param org name of the organization (required)
+ * @param disabled filter by disabled status (true or false) (optional)
* @return Call<Void>
*/
@GET("orgs/{org}/actions/runners")
- Call getOrgRunners(@retrofit2.http.Path("org") String org);
+ Call getOrgRunners(
+ @retrofit2.http.Path("org") String org, @retrofit2.http.Query("disabled") Boolean disabled);
/**
* Get an org-level variable
@@ -820,6 +823,21 @@ public interface OrganizationApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
+ /**
+ * Update an org-level runner
+ *
+ * @param org name of the organization (required)
+ * @param runnerId id of the runner (required)
+ * @param body (optional)
+ * @return Call<Void>
+ */
+ @Headers({"Content-Type:application/json"})
+ @PATCH("orgs/{org}/actions/runners/{runner_id}")
+ Call updateOrgRunner(
+ @retrofit2.http.Path("org") String org,
+ @retrofit2.http.Path("runner_id") String runnerId,
+ @retrofit2.http.Body EditActionRunnerOption body);
+
/**
* Create or Update a secret value in an organization
*
diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java
index eeb2db9..21ea793 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java
@@ -52,6 +52,7 @@ import org.gitnex.tea4j.v2.models.CreateWikiPageOptions;
import org.gitnex.tea4j.v2.models.DeleteFileOptions;
import org.gitnex.tea4j.v2.models.DeployKey;
import org.gitnex.tea4j.v2.models.DismissPullReviewOptions;
+import org.gitnex.tea4j.v2.models.EditActionRunnerOption;
import org.gitnex.tea4j.v2.models.EditAttachmentOptions;
import org.gitnex.tea4j.v2.models.EditBranchProtectionOption;
import org.gitnex.tea4j.v2.models.EditGitHookOption;
@@ -271,7 +272,7 @@ public interface RepositoryApi {
@retrofit2.http.Path("artifact_id") String artifactId);
/**
- * Delete an repo-level runner
+ * Delete a repo-level runner
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
@@ -429,7 +430,7 @@ public interface RepositoryApi {
@retrofit2.http.Path("sha") String sha);
/**
- * Get an repo-level runner
+ * Get a repo-level runner
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
@@ -447,11 +448,14 @@ public interface RepositoryApi {
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
+ * @param disabled filter by disabled status (true or false) (optional)
* @return Call<Void>
*/
@GET("repos/{owner}/{repo}/actions/runners")
Call getRepoRunners(
- @retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
+ @retrofit2.http.Path("owner") String owner,
+ @retrofit2.http.Path("repo") String repo,
+ @retrofit2.http.Query("disabled") Boolean disabled);
/**
* Get a repo-level variable
@@ -3089,6 +3093,23 @@ public interface RepositoryApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
+ /**
+ * Update a repo-level runner
+ *
+ * @param owner owner of the repo (required)
+ * @param repo name of the repo (required)
+ * @param runnerId id of the runner (required)
+ * @param body (optional)
+ * @return Call<Void>
+ */
+ @Headers({"Content-Type:application/json"})
+ @PATCH("repos/{owner}/{repo}/actions/runners/{runner_id}")
+ Call updateRepoRunner(
+ @retrofit2.http.Path("owner") String owner,
+ @retrofit2.http.Path("repo") String repo,
+ @retrofit2.http.Path("runner_id") String runnerId,
+ @retrofit2.http.Body EditActionRunnerOption body);
+
/**
* Create or Update a secret value in a repository
*
diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java
index 18fd288..0a34ccd 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java
@@ -18,6 +18,7 @@ import org.gitnex.tea4j.v2.models.CreateOrUpdateSecretOption;
import org.gitnex.tea4j.v2.models.CreateRepoOption;
import org.gitnex.tea4j.v2.models.CreateVariableOption;
import org.gitnex.tea4j.v2.models.DeleteEmailOption;
+import org.gitnex.tea4j.v2.models.EditActionRunnerOption;
import org.gitnex.tea4j.v2.models.EditHookOption;
import org.gitnex.tea4j.v2.models.Email;
import org.gitnex.tea4j.v2.models.GPGKey;
@@ -63,7 +64,7 @@ public interface UserApi {
@retrofit2.http.Body CreateVariableOption body);
/**
- * Delete an user-level runner
+ * Delete a user-level runner
*
* @param runnerId id of the runner (required)
* @return Call<Void>
@@ -90,7 +91,7 @@ public interface UserApi {
Call deleteUserVariable(@retrofit2.http.Path("variablename") String variablename);
/**
- * Get an user-level runner
+ * Get a user-level runner
*
* @param runnerId id of the runner (required)
* @return Call<Void>
@@ -101,10 +102,11 @@ public interface UserApi {
/**
* Get user-level runners
*
+ * @param disabled filter by disabled status (true or false) (optional)
* @return Call<Void>
*/
@GET("user/actions/runners")
- Call getUserRunners();
+ Call getUserRunners(@retrofit2.http.Query("disabled") Boolean disabled);
/**
* Get user settings
@@ -180,6 +182,19 @@ public interface UserApi {
@GET("user/gpg_key_token")
Call getVerificationToken();
+ /**
+ * Update a user-level runner
+ *
+ * @param runnerId id of the runner (required)
+ * @param body (optional)
+ * @return Call<Void>
+ */
+ @Headers({"Content-Type:application/json"})
+ @PATCH("user/actions/runners/{runner_id}")
+ Call updateUserRunner(
+ @retrofit2.http.Path("runner_id") String runnerId,
+ @retrofit2.http.Body EditActionRunnerOption body);
+
/**
* Create or Update a secret value in a user scope
*
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/ActionRunner.java b/src/main/java/org/gitnex/tea4j/v2/models/ActionRunner.java
index be1765f..bfd828d 100644
--- a/src/main/java/org/gitnex/tea4j/v2/models/ActionRunner.java
+++ b/src/main/java/org/gitnex/tea4j/v2/models/ActionRunner.java
@@ -27,6 +27,9 @@ public class ActionRunner implements Serializable {
@SerializedName("busy")
private Boolean busy = null;
+ @SerializedName("disabled")
+ private Boolean disabled = null;
+
@SerializedName("ephemeral")
private Boolean ephemeral = null;
@@ -61,6 +64,25 @@ public class ActionRunner implements Serializable {
this.busy = busy;
}
+ public ActionRunner disabled(Boolean disabled) {
+ this.disabled = disabled;
+ return this;
+ }
+
+ /**
+ * Get disabled
+ *
+ * @return disabled
+ */
+ @Schema(description = "")
+ public Boolean isDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(Boolean disabled) {
+ this.disabled = disabled;
+ }
+
public ActionRunner ephemeral(Boolean ephemeral) {
this.ephemeral = ephemeral;
return this;
@@ -174,6 +196,7 @@ public class ActionRunner implements Serializable {
}
ActionRunner actionRunner = (ActionRunner) o;
return Objects.equals(this.busy, actionRunner.busy)
+ && Objects.equals(this.disabled, actionRunner.disabled)
&& Objects.equals(this.ephemeral, actionRunner.ephemeral)
&& Objects.equals(this.id, actionRunner.id)
&& Objects.equals(this.labels, actionRunner.labels)
@@ -183,7 +206,7 @@ public class ActionRunner implements Serializable {
@Override
public int hashCode() {
- return Objects.hash(busy, ephemeral, id, labels, name, status);
+ return Objects.hash(busy, disabled, ephemeral, id, labels, name, status);
}
@Override
@@ -192,6 +215,7 @@ public class ActionRunner implements Serializable {
sb.append("class ActionRunner {\n");
sb.append(" busy: ").append(toIndentedString(busy)).append("\n");
+ sb.append(" disabled: ").append(toIndentedString(disabled)).append("\n");
sb.append(" ephemeral: ").append(toIndentedString(ephemeral)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" labels: ").append(toIndentedString(labels)).append("\n");
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/EditActionRunnerOption.java b/src/main/java/org/gitnex/tea4j/v2/models/EditActionRunnerOption.java
new file mode 100644
index 0000000..c966721
--- /dev/null
+++ b/src/main/java/org/gitnex/tea4j/v2/models/EditActionRunnerOption.java
@@ -0,0 +1,82 @@
+/*
+ * Gitea API
+ * This documentation describes the Gitea API.
+ *
+ * OpenAPI spec version: {{.SwaggerAppVer}}
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+package org.gitnex.tea4j.v2.models;
+
+import com.google.gson.annotations.SerializedName;
+import io.swagger.v3.oas.annotations.media.Schema;
+import java.io.Serializable;
+import java.util.Objects;
+
+/** EditActionRunnerOption */
+public class EditActionRunnerOption implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @SerializedName("disabled")
+ private Boolean disabled = null;
+
+ public EditActionRunnerOption disabled(Boolean disabled) {
+ this.disabled = disabled;
+ return this;
+ }
+
+ /**
+ * Get disabled
+ *
+ * @return disabled
+ */
+ @Schema(required = true, description = "")
+ public Boolean isDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(Boolean disabled) {
+ this.disabled = disabled;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ EditActionRunnerOption editActionRunnerOption = (EditActionRunnerOption) o;
+ return Objects.equals(this.disabled, editActionRunnerOption.disabled);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(disabled);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class EditActionRunnerOption {\n");
+
+ sb.append(" disabled: ").append(toIndentedString(disabled)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}