forked from octokit/octokit.graphql.net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
380 changed files
with
19,198 additions
and
579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
Octokit.GraphQL/Model/AcceptEnterpriseAdministratorInvitationInput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
namespace Octokit.GraphQL.Model | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// Autogenerated input type of AcceptEnterpriseAdministratorInvitation | ||
/// </summary> | ||
public class AcceptEnterpriseAdministratorInvitationInput | ||
{ | ||
/// <summary> | ||
/// The id of the invitation being accepted | ||
/// </summary> | ||
public ID InvitationId { get; set; } | ||
|
||
/// <summary> | ||
/// A unique identifier for the client performing the mutation. | ||
/// </summary> | ||
public string ClientMutationId { get; set; } | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
Octokit.GraphQL/Model/AcceptEnterpriseAdministratorInvitationPayload.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
namespace Octokit.GraphQL.Model | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq.Expressions; | ||
using Octokit.GraphQL.Core; | ||
using Octokit.GraphQL.Core.Builders; | ||
|
||
/// <summary> | ||
/// Autogenerated return type of AcceptEnterpriseAdministratorInvitation | ||
/// </summary> | ||
public class AcceptEnterpriseAdministratorInvitationPayload : QueryableValue<AcceptEnterpriseAdministratorInvitationPayload> | ||
{ | ||
internal AcceptEnterpriseAdministratorInvitationPayload(Expression expression) : base(expression) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// A unique identifier for the client performing the mutation. | ||
/// </summary> | ||
public string ClientMutationId { get; } | ||
|
||
/// <summary> | ||
/// The invitation that was accepted. | ||
/// </summary> | ||
public EnterpriseAdministratorInvitation Invitation => this.CreateProperty(x => x.Invitation, Octokit.GraphQL.Model.EnterpriseAdministratorInvitation.Create); | ||
|
||
/// <summary> | ||
/// A message confirming the result of accepting an administrator invitation. | ||
/// </summary> | ||
public string Message { get; } | ||
|
||
internal static AcceptEnterpriseAdministratorInvitationPayload Create(Expression expression) | ||
{ | ||
return new AcceptEnterpriseAdministratorInvitationPayload(expression); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
namespace Octokit.GraphQL.Model | ||
{ | ||
/// <summary> | ||
/// The possible capabilities for action executions setting. | ||
/// </summary> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum ActionExecutionCapabilitySetting | ||
{ | ||
/// <summary> | ||
/// All action executions are disabled. | ||
/// </summary> | ||
[EnumMember(Value = "DISABLED")] | ||
Disabled, | ||
|
||
/// <summary> | ||
/// All action executions are enabled. | ||
/// </summary> | ||
[EnumMember(Value = "ALL_ACTIONS")] | ||
AllActions, | ||
|
||
/// <summary> | ||
/// Only actions defined within the repo are allowed. | ||
/// </summary> | ||
[EnumMember(Value = "LOCAL_ACTIONS_ONLY")] | ||
LocalActionsOnly, | ||
|
||
/// <summary> | ||
/// Organization administrators action execution capabilities. | ||
/// </summary> | ||
[EnumMember(Value = "NO_POLICY")] | ||
NoPolicy, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
namespace Octokit.GraphQL.Model | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq.Expressions; | ||
using Octokit.GraphQL.Core; | ||
using Octokit.GraphQL.Core.Builders; | ||
|
||
/// <summary> | ||
/// Location information for an actor | ||
/// </summary> | ||
public class ActorLocation : QueryableValue<ActorLocation> | ||
{ | ||
internal ActorLocation(Expression expression) : base(expression) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// City | ||
/// </summary> | ||
public string City { get; } | ||
|
||
/// <summary> | ||
/// Country name | ||
/// </summary> | ||
public string Country { get; } | ||
|
||
/// <summary> | ||
/// Country code | ||
/// </summary> | ||
public string CountryCode { get; } | ||
|
||
/// <summary> | ||
/// Region name | ||
/// </summary> | ||
public string Region { get; } | ||
|
||
/// <summary> | ||
/// Region or state code | ||
/// </summary> | ||
public string RegionCode { get; } | ||
|
||
internal static ActorLocation Create(Expression expression) | ||
{ | ||
return new ActorLocation(expression); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
namespace Octokit.GraphQL.Model | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// Autogenerated input type of ArchiveRepository | ||
/// </summary> | ||
public class ArchiveRepositoryInput | ||
{ | ||
/// <summary> | ||
/// The ID of the repository to mark as archived. | ||
/// </summary> | ||
public ID RepositoryId { get; set; } | ||
|
||
/// <summary> | ||
/// A unique identifier for the client performing the mutation. | ||
/// </summary> | ||
public string ClientMutationId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace Octokit.GraphQL.Model | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq.Expressions; | ||
using Octokit.GraphQL.Core; | ||
using Octokit.GraphQL.Core.Builders; | ||
|
||
/// <summary> | ||
/// Autogenerated return type of ArchiveRepository | ||
/// </summary> | ||
public class ArchiveRepositoryPayload : QueryableValue<ArchiveRepositoryPayload> | ||
{ | ||
internal ArchiveRepositoryPayload(Expression expression) : base(expression) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// A unique identifier for the client performing the mutation. | ||
/// </summary> | ||
public string ClientMutationId { get; } | ||
|
||
/// <summary> | ||
/// The repository that was marked as archived. | ||
/// </summary> | ||
public Repository Repository => this.CreateProperty(x => x.Repository, Octokit.GraphQL.Model.Repository.Create); | ||
|
||
internal static ArchiveRepositoryPayload Create(Expression expression) | ||
{ | ||
return new ArchiveRepositoryPayload(expression); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
namespace Octokit.GraphQL.Model | ||
{ | ||
using System; | ||
using System.Linq; | ||
using System.Linq.Expressions; | ||
using Octokit.GraphQL.Core; | ||
using Octokit.GraphQL.Core.Builders; | ||
|
||
/// <summary> | ||
/// Types that can be assigned to issues. | ||
/// </summary> | ||
public class Assignee : QueryableValue<Assignee>, IUnion | ||
{ | ||
internal Assignee(Expression expression) : base(expression) | ||
{ | ||
} | ||
|
||
public TResult Switch<TResult>(Expression<Func<Selector<TResult>, Selector<TResult>>> select) => default; | ||
|
||
public class Selector<T> | ||
{ | ||
/// <summary> | ||
/// A special type of user which takes actions on behalf of GitHub Apps. | ||
/// </summary> | ||
public Selector<T> Bot(Func<Bot, T> selector) => default; | ||
|
||
/// <summary> | ||
/// A placeholder user for attribution of imported data on GitHub. | ||
/// </summary> | ||
public Selector<T> Mannequin(Func<Mannequin, T> selector) => default; | ||
|
||
/// <summary> | ||
/// An account on GitHub, with one or more owners, that has repositories, members and teams. | ||
/// </summary> | ||
public Selector<T> Organization(Func<Organization, T> selector) => default; | ||
|
||
/// <summary> | ||
/// A user is an individual's account on GitHub that owns repositories and can make new content. | ||
/// </summary> | ||
public Selector<T> User(Func<User, T> selector) => default; | ||
} | ||
|
||
internal static Assignee Create(Expression expression) | ||
{ | ||
return new Assignee(expression); | ||
} | ||
} | ||
} |
Oops, something went wrong.