using System.Threading.Tasks; namespace Octokit { /// /// A client for GitHub's Actions Workflow jobs API. /// /// /// See the Actions Workflow jobs API documentation for more information. /// public interface IActionsWorkflowJobsClient { /// /// Re-runs a specific workflow job in a repository. /// /// /// https://developer.github.com/v3/actions/workflow-runs/#re-run-a-job-from-a-workflow-run /// /// The owner of the repository. /// The name of the repository. /// The Id of the workflow job. Task Rerun(string owner, string name, long jobId); /// /// Gets a specific job in a workflow run. /// /// /// https://developer.github.com/v3/actions/workflow-jobs/#get-a-job-for-a-workflow-run /// /// The owner of the repository. /// The name of the repository. /// The unique identifier of the job. Task Get(string owner, string name, long jobId); /// /// Gets the plain text log file for a workflow job. /// /// /// https://developer.github.com/v3/actions/workflow-jobs/#download-job-logs-for-a-workflow-run /// /// The owner of the repository. /// The name of the repository. /// The Id of the workflow job. Task GetLogs(string owner, string name, long jobId); /// /// Lists jobs for a specific workflow run. /// /// /// https://developer.github.com/v3/actions/workflow-runs/#list-jobs-for-a-workflow-run /// /// The owner of the repository. /// The name of the repository. /// The Id of the workflow run. Task List(string owner, string name, long runId); /// /// Lists jobs for a specific workflow run. /// /// /// https://developer.github.com/v3/actions/workflow-runs/#list-jobs-for-a-workflow-run /// /// The owner of the repository. /// The name of the repository. /// The Id of the workflow run. /// Details to filter the request, such as by when completed. Task List(string owner, string name, long runId, WorkflowRunJobsRequest workflowRunJobsRequest); /// /// Lists jobs for a specific workflow run. /// /// /// https://developer.github.com/v3/actions/workflow-runs/#list-jobs-for-a-workflow-run /// /// The owner of the repository. /// The name of the repository. /// The Id of the workflow run. /// Details to filter the request, such as by when completed. /// Options to change the API response. Task List(string owner, string name, long runId, WorkflowRunJobsRequest workflowRunJobsRequest, ApiOptions options); /// /// Lists jobs for a specific workflow run attempt. /// /// /// https://developer.github.com/v3/actions/workflow-runs/#list-jobs-for-a-workflow-run-attempt /// /// The owner of the repository. /// The name of the repository. /// The Id of the workflow run. /// The attempt number of the workflow run. Task List(string owner, string name, long runId, int attemptNumber); /// /// Lists jobs for a specific workflow run attempt. /// /// /// https://developer.github.com/v3/actions/workflow-runs/#list-jobs-for-a-workflow-run-attempt /// /// The owner of the repository. /// The name of the repository. /// The Id of the workflow run. /// The attempt number of the workflow run. /// Options to change the API response. Task List(string owner, string name, long runId, int attemptNumber, ApiOptions options); } }