using System.Collections.Generic; using System.Threading.Tasks; namespace Octokit { /// /// A client for GitHub's Actions Self-hosted runners API. /// /// /// See the Actions Self-hosted runners API documentation for more information. /// public interface IActionsSelfHostedRunnersClient { /// /// List self-hosted runners for an enterprise /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-an-enterprise /// /// The enterprise. Task ListAllRunnersForEnterprise(string enterprise); /// /// List self-hosted runners for an enterprise /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-an-enterprise /// /// The enterprise. /// Options to change the API response. Task ListAllRunnersForEnterprise(string enterprise, ApiOptions options); /// /// List self-hosted runners for an organization /// /// /// https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-an-organization /// /// The organization. Task ListAllRunnersForOrganization(string organization); /// /// List self-hosted runners for an organization /// /// /// https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-an-organization /// /// The organization. /// Options to change the API response. Task ListAllRunnersForOrganization(string organization, ApiOptions options); /// /// List self-hosted runners for a repository /// /// /// https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-a-repository /// /// The owner of the repository. /// The name of the repository. Task ListAllRunnersForRepository(string owner, string name); /// /// List self-hosted runners for a repository /// /// /// https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-a-repository /// /// The owner of the repository. /// The name of the repository. /// Options to change the API response. Task ListAllRunnersForRepository(string owner, string name, ApiOptions options); /// /// List runner applications for an enterprise /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-runner-applications-for-an-enterprise /// /// The enterprise. Task> ListAllRunnerApplicationsForEnterprise(string enterprise); /// /// List runner applications for an enterprise /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-runner-applications-for-an-enterprise /// /// The enterprise. /// Options to change the API response. Task> ListAllRunnerApplicationsForEnterprise(string enterprise, ApiOptions options); /// /// List runner applications for an organization /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-runner-applications-for-an-organization /// /// The organization. Task> ListAllRunnerApplicationsForOrganization(string organization); /// /// List runner applications for an organization /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-runner-applications-for-an-organization /// /// The organization. /// Options to change the API response. Task> ListAllRunnerApplicationsForOrganization(string organization, ApiOptions options); /// /// List runner applications for a repository /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-runner-applications-for-a-repository /// /// The owner of the repository. /// The name of the repository. Task> ListAllRunnerApplicationsForRepository(string owner, string name); /// /// List runner applications for a repository /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-runner-applications-for-a-repository /// /// The owner of the repository. /// The name of the repository. /// Options to change the API response. Task> ListAllRunnerApplicationsForRepository(string owner, string name, ApiOptions options); /// /// Delete a self-hosted runner from an enterprise /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#delete-a-self-hosted-runner-from-an-enterprise /// /// The enterprise. /// The runner ID. Task DeleteEnterpriseRunner(string enterprise, long runnerId); /// /// Delete a self-hosted runner from an enterprise /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#delete-a-self-hosted-runner-from-an-enterprise /// /// The enterprise. /// The runner ID. /// Options to change the API response. Task DeleteEnterpriseRunner(string enterprise, long runnerId, ApiOptions options); /// /// Delete a self-hosted runner from an organization /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#delete-a-self-hosted-runner-from-an-organization /// /// The organization. /// The runner ID. Task DeleteOrganizationRunner(string organization, long runnerId); /// /// Delete a self-hosted runner from an organization /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#delete-a-self-hosted-runner-from-an-organization /// /// The organization. /// The runner ID. /// Options to change the API response. Task DeleteOrganizationRunner(string organization, long runnerId, ApiOptions options); /// /// Delete a self-hosted runner from a repository /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#delete-a-self-hosted-runner-from-a-repository /// /// The owner of the repository. /// The name of the repository. /// The runner ID. Task DeleteRepositoryRunner(string owner, string name, long runnerId); /// /// Delete a self-hosted runner from a repository /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#delete-a-self-hosted-runner-from-a-repository /// /// The owner of the repository. /// The name of the repository. /// The runner ID. /// Options to change the API response. Task DeleteRepositoryRunner(string owner, string name, long runnerId, ApiOptions options); /// /// Create a registration token for an enterprise /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-registration-token-for-an-enterprise /// /// The enterprise. Task CreateEnterpriseRegistrationToken(string enterprise); /// /// Create a registration token for an enterprise /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-registration-token-for-an-enterprise /// /// The enterprise. /// Options to change the API response. Task CreateEnterpriseRegistrationToken(string enterprise, ApiOptions options); /// /// Create a registration token for an organization /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-registration-token-for-an-organization /// /// The organization. Task CreateOrganizationRegistrationToken(string organization); /// /// Create a registration token for an organization /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-registration-token-for-an-organization /// /// The organization. /// Options to change the API response. Task CreateOrganizationRegistrationToken(string organization, ApiOptions options); /// /// Create a registration token for a repository /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-registration-token-for-a-repository /// /// The owner of the repository. /// The name of the repository. Task CreateRepositoryRegistrationToken(string owner, string name); /// /// Create a registration token for a repository /// /// /// https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-registration-token-for-a-repository /// /// The owner of the repository. /// The name of the repository. /// Options to change the API response. Task CreateRepositoryRegistrationToken(string owner, string name, ApiOptions options); } }