Files
octokit.net/Octokit.Reactive/IObservableCodespacesClient.cs
Aaron Junker-Wildi 35f1784781 Adding support for creating Codespaces and getting available machine types (#2929)
Adding support for creating Codespaces
2024-07-29 13:43:50 -07:00

22 lines
864 B
C#

using System;
using System.Threading.Tasks;
namespace Octokit.Reactive
{
/// <summary>
/// A client for GitHub's Codespaces API.
/// </summary>
/// <remarks>
/// See the codespaces API documentation for more information.
/// </remarks>
public interface IObservableCodespacesClient
{
IObservable<CodespacesCollection> GetAll();
IObservable<CodespacesCollection> GetForRepository(string owner, string repo);
IObservable<Codespace> Get(string codespaceName);
IObservable<Codespace> Start(string codespaceName);
IObservable<Codespace> Stop(string codespaceName);
IObservable<MachinesCollection> GetAvailableMachinesForRepo(string repoOwner, string repoName, string reference = null);
IObservable<Codespace> Create(string owner, string repo, NewCodespace newCodespace);
}
}