using System; using System.Reactive; namespace Octokit.Reactive { /// /// A client for GitHub's Actions Workflows API. /// /// /// See the Actions Workflows API documentation for more information. /// public interface IObservableActionsWorkflowsClient { /// /// Manually triggers a GitHub Actions workflow run in a repository by Id. /// /// /// https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event /// /// The owner of the repository. /// The name of the repository. /// The workflow file name. /// The parameters to use to trigger the workflow run. IObservable CreateDispatch(string owner, string name, string workflowFileName, CreateWorkflowDispatch createDispatch); /// /// Manually triggers a GitHub Actions workflow run in a repository by Id. /// /// /// https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event /// /// The owner of the repository. /// The name of the repository. /// The Id of the workflow. /// The parameters to use to trigger the workflow run. IObservable CreateDispatch(string owner, string name, long workflowId, CreateWorkflowDispatch createDispatch); /// /// Disables a specific workflow in a repository by Id. /// /// /// https://developer.github.com/v3/actions/workflows/#disable-a-workflow /// /// The owner of the repository. /// The name of the repository. /// The workflow file name. IObservable Disable(string owner, string name, string workflowFileName); /// /// Disables a specific workflow in a repository by Id. /// /// /// https://developer.github.com/v3/actions/workflows/#disable-a-workflow /// /// The owner of the repository. /// The name of the repository. /// The Id of the workflow. IObservable Disable(string owner, string name, long workflowId); /// /// Enables a specific workflow in a repository by Id. /// /// /// https://developer.github.com/v3/actions/workflows/#enable-a-workflow /// /// The owner of the repository. /// The name of the repository. /// The workflow file name. IObservable Enable(string owner, string name, string workflowFileName); /// /// Enables a specific workflow in a repository by Id. /// /// /// https://developer.github.com/v3/actions/workflows/#enable-a-workflow /// /// The owner of the repository. /// The name of the repository. /// The Id of the workflow. IObservable Enable(string owner, string name, long workflowId); /// /// Gets a specific workflow in a repository by Id. Anyone with read access to the repository can use this endpoint. /// /// /// https://developer.github.com/v3/actions/workflows/#get-a-workflow /// /// The owner of the repository. /// The name of the repository. /// The workflow file name. IObservable Get(string owner, string name, string workflowFileName); /// /// Gets a specific workflow in a repository by Id. Anyone with read access to the repository can use this endpoint. /// /// /// https://developer.github.com/v3/actions/workflows/#get-a-workflow /// /// The owner of the repository. /// The name of the repository. /// The Id of the workflow. IObservable Get(string owner, string name, long workflowId); /// /// Gets useage of a specific workflow in a repository by Id. Anyone with read access to the repository can use this endpoint. /// /// /// https://developer.github.com/v3/actions/workflows/#get-workflow-usage /// /// The owner of the repository. /// The name of the repository. /// The workflow file name. IObservable GetUsage(string owner, string name, string workflowFileName); /// /// Gets useage of a specific workflow in a repository by Id. Anyone with read access to the repository can use this endpoint. /// /// /// https://developer.github.com/v3/actions/workflows/#get-workflow-usage /// /// The owner of the repository. /// The name of the repository. /// The Id of the workflow. IObservable GetUsage(string owner, string name, long workflowId); /// /// Lists the workflows in a repository. Anyone with read access to the repository can use this endpoint. /// /// /// https://developer.github.com/v3/actions/workflows/#list-repository-workflows /// /// The owner of the repository. /// The name of the repository. IObservable List(string owner, string name); /// /// Lists the workflows in a repository. Anyone with read access to the repository can use this endpoint. /// /// /// https://developer.github.com/v3/actions/workflows/#list-repository-workflows /// /// The owner of the repository. /// The name of the repository. /// Options to change the API response. IObservable List(string owner, string name, ApiOptions options); /// /// Client for the Workflow jobs API. /// IObservableActionsWorkflowJobsClient Jobs { get; } /// /// Client for the Workflow runs API. /// IObservableActionsWorkflowRunsClient Runs { get; } } }