mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-27 00:23:39 +00:00
Added Migrations API models for requests and responses.
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
public class StartMigrationRequest
|
||||
{
|
||||
public StartMigrationRequest(
|
||||
IReadOnlyList<string> repositories
|
||||
) :
|
||||
this(repositories, false, false)
|
||||
{ }
|
||||
|
||||
public StartMigrationRequest(
|
||||
IReadOnlyList<string> repositories,
|
||||
bool lockRepositories) :
|
||||
this(repositories, lockRepositories, false)
|
||||
{ }
|
||||
|
||||
public StartMigrationRequest(
|
||||
IReadOnlyList<string> repositories,
|
||||
bool lockRepositories,
|
||||
bool excludeAttachments)
|
||||
{
|
||||
this.Repositories = repositories;
|
||||
this.LockRepositories = lockRepositories;
|
||||
this.ExcludeAttachments = excludeAttachments;
|
||||
}
|
||||
|
||||
public IReadOnlyList<string> Repositories { get; private set; }
|
||||
|
||||
public bool LockRepositories { get; private set; }
|
||||
|
||||
public bool ExcludeAttachments { get; private set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
public class Migration
|
||||
{
|
||||
public Migration(
|
||||
int id,
|
||||
string guid,
|
||||
string state,
|
||||
bool lockRepositories,
|
||||
bool excludeAttachments,
|
||||
string url,
|
||||
string createdAt,
|
||||
string updatedAt,
|
||||
IReadOnlyList<Repository> repositories)
|
||||
{
|
||||
Id = id;
|
||||
Guid = guid;
|
||||
State = state;
|
||||
LockRepositories = lockRepositories;
|
||||
ExcludeAttachments = excludeAttachments;
|
||||
Url = url;
|
||||
CreatedAt = createdAt;
|
||||
UpdatedAt = updatedAt;
|
||||
Repositories = repositories;
|
||||
}
|
||||
|
||||
public int Id { get; private set; }
|
||||
|
||||
public string Guid { get; private set; }
|
||||
|
||||
public string State { get; private set; }
|
||||
|
||||
public bool LockRepositories { get; private set; }
|
||||
|
||||
public bool ExcludeAttachments { get; private set; }
|
||||
|
||||
public string Url { get; private set; }
|
||||
|
||||
public string CreatedAt { get; private set; }
|
||||
|
||||
public string UpdatedAt { get; private set; }
|
||||
|
||||
public IReadOnlyList<Repository> Repositories { get; private set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -65,6 +65,7 @@
|
||||
<Compile Include="Clients\Enterprise\EnterpriseClient.cs" />
|
||||
<Compile Include="Clients\Enterprise\EnterpriseSearchIndexingClient.cs" />
|
||||
<Compile Include="Clients\Enterprise\IEnterpriseLdapClient.cs" />
|
||||
<Compile Include="Clients\Enterprise\IEnterpriseMigrationsClient.cs" />
|
||||
<Compile Include="Clients\Enterprise\IEnterpriseOrganizationClient.cs" />
|
||||
<Compile Include="Clients\Enterprise\IEnterpriseLicenseClient.cs" />
|
||||
<Compile Include="Clients\Enterprise\IEnterpriseAdminStatsClient.cs" />
|
||||
@@ -116,6 +117,7 @@
|
||||
<Compile Include="Http\RequestBody.cs" />
|
||||
<Compile Include="Models\Request\BranchUpdate.cs" />
|
||||
<Compile Include="Models\Request\ApiOptions.cs" />
|
||||
<Compile Include="Models\Request\Enterprise\StartMigrationRequest.cs" />
|
||||
<Compile Include="Models\Request\NewImpersonationToken.cs" />
|
||||
<Compile Include="Models\Request\Enterprise\NewLdapMapping.cs" />
|
||||
<Compile Include="Models\Request\GistFileUpdate.cs" />
|
||||
@@ -163,6 +165,7 @@
|
||||
<Compile Include="Models\Response\Enterprise\AdminStatsPulls.cs" />
|
||||
<Compile Include="Models\Response\Enterprise\AdminStatsRepos.cs" />
|
||||
<Compile Include="Models\Response\Enterprise\LdapSyncResponse.cs" />
|
||||
<Compile Include="Models\Response\Enterprise\Migration.cs" />
|
||||
<Compile Include="Models\Response\Enterprise\SearchIndexingResponse.cs" />
|
||||
<Compile Include="Models\Response\Enterprise\LicenseInfo.cs" />
|
||||
<Compile Include="Models\Response\Enterprise\AdminStatsUsers.cs" />
|
||||
|
||||
Reference in New Issue
Block a user