Files
octokit.net/Octokit/Clients/MigrationClient.cs
Devesh Khandelwal 73d321da93 Refactor: Pull out Migrations client from Enterprise.
Following the API sidebar structure, the migrations client is pulled out
and put into another Migration client.
2016-05-20 19:10:22 +05:30

28 lines
1018 B
C#

namespace Octokit
{
/// <summary>
/// A client for GitHub's Migration API. These APIs help you move projects to or from GitHub.
/// </summary>
/// <remarks>
/// Docs: https://developer.github.com/v3/migration/
/// </remarks>
public class MigrationClient : ApiClient, IMigrationClient
{
/// <summary>
/// Instantiate a new GitHub Migration API client and its sub-APIs.
/// </summary>
/// <param name="apiConnection">An API connection.</param>
public MigrationClient(IApiConnection apiConnection) : base(apiConnection)
{
Migrations = new MigrationsClient(apiConnection);
}
/// <summary>
/// The Enterprise Migrations API lets you move a repository from GitHub to GitHub Enterprise.
/// </summary>
/// <remarks>
/// https://developer.github.com/v3/migration/#enterprise-migrations
/// </remarks>
public IMigrationsClient Migrations { get; private set; }
}
}