diff --git a/Octokit/Models/Request/Enterprise/StartMigrationRequest.cs b/Octokit/Models/Request/Enterprise/StartMigrationRequest.cs new file mode 100644 index 00000000..ac427637 --- /dev/null +++ b/Octokit/Models/Request/Enterprise/StartMigrationRequest.cs @@ -0,0 +1,35 @@ +using System.Collections.Generic; + +namespace Octokit +{ + public class StartMigrationRequest + { + public StartMigrationRequest( + IReadOnlyList repositories + ) : + this(repositories, false, false) + { } + + public StartMigrationRequest( + IReadOnlyList repositories, + bool lockRepositories) : + this(repositories, lockRepositories, false) + { } + + public StartMigrationRequest( + IReadOnlyList repositories, + bool lockRepositories, + bool excludeAttachments) + { + this.Repositories = repositories; + this.LockRepositories = lockRepositories; + this.ExcludeAttachments = excludeAttachments; + } + + public IReadOnlyList Repositories { get; private set; } + + public bool LockRepositories { get; private set; } + + public bool ExcludeAttachments { get; private set; } + } +} \ No newline at end of file diff --git a/Octokit/Models/Response/Enterprise/Migration.cs b/Octokit/Models/Response/Enterprise/Migration.cs new file mode 100644 index 00000000..ca1a9621 --- /dev/null +++ b/Octokit/Models/Response/Enterprise/Migration.cs @@ -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 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 Repositories { get; private set; } + + + } +} \ No newline at end of file diff --git a/Octokit/Octokit.csproj b/Octokit/Octokit.csproj index 0aefa896..85fe13cc 100644 --- a/Octokit/Octokit.csproj +++ b/Octokit/Octokit.csproj @@ -65,6 +65,7 @@ + @@ -116,6 +117,7 @@ + @@ -163,6 +165,7 @@ +