mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
[BREAKING CHANGES]: int to long Ids for PreReceiveHook, Deployment Environments, Repository, Org Team, Repo Invitations, Public Key, Project Cards, Organization Invitation, Migrations, GpgKey, Deployment, Authorizations, Accounts / Profiles, Codespace / Workspaces (#2941)
* Fixes ids for Releases, Collaborators, and Contributors * updates the interface for releases * update the obverable release client * updates ids from int to long based on GH database schema * converts a test condition to use the proper type * updates generated paging and observable classes
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -43,7 +43,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="teamId">The teamId to update LDAP mapping</param>
|
||||
/// <param name="newLdapMapping">The <see cref="NewLdapMapping"/></param>
|
||||
/// <returns>The <see cref="Team"/> object.</returns>
|
||||
IObservable<Team> UpdateTeamMapping(int teamId, NewLdapMapping newLdapMapping);
|
||||
IObservable<Team> UpdateTeamMapping(long teamId, NewLdapMapping newLdapMapping);
|
||||
|
||||
/// <summary>
|
||||
/// Queue an LDAP Sync job for a team on a GitHub Enterprise appliance (must be Site Admin user).
|
||||
@@ -53,6 +53,6 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="teamId">The teamId to update LDAP mapping</param>
|
||||
/// <returns>The <see cref="LdapSyncResponse"/> of the queue request.</returns>
|
||||
IObservable<LdapSyncResponse> QueueSyncTeamMapping(int teamId);
|
||||
IObservable<LdapSyncResponse> QueueSyncTeamMapping(long teamId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="teamId">The teamId to update LDAP mapping</param>
|
||||
/// <param name="newLdapMapping">The <see cref="NewLdapMapping"/></param>
|
||||
/// <returns>The <see cref="Team"/> object.</returns>
|
||||
public IObservable<Team> UpdateTeamMapping(int teamId, NewLdapMapping newLdapMapping)
|
||||
public IObservable<Team> UpdateTeamMapping(long teamId, NewLdapMapping newLdapMapping)
|
||||
{
|
||||
return _client.UpdateTeamMapping(teamId, newLdapMapping).ToObservable();
|
||||
}
|
||||
@@ -71,7 +71,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="teamId">The teamId to update LDAP mapping</param>
|
||||
/// <returns>The <see cref="LdapSyncResponse"/> of the queue request.</returns>
|
||||
public IObservable<LdapSyncResponse> QueueSyncTeamMapping(int teamId)
|
||||
public IObservable<LdapSyncResponse> QueueSyncTeamMapping(long teamId)
|
||||
{
|
||||
return _client.QueueSyncTeamMapping(teamId).ToObservable();
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace Octokit.Reactive
|
||||
/// <returns>An <see cref="Authorization"/></returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "It's fiiiine. It's fine. Trust us.")]
|
||||
IObservable<Authorization> Get(int id);
|
||||
IObservable<Authorization> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new personal token for the authenticated user.
|
||||
@@ -132,7 +132,7 @@ namespace Octokit.Reactive
|
||||
string twoFactorAuthenticationCode);
|
||||
|
||||
/// <summary>
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// for that application doesn’t already exist for the user. It returns the user’s token for the application
|
||||
/// if one exists. Otherwise, it creates one.
|
||||
/// </summary>
|
||||
@@ -143,7 +143,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="clientId">Client Id for the OAuth application that is requesting the token</param>
|
||||
/// <param name="clientSecret">The client secret</param>
|
||||
/// <param name="newAuthorization">Defines the scopes and metadata for the token</param>
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// this request. Check </exception>
|
||||
/// <exception cref="TwoFactorRequiredException">Thrown when the current account has two-factor
|
||||
/// authentication enabled.</exception>
|
||||
@@ -154,19 +154,19 @@ namespace Octokit.Reactive
|
||||
NewAuthorization newAuthorization);
|
||||
|
||||
/// <summary>
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// for that application doesn’t already exist for the user. It returns the user’s token for the application
|
||||
/// if one exists. Otherwise, it creates one.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See <a href="http://developer.github.com/v3/oauth/#get-or-create-an-authorization-for-a-specific-app">API
|
||||
/// See <a href="http://developer.github.com/v3/oauth/#get-or-create-an-authorization-for-a-specific-app">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="clientId">Client Id for the OAuth application that is requesting the token</param>
|
||||
/// <param name="clientSecret">The client secret</param>
|
||||
/// <param name="newAuthorization">Defines the scopes and metadata for the token</param>
|
||||
/// <param name="twoFactorAuthenticationCode">The two-factor authentication code provided by the user</param>
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// this request. Check </exception>
|
||||
/// <exception cref="TwoFactorChallengeFailedException">Thrown when the two-factor code is not
|
||||
/// valid.</exception>
|
||||
@@ -219,14 +219,14 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the <see cref="Authorization"/></param>
|
||||
/// <param name="authorizationUpdate">The changes to make to the authorization</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Authorization> Update(int id, AuthorizationUpdate authorizationUpdate);
|
||||
IObservable<Authorization> Update(long id, AuthorizationUpdate authorizationUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified <see cref="Authorization"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This method requires authentication.
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="id">The system-wide Id of the authorization to delete</param>
|
||||
@@ -234,14 +234,14 @@ namespace Octokit.Reactive
|
||||
/// Thrown when the current user does not have permission to make the request.
|
||||
/// </exception>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Unit> Delete(int id);
|
||||
IObservable<Unit> Delete(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified <see cref="Authorization"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This method requires authentication.
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="id">The system-wide Id of the authorization to delete</param>
|
||||
@@ -250,6 +250,6 @@ namespace Octokit.Reactive
|
||||
/// Thrown when the current user does not have permission to make the request.
|
||||
/// </exception>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Unit> Delete(int id, string twoFactorAuthenticationCode);
|
||||
IObservable<Unit> Delete(long id, string twoFactorAuthenticationCode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="owner">The owner of the repository.</param>
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
IObservable<DeploymentStatus> GetAll(string owner, string name, int deploymentId);
|
||||
IObservable<DeploymentStatus> GetAll(string owner, string name, long deploymentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all the statuses for the given deployment. Any user with pull access to a repository can
|
||||
@@ -32,7 +32,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
IObservable<DeploymentStatus> GetAll(long repositoryId, int deploymentId);
|
||||
IObservable<DeploymentStatus> GetAll(long repositoryId, long deploymentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all the statuses for the given deployment. Any user with pull access to a repository can
|
||||
@@ -45,7 +45,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<DeploymentStatus> GetAll(string owner, string name, int deploymentId, ApiOptions options);
|
||||
IObservable<DeploymentStatus> GetAll(string owner, string name, long deploymentId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all the statuses for the given deployment. Any user with pull access to a repository can
|
||||
@@ -57,7 +57,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<DeploymentStatus> GetAll(long repositoryId, int deploymentId, ApiOptions options);
|
||||
IObservable<DeploymentStatus> GetAll(long repositoryId, long deploymentId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new status for the given deployment. Users with push access can create deployment
|
||||
@@ -70,7 +70,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="newDeploymentStatus">The new deployment status to create.</param>
|
||||
IObservable<DeploymentStatus> Create(string owner, string name, int deploymentId, NewDeploymentStatus newDeploymentStatus);
|
||||
IObservable<DeploymentStatus> Create(string owner, string name, long deploymentId, NewDeploymentStatus newDeploymentStatus);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new status for the given deployment. Users with push access can create deployment
|
||||
@@ -82,6 +82,6 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="newDeploymentStatus">The new deployment status to create.</param>
|
||||
IObservable<DeploymentStatus> Create(long repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus);
|
||||
IObservable<DeploymentStatus> Create(long repositoryId, long deploymentId, NewDeploymentStatus newDeploymentStatus);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace Octokit.Reactive
|
||||
/// https://developer.github.com/v3/migration/migrations/#start-a-migration
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization for which to start a migration.</param>
|
||||
/// <param name="migration">Specifies parameters for the migration in a
|
||||
/// <param name="migration">Specifies parameters for the migration in a
|
||||
/// <see cref="StartMigrationRequest"/> object.</param>
|
||||
/// <returns>The started migration.</returns>
|
||||
IObservable<Migration> Start(
|
||||
@@ -64,7 +64,7 @@ namespace Octokit.Reactive
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
IObservable<Migration> Get(
|
||||
string org,
|
||||
int id);
|
||||
long id);
|
||||
|
||||
/// <summary>
|
||||
/// Get the migration archive.
|
||||
@@ -77,7 +77,7 @@ namespace Octokit.Reactive
|
||||
/// <returns>The binary contents of the archive as a byte array.</returns>
|
||||
IObservable<byte[]> GetArchive(
|
||||
string org,
|
||||
int id);
|
||||
long id);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a previous migration archive.
|
||||
@@ -90,7 +90,7 @@ namespace Octokit.Reactive
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> DeleteArchive(
|
||||
string org,
|
||||
int id);
|
||||
long id);
|
||||
|
||||
/// <summary>
|
||||
/// Unlocks a repository that was locked for migration.
|
||||
@@ -104,7 +104,7 @@ namespace Octokit.Reactive
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> UnlockRepository(
|
||||
string org,
|
||||
int id,
|
||||
long id,
|
||||
string repo);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -318,7 +318,7 @@ namespace Octokit.Reactive
|
||||
/// details of the organization invitation</param>
|
||||
/// <returns></returns>
|
||||
IObservable<OrganizationMembershipInvitation> CreateOrganizationInvitation(string org, OrganizationInvitationRequest invitationRequest);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Remove a user's membership with an organization.
|
||||
/// </summary>
|
||||
@@ -389,7 +389,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="org">The login for the organization</param>
|
||||
/// <param name="invitationId">The unique identifier of the invitation</param>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> CancelOrganizationInvitation(string org, int invitationId);
|
||||
IObservable<Unit> CancelOrganizationInvitation(string org, long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all <see cref="OrganizationMembership" />s for the current user.
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
IObservable<ProjectCard> Get(int id);
|
||||
IObservable<ProjectCard> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a card.
|
||||
@@ -79,7 +79,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
/// <param name="projectCardUpdate">New values to update the card with</param>
|
||||
IObservable<ProjectCard> Update(int id, ProjectCardUpdate projectCardUpdate);
|
||||
IObservable<ProjectCard> Update(long id, ProjectCardUpdate projectCardUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a card.
|
||||
@@ -88,7 +88,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#delete-a-project-card">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
IObservable<bool> Delete(int id);
|
||||
IObservable<bool> Delete(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Moves a card.
|
||||
@@ -98,6 +98,6 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
/// <param name="position">The position to move the card</param>
|
||||
IObservable<bool> Move(int id, ProjectCardMove position);
|
||||
IObservable<bool> Move(long id, ProjectCardMove position);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Release> Get(string owner, string name, int id);
|
||||
IObservable<Release> Get(string owner, string name, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single <see cref="Release"/> for the specified repository.
|
||||
@@ -113,7 +113,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Release> Get(long repositoryId, int id);
|
||||
IObservable<Release> Get(long repositoryId, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single <see cref="Release"/> for the specified repository.
|
||||
@@ -181,7 +181,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <param name="data">A description of the release to edit</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Release> Edit(string owner, string name, int id, ReleaseUpdate data);
|
||||
IObservable<Release> Edit(string owner, string name, long id, ReleaseUpdate data);
|
||||
|
||||
/// <summary>
|
||||
/// Edits an existing <see cref="Release"/> for the specified repository.
|
||||
@@ -193,7 +193,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <param name="data">A description of the release to edit</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Release> Edit(long repositoryId, int id, ReleaseUpdate data);
|
||||
IObservable<Release> Edit(long repositoryId, long id, ReleaseUpdate data);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes an existing <see cref="Release"/> for the specified repository.
|
||||
@@ -205,7 +205,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the release to delete</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Unit> Delete(string owner, string name, int id);
|
||||
IObservable<Unit> Delete(string owner, string name, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes an existing <see cref="Release"/> for the specified repository.
|
||||
@@ -216,7 +216,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the release to delete</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<Unit> Delete(long repositoryId, int id);
|
||||
IObservable<Unit> Delete(long repositoryId, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository.
|
||||
@@ -228,7 +228,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<ReleaseAsset> GetAllAssets(string owner, string name, int id);
|
||||
IObservable<ReleaseAsset> GetAllAssets(string owner, string name, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository.
|
||||
@@ -239,7 +239,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<ReleaseAsset> GetAllAssets(long repositoryId, int id);
|
||||
IObservable<ReleaseAsset> GetAllAssets(long repositoryId, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository.
|
||||
@@ -252,7 +252,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<ReleaseAsset> GetAllAssets(string owner, string name, int id, ApiOptions options);
|
||||
IObservable<ReleaseAsset> GetAllAssets(string owner, string name, long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository.
|
||||
@@ -264,7 +264,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
IObservable<ReleaseAsset> GetAllAssets(long repositoryId, int id, ApiOptions options);
|
||||
IObservable<ReleaseAsset> GetAllAssets(long repositoryId, long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Uploads a <see cref="ReleaseAsset"/> for the specified release.
|
||||
|
||||
@@ -11,18 +11,18 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Accept(int invitationId);
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Accept(long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Decline a repository invitation.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#decline-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Decline(int invitationId);
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Decline(long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a repository invitation.
|
||||
@@ -31,15 +31,15 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#delete-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository.</param>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Delete(long repositoryId, int invitationId);
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
IObservable<bool> Delete(long repositoryId, long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all invitations for the current user.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// </remarks>
|
||||
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
|
||||
IObservable<RepositoryInvitation> GetAllForCurrent();
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
|
||||
IObservable<RepositoryInvitation> GetAllForCurrent(ApiOptions options);
|
||||
|
||||
@@ -58,8 +58,8 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository</param>
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository</param>
|
||||
IObservable<RepositoryInvitation> GetAllForRepository(long repositoryId);
|
||||
|
||||
/// <summary>
|
||||
@@ -67,9 +67,9 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository</param>
|
||||
/// /// <param name="options">Options for changing the API response</param>
|
||||
/// /// <param name="options">Options for changing the API response</param>
|
||||
IObservable<RepositoryInvitation> GetAllForRepository(long repositoryId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
@@ -79,9 +79,9 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#update-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository.</param>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
/// <param name="permissions">The permission to set.</param>
|
||||
/// <returns><see cref="RepositoryInvitation"/></returns>
|
||||
IObservable<RepositoryInvitation> Edit(long repositoryId, int invitationId, InvitationUpdate permissions);
|
||||
IObservable<RepositoryInvitation> Edit(long repositoryId, long invitationId, InvitationUpdate permissions);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Octokit.Reactive
|
||||
/// <returns>The <see cref="Team"/> with the given identifier.</returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
IObservable<Team> Get(int id);
|
||||
IObservable<Team> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all <see cref="Team" />s for the current org.
|
||||
@@ -65,7 +65,7 @@ namespace Octokit.Reactive
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-child-teams
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
IObservable<Team> GetAllChildTeams(int id);
|
||||
IObservable<Team> GetAllChildTeams(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all child teams of the given team.
|
||||
@@ -75,26 +75,26 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Team> GetAllChildTeams(int id, ApiOptions options);
|
||||
IObservable<Team> GetAllChildTeams(long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all members of the given team.
|
||||
/// Returns all members of the given team.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-team-members
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
IObservable<User> GetAllMembers(int id);
|
||||
IObservable<User> GetAllMembers(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all members of the given team.
|
||||
/// Returns all members of the given team.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-team-members
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
IObservable<User> GetAllMembers(int id, ApiOptions options);
|
||||
IObservable<User> GetAllMembers(long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all members with the specified role in the given team of the given role.
|
||||
@@ -104,7 +104,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="request">The request filter</param>
|
||||
IObservable<User> GetAllMembers(int id, TeamMembersRequest request);
|
||||
IObservable<User> GetAllMembers(long id, TeamMembersRequest request);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all members with the specified role in the given team of the given role.
|
||||
@@ -115,7 +115,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="request">The request filter</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
IObservable<User> GetAllMembers(int id, TeamMembersRequest request, ApiOptions options);
|
||||
IObservable<User> GetAllMembers(long id, TeamMembersRequest request, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Returns newly created <see cref="Team" /> for the current org.
|
||||
@@ -129,7 +129,7 @@ namespace Octokit.Reactive
|
||||
/// To edit a team, the authenticated user must either be an organization owner or a team maintainer
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team">API documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <returns>updated <see cref="Team" /> for the current org</returns>
|
||||
@@ -139,22 +139,22 @@ namespace Octokit.Reactive
|
||||
/// Returns updated <see cref="Team" /> for the current org.
|
||||
/// This endpoint route is deprecated and will be removed from the Teams API.
|
||||
/// We recommend migrating your existing code to use the new Update a team endpoint.
|
||||
/// <see cref="Update(string, string, UpdateTeam)"/>
|
||||
/// <see cref="Update(long, UpdateTeam)"/>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team-legacy">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team-legacy">API documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>Updated <see cref="Team"/></returns>
|
||||
IObservable<Team> Update(int id, UpdateTeam team);
|
||||
IObservable<Team> Update(long id, UpdateTeam team);
|
||||
|
||||
/// <summary>
|
||||
/// To delete a team, the authenticated user must be an organization owner or team maintainer.
|
||||
/// If you are an organization owner, deleting a parent team will delete all of its child teams as well.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team">API documentation</a>
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization name. The name is not case sensitive.</param>
|
||||
/// <param name="teamSlug">The slug of the team name.</param>
|
||||
@@ -169,12 +169,12 @@ namespace Octokit.Reactive
|
||||
/// <see cref="Delete(string, string)"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team-legacy">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team-legacy">API documentation</a>
|
||||
/// </remarks>
|
||||
/// <param name="id">The unique identifier of the team.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Delete(int id);
|
||||
IObservable<Unit> Delete(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a <see cref="User"/> to a <see cref="Team"/>.
|
||||
@@ -185,7 +185,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier.</param>
|
||||
/// <param name="login">The user to add to the team.</param>
|
||||
/// <param name="request">Additional parameters for the request</param>
|
||||
IObservable<TeamMembershipDetails> AddOrEditMembership(int id, string login, UpdateTeamMembership request);
|
||||
IObservable<TeamMembershipDetails> AddOrEditMembership(long id, string login, UpdateTeamMembership request);
|
||||
|
||||
/// <summary>
|
||||
/// Removes a <see cref="User"/> from a <see cref="Team"/>.
|
||||
@@ -196,10 +196,10 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier.</param>
|
||||
/// <param name="login">The user to remove from the team.</param>
|
||||
/// <returns><see langword="true"/> if the user was removed from the team; <see langword="false"/> otherwise.</returns>
|
||||
IObservable<bool> RemoveMembership(int id, string login);
|
||||
IObservable<bool> RemoveMembership(long id, string login);
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether the user with the given <paramref name="login"/>
|
||||
/// Gets whether the user with the given <paramref name="login"/>
|
||||
/// is a member of the team with the given <paramref name="id"/>.
|
||||
/// A <see cref="NotFoundException"/> is thrown if the user is not a member.
|
||||
/// </summary>
|
||||
@@ -208,7 +208,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team to check.</param>
|
||||
/// <param name="login">The user to check.</param>
|
||||
IObservable<TeamMembershipDetails> GetMembershipDetails(int id, string login);
|
||||
IObservable<TeamMembershipDetails> GetMembershipDetails(long id, string login);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all team's repositories.
|
||||
@@ -216,7 +216,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">Team Id.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The team's repositories</returns>
|
||||
IObservable<Repository> GetAllRepositories(int id);
|
||||
IObservable<Repository> GetAllRepositories(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all team's repositories.
|
||||
@@ -225,14 +225,14 @@ namespace Octokit.Reactive
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The team's repositories</returns>
|
||||
IObservable<Repository> GetAllRepositories(int id, ApiOptions options);
|
||||
IObservable<Repository> GetAllRepositories(long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Remove a repository from the team
|
||||
/// </summary>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
IObservable<bool> RemoveRepository(int id, string organization, string repoName);
|
||||
IObservable<bool> RemoveRepository(long id, string organization, string repoName);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a <see cref="Repository"/> to a <see cref="Team"/>.
|
||||
@@ -245,7 +245,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#add-team-repo">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns><see langword="true"/> if the repository was added to the team; <see langword="false"/> otherwise.</returns>
|
||||
IObservable<bool> AddRepository(int id, string organization, string repoName);
|
||||
IObservable<bool> AddRepository(long id, string organization, string repoName);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a <see cref="Repository"/> to a <see cref="Team"/>.
|
||||
@@ -259,7 +259,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#add-team-repo">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns><see langword="true"/> if the repository was added to the team; <see langword="false"/> otherwise.</returns>
|
||||
IObservable<bool> AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission);
|
||||
IObservable<bool> AddRepository(long id, string organization, string repoName, RepositoryPermissionRequest permission);
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether or not the given repository is managed by the given team.
|
||||
@@ -271,7 +271,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#get-team-repo">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns><see langword="true"/> if the repository is managed by the given team; <see langword="false"/> otherwise.</returns>
|
||||
IObservable<bool> IsRepositoryManagedByTeam(int id, string owner, string repo);
|
||||
IObservable<bool> IsRepositoryManagedByTeam(long id, string owner, string repo);
|
||||
|
||||
/// <summary>
|
||||
/// List all pending invitations for the given team.
|
||||
@@ -282,7 +282,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <returns></returns>
|
||||
IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(int id);
|
||||
IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(long id);
|
||||
|
||||
/// <summary>
|
||||
/// List all pending invitations for the given team.
|
||||
@@ -294,7 +294,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
/// <returns></returns>
|
||||
IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(int id, ApiOptions options);
|
||||
IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Checks whether a team has admin, push, maintain, triage, or pull permission for a repository.
|
||||
@@ -339,9 +339,9 @@ namespace Octokit.Reactive
|
||||
/// <param name="owner">The account owner of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="repo">The name of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="permission">
|
||||
/// The permission to grant the team on this repository. We accept the following permissions to be set:
|
||||
/// pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the
|
||||
/// owning organization has defined any. If no permission is specified, the team's permission attribute
|
||||
/// The permission to grant the team on this repository. We accept the following permissions to be set:
|
||||
/// pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the
|
||||
/// owning organization has defined any. If no permission is specified, the team's permission attribute
|
||||
/// will be used to determine what permission to grant the team on this repository
|
||||
/// </param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
@@ -362,7 +362,7 @@ namespace Octokit.Reactive
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> RemoveRepositoryFromATeam(string org, string teamSlug, string owner, string repo);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get a team by slug name
|
||||
/// </summary>
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <returns>The <see cref="GpgKey"/> for the specified Id.</returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
IObservable<GpgKey> Get(int id);
|
||||
IObservable<GpgKey> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="GpgKey"/> for the authenticated user.
|
||||
@@ -66,6 +66,6 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns></returns>
|
||||
IObservable<Unit> Delete(int id);
|
||||
IObservable<Unit> Delete(long id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The Id of the SSH key</param>
|
||||
/// <returns>View extended details for a single public key.</returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
IObservable<PublicKey> Get(int id);
|
||||
IObservable<PublicKey> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Create a public key <see cref="NewPublicKey"/>.
|
||||
@@ -83,6 +83,6 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the key to delete</param>
|
||||
/// <returns>Removes a public key.</returns>
|
||||
IObservable<Unit> Delete(int id);
|
||||
IObservable<Unit> Delete(long id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the <see cref="Authorization"/></param>
|
||||
/// <returns>An <see cref="Authorization"/></returns>
|
||||
public IObservable<Authorization> Get(int id)
|
||||
public IObservable<Authorization> Get(long id)
|
||||
{
|
||||
return _client.Get(id).ToObservable();
|
||||
}
|
||||
@@ -177,7 +177,7 @@ namespace Octokit.Reactive
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// for that application doesn’t already exist for the user. It returns the user’s token for the application
|
||||
/// if one exists. Otherwise, it creates one.
|
||||
/// </summary>
|
||||
@@ -188,7 +188,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="clientId">Client Id for the OAuth application that is requesting the token</param>
|
||||
/// <param name="clientSecret">The client secret</param>
|
||||
/// <param name="newAuthorization">Defines the scopes and metadata for the token</param>
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// this request. Check </exception>
|
||||
/// <exception cref="TwoFactorRequiredException">Thrown when the current account has two-factor
|
||||
/// authentication enabled.</exception>
|
||||
@@ -207,19 +207,19 @@ namespace Octokit.Reactive
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// This method will create a new authorization for the specified OAuth application, only if an authorization
|
||||
/// for that application doesn’t already exist for the user. It returns the user’s token for the application
|
||||
/// if one exists. Otherwise, it creates one.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See <a href="http://developer.github.com/v3/oauth/#get-or-create-an-authorization-for-a-specific-app">API
|
||||
/// See <a href="http://developer.github.com/v3/oauth/#get-or-create-an-authorization-for-a-specific-app">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="clientId">Client Id for the OAuth application that is requesting the token</param>
|
||||
/// <param name="clientSecret">The client secret</param>
|
||||
/// <param name="newAuthorization">Defines the scopes and metadata for the token</param>
|
||||
/// <param name="twoFactorAuthenticationCode">The two-factor authentication code provided by the user</param>
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// <exception cref="AuthorizationException">Thrown when the user does not have permission to make
|
||||
/// this request. Check </exception>
|
||||
/// <exception cref="TwoFactorChallengeFailedException">Thrown when the two-factor code is not
|
||||
/// valid.</exception>
|
||||
@@ -307,7 +307,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the <see cref="Authorization"/></param>
|
||||
/// <param name="authorizationUpdate">The changes to make to the authorization</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Authorization> Update(int id, AuthorizationUpdate authorizationUpdate)
|
||||
public IObservable<Authorization> Update(long id, AuthorizationUpdate authorizationUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNull(authorizationUpdate, nameof(authorizationUpdate));
|
||||
|
||||
@@ -319,7 +319,7 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This method requires authentication.
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="id">The system-wide Id of the authorization to delete</param>
|
||||
@@ -327,7 +327,7 @@ namespace Octokit.Reactive
|
||||
/// Thrown when the current user does not have permission to make the request.
|
||||
/// </exception>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Unit> Delete(int id)
|
||||
public IObservable<Unit> Delete(long id)
|
||||
{
|
||||
return _client.Delete(id).ToObservable();
|
||||
}
|
||||
@@ -337,7 +337,7 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This method requires authentication.
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="id">The system-wide Id of the authorization to delete</param>
|
||||
@@ -346,7 +346,7 @@ namespace Octokit.Reactive
|
||||
/// Thrown when the current user does not have permission to make the request.
|
||||
/// </exception>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Unit> Delete(int id, string twoFactorAuthenticationCode)
|
||||
public IObservable<Unit> Delete(long id, string twoFactorAuthenticationCode)
|
||||
{
|
||||
return _client.Delete(id, twoFactorAuthenticationCode).ToObservable();
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace Octokit.Reactive.Clients
|
||||
/// <param name="owner">The owner of the repository.</param>
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
public IObservable<DeploymentStatus> GetAll(string owner, string name, int deploymentId)
|
||||
public IObservable<DeploymentStatus> GetAll(string owner, string name, long deploymentId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -51,7 +51,7 @@ namespace Octokit.Reactive.Clients
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
public IObservable<DeploymentStatus> GetAll(long repositoryId, int deploymentId)
|
||||
public IObservable<DeploymentStatus> GetAll(long repositoryId, long deploymentId)
|
||||
{
|
||||
return GetAll(repositoryId, deploymentId, ApiOptions.None);
|
||||
}
|
||||
@@ -67,7 +67,7 @@ namespace Octokit.Reactive.Clients
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<DeploymentStatus> GetAll(string owner, string name, int deploymentId, ApiOptions options)
|
||||
public IObservable<DeploymentStatus> GetAll(string owner, string name, long deploymentId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -87,7 +87,7 @@ namespace Octokit.Reactive.Clients
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
public IObservable<DeploymentStatus> GetAll(long repositoryId, int deploymentId, ApiOptions options)
|
||||
public IObservable<DeploymentStatus> GetAll(long repositoryId, long deploymentId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace Octokit.Reactive.Clients
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="newDeploymentStatus">The new deployment status to create.</param>
|
||||
public IObservable<DeploymentStatus> Create(string owner, string name, int deploymentId, NewDeploymentStatus newDeploymentStatus)
|
||||
public IObservable<DeploymentStatus> Create(string owner, string name, long deploymentId, NewDeploymentStatus newDeploymentStatus)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -125,7 +125,7 @@ namespace Octokit.Reactive.Clients
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="newDeploymentStatus">The new deployment status to create.</param>
|
||||
public IObservable<DeploymentStatus> Create(long repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus)
|
||||
public IObservable<DeploymentStatus> Create(long repositoryId, long deploymentId, NewDeploymentStatus newDeploymentStatus)
|
||||
{
|
||||
Ensure.ArgumentNotNull(newDeploymentStatus, nameof(newDeploymentStatus));
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="org">The organization which is migrating.</param>
|
||||
/// <param name="id">Migrations Id of the organization.</param>
|
||||
/// <returns>A <see cref="Migration"/> object representing the state of migration.</returns>
|
||||
public IObservable<Migration> Get(string org, int id)
|
||||
public IObservable<Migration> Get(string org, long id)
|
||||
{
|
||||
return _client.Get(org, id).ToObservable();
|
||||
}
|
||||
@@ -88,7 +88,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="org">The organization of which the migration was.</param>
|
||||
/// <param name="id">The Id of the migration.</param>
|
||||
/// <returns>The binary contents of the archive as a byte array.</returns>
|
||||
public IObservable<byte[]> GetArchive(string org, int id)
|
||||
public IObservable<byte[]> GetArchive(string org, long id)
|
||||
{
|
||||
return _client.GetArchive(org, id).ToObservable();
|
||||
}
|
||||
@@ -102,7 +102,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="org">The organization of which the migration was.</param>
|
||||
/// <param name="id">The Id of the migration.</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> DeleteArchive(string org, int id)
|
||||
public IObservable<Unit> DeleteArchive(string org, long id)
|
||||
{
|
||||
return _client.DeleteArchive(org, id).ToObservable();
|
||||
}
|
||||
@@ -117,7 +117,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The Id of the migration.</param>
|
||||
/// <param name="repo">The repo to unlock.</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> UnlockRepository(string org, int id, string repo)
|
||||
public IObservable<Unit> UnlockRepository(string org, long id, string repo)
|
||||
{
|
||||
return _client.UnlockRepository(org, id, repo).ToObservable();
|
||||
}
|
||||
|
||||
@@ -418,7 +418,7 @@ namespace Octokit.Reactive
|
||||
|
||||
return _client.AddOrUpdateOrganizationMembership(org, user, addOrUpdateRequest).ToObservable();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Create an organization invitation for a user
|
||||
/// </summary>
|
||||
@@ -539,7 +539,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="invitationId">The unique identifier of the invitation</param>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("DELETE", "/orgs/{org}/invitations/{invitation_id}")]
|
||||
public IObservable<Unit> CancelOrganizationInvitation(string org, int invitationId)
|
||||
public IObservable<Unit> CancelOrganizationInvitation(string org, long invitationId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNullOrDefault(invitationId, nameof(invitationId));
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#get-a-project-card">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
public IObservable<ProjectCard> Get(int id)
|
||||
public IObservable<ProjectCard> Get(long id)
|
||||
{
|
||||
return _client.Get(id).ToObservable();
|
||||
}
|
||||
@@ -119,7 +119,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
/// <param name="projectCardUpdate">New values to update the card with</param>
|
||||
public IObservable<ProjectCard> Update(int id, ProjectCardUpdate projectCardUpdate)
|
||||
public IObservable<ProjectCard> Update(long id, ProjectCardUpdate projectCardUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNull(projectCardUpdate, nameof(projectCardUpdate));
|
||||
|
||||
@@ -133,7 +133,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#delete-a-project-card">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
public IObservable<bool> Delete(int id)
|
||||
public IObservable<bool> Delete(long id)
|
||||
{
|
||||
return _client.Delete(id).ToObservable();
|
||||
}
|
||||
@@ -143,10 +143,10 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#move-a-project-card">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
/// <param name="position">The position to move the card</param>
|
||||
public IObservable<bool> Move(int id, ProjectCardMove position)
|
||||
public IObservable<bool> Move(long id, ProjectCardMove position)
|
||||
{
|
||||
Ensure.ArgumentNotNull(position, nameof(position));
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Release> Get(string owner, string name, int id)
|
||||
public IObservable<Release> Get(string owner, string name, long id)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -171,7 +171,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Release> Get(long repositoryId, int id)
|
||||
public IObservable<Release> Get(long repositoryId, long id)
|
||||
{
|
||||
return _client.Get(repositoryId, id).ToObservable();
|
||||
}
|
||||
@@ -268,7 +268,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <param name="data">A description of the release to edit</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Release> Edit(string owner, string name, int id, ReleaseUpdate data)
|
||||
public IObservable<Release> Edit(string owner, string name, long id, ReleaseUpdate data)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -287,7 +287,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <param name="data">A description of the release to edit</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Release> Edit(long repositoryId, int id, ReleaseUpdate data)
|
||||
public IObservable<Release> Edit(long repositoryId, long id, ReleaseUpdate data)
|
||||
{
|
||||
Ensure.ArgumentNotNull(data, nameof(data));
|
||||
|
||||
@@ -304,7 +304,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the release to delete</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Unit> Delete(string owner, string name, int id)
|
||||
public IObservable<Unit> Delete(string owner, string name, long id)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -321,7 +321,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the release to delete</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<Unit> Delete(long repositoryId, int id)
|
||||
public IObservable<Unit> Delete(long repositoryId, long id)
|
||||
{
|
||||
return _client.Delete(repositoryId, id).ToObservable();
|
||||
}
|
||||
@@ -336,7 +336,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<ReleaseAsset> GetAllAssets(string owner, string name, int id)
|
||||
public IObservable<ReleaseAsset> GetAllAssets(string owner, string name, long id)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -353,7 +353,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<ReleaseAsset> GetAllAssets(long repositoryId, int id)
|
||||
public IObservable<ReleaseAsset> GetAllAssets(long repositoryId, long id)
|
||||
{
|
||||
return GetAllAssets(repositoryId, id, ApiOptions.None);
|
||||
}
|
||||
@@ -369,7 +369,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<ReleaseAsset> GetAllAssets(string owner, string name, int id, ApiOptions options)
|
||||
public IObservable<ReleaseAsset> GetAllAssets(string owner, string name, long id, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -388,7 +388,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
public IObservable<ReleaseAsset> GetAllAssets(long repositoryId, int id, ApiOptions options)
|
||||
public IObservable<ReleaseAsset> GetAllAssets(long repositoryId, long id, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
public IObservable<bool> Accept(int invitationId)
|
||||
public IObservable<bool> Accept(long invitationId)
|
||||
{
|
||||
return _client.Accept(invitationId).ToObservable();
|
||||
}
|
||||
@@ -38,7 +38,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#decline-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
public IObservable<bool> Decline(int invitationId)
|
||||
public IObservable<bool> Decline(long invitationId)
|
||||
{
|
||||
return _client.Decline(invitationId).ToObservable();
|
||||
}
|
||||
@@ -51,7 +51,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository.</param>
|
||||
/// <param name="invitationId">The id of the invitation.</param>
|
||||
public IObservable<bool> Delete(long repositoryId, int invitationId)
|
||||
public IObservable<bool> Delete(long repositoryId, long invitationId)
|
||||
{
|
||||
return _client.Delete(repositoryId, invitationId).ToObservable();
|
||||
}
|
||||
@@ -65,7 +65,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="repositoryId">The id of the repository.</param>
|
||||
/// <param name="invitationId">The id of the invitatio.n</param>
|
||||
/// <param name="permissions">The permission to set.</param>
|
||||
public IObservable<RepositoryInvitation> Edit(long repositoryId, int invitationId, InvitationUpdate permissions)
|
||||
public IObservable<RepositoryInvitation> Edit(long repositoryId, long invitationId, InvitationUpdate permissions)
|
||||
{
|
||||
Ensure.ArgumentNotNull(permissions, nameof(permissions));
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier.</param>
|
||||
/// <returns>The <see cref="Team"/> with the given identifier.</returns>
|
||||
public IObservable<Team> Get(int id)
|
||||
public IObservable<Team> Get(long id)
|
||||
{
|
||||
return _client.Get(id).ToObservable();
|
||||
}
|
||||
@@ -97,7 +97,7 @@ namespace Octokit.Reactive
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-child-teams
|
||||
/// </remarks>
|
||||
public IObservable<Team> GetAllChildTeams(int id)
|
||||
public IObservable<Team> GetAllChildTeams(long id)
|
||||
{
|
||||
return GetAllChildTeams(id, ApiOptions.None);
|
||||
}
|
||||
@@ -110,7 +110,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
public IObservable<Team> GetAllChildTeams(int id, ApiOptions options)
|
||||
public IObservable<Team> GetAllChildTeams(long id, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>A list of the team's member <see cref="User"/>s.</returns>
|
||||
public IObservable<User> GetAllMembers(int id)
|
||||
public IObservable<User> GetAllMembers(long id)
|
||||
{
|
||||
return GetAllMembers(id, ApiOptions.None);
|
||||
}
|
||||
@@ -141,7 +141,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>A list of the team's member <see cref="User"/>s.</returns>
|
||||
public IObservable<User> GetAllMembers(int id, ApiOptions options)
|
||||
public IObservable<User> GetAllMembers(long id, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
@@ -156,7 +156,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="request">The request filter</param>
|
||||
public IObservable<User> GetAllMembers(int id, TeamMembersRequest request)
|
||||
public IObservable<User> GetAllMembers(long id, TeamMembersRequest request)
|
||||
{
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="request">The request filter</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
public IObservable<User> GetAllMembers(int id, TeamMembersRequest request, ApiOptions options)
|
||||
public IObservable<User> GetAllMembers(long id, TeamMembersRequest request, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
@@ -198,7 +198,7 @@ namespace Octokit.Reactive
|
||||
/// To edit a team, the authenticated user must either be an organization owner or a team maintainer
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team">API documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <returns>updated <see cref="Team" /> for the current org</returns>
|
||||
@@ -218,12 +218,12 @@ namespace Octokit.Reactive
|
||||
/// <see cref="Update(string, string, UpdateTeam)"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team-legacy">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team-legacy">API documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>Updated <see cref="Team"/></returns>
|
||||
public IObservable<Team> Update(int id, UpdateTeam team)
|
||||
public IObservable<Team> Update(long id, UpdateTeam team)
|
||||
{
|
||||
Ensure.ArgumentNotNull(team, nameof(team));
|
||||
|
||||
@@ -235,7 +235,7 @@ namespace Octokit.Reactive
|
||||
/// If you are an organization owner, deleting a parent team will delete all of its child teams as well.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team">API documentation</a>
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization name. The name is not case sensitive.</param>
|
||||
/// <param name="teamSlug">The slug of the team name.</param>
|
||||
@@ -245,7 +245,7 @@ namespace Octokit.Reactive
|
||||
{
|
||||
Ensure.ArgumentNotNull(org, nameof(org));
|
||||
Ensure.ArgumentNotNull(teamSlug, nameof(teamSlug));
|
||||
|
||||
|
||||
return _client.Delete(org, teamSlug).ToObservable();
|
||||
}
|
||||
|
||||
@@ -256,12 +256,12 @@ namespace Octokit.Reactive
|
||||
/// <see cref="Delete(string, string)"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team-legacy">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team-legacy">API documentation</a>
|
||||
/// </remarks>
|
||||
/// <param name="id">The unique identifier of the team.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Delete(int id)
|
||||
public IObservable<Unit> Delete(long id)
|
||||
{
|
||||
return _client.Delete(id).ToObservable();
|
||||
}
|
||||
@@ -275,7 +275,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier.</param>
|
||||
/// <param name="login">The user to add to the team.</param>
|
||||
/// <param name="request">Additional parameters for the request</param>
|
||||
public IObservable<TeamMembershipDetails> AddOrEditMembership(int id, string login, UpdateTeamMembership request)
|
||||
public IObservable<TeamMembershipDetails> AddOrEditMembership(long id, string login, UpdateTeamMembership request)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(login, nameof(login));
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
@@ -292,7 +292,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier.</param>
|
||||
/// <param name="login">The user to remove from the team.</param>
|
||||
/// <returns><see langword="true"/> if the user was removed from the team; <see langword="false"/> otherwise.</returns>
|
||||
public IObservable<bool> RemoveMembership(int id, string login)
|
||||
public IObservable<bool> RemoveMembership(long id, string login)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(login, nameof(login));
|
||||
|
||||
@@ -309,7 +309,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team to check.</param>
|
||||
/// <param name="login">The user to check.</param>
|
||||
public IObservable<TeamMembershipDetails> GetMembershipDetails(int id, string login)
|
||||
public IObservable<TeamMembershipDetails> GetMembershipDetails(long id, string login)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(login, nameof(login));
|
||||
|
||||
@@ -321,7 +321,7 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The team's repositories</returns>
|
||||
public IObservable<Repository> GetAllRepositories(int id)
|
||||
public IObservable<Repository> GetAllRepositories(long id)
|
||||
{
|
||||
return GetAllRepositories(id, ApiOptions.None);
|
||||
}
|
||||
@@ -333,7 +333,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The team's repositories</returns>
|
||||
public IObservable<Repository> GetAllRepositories(int id, ApiOptions options)
|
||||
public IObservable<Repository> GetAllRepositories(long id, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
@@ -351,7 +351,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#add-team-repo">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns><see langword="true"/> if the repository was added to the team; <see langword="false"/> otherwise.</returns>
|
||||
public IObservable<bool> AddRepository(int id, string organization, string repoName)
|
||||
public IObservable<bool> AddRepository(long id, string organization, string repoName)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName));
|
||||
@@ -371,7 +371,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#add-team-repo">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns><see langword="true"/> if the repository was added to the team; <see langword="false"/> otherwise.</returns>
|
||||
public IObservable<bool> AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission)
|
||||
public IObservable<bool> AddRepository(long id, string organization, string repoName, RepositoryPermissionRequest permission)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName));
|
||||
@@ -384,7 +384,7 @@ namespace Octokit.Reactive
|
||||
/// </summary>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
public IObservable<bool> RemoveRepository(int id, string organization, string repoName)
|
||||
public IObservable<bool> RemoveRepository(long id, string organization, string repoName)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName));
|
||||
@@ -402,7 +402,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#get-team-repo">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns><see langword="true"/> if the repository is managed by the given team; <see langword="false"/> otherwise.</returns>
|
||||
public IObservable<bool> IsRepositoryManagedByTeam(int id, string owner, string repo)
|
||||
public IObservable<bool> IsRepositoryManagedByTeam(long id, string owner, string repo)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repo, nameof(repo));
|
||||
@@ -418,7 +418,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(int id)
|
||||
public IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(long id)
|
||||
{
|
||||
Ensure.ArgumentNotNull(id, nameof(id));
|
||||
|
||||
@@ -435,7 +435,7 @@ namespace Octokit.Reactive
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="options">Options to change API behaviour</param>
|
||||
/// <returns></returns>
|
||||
public IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(int id, ApiOptions options)
|
||||
public IObservable<OrganizationMembershipInvitation> GetAllPendingInvitations(long id, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(id, nameof(id));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
@@ -492,9 +492,9 @@ namespace Octokit.Reactive
|
||||
/// <param name="owner">The account owner of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="repo">The name of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="permission">
|
||||
/// The permission to grant the team on this repository. We accept the following permissions to be set:
|
||||
/// pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the
|
||||
/// owning organization has defined any. If no permission is specified, the team's permission attribute
|
||||
/// The permission to grant the team on this repository. We accept the following permissions to be set:
|
||||
/// pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the
|
||||
/// owning organization has defined any. If no permission is specified, the team's permission attribute
|
||||
/// will be used to determine what permission to grant the team on this repository
|
||||
/// </param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/users/gpg_keys/#get-a-single-gpg-key">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns>The <see cref="GpgKey"/> for the specified Id.</returns>
|
||||
public IObservable<GpgKey> Get(int id)
|
||||
public IObservable<GpgKey> Get(long id)
|
||||
{
|
||||
return _client.Get(id).ToObservable();
|
||||
}
|
||||
@@ -91,7 +91,7 @@ namespace Octokit.Reactive
|
||||
/// See the <a href="https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns></returns>
|
||||
public IObservable<Unit> Delete(int id)
|
||||
public IObservable<Unit> Delete(long id)
|
||||
{
|
||||
return _client.Delete(id).ToObservable();
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The Id of the SSH key</param>
|
||||
/// <returns>View extended details for a single public key.</returns>
|
||||
public IObservable<PublicKey> Get(int id)
|
||||
public IObservable<PublicKey> Get(long id)
|
||||
{
|
||||
return _client.Get(id).ToObservable();
|
||||
}
|
||||
@@ -117,9 +117,9 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the key to delete</param>
|
||||
/// <returns>Removes a public key.</returns>
|
||||
public IObservable<Unit> Delete(int id)
|
||||
public IObservable<Unit> Delete(long id)
|
||||
{
|
||||
return _client.Delete(id).ToObservable();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ public class GitHubClientTests
|
||||
|
||||
var result = github.GetLastApiInfo();
|
||||
|
||||
Assert.Equal(0, result.Links.Count);
|
||||
Assert.Empty(result.Links);
|
||||
Assert.True(result.AcceptedOauthScopes.Count > -1);
|
||||
Assert.True(result.OauthScopes.Count > -1);
|
||||
Assert.False(string.IsNullOrEmpty(result.Etag));
|
||||
@@ -67,8 +67,8 @@ public class GitHubClientTests
|
||||
|
||||
var result = github.GetLastApiInfo();
|
||||
|
||||
Assert.Equal(0, result.Links.Count);
|
||||
Assert.Equal(0, result.AcceptedOauthScopes.Count);
|
||||
Assert.Single(result.Links);
|
||||
Assert.Single(result.AcceptedOauthScopes);
|
||||
Assert.True(result.OauthScopes.Count > 0);
|
||||
Assert.False(string.IsNullOrEmpty(result.Etag));
|
||||
Assert.True(result.RateLimit.Limit > 0);
|
||||
|
||||
@@ -197,7 +197,7 @@ public class IssuesClientTests : IDisposable
|
||||
|
||||
var retrieved = await _issuesClient.Get(_context.RepositoryOwner, _context.RepositoryName, issue.Number);
|
||||
Assert.NotNull(retrieved);
|
||||
Assert.Equal(1, retrieved.Assignees.Count);
|
||||
Assert.Single(retrieved.Assignees);
|
||||
Assert.True(retrieved.Assignees[0].Login == _context.RepositoryOwner);
|
||||
var all = await _issuesClient.GetAllForRepository(_context.RepositoryOwner, _context.RepositoryName);
|
||||
Assert.Contains(all, i => i.Number == retrieved.Number);
|
||||
@@ -226,7 +226,7 @@ public class IssuesClientTests : IDisposable
|
||||
|
||||
var retrieved = await _issuesClient.Get(_context.RepositoryOwner, _context.RepositoryName, issue.Number);
|
||||
Assert.NotNull(retrieved);
|
||||
Assert.Equal(1, retrieved.Assignees.Count);
|
||||
Assert.Single(retrieved.Assignees);
|
||||
Assert.True(retrieved.Assignees[0].Login == _context.RepositoryOwner);
|
||||
|
||||
var update = retrieved.ToUpdate();
|
||||
|
||||
@@ -187,25 +187,25 @@ namespace Octokit.Tests.Integration.Clients
|
||||
public async Task ReturnsOrganizationMembershipInvitationViaUserId()
|
||||
{
|
||||
var user = await _gitHub.User.Get("alfhenrik-test-2");
|
||||
|
||||
|
||||
var organizationInvitationRequest = new OrganizationInvitationRequest(user.Id);
|
||||
var organizationMembershipInvitation = await _gitHub.Organization.Member.CreateOrganizationInvitation(Helper.Organization, organizationInvitationRequest);
|
||||
|
||||
|
||||
Assert.Equal("alfhenrik-test-2", organizationMembershipInvitation.Login);
|
||||
Assert.Equal(OrganizationMembershipRole.DirectMember, organizationMembershipInvitation.Role.Value);
|
||||
Assert.Equal(Helper.UserName, organizationMembershipInvitation.Inviter.Login);
|
||||
|
||||
|
||||
await _gitHub.Organization.Member.RemoveOrganizationMembership(Helper.Organization, "alfhenrik-test-2");
|
||||
}
|
||||
|
||||
|
||||
[OrganizationTest]
|
||||
public async Task ReturnsOrganizationMembershipInvitationViaUserEmail()
|
||||
{
|
||||
var email = RandomEmailGenerator.GenerateRandomEmail();
|
||||
|
||||
|
||||
var organizationInvitationRequest = new OrganizationInvitationRequest(email);
|
||||
var organizationMembershipInvitation = await _gitHub.Organization.Member.CreateOrganizationInvitation(Helper.Organization, organizationInvitationRequest);
|
||||
|
||||
|
||||
Assert.Equal(email, organizationMembershipInvitation.Email);
|
||||
Assert.Equal(OrganizationMembershipRole.DirectMember, organizationMembershipInvitation.Role.Value);
|
||||
Assert.Equal(Helper.UserName, organizationMembershipInvitation.Inviter.Login);
|
||||
@@ -218,7 +218,7 @@ namespace Octokit.Tests.Integration.Clients
|
||||
{
|
||||
var user = await _gitHub.User.Get(Helper.UserName);
|
||||
var organizationInvitationRequest = new OrganizationInvitationRequest(user.Id);
|
||||
|
||||
|
||||
await Assert.ThrowsAsync<ApiValidationException>(() => _gitHub.Organization.Member.CreateOrganizationInvitation(Helper.Organization, organizationInvitationRequest));
|
||||
}
|
||||
|
||||
@@ -228,19 +228,19 @@ namespace Octokit.Tests.Integration.Clients
|
||||
var user = await _gitHub.User.Get("alfhenrik-test-2");
|
||||
|
||||
var team1 = await _gitHub.Organization.Team.Create(Helper.Organization, new NewTeam("TestTeam1"));
|
||||
|
||||
var organizationInvitationRequest = new OrganizationInvitationRequest(user.Id, new int[] {team1.Id});
|
||||
|
||||
var organizationInvitationRequest = new OrganizationInvitationRequest(user.Id, new long[] {team1.Id});
|
||||
var organizationMembershipInvitation = await _gitHub.Organization.Member.CreateOrganizationInvitation(Helper.Organization, organizationInvitationRequest);
|
||||
|
||||
|
||||
Assert.Equal("alfhenrik-test-2", organizationMembershipInvitation.Login);
|
||||
Assert.Equal(OrganizationMembershipRole.DirectMember, organizationMembershipInvitation.Role.Value);
|
||||
Assert.Equal(Helper.UserName, organizationMembershipInvitation.Inviter.Login);
|
||||
Assert.Equal(1, organizationMembershipInvitation.TeamCount);
|
||||
|
||||
|
||||
await _gitHub.Organization.Team.Delete(Helper.Organization, team1.Slug);
|
||||
await _gitHub.Organization.Member.RemoveOrganizationMembership(Helper.Organization, "alfhenrik-test-2");
|
||||
}
|
||||
|
||||
|
||||
[OrganizationTest]
|
||||
public async Task ReturnsOrganizationMembershipInvitationMultipleTeams()
|
||||
{
|
||||
@@ -248,15 +248,15 @@ namespace Octokit.Tests.Integration.Clients
|
||||
|
||||
var team1 = await _gitHub.Organization.Team.Create(Helper.Organization, new NewTeam("TestTeam1"));
|
||||
var team2 = await _gitHub.Organization.Team.Create(Helper.Organization, new NewTeam("TestTeam2"));
|
||||
|
||||
var organizationInvitationRequest = new OrganizationInvitationRequest(user.Id, new int[] {team1.Id, team2.Id});
|
||||
|
||||
var organizationInvitationRequest = new OrganizationInvitationRequest(user.Id, new long[] {team1.Id, team2.Id});
|
||||
var organizationMembershipInvitation = await _gitHub.Organization.Member.CreateOrganizationInvitation(Helper.Organization, organizationInvitationRequest);
|
||||
|
||||
|
||||
Assert.Equal("alfhenrik-test-2", organizationMembershipInvitation.Login);
|
||||
Assert.Equal(OrganizationMembershipRole.DirectMember, organizationMembershipInvitation.Role.Value);
|
||||
Assert.Equal(Helper.UserName, organizationMembershipInvitation.Inviter.Login);
|
||||
Assert.Equal(2, organizationMembershipInvitation.TeamCount);
|
||||
|
||||
|
||||
await _gitHub.Organization.Team.Delete(Helper.Organization, team1.Slug);
|
||||
await _gitHub.Organization.Team.Delete(Helper.Organization, team2.Slug);
|
||||
await _gitHub.Organization.Member.RemoveOrganizationMembership(Helper.Organization, "alfhenrik-test-2");
|
||||
|
||||
@@ -160,7 +160,7 @@ public class ReleasesClientTests
|
||||
|
||||
var releases = await _releaseClient.GetAll(_context.RepositoryOwner, _context.RepositoryName);
|
||||
|
||||
Assert.Equal(1, releases.Count);
|
||||
Assert.Single(releases);
|
||||
Assert.False(releases.First().PublishedAt.HasValue);
|
||||
}
|
||||
|
||||
@@ -173,7 +173,7 @@ public class ReleasesClientTests
|
||||
|
||||
var releases = await _releaseClient.GetAll(_context.Repository.Id);
|
||||
|
||||
Assert.Equal(1, releases.Count);
|
||||
Assert.Single(releases);
|
||||
Assert.False(releases.First().PublishedAt.HasValue);
|
||||
}
|
||||
|
||||
|
||||
@@ -2193,7 +2193,7 @@ public class RepositoriesClientTests
|
||||
NewTeam team = new NewTeam(Helper.MakeNameWithTimestamp("transfer-team"));
|
||||
using (var teamContext = await github.CreateTeamContext(Helper.Organization, team))
|
||||
{
|
||||
var transferTeamIds = new int[] { teamContext.TeamId };
|
||||
var transferTeamIds = new long[] { teamContext.TeamId };
|
||||
var transfer = new RepositoryTransfer(newOwner, transferTeamIds);
|
||||
await github.Repository.Transfer(
|
||||
repositoryContext.RepositoryOwner, repositoryContext.RepositoryName, transfer);
|
||||
@@ -2222,7 +2222,7 @@ public class RepositoriesClientTests
|
||||
NewTeam team = new NewTeam(Helper.MakeNameWithTimestamp("transfer-team"));
|
||||
using (var teamContext = await github.CreateTeamContext(Helper.Organization, team))
|
||||
{
|
||||
var transferTeamIds = new int[] { teamContext.TeamId };
|
||||
var transferTeamIds = new long[] { teamContext.TeamId };
|
||||
var transfer = new RepositoryTransfer(newOwner, transferTeamIds);
|
||||
await github.Repository.Transfer(repositoryContext.RepositoryId, transfer);
|
||||
var transferred = await github.Repository.Get(repositoryContext.RepositoryId);
|
||||
|
||||
@@ -100,13 +100,13 @@ namespace Octokit.Tests.Integration
|
||||
static Helper()
|
||||
{
|
||||
// Force reading of environment variables.
|
||||
// This wasn't happening if UserName/Organization were
|
||||
// This wasn't happening if UserName/Organization were
|
||||
// retrieved before Credentials.
|
||||
Debug.WriteIf(Credentials == null, "No credentials specified.");
|
||||
}
|
||||
|
||||
public static string UserName { get; private set; }
|
||||
|
||||
|
||||
public static string Organization { get; private set; }
|
||||
|
||||
public static bool HasNoOrganization => Organization == null;
|
||||
@@ -214,7 +214,7 @@ namespace Octokit.Tests.Integration
|
||||
DeleteKey(connection, key.Id);
|
||||
}
|
||||
|
||||
public static void DeleteKey(IConnection connection, int keyId)
|
||||
public static void DeleteKey(IConnection connection, long keyId)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -230,7 +230,7 @@ namespace Octokit.Tests.Integration
|
||||
DeleteGpgKey(connection, key.Id);
|
||||
}
|
||||
|
||||
public static void DeleteGpgKey(IConnection connection, int keyId)
|
||||
public static void DeleteGpgKey(IConnection connection, long keyId)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -328,7 +328,7 @@ namespace Octokit.Tests.Integration
|
||||
};
|
||||
}
|
||||
|
||||
public static void DeleteInvitations(IConnection connection, List<string> invitees, int teamId)
|
||||
public static void DeleteInvitations(IConnection connection, List<string> invitees)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -340,7 +340,7 @@ namespace Octokit.Tests.Integration
|
||||
catch { }
|
||||
}
|
||||
|
||||
public static string InviteMemberToTeam(IConnection connection, int teamId, string login)
|
||||
public static string InviteMemberToTeam(IConnection connection, long teamId, string login)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
}
|
||||
|
||||
private readonly IConnection _connection;
|
||||
internal int UserId { get; private set; }
|
||||
internal long UserId { get; private set; }
|
||||
internal string UserLogin { get; private set; }
|
||||
internal string UserEmail { get; private set; }
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
}
|
||||
|
||||
private readonly IConnection _connection;
|
||||
internal int GpgKeyId { get; set; }
|
||||
internal long GpgKeyId { get; set; }
|
||||
internal string KeyId { get; set; }
|
||||
internal string PublicKeyData { get; set; }
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
}
|
||||
|
||||
private readonly IConnection _connection;
|
||||
internal int KeyId { get; private set; }
|
||||
internal long KeyId { get; private set; }
|
||||
internal string KeyTitle { get; private set; }
|
||||
internal string KeyData { get; private set; }
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
}
|
||||
|
||||
private readonly IConnection _connection;
|
||||
internal int TeamId { get; private set; }
|
||||
internal long TeamId { get; private set; }
|
||||
internal string TeamName { get; private set; }
|
||||
|
||||
internal Team Team { get; private set; }
|
||||
@@ -30,7 +30,7 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
public void Dispose()
|
||||
{
|
||||
if (Invitations.Any())
|
||||
Helper.DeleteInvitations(_connection, Invitations, TeamId);
|
||||
Helper.DeleteInvitations(_connection, Invitations);
|
||||
|
||||
Helper.DeleteTeam(_connection, Team);
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
await _client.RemoveOrganizationMembership(Helper.Organization, "alfhenrik-test-2");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class TheCreateOrganizationInvitationMethod
|
||||
{
|
||||
readonly IGitHubClient _gitHub;
|
||||
@@ -80,25 +80,25 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
public async Task ReturnsOrganizationMembershipInvitationViaUserId()
|
||||
{
|
||||
var user = await _gitHub.User.Get("alfhenrik-test-2");
|
||||
|
||||
|
||||
var organizationInvitationRequest = new OrganizationInvitationRequest(user.Id);
|
||||
var organizationMembershipInvitation = await _client.CreateOrganizationInvitation(Helper.Organization, organizationInvitationRequest);
|
||||
|
||||
|
||||
Assert.Equal("alfhenrik-test-2", organizationMembershipInvitation.Login);
|
||||
Assert.Equal(OrganizationMembershipRole.DirectMember, organizationMembershipInvitation.Role.Value);
|
||||
Assert.Equal(Helper.UserName, organizationMembershipInvitation.Inviter.Login);
|
||||
|
||||
|
||||
await _client.RemoveOrganizationMembership(Helper.Organization, "alfhenrik-test-2");
|
||||
}
|
||||
|
||||
|
||||
[OrganizationTest]
|
||||
public async Task ReturnsOrganizationMembershipInvitationViaUserEmail()
|
||||
{
|
||||
var email = RandomEmailGenerator.GenerateRandomEmail();
|
||||
|
||||
|
||||
var organizationInvitationRequest = new OrganizationInvitationRequest(email);
|
||||
var organizationMembershipInvitation = await _client.CreateOrganizationInvitation(Helper.Organization, organizationInvitationRequest);
|
||||
|
||||
|
||||
Assert.Equal(email, organizationMembershipInvitation.Email);
|
||||
Assert.Equal(OrganizationMembershipRole.DirectMember, organizationMembershipInvitation.Role.Value);
|
||||
Assert.Equal(Helper.UserName, organizationMembershipInvitation.Inviter.Login);
|
||||
@@ -111,7 +111,7 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
{
|
||||
var user = await _gitHub.User.Get(Helper.UserName);
|
||||
var organizationInvitationRequest = new OrganizationInvitationRequest(user.Id);
|
||||
|
||||
|
||||
await Assert.ThrowsAsync<ApiValidationException>(() => _client.CreateOrganizationInvitation(Helper.Organization, organizationInvitationRequest).ToTask());
|
||||
}
|
||||
|
||||
@@ -121,19 +121,19 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
var user = await _gitHub.User.Get("alfhenrik-test-2");
|
||||
|
||||
var team1 = await _gitHub.Organization.Team.Create(Helper.Organization, new NewTeam("TestTeam1"));
|
||||
|
||||
var organizationInvitationRequest = new OrganizationInvitationRequest(user.Id, new int[] {team1.Id});
|
||||
|
||||
var organizationInvitationRequest = new OrganizationInvitationRequest(user.Id, new long[] {team1.Id});
|
||||
var organizationMembershipInvitation = await _client.CreateOrganizationInvitation(Helper.Organization, organizationInvitationRequest);
|
||||
|
||||
|
||||
Assert.Equal("alfhenrik-test-2", organizationMembershipInvitation.Login);
|
||||
Assert.Equal(OrganizationMembershipRole.DirectMember, organizationMembershipInvitation.Role.Value);
|
||||
Assert.Equal(Helper.UserName, organizationMembershipInvitation.Inviter.Login);
|
||||
Assert.Equal(1, organizationMembershipInvitation.TeamCount);
|
||||
|
||||
|
||||
await _gitHub.Organization.Team.Delete(Helper.Organization, team1.Slug);
|
||||
await _client.RemoveOrganizationMembership(Helper.Organization, "alfhenrik-test-2");
|
||||
}
|
||||
|
||||
|
||||
[OrganizationTest]
|
||||
public async Task ReturnsOrganizationMembershipInvitationMultipleTeams()
|
||||
{
|
||||
@@ -141,15 +141,15 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
|
||||
var team1 = await _gitHub.Organization.Team.Create(Helper.Organization, new NewTeam("TestTeam1"));
|
||||
var team2 = await _gitHub.Organization.Team.Create(Helper.Organization, new NewTeam("TestTeam2"));
|
||||
|
||||
var organizationInvitationRequest = new OrganizationInvitationRequest(user.Id, new int[] {team1.Id, team2.Id});
|
||||
|
||||
var organizationInvitationRequest = new OrganizationInvitationRequest(user.Id, new long[] {team1.Id, team2.Id});
|
||||
var organizationMembershipInvitation = await _client.CreateOrganizationInvitation(Helper.Organization, organizationInvitationRequest);
|
||||
|
||||
|
||||
Assert.Equal("alfhenrik-test-2", organizationMembershipInvitation.Login);
|
||||
Assert.Equal(OrganizationMembershipRole.DirectMember, organizationMembershipInvitation.Role.Value);
|
||||
Assert.Equal(Helper.UserName, organizationMembershipInvitation.Inviter.Login);
|
||||
Assert.Equal(2, organizationMembershipInvitation.TeamCount);
|
||||
|
||||
|
||||
await _gitHub.Organization.Team.Delete(Helper.Organization, team1.Slug);
|
||||
await _gitHub.Organization.Team.Delete(Helper.Organization, team2.Slug);
|
||||
await _client.RemoveOrganizationMembership(Helper.Organization, "alfhenrik-test-2");
|
||||
|
||||
@@ -277,7 +277,7 @@ namespace Octokit.Tests.Clients
|
||||
{
|
||||
var connection = Substitute.For<IApiConnection>();
|
||||
var client = new RepositoriesClient(connection);
|
||||
var teamId = new int[2] { 35, 42 };
|
||||
var teamId = new long[2] { 35, 42 };
|
||||
var transfer = new RepositoryTransfer("newOwner", teamId);
|
||||
|
||||
await client.Transfer("owner", "name", transfer);
|
||||
@@ -293,7 +293,7 @@ namespace Octokit.Tests.Clients
|
||||
{
|
||||
var connection = Substitute.For<IApiConnection>();
|
||||
var client = new RepositoriesClient(connection);
|
||||
var teamId = new int[2] { 35, 42 };
|
||||
var teamId = new long[2] { 35, 42 };
|
||||
var transfer = new RepositoryTransfer("newOwner", teamId);
|
||||
var repositoryId = 1;
|
||||
|
||||
@@ -310,7 +310,7 @@ namespace Octokit.Tests.Clients
|
||||
{
|
||||
var connection = Substitute.For<IApiConnection>();
|
||||
var client = new RepositoriesClient(connection);
|
||||
var teamId = new int[2] { 35, 42 };
|
||||
var teamId = new long[2] { 35, 42 };
|
||||
var transfer = new RepositoryTransfer("newOwner", teamId);
|
||||
|
||||
await client.Transfer("owner", "name", transfer);
|
||||
@@ -326,7 +326,7 @@ namespace Octokit.Tests.Clients
|
||||
{
|
||||
var connection = Substitute.For<IApiConnection>();
|
||||
var client = new RepositoriesClient(connection);
|
||||
var teamId = new int[2] { 35, 42 };
|
||||
var teamId = new long[2] { 35, 42 };
|
||||
var transfer = new RepositoryTransfer("newOwner", teamId);
|
||||
var repositoryId = 1;
|
||||
|
||||
@@ -343,7 +343,7 @@ namespace Octokit.Tests.Clients
|
||||
{
|
||||
var connection = Substitute.For<IApiConnection>();
|
||||
var client = new RepositoriesClient(connection);
|
||||
var teamId = new int[2] { 35, 42 };
|
||||
var teamId = new long[2] { 35, 42 };
|
||||
var transfer = new RepositoryTransfer("newOwner", teamId);
|
||||
|
||||
await client.Transfer("owner", "name", transfer);
|
||||
@@ -359,7 +359,7 @@ namespace Octokit.Tests.Clients
|
||||
{
|
||||
var connection = Substitute.For<IApiConnection>();
|
||||
var client = new RepositoriesClient(connection);
|
||||
var teamId = new int[2] { 35, 42 };
|
||||
var teamId = new long[2] { 35, 42 };
|
||||
var transfer = new RepositoryTransfer("newOwner", teamId);
|
||||
var repositoryId = 1;
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace Octokit.Tests.Models
|
||||
{
|
||||
public static readonly string emptyName = "";
|
||||
public static readonly string nonemptyName = "name";
|
||||
public static readonly int[] emptyTeamId = new int[] { };
|
||||
public static readonly int[] nonemptyTeamId = new int[] { 1, 2, 3 };
|
||||
public static readonly long[] emptyTeamId = new long[] { };
|
||||
public static readonly long[] nonemptyTeamId = new long[] { 1, 2, 3 };
|
||||
|
||||
public class TheSingleArgumentConstructor
|
||||
{
|
||||
@@ -77,10 +77,10 @@ namespace Octokit.Tests.Models
|
||||
[Fact]
|
||||
public void StoresGivenTeamId()
|
||||
{
|
||||
int[] testTeamId = nonemptyTeamId;
|
||||
long[] testTeamId = nonemptyTeamId;
|
||||
RepositoryTransfer repositoryTransfer = new RepositoryTransfer(nonemptyName, testTeamId);
|
||||
Assert.Equal(repositoryTransfer.TeamIds, testTeamId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Octokit.Tests
|
||||
|
||||
client.UpdateTeamMapping(1, new NewLdapMapping(_distinguishedName));
|
||||
github.Enterprise.Ldap.Received(1).UpdateTeamMapping(
|
||||
Arg.Is<int>(a => a == 1),
|
||||
Arg.Is<long>(a => a == 1),
|
||||
Arg.Is<NewLdapMapping>(a =>
|
||||
a.LdapDistinguishedName == _distinguishedName));
|
||||
}
|
||||
@@ -77,7 +77,7 @@ namespace Octokit.Tests
|
||||
|
||||
client.QueueSyncTeamMapping(1);
|
||||
github.Enterprise.Ldap.Received(1).QueueSyncTeamMapping(
|
||||
Arg.Is<int>(a => a == 1));
|
||||
Arg.Is<long>(a => a == 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Octokit
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The specified <see cref="Authorization"/>.</returns>
|
||||
[ManualRoute("GET", "/authorizations/{id}")]
|
||||
public Task<Authorization> Get(int authorizationId)
|
||||
public Task<Authorization> Get(long authorizationId)
|
||||
{
|
||||
return ApiConnection.Get<Authorization>(ApiUrls.Authorizations(authorizationId), null);
|
||||
}
|
||||
@@ -426,7 +426,7 @@ namespace Octokit
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The updated <see cref="Authorization"/>.</returns>
|
||||
[ManualRoute("PATCH", "/authorizations/{id}")]
|
||||
public Task<Authorization> Update(int authorizationId, AuthorizationUpdate authorizationUpdate)
|
||||
public Task<Authorization> Update(long authorizationId, AuthorizationUpdate authorizationUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNull(authorizationUpdate, nameof(authorizationUpdate));
|
||||
|
||||
@@ -450,7 +450,7 @@ namespace Octokit
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>A <see cref="Task"/> for the request's execution.</returns>
|
||||
[ManualRoute("DELETE", "/authorizations/{id}")]
|
||||
public Task Delete(int authorizationId)
|
||||
public Task Delete(long authorizationId)
|
||||
{
|
||||
return ApiConnection.Delete(ApiUrls.Authorizations(authorizationId));
|
||||
}
|
||||
@@ -471,7 +471,7 @@ namespace Octokit
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>A <see cref="Task"/> for the request's execution.</returns>
|
||||
[ManualRoute("DELETE", "/authorizations/{id}")]
|
||||
public Task Delete(int authorizationId, string twoFactorAuthenticationCode)
|
||||
public Task Delete(long authorizationId, string twoFactorAuthenticationCode)
|
||||
{
|
||||
return ApiConnection.Delete(ApiUrls.Authorizations(authorizationId), twoFactorAuthenticationCode);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Octokit
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class Codespace
|
||||
{
|
||||
public int Id { get; private set; }
|
||||
public long Id { get; private set; }
|
||||
public string Name { get; private set; }
|
||||
public User Owner { get; private set; }
|
||||
public User BillableOwner { get; private set; }
|
||||
@@ -24,7 +24,7 @@ namespace Octokit
|
||||
public string StartUrl { get; private set; }
|
||||
public string StopUrl { get; private set; }
|
||||
|
||||
public Codespace(int id, string name, User owner, User billableOwner, Repository repository, Machine machine, DateTime createdAt, DateTime updatedAt, DateTime lastUsedAt, StringEnum<CodespaceState> state, string url, string machinesUrl, string webUrl, string startUrl, string stopUrl)
|
||||
public Codespace(long id, string name, User owner, User billableOwner, Repository repository, Machine machine, DateTime createdAt, DateTime updatedAt, DateTime lastUsedAt, StringEnum<CodespaceState> state, string url, string machinesUrl, string webUrl, string startUrl, string stopUrl)
|
||||
{
|
||||
Id = id;
|
||||
Name = name;
|
||||
@@ -46,4 +46,4 @@ namespace Octokit
|
||||
public Codespace() { }
|
||||
internal string DebuggerDisplay => string.Format(CultureInfo.CurrentCulture, "Codespace: Id: {0}", Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace Octokit
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
[ManualRoute("GET", "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses")]
|
||||
public Task<IReadOnlyList<DeploymentStatus>> GetAll(string owner, string name, int deploymentId)
|
||||
public Task<IReadOnlyList<DeploymentStatus>> GetAll(string owner, string name, long deploymentId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -46,7 +46,7 @@ namespace Octokit
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
[ManualRoute("GET", "/repositories/{id}/deployments/{deployment_id}/statuses")]
|
||||
public Task<IReadOnlyList<DeploymentStatus>> GetAll(long repositoryId, int deploymentId)
|
||||
public Task<IReadOnlyList<DeploymentStatus>> GetAll(long repositoryId, long deploymentId)
|
||||
{
|
||||
return GetAll(repositoryId, deploymentId, ApiOptions.None);
|
||||
}
|
||||
@@ -63,7 +63,7 @@ namespace Octokit
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
[ManualRoute("GET", "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses")]
|
||||
public Task<IReadOnlyList<DeploymentStatus>> GetAll(string owner, string name, int deploymentId, ApiOptions options)
|
||||
public Task<IReadOnlyList<DeploymentStatus>> GetAll(string owner, string name, long deploymentId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -83,7 +83,7 @@ namespace Octokit
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
[ManualRoute("GET", "/repositories/{id}/deployments/{deployment_id}/statuses")]
|
||||
public Task<IReadOnlyList<DeploymentStatus>> GetAll(long repositoryId, int deploymentId, ApiOptions options)
|
||||
public Task<IReadOnlyList<DeploymentStatus>> GetAll(long repositoryId, long deploymentId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
@@ -102,7 +102,7 @@ namespace Octokit
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="newDeploymentStatus">The new deployment status to create.</param>
|
||||
[ManualRoute("POST", "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses")]
|
||||
public Task<DeploymentStatus> Create(string owner, string name, int deploymentId, NewDeploymentStatus newDeploymentStatus)
|
||||
public Task<DeploymentStatus> Create(string owner, string name, long deploymentId, NewDeploymentStatus newDeploymentStatus)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -122,7 +122,7 @@ namespace Octokit
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="newDeploymentStatus">The new deployment status to create.</param>
|
||||
[ManualRoute("POST", "/repositories/{id}/deployments/{deployment_id}/statuses")]
|
||||
public Task<DeploymentStatus> Create(long repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus)
|
||||
public Task<DeploymentStatus> Create(long repositoryId, long deploymentId, NewDeploymentStatus newDeploymentStatus)
|
||||
{
|
||||
Ensure.ArgumentNotNull(newDeploymentStatus, nameof(newDeploymentStatus));
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace Octokit
|
||||
/// <param name="newLdapMapping">The <see cref="NewLdapMapping"/></param>
|
||||
/// <returns>The <see cref="Team"/> object.</returns>
|
||||
[ManualRoute("PATCH", "/admin/ldap/teams/{team_id}/mapping")]
|
||||
public Task<Team> UpdateTeamMapping(int teamId, NewLdapMapping newLdapMapping)
|
||||
public Task<Team> UpdateTeamMapping(long teamId, NewLdapMapping newLdapMapping)
|
||||
{
|
||||
Ensure.ArgumentNotNull(teamId, nameof(teamId));
|
||||
Ensure.ArgumentNotNull(newLdapMapping, nameof(newLdapMapping));
|
||||
@@ -88,7 +88,7 @@ namespace Octokit
|
||||
/// <param name="teamId">The teamId to update LDAP mapping</param>
|
||||
/// <returns>The <see cref="LdapSyncResponse"/> of the queue request.</returns>
|
||||
[ManualRoute("POST", "/admin/ldap/teams/{team_id}/sync")]
|
||||
public async Task<LdapSyncResponse> QueueSyncTeamMapping(int teamId)
|
||||
public async Task<LdapSyncResponse> QueueSyncTeamMapping(long teamId)
|
||||
{
|
||||
Ensure.ArgumentNotNull(teamId, nameof(teamId));
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace Octokit
|
||||
/// <param name="teamId">The teamId to update LDAP mapping</param>
|
||||
/// <param name="newLdapMapping">The <see cref="NewLdapMapping"/></param>
|
||||
/// <returns>The <see cref="Team"/> object.</returns>
|
||||
Task<Team> UpdateTeamMapping(int teamId, NewLdapMapping newLdapMapping);
|
||||
Task<Team> UpdateTeamMapping(long teamId, NewLdapMapping newLdapMapping);
|
||||
|
||||
/// <summary>
|
||||
/// Queue an LDAP Sync job for a team on a GitHub Enterprise appliance (must be Site Admin user).
|
||||
@@ -50,6 +50,6 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <param name="teamId">The teamId to update LDAP mapping</param>
|
||||
/// <returns>The <see cref="LdapSyncResponse"/> of the queue request.</returns>
|
||||
Task<LdapSyncResponse> QueueSyncTeamMapping(int teamId);
|
||||
Task<LdapSyncResponse> QueueSyncTeamMapping(long teamId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Octokit
|
||||
/// <returns>The specified <see cref="Authorization"/>.</returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "It's fiiiine. It's fine. Trust us.")]
|
||||
Task<Authorization> Get(int id);
|
||||
Task<Authorization> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new personal token for the authenticated user.
|
||||
@@ -151,7 +151,7 @@ namespace Octokit
|
||||
string twoFactorAuthenticationCode);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new authorization for the specified OAuth application if an authorization for that application doesn’t already
|
||||
/// Creates a new authorization for the specified OAuth application if an authorization for that application doesn’t already
|
||||
/// exist for the user; otherwise, returns the user’s existing authorization for that application.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
@@ -175,7 +175,7 @@ namespace Octokit
|
||||
NewAuthorization newAuthorization);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new authorization for the specified OAuth application if an authorization for that application doesn’t already
|
||||
/// Creates a new authorization for the specified OAuth application if an authorization for that application doesn’t already
|
||||
/// exist for the user; otherwise, returns the user’s existing authorization for that application.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
@@ -241,7 +241,7 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This method requires authentication.
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#update-an-existing-authorization">API
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#update-an-existing-authorization">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="id">Id of the <see cref="Authorization"/> to update</param>
|
||||
@@ -251,14 +251,14 @@ namespace Octokit
|
||||
/// </exception>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The updated <see cref="Authorization"/>.</returns>
|
||||
Task<Authorization> Update(int id, AuthorizationUpdate authorizationUpdate);
|
||||
Task<Authorization> Update(long id, AuthorizationUpdate authorizationUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified <see cref="Authorization"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This method requires authentication.
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="id">The system-wide Id of the authorization to delete</param>
|
||||
@@ -267,14 +267,14 @@ namespace Octokit
|
||||
/// </exception>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>A <see cref="Task"/> for the request's execution.</returns>
|
||||
Task Delete(int id);
|
||||
Task Delete(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes the specified <see cref="Authorization"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This method requires authentication.
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// See the <a href="http://developer.github.com/v3/oauth/#delete-an-authorization">API
|
||||
/// documentation</a> for more details.
|
||||
/// </remarks>
|
||||
/// <param name="id">The system-wide Id of the authorization to delete</param>
|
||||
@@ -284,6 +284,6 @@ namespace Octokit
|
||||
/// </exception>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>A <see cref="Task"/> for the request's execution.</returns>
|
||||
Task Delete(int id, string twoFactorAuthenticationCode);
|
||||
Task Delete(long id, string twoFactorAuthenticationCode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Octokit
|
||||
/// <param name="owner">The owner of the repository.</param>
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
Task<IReadOnlyList<DeploymentStatus>> GetAll(string owner, string name, int deploymentId);
|
||||
Task<IReadOnlyList<DeploymentStatus>> GetAll(string owner, string name, long deploymentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all the statuses for the given deployment. Any user with pull access to a repository can
|
||||
@@ -33,7 +33,7 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
Task<IReadOnlyList<DeploymentStatus>> GetAll(long repositoryId, int deploymentId);
|
||||
Task<IReadOnlyList<DeploymentStatus>> GetAll(long repositoryId, long deploymentId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all the statuses for the given deployment. Any user with pull access to a repository can
|
||||
@@ -46,7 +46,7 @@ namespace Octokit
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
Task<IReadOnlyList<DeploymentStatus>> GetAll(string owner, string name, int deploymentId, ApiOptions options);
|
||||
Task<IReadOnlyList<DeploymentStatus>> GetAll(string owner, string name, long deploymentId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all the statuses for the given deployment. Any user with pull access to a repository can
|
||||
@@ -58,7 +58,7 @@ namespace Octokit
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
Task<IReadOnlyList<DeploymentStatus>> GetAll(long repositoryId, int deploymentId, ApiOptions options);
|
||||
Task<IReadOnlyList<DeploymentStatus>> GetAll(long repositoryId, long deploymentId, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new status for the given deployment. Users with push access can create deployment
|
||||
@@ -71,7 +71,7 @@ namespace Octokit
|
||||
/// <param name="name">The name of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="newDeploymentStatus">The new deployment status to create.</param>
|
||||
Task<DeploymentStatus> Create(string owner, string name, int deploymentId, NewDeploymentStatus newDeploymentStatus);
|
||||
Task<DeploymentStatus> Create(string owner, string name, long deploymentId, NewDeploymentStatus newDeploymentStatus);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new status for the given deployment. Users with push access can create deployment
|
||||
@@ -83,6 +83,6 @@ namespace Octokit
|
||||
/// <param name="repositoryId">The Id of the repository.</param>
|
||||
/// <param name="deploymentId">The id of the deployment.</param>
|
||||
/// <param name="newDeploymentStatus">The new deployment status to create.</param>
|
||||
Task<DeploymentStatus> Create(long repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus);
|
||||
Task<DeploymentStatus> Create(long repositoryId, long deploymentId, NewDeploymentStatus newDeploymentStatus);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Octokit
|
||||
/// https://developer.github.com/v3/migration/migrations/#start-a-migration
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization for which to start a migration.</param>
|
||||
/// <param name="migration">Specifies parameters for the migration in a
|
||||
/// <param name="migration">Specifies parameters for the migration in a
|
||||
/// <see cref="StartMigrationRequest"/> object.</param>
|
||||
/// <returns>The started migration.</returns>
|
||||
Task<Migration> Start(
|
||||
@@ -63,7 +63,7 @@ namespace Octokit
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
Task<Migration> Get(
|
||||
string org,
|
||||
int id);
|
||||
long id);
|
||||
|
||||
/// <summary>
|
||||
/// Get the migration archive.
|
||||
@@ -76,7 +76,7 @@ namespace Octokit
|
||||
/// <returns>The binary contents of the archive as a byte array.</returns>
|
||||
Task<byte[]> GetArchive(
|
||||
string org,
|
||||
int id);
|
||||
long id);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a previous migration archive.
|
||||
@@ -89,7 +89,7 @@ namespace Octokit
|
||||
/// <returns></returns>
|
||||
Task DeleteArchive(
|
||||
string org,
|
||||
int id);
|
||||
long id);
|
||||
|
||||
/// <summary>
|
||||
/// Unlocks a repository that was locked for migration.
|
||||
@@ -103,7 +103,7 @@ namespace Octokit
|
||||
/// <returns></returns>
|
||||
Task UnlockRepository(
|
||||
string org,
|
||||
int id,
|
||||
long id,
|
||||
string repo);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -395,7 +395,7 @@ namespace Octokit
|
||||
/// <param name="org">The login for the organization</param>
|
||||
/// <param name="invitationId">The unique identifier of the invitation</param>
|
||||
/// <returns></returns>
|
||||
Task CancelOrganizationInvitation(string org, int invitationId);
|
||||
Task CancelOrganizationInvitation(string org, long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all <see cref="OrganizationMembership" />s for the current user.
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
Task<ProjectCard> Get(int id);
|
||||
Task<ProjectCard> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a card.
|
||||
@@ -80,7 +80,7 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
/// <param name="projectCardUpdate">New values to update the card with</param>
|
||||
Task<ProjectCard> Update(int id, ProjectCardUpdate projectCardUpdate);
|
||||
Task<ProjectCard> Update(long id, ProjectCardUpdate projectCardUpdate);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a card.
|
||||
@@ -89,7 +89,7 @@ namespace Octokit
|
||||
/// See the <a href="https://developer.github.com/v3/repos/projects/#delete-a-project-card">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
Task<bool> Delete(int id);
|
||||
Task<bool> Delete(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Moves a card.
|
||||
@@ -99,6 +99,6 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the card</param>
|
||||
/// <param name="position">The position to move the card</param>
|
||||
Task<bool> Move(int id, ProjectCardMove position);
|
||||
Task<bool> Move(long id, ProjectCardMove position);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Octokit
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task<Release> Get(string owner, string name, int id);
|
||||
Task<Release> Get(string owner, string name, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single <see cref="Release"/> for the specified repository.
|
||||
@@ -113,7 +113,7 @@ namespace Octokit
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task<Release> Get(long repositoryId, int id);
|
||||
Task<Release> Get(long repositoryId, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single <see cref="Release"/> for the specified repository.
|
||||
@@ -181,7 +181,7 @@ namespace Octokit
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <param name="data">A description of the release to edit</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task<Release> Edit(string owner, string name, int id, ReleaseUpdate data);
|
||||
Task<Release> Edit(string owner, string name, long id, ReleaseUpdate data);
|
||||
|
||||
/// <summary>
|
||||
/// Edits an existing <see cref="Release"/> for the specified repository.
|
||||
@@ -193,7 +193,7 @@ namespace Octokit
|
||||
/// <param name="id">The id of the release</param>
|
||||
/// <param name="data">A description of the release to edit</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task<Release> Edit(long repositoryId, int id, ReleaseUpdate data);
|
||||
Task<Release> Edit(long repositoryId, long id, ReleaseUpdate data);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes an existing <see cref="Release"/> for the specified repository.
|
||||
@@ -205,7 +205,7 @@ namespace Octokit
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the release to delete</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task Delete(string owner, string name, int id);
|
||||
Task Delete(string owner, string name, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes an existing <see cref="Release"/> for the specified repository.
|
||||
@@ -216,7 +216,7 @@ namespace Octokit
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the release to delete</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task Delete(long repositoryId, int id);
|
||||
Task Delete(long repositoryId, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository.
|
||||
@@ -228,7 +228,7 @@ namespace Octokit
|
||||
/// <param name="name">The repository's name</param>
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(string owner, string name, int id);
|
||||
Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(string owner, string name, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository.
|
||||
@@ -239,7 +239,7 @@ namespace Octokit
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(long repositoryId, int id);
|
||||
Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(long repositoryId, long id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository.
|
||||
@@ -252,7 +252,7 @@ namespace Octokit
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(string owner, string name, int id, ApiOptions options);
|
||||
Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(string owner, string name, long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all <see cref="ReleaseAsset"/> for the specified release of the specified repository.
|
||||
@@ -264,7 +264,7 @@ namespace Octokit
|
||||
/// <param name="id">The id of the <see cref="Release"/>.</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(long repositoryId, int id, ApiOptions options);
|
||||
Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(long repositoryId, long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Uploads a <see cref="ReleaseAsset"/> for the specified release.
|
||||
|
||||
@@ -17,20 +17,20 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task<bool> Accept(int invitationId);
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task<bool> Accept(long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Decline a repository invitation.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#decline-a-repository-invitation">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// </remarks>
|
||||
/// <param name="invitationId">The id of the invitation</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task<bool> Decline(int invitationId);
|
||||
Task<bool> Decline(long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a repository invitation.
|
||||
@@ -41,14 +41,14 @@ namespace Octokit
|
||||
/// <param name="repositoryId">The id of the repository</param>
|
||||
/// <param name="invitationId">The id of the invitation</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task<bool> Delete(long repositoryId, int invitationId);
|
||||
Task<bool> Delete(long repositoryId, long invitationId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all invitations for the current user.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// </remarks>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
|
||||
Task<IReadOnlyList<RepositoryInvitation>> GetAllForCurrent();
|
||||
@@ -69,7 +69,7 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task<IReadOnlyList<RepositoryInvitation>> GetAllForRepository(long repositoryId);
|
||||
@@ -79,7 +79,7 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// </remarks>
|
||||
/// <param name="repositoryId">The id of the repository</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
@@ -95,6 +95,6 @@ namespace Octokit
|
||||
/// <param name="invitationId">The id of the invitation</param>
|
||||
/// <param name="permissions">The permission for the collaborator</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
Task<RepositoryInvitation> Edit(long repositoryId, int invitationId, InvitationUpdate permissions);
|
||||
Task<RepositoryInvitation> Edit(long repositoryId, long invitationId, InvitationUpdate permissions);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace Octokit
|
||||
/// <returns>The <see cref="Team"/> with the given identifier.</returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
Task<Team> Get(int id);
|
||||
Task<Team> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all <see cref="Team" />s for the current org.
|
||||
@@ -66,7 +66,7 @@ namespace Octokit
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-child-teams
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
Task<IReadOnlyList<Team>> GetAllChildTeams(int id);
|
||||
Task<IReadOnlyList<Team>> GetAllChildTeams(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all child teams of the given team.
|
||||
@@ -76,26 +76,26 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
Task<IReadOnlyList<Team>> GetAllChildTeams(int id, ApiOptions options);
|
||||
Task<IReadOnlyList<Team>> GetAllChildTeams(long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all members of the given team.
|
||||
/// Returns all members of the given team.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-team-members
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
Task<IReadOnlyList<User>> GetAllMembers(int id);
|
||||
Task<IReadOnlyList<User>> GetAllMembers(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all members of the given team.
|
||||
/// Returns all members of the given team.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-team-members
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
Task<IReadOnlyList<User>> GetAllMembers(int id, ApiOptions options);
|
||||
Task<IReadOnlyList<User>> GetAllMembers(long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all members with the specified role in the given team of the given role.
|
||||
@@ -105,7 +105,7 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="request">The request filter</param>
|
||||
Task<IReadOnlyList<User>> GetAllMembers(int id, TeamMembersRequest request);
|
||||
Task<IReadOnlyList<User>> GetAllMembers(long id, TeamMembersRequest request);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all members with the specified role in the given team of the given role.
|
||||
@@ -116,7 +116,7 @@ namespace Octokit
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="request">The request filter</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
Task<IReadOnlyList<User>> GetAllMembers(int id, TeamMembersRequest request, ApiOptions options);
|
||||
Task<IReadOnlyList<User>> GetAllMembers(long id, TeamMembersRequest request, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Returns newly created <see cref="Team" /> for the current org.
|
||||
@@ -130,7 +130,7 @@ namespace Octokit
|
||||
/// To edit a team, the authenticated user must either be an organization owner or a team maintainer
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team">API documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <returns>updated <see cref="Team" /> for the current org</returns>
|
||||
@@ -143,19 +143,19 @@ namespace Octokit
|
||||
/// <see cref="Update(string, string, UpdateTeam)"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team-legacy">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team-legacy">API documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>Updated <see cref="Team"/></returns>
|
||||
Task<Team> Update(int id, UpdateTeam team);
|
||||
Task<Team> Update(long id, UpdateTeam team);
|
||||
|
||||
/// <summary>
|
||||
/// To delete a team, the authenticated user must be an organization owner or team maintainer.
|
||||
/// If you are an organization owner, deleting a parent team will delete all of its child teams as well.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team">API documentation</a>
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization name. The name is not case sensitive.</param>
|
||||
/// <param name="teamSlug">The slug of the team name.</param>
|
||||
@@ -167,15 +167,15 @@ namespace Octokit
|
||||
/// Delete a team - must have owner permissions to do this
|
||||
/// This endpoint route is deprecated and will be removed from the Teams API.
|
||||
/// We recommend migrating your existing code to use the new Delete a team endpoint.
|
||||
/// <see cref="Delete(string, string)"/>.
|
||||
/// <see cref="Delete(long)"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team-legacy">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team-legacy">API documentation</a>
|
||||
/// </remarks>
|
||||
/// <param name="id">The unique identifier of the team.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
Task Delete(int id);
|
||||
Task Delete(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a <see cref="User"/> to a <see cref="Team"/>.
|
||||
@@ -186,7 +186,7 @@ namespace Octokit
|
||||
/// <param name="id">The team identifier.</param>
|
||||
/// <param name="login">The user to add to the team.</param>
|
||||
/// <param name="request">Additional parameters for the request</param>
|
||||
Task<TeamMembershipDetails> AddOrEditMembership(int id, string login, UpdateTeamMembership request);
|
||||
Task<TeamMembershipDetails> AddOrEditMembership(long id, string login, UpdateTeamMembership request);
|
||||
|
||||
/// <summary>
|
||||
/// Removes a <see cref="User"/> from a <see cref="Team"/>.
|
||||
@@ -197,10 +197,10 @@ namespace Octokit
|
||||
/// <param name="id">The team identifier.</param>
|
||||
/// <param name="login">The user to remove from the team.</param>
|
||||
/// <returns><see langword="true"/> if the user was removed from the team; <see langword="false"/> otherwise.</returns>
|
||||
Task<bool> RemoveMembership(int id, string login);
|
||||
Task<bool> RemoveMembership(long id, string login);
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether the user with the given <paramref name="login"/>
|
||||
/// Gets whether the user with the given <paramref name="login"/>
|
||||
/// is a member of the team with the given <paramref name="id"/>.
|
||||
/// A <see cref="NotFoundException"/> is thrown if the user is not a member.
|
||||
/// </summary>
|
||||
@@ -209,7 +209,7 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <param name="id">The team to check.</param>
|
||||
/// <param name="login">The user to check.</param>
|
||||
Task<TeamMembershipDetails> GetMembershipDetails(int id, string login);
|
||||
Task<TeamMembershipDetails> GetMembershipDetails(long id, string login);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all team's repositories.
|
||||
@@ -217,7 +217,7 @@ namespace Octokit
|
||||
/// <param name="id">Team Id to list repos.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The team's repositories</returns>
|
||||
Task<IReadOnlyList<Repository>> GetAllRepositories(int id);
|
||||
Task<IReadOnlyList<Repository>> GetAllRepositories(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all team's repositories.
|
||||
@@ -226,14 +226,14 @@ namespace Octokit
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The team's repositories</returns>
|
||||
Task<IReadOnlyList<Repository>> GetAllRepositories(int id, ApiOptions options);
|
||||
Task<IReadOnlyList<Repository>> GetAllRepositories(long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Add a repository to the team
|
||||
/// </summary>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
Task<bool> AddRepository(int id, string organization, string repoName);
|
||||
Task<bool> AddRepository(long id, string organization, string repoName);
|
||||
|
||||
/// <summary>
|
||||
/// Add a repository to the team
|
||||
@@ -244,14 +244,14 @@ namespace Octokit
|
||||
/// <param name="permission">The permission to grant the team on this repository.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
Task<bool> AddRepository(int id, string organization, string repoName, RepositoryPermissionRequest permission);
|
||||
Task<bool> AddRepository(long id, string organization, string repoName, RepositoryPermissionRequest permission);
|
||||
|
||||
/// <summary>
|
||||
/// Remove a repository from the team
|
||||
/// </summary>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
Task<bool> RemoveRepository(int id, string organization, string repoName);
|
||||
Task<bool> RemoveRepository(long id, string organization, string repoName);
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether or not the given repository is managed by the given team.
|
||||
@@ -263,7 +263,7 @@ namespace Octokit
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#get-team-repo">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns><see langword="true"/> if the repository is managed by the given team; <see langword="false"/> otherwise.</returns>
|
||||
Task<bool> IsRepositoryManagedByTeam(int id, string owner, string repo);
|
||||
Task<bool> IsRepositoryManagedByTeam(long id, string owner, string repo);
|
||||
|
||||
/// <summary>
|
||||
/// List all pending invitations for the given team.
|
||||
@@ -274,7 +274,7 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <returns></returns>
|
||||
Task<IReadOnlyList<OrganizationMembershipInvitation>> GetAllPendingInvitations(int id);
|
||||
Task<IReadOnlyList<OrganizationMembershipInvitation>> GetAllPendingInvitations(long id);
|
||||
|
||||
/// <summary>
|
||||
/// List all pending invitations for the given team.
|
||||
@@ -286,7 +286,7 @@ namespace Octokit
|
||||
/// <param name="id">The team identifier</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
/// <returns></returns>
|
||||
Task<IReadOnlyList<OrganizationMembershipInvitation>> GetAllPendingInvitations(int id, ApiOptions options);
|
||||
Task<IReadOnlyList<OrganizationMembershipInvitation>> GetAllPendingInvitations(long id, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Checks whether a team has admin, push, maintain, triage, or pull permission for a repository.
|
||||
@@ -331,9 +331,9 @@ namespace Octokit
|
||||
/// <param name="owner">The account owner of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="repo">The name of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="permission">
|
||||
/// The permission to grant the team on this repository. We accept the following permissions to be set:
|
||||
/// pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the
|
||||
/// owning organization has defined any. If no permission is specified, the team's permission attribute
|
||||
/// The permission to grant the team on this repository. We accept the following permissions to be set:
|
||||
/// pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the
|
||||
/// owning organization has defined any. If no permission is specified, the team's permission attribute
|
||||
/// will be used to determine what permission to grant the team on this repository
|
||||
/// </param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
@@ -354,7 +354,7 @@ namespace Octokit
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
Task RemoveRepositoryFromATeam(string org, string teamSlug, string owner, string repo);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get a team by slug name
|
||||
/// </summary>
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace Octokit
|
||||
/// <returns>The <see cref="GpgKey"/> for the specified Id.</returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
||||
Justification = "Method makes a network request")]
|
||||
Task<GpgKey> Get(int id);
|
||||
Task<GpgKey> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="GpgKey"/> for the authenticated user.
|
||||
@@ -66,6 +66,6 @@ namespace Octokit
|
||||
/// See the <a href="https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <returns></returns>
|
||||
Task Delete(int id);
|
||||
Task Delete(long id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace Octokit
|
||||
/// <param name="id">The Id of the SSH key</param>
|
||||
/// <returns>View extended details for a single public key.</returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
|
||||
Task<PublicKey> Get(int id);
|
||||
Task<PublicKey> Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// Create a public key <see cref="NewPublicKey"/>.
|
||||
@@ -83,6 +83,6 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <param name="id">The id of the key to delete</param>
|
||||
/// <returns>Removes a public key.</returns>
|
||||
Task Delete(int id);
|
||||
Task Delete(long id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace Octokit
|
||||
/// <param name="id">Migration Id of the organization.</param>
|
||||
/// <returns>A <see cref="Migration"/> object representing the state of migration.</returns>
|
||||
[ManualRoute("GET", "/orgs/{org}/migrations/{id}")]
|
||||
public async Task<Migration> Get(string org, int id)
|
||||
public async Task<Migration> Get(string org, long id)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace Octokit
|
||||
/// <param name="id">The Id of the migration.</param>
|
||||
/// <returns>The binary contents of the archive as a byte array.</returns>
|
||||
[ManualRoute("GET", "/orgs/{org}/migrations/{id}/archive")]
|
||||
public async Task<byte[]> GetArchive(string org, int id)
|
||||
public async Task<byte[]> GetArchive(string org, long id)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
|
||||
@@ -124,7 +124,7 @@ namespace Octokit
|
||||
/// <param name="id">The Id of the migration.</param>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("DELETE", "/orgs/{org}/migrations/{id}/archive")]
|
||||
public Task DeleteArchive(string org, int id)
|
||||
public Task DeleteArchive(string org, long id)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
|
||||
@@ -144,7 +144,7 @@ namespace Octokit
|
||||
/// <param name="repo">The repo to unlock.</param>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("GET", "/orgs/{org}/migrations/{id}/repos/{name}/lock")]
|
||||
public Task UnlockRepository(string org, int id, string repo)
|
||||
public Task UnlockRepository(string org, long id, string repo)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repo, nameof(repo));
|
||||
|
||||
@@ -637,7 +637,7 @@ namespace Octokit
|
||||
/// <param name="invitationId">The unique identifier of the invitation</param>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("DELETE", "/orgs/{org}/invitations/{invitation_id}")]
|
||||
public Task CancelOrganizationInvitation(string org, int invitationId)
|
||||
public Task CancelOrganizationInvitation(string org, long invitationId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNullOrDefault(invitationId, nameof(invitationId));
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <param name="cardId">The id of the card</param>
|
||||
[ManualRoute("GET", "/projects/columns/cards/{card_id}")]
|
||||
public Task<ProjectCard> Get(int cardId)
|
||||
public Task<ProjectCard> Get(long cardId)
|
||||
{
|
||||
return ApiConnection.Get<ProjectCard>(ApiUrls.ProjectCard(cardId), null);
|
||||
}
|
||||
@@ -118,7 +118,7 @@ namespace Octokit
|
||||
/// <param name="cardId">The id of the card</param>
|
||||
/// <param name="projectCardUpdate">New values to update the card with</param>
|
||||
[ManualRoute("GET", "/projects/columns/cards/{card_id}")]
|
||||
public Task<ProjectCard> Update(int cardId, ProjectCardUpdate projectCardUpdate)
|
||||
public Task<ProjectCard> Update(long cardId, ProjectCardUpdate projectCardUpdate)
|
||||
{
|
||||
Ensure.ArgumentNotNull(projectCardUpdate, nameof(projectCardUpdate));
|
||||
|
||||
@@ -133,7 +133,7 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <param name="cardId">The id of the card</param>
|
||||
[ManualRoute("DELETE", "/projects/columns/cards/{card_id}")]
|
||||
public async Task<bool> Delete(int cardId)
|
||||
public async Task<bool> Delete(long cardId)
|
||||
{
|
||||
var endpoint = ApiUrls.ProjectCard(cardId);
|
||||
|
||||
@@ -157,7 +157,7 @@ namespace Octokit
|
||||
/// <param name="cardId">The id of the card</param>
|
||||
/// <param name="position">The position to move the card</param>
|
||||
[ManualRoute("POST", "/projects/columns/cards/{card_id}/moves")]
|
||||
public async Task<bool> Move(int cardId, ProjectCardMove position)
|
||||
public async Task<bool> Move(long cardId, ProjectCardMove position)
|
||||
{
|
||||
Ensure.ArgumentNotNull(position, nameof(position));
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace Octokit
|
||||
/// <param name="releaseId">The id of the release</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[ManualRoute("GET", "/repos/{owner}/{repo}/releases/{release_id}")]
|
||||
public Task<Release> Get(string owner, string name, int releaseId)
|
||||
public Task<Release> Get(string owner, string name, long releaseId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -181,7 +181,7 @@ namespace Octokit
|
||||
/// <param name="releaseId">The id of the release</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[ManualRoute("GET", "/repositories/{id}/releases/{id}")]
|
||||
public Task<Release> Get(long repositoryId, int releaseId)
|
||||
public Task<Release> Get(long repositoryId, long releaseId)
|
||||
{
|
||||
var endpoint = ApiUrls.Releases(repositoryId, releaseId);
|
||||
return ApiConnection.Get<Release>(endpoint);
|
||||
@@ -290,7 +290,7 @@ namespace Octokit
|
||||
/// <param name="data">A description of the release to edit</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[ManualRoute("PATCH", "/repos/{owner}/{repo}/releases/{release_id}")]
|
||||
public Task<Release> Edit(string owner, string name, int releaseId, ReleaseUpdate data)
|
||||
public Task<Release> Edit(string owner, string name, long releaseId, ReleaseUpdate data)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -311,7 +311,7 @@ namespace Octokit
|
||||
/// <param name="data">A description of the release to edit</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[ManualRoute("PATCH", "/repositories/{id}/releases/{id}")]
|
||||
public Task<Release> Edit(long repositoryId, int releaseId, ReleaseUpdate data)
|
||||
public Task<Release> Edit(long repositoryId, long releaseId, ReleaseUpdate data)
|
||||
{
|
||||
Ensure.ArgumentNotNull(data, nameof(data));
|
||||
|
||||
@@ -330,7 +330,7 @@ namespace Octokit
|
||||
/// <param name="releaseId">The id of the release to delete</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[ManualRoute("DELETE", "/repos/{owner}/{repo}/releases/{release_id}")]
|
||||
public Task Delete(string owner, string name, int releaseId)
|
||||
public Task Delete(string owner, string name, long releaseId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -349,7 +349,7 @@ namespace Octokit
|
||||
/// <param name="releaseId">The id of the release to delete</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[ManualRoute("DELETE", "/repositories/{id}/releases/{id}")]
|
||||
public Task Delete(long repositoryId, int releaseId)
|
||||
public Task Delete(long repositoryId, long releaseId)
|
||||
{
|
||||
var endpoint = ApiUrls.Releases(repositoryId, releaseId);
|
||||
return ApiConnection.Delete(endpoint);
|
||||
@@ -366,7 +366,7 @@ namespace Octokit
|
||||
/// <param name="releaseId">The id of the <see cref="Release"/>.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[ManualRoute("GET", "/repos/{owner}/{repo}/releases/{release_id}/assets")]
|
||||
public Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(string owner, string name, int releaseId)
|
||||
public Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(string owner, string name, long releaseId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -384,7 +384,7 @@ namespace Octokit
|
||||
/// <param name="releaseId">The id of the <see cref="Release"/>.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[ManualRoute("GET", "/repositories/{id}/releases/{id}/assets")]
|
||||
public Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(long repositoryId, int releaseId)
|
||||
public Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(long repositoryId, long releaseId)
|
||||
{
|
||||
return GetAllAssets(repositoryId, releaseId, ApiOptions.None);
|
||||
}
|
||||
@@ -401,7 +401,7 @@ namespace Octokit
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[ManualRoute("GET", "/repos/{owner}/{repo}/releases/{release_id}/assets")]
|
||||
public Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(string owner, string name, int releaseId, ApiOptions options)
|
||||
public Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(string owner, string name, long releaseId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
||||
@@ -422,7 +422,7 @@ namespace Octokit
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[ManualRoute("GET", "/repositories/{id}/releases/{id}/assets")]
|
||||
public Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(long repositoryId, int releaseId, ApiOptions options)
|
||||
public Task<IReadOnlyList<ReleaseAsset>> GetAllAssets(long repositoryId, long releaseId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace Octokit
|
||||
/// <param name="invitationId">The id of the invitation</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[ManualRoute("PATCH", "/user/repository_invitations/{invitation_id}")]
|
||||
public async Task<bool> Accept(int invitationId)
|
||||
public async Task<bool> Accept(long invitationId)
|
||||
{
|
||||
var endpoint = ApiUrls.UserInvitations(invitationId);
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace Octokit
|
||||
/// <param name="invitationId">The id of the invitation</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[ManualRoute("DELETE", "/user/repository_invitations/{invitation_id}")]
|
||||
public async Task<bool> Decline(int invitationId)
|
||||
public async Task<bool> Decline(long invitationId)
|
||||
{
|
||||
var endpoint = ApiUrls.UserInvitations(invitationId);
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace Octokit
|
||||
/// <param name="invitationId">The id of the invitation</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[ManualRoute("DELETE", "/repos/:owner/:repo/invitations/{invitation_id}")]
|
||||
public async Task<bool> Delete(long repositoryId, int invitationId)
|
||||
public async Task<bool> Delete(long repositoryId, long invitationId)
|
||||
{
|
||||
var endpoint = ApiUrls.RepositoryInvitations(repositoryId, invitationId);
|
||||
|
||||
@@ -154,7 +154,7 @@ namespace Octokit
|
||||
/// <param name="permissions">The permission for the collaborator</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
[ManualRoute("PATCH", "/repositories/{id}/invitations/{invitation_id}")]
|
||||
public Task<RepositoryInvitation> Edit(long repositoryId, int invitationId, InvitationUpdate permissions)
|
||||
public Task<RepositoryInvitation> Edit(long repositoryId, long invitationId, InvitationUpdate permissions)
|
||||
{
|
||||
Ensure.ArgumentNotNull(permissions, nameof(permissions));
|
||||
|
||||
|
||||
@@ -28,12 +28,12 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#get-team
|
||||
/// </remarks>
|
||||
/// <param name="teamSlug">The team identifier.</param>
|
||||
/// <param name="teamId">The team identifier.</param>
|
||||
/// <returns>The <see cref="Team"/> with the given identifier.</returns>
|
||||
[ManualRoute("GET", "/teams/{team_id}")]
|
||||
public Task<Team> Get(int teamSlug)
|
||||
public Task<Team> Get(long teamId)
|
||||
{
|
||||
var endpoint = ApiUrls.Teams(teamSlug);
|
||||
var endpoint = ApiUrls.Teams(teamId);
|
||||
|
||||
return ApiConnection.Get<Team>(endpoint);
|
||||
}
|
||||
@@ -97,14 +97,14 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Returns all child teams of the given team.
|
||||
/// </summary>
|
||||
/// <param name="teamSlug">The team identifier</param>
|
||||
/// <param name="teamId">The team identifier</param>
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-child-teams
|
||||
/// </remarks>
|
||||
[ManualRoute("GET", "/teams{id}/teams")]
|
||||
public Task<IReadOnlyList<Team>> GetAllChildTeams(int teamSlug)
|
||||
public Task<IReadOnlyList<Team>> GetAllChildTeams(long teamId)
|
||||
{
|
||||
return GetAllChildTeams(teamSlug, ApiOptions.None);
|
||||
return GetAllChildTeams(teamId, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -113,14 +113,14 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-child-teams
|
||||
/// </remarks>
|
||||
/// <param name="teamSlug">The team identifier</param>
|
||||
/// <param name="teamId">The team identifier</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
[ManualRoute("GET", "/teams{id}/teams")]
|
||||
public Task<IReadOnlyList<Team>> GetAllChildTeams(int teamSlug, ApiOptions options)
|
||||
public Task<IReadOnlyList<Team>> GetAllChildTeams(long teamId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
var endpoint = ApiUrls.TeamChildTeams(teamSlug);
|
||||
var endpoint = ApiUrls.TeamChildTeams(teamId);
|
||||
|
||||
return ApiConnection.GetAll<Team>(endpoint, options);
|
||||
}
|
||||
@@ -131,11 +131,11 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-team-members
|
||||
/// </remarks>
|
||||
/// <param name="teamSlug">The team identifier</param>
|
||||
/// <param name="teamId">The team identifier</param>
|
||||
[ManualRoute("GET", "/teams{id}/members")]
|
||||
public Task<IReadOnlyList<User>> GetAllMembers(int teamSlug)
|
||||
public Task<IReadOnlyList<User>> GetAllMembers(long teamId)
|
||||
{
|
||||
return GetAllMembers(teamSlug, ApiOptions.None);
|
||||
return GetAllMembers(teamId, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -144,14 +144,14 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-team-members
|
||||
/// </remarks>
|
||||
/// <param name="teamSlug">The team identifier</param>
|
||||
/// <param name="teamId">The team identifier</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
[ManualRoute("GET", "/teams{id}/members")]
|
||||
public Task<IReadOnlyList<User>> GetAllMembers(int teamSlug, ApiOptions options)
|
||||
public Task<IReadOnlyList<User>> GetAllMembers(long teamId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
var endpoint = ApiUrls.TeamMembers(teamSlug);
|
||||
var endpoint = ApiUrls.TeamMembers(teamId);
|
||||
|
||||
return ApiConnection.GetAll<User>(endpoint, options);
|
||||
}
|
||||
@@ -162,14 +162,14 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-team-members
|
||||
/// </remarks>
|
||||
/// <param name="teamSlug">The team identifier</param>
|
||||
/// <param name="teamId">The team identifier</param>
|
||||
/// <param name="request">The request filter</param>
|
||||
[ManualRoute("GET", "/teams{id}/members")]
|
||||
public Task<IReadOnlyList<User>> GetAllMembers(int teamSlug, TeamMembersRequest request)
|
||||
public Task<IReadOnlyList<User>> GetAllMembers(long teamId, TeamMembersRequest request)
|
||||
{
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
|
||||
return GetAllMembers(teamSlug, request, ApiOptions.None);
|
||||
return GetAllMembers(teamId, request, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -178,36 +178,36 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/orgs/teams/#list-team-members
|
||||
/// </remarks>
|
||||
/// <param name="teamSlug">The team identifier</param>
|
||||
/// <param name="teamId">The team identifier</param>
|
||||
/// <param name="request">The request filter</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
[ManualRoute("GET", "/teams{id}/members")]
|
||||
public Task<IReadOnlyList<User>> GetAllMembers(int teamSlug, TeamMembersRequest request, ApiOptions options)
|
||||
public Task<IReadOnlyList<User>> GetAllMembers(long teamId, TeamMembersRequest request, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
var endpoint = ApiUrls.TeamMembers(teamSlug);
|
||||
var endpoint = ApiUrls.TeamMembers(teamId);
|
||||
|
||||
return ApiConnection.GetAll<User>(endpoint, request.ToParametersDictionary(), options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether the user with the given <paramref name="login"/>
|
||||
/// is a member of the team with the given <paramref name="teamSlug"/>.
|
||||
/// is a member of the team with the given <paramref name="teamId"/>.
|
||||
/// A <see cref="NotFoundException"/> is thrown if the user is not a member.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#get-team-membership">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="teamSlug">The team to check.</param>
|
||||
/// <param name="teamId">The team to check.</param>
|
||||
/// <param name="login">The user to check.</param>
|
||||
[ManualRoute("GET", "/teams/{team_id}/memberships/{username}")]
|
||||
public Task<TeamMembershipDetails> GetMembershipDetails(int teamSlug, string login)
|
||||
public Task<TeamMembershipDetails> GetMembershipDetails(long teamId, string login)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(login, nameof(login));
|
||||
|
||||
var endpoint = ApiUrls.TeamMember(teamSlug, login);
|
||||
var endpoint = ApiUrls.TeamMember(teamId, login);
|
||||
|
||||
return ApiConnection.Get<TeamMembershipDetails>(endpoint);
|
||||
}
|
||||
@@ -232,18 +232,18 @@ namespace Octokit
|
||||
/// To edit a team, the authenticated user must either be an organization owner or a team maintainer
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team">API documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <returns>updated <see cref="Team" /> for the current org</returns>
|
||||
[ManualRoute("PATCH", "/orgs/{org}/teams/{team_slug}")]
|
||||
public Task<Team> Update(string org, string teamSlug, UpdateTeam team)
|
||||
public Task<Team> Update(string org, string teamId, UpdateTeam team)
|
||||
{
|
||||
Ensure.ArgumentNotNull(org, nameof(org));
|
||||
Ensure.ArgumentNotNull(teamSlug, nameof(teamSlug));
|
||||
Ensure.ArgumentNotNull(teamId, nameof(teamId));
|
||||
Ensure.ArgumentNotNull(team, nameof(team));
|
||||
|
||||
var endpoint = ApiUrls.TeamsByOrganizationAndSlug(org, teamSlug);
|
||||
var endpoint = ApiUrls.TeamsByOrganizationAndSlug(org, teamId);
|
||||
return ApiConnection.Patch<Team>(endpoint, team);
|
||||
}
|
||||
|
||||
@@ -254,17 +254,17 @@ namespace Octokit
|
||||
/// <see cref="Update(string, string, UpdateTeam)"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team-legacy">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team-legacy">API documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>Updated <see cref="Team"/></returns>
|
||||
[ManualRoute("PATCH", "/teams/{team_id}")]
|
||||
public Task<Team> Update(int teamSlug, UpdateTeam team)
|
||||
public Task<Team> Update(long teamId, UpdateTeam team)
|
||||
{
|
||||
Ensure.ArgumentNotNull(team, nameof(team));
|
||||
|
||||
var endpoint = ApiUrls.Teams(teamSlug);
|
||||
var endpoint = ApiUrls.Teams(teamId);
|
||||
return ApiConnection.Patch<Team>(endpoint, team);
|
||||
}
|
||||
|
||||
@@ -273,19 +273,19 @@ namespace Octokit
|
||||
/// If you are an organization owner, deleting a parent team will delete all of its child teams as well.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team">API documentation</a>
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization name. The name is not case sensitive.</param>
|
||||
/// <param name="teamSlug">The slug of the team name.</param>
|
||||
/// <param name="teamId">The slug of the team name.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("DELETE", "/orgs/{org}/teams/{team_slug}")]
|
||||
public Task Delete(string org, string teamSlug)
|
||||
public Task Delete(string org, string teamId)
|
||||
{
|
||||
Ensure.ArgumentNotNull(org, nameof(org));
|
||||
Ensure.ArgumentNotNull(teamSlug, nameof(teamSlug));
|
||||
Ensure.ArgumentNotNull(teamId, nameof(teamId));
|
||||
|
||||
var endpoint = ApiUrls.TeamsByOrganizationAndSlug(org, teamSlug);
|
||||
var endpoint = ApiUrls.TeamsByOrganizationAndSlug(org, teamId);
|
||||
|
||||
return ApiConnection.Delete(endpoint);
|
||||
}
|
||||
@@ -297,15 +297,15 @@ namespace Octokit
|
||||
/// <see cref="Delete(string, string)"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team-legacy">API documentation</a>
|
||||
/// See the <a href="https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#delete-a-team-legacy">API documentation</a>
|
||||
/// </remarks>
|
||||
/// <param name="teamSlug">The unique identifier of the team.</param>
|
||||
/// <param name="teamId">The unique identifier of the team.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("DELETE", "/teams/{team_id}")]
|
||||
public Task Delete(int teamSlug)
|
||||
public Task Delete(long teamId)
|
||||
{
|
||||
var endpoint = ApiUrls.Teams(teamSlug);
|
||||
var endpoint = ApiUrls.Teams(teamId);
|
||||
|
||||
return ApiConnection.Delete(endpoint);
|
||||
}
|
||||
@@ -316,16 +316,16 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#add-or-update-team-membership">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="teamSlug">The team identifier.</param>
|
||||
/// <param name="teamId">The team identifier.</param>
|
||||
/// <param name="login">The user to add to the team.</param>
|
||||
/// <param name="request">Additional parameters for the request</param>
|
||||
[ManualRoute("PUT", "/teams/{team_id}/memberships/{username}")]
|
||||
public Task<TeamMembershipDetails> AddOrEditMembership(int teamSlug, string login, UpdateTeamMembership request)
|
||||
public Task<TeamMembershipDetails> AddOrEditMembership(long teamId, string login, UpdateTeamMembership request)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(login, nameof(login));
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
|
||||
var endpoint = ApiUrls.TeamMember(teamSlug, login);
|
||||
var endpoint = ApiUrls.TeamMember(teamId, login);
|
||||
|
||||
return ApiConnection.Put<TeamMembershipDetails>(endpoint, request);
|
||||
}
|
||||
@@ -336,15 +336,15 @@ namespace Octokit
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#remove-team-member">API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
/// <param name="teamSlug">The team identifier.</param>
|
||||
/// <param name="teamId">The team identifier.</param>
|
||||
/// <param name="login">The user to remove from the team.</param>
|
||||
/// <returns><see langword="true"/> if the user was removed from the team; <see langword="false"/> otherwise.</returns>
|
||||
[ManualRoute("DELETE", "/teams/{team_id}/memberships/{username}")]
|
||||
public async Task<bool> RemoveMembership(int teamSlug, string login)
|
||||
public async Task<bool> RemoveMembership(long teamId, string login)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(login, nameof(login));
|
||||
|
||||
var endpoint = ApiUrls.TeamMember(teamSlug, login);
|
||||
var endpoint = ApiUrls.TeamMember(teamId, login);
|
||||
|
||||
try
|
||||
{
|
||||
@@ -361,28 +361,28 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Returns all team's repositories.
|
||||
/// </summary>
|
||||
/// <param name="teamSlug">Team Id.</param>
|
||||
/// <param name="teamId">Team Id.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The team's repositories</returns>
|
||||
[ManualRoute("GET", "/teams/{team_id}/repos")]
|
||||
public Task<IReadOnlyList<Repository>> GetAllRepositories(int teamSlug)
|
||||
public Task<IReadOnlyList<Repository>> GetAllRepositories(long teamId)
|
||||
{
|
||||
return GetAllRepositories(teamSlug, ApiOptions.None);
|
||||
return GetAllRepositories(teamId, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns all team's repositories.
|
||||
/// </summary>
|
||||
/// <param name="teamSlug">Team Id.</param>
|
||||
/// <param name="teamId">Team Id.</param>
|
||||
/// <param name="options">Options to change API behaviour.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>The team's repositories</returns>
|
||||
[ManualRoute("GET", "/teams/{team_id}/repos")]
|
||||
public Task<IReadOnlyList<Repository>> GetAllRepositories(int teamSlug, ApiOptions options)
|
||||
public Task<IReadOnlyList<Repository>> GetAllRepositories(long teamId, ApiOptions options)
|
||||
{
|
||||
Ensure.ArgumentNotNull(options, nameof(options));
|
||||
|
||||
var endpoint = ApiUrls.TeamRepositories(teamSlug);
|
||||
var endpoint = ApiUrls.TeamRepositories(teamId);
|
||||
|
||||
return ApiConnection.GetAll<Repository>(endpoint, options);
|
||||
}
|
||||
@@ -395,7 +395,7 @@ namespace Octokit
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("PUT", "/teams/{team_id}/repos/{owner}/{repo}")]
|
||||
public async Task<bool> AddRepository(int teamSlug, string organization, string repoName)
|
||||
public async Task<bool> AddRepository(long teamId, string organization, string repoName)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName));
|
||||
@@ -412,7 +412,7 @@ namespace Octokit
|
||||
//
|
||||
// Likely will require a breaking change
|
||||
|
||||
var endpoint = ApiUrls.TeamRepository(teamSlug, organization, repoName);
|
||||
var endpoint = ApiUrls.TeamRepository(teamId, organization, repoName);
|
||||
|
||||
try
|
||||
{
|
||||
@@ -430,14 +430,14 @@ namespace Octokit
|
||||
/// Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API.
|
||||
/// We recommend migrating your existing code to use the new "Add or update team repository permissions" endpoint.
|
||||
/// </summary>
|
||||
/// <param name="teamSlug">The team identifier.</param>
|
||||
/// <param name="teamId">The team identifier.</param>
|
||||
/// <param name="organization">Org to associate the repo with.</param>
|
||||
/// <param name="repoName">Name of the repo.</param>
|
||||
/// <param name="permission">The permission to grant the team on this repository.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("PUT", "/teams/{team_id}/repos/{owner}/{repo}")]
|
||||
public async Task<bool> AddRepository(int teamSlug, string organization, string repoName, RepositoryPermissionRequest permission)
|
||||
public async Task<bool> AddRepository(long teamId, string organization, string repoName, RepositoryPermissionRequest permission)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName));
|
||||
@@ -454,7 +454,7 @@ namespace Octokit
|
||||
//
|
||||
// Likely will require a breaking change
|
||||
|
||||
var endpoint = ApiUrls.TeamRepository(teamSlug, organization, repoName);
|
||||
var endpoint = ApiUrls.TeamRepository(teamId, organization, repoName);
|
||||
|
||||
try
|
||||
{
|
||||
@@ -475,7 +475,7 @@ namespace Octokit
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("DELETE", "/teams/{team_id}/repos/{owner}/{repo}")]
|
||||
public async Task<bool> RemoveRepository(int teamSlug, string organization, string repoName)
|
||||
public async Task<bool> RemoveRepository(long teamId, string organization, string repoName)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(organization, nameof(organization));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repoName, nameof(repoName));
|
||||
@@ -492,7 +492,7 @@ namespace Octokit
|
||||
//
|
||||
// Likely will require a breaking change
|
||||
|
||||
var endpoint = ApiUrls.TeamRepository(teamSlug, organization, repoName);
|
||||
var endpoint = ApiUrls.TeamRepository(teamId, organization, repoName);
|
||||
|
||||
try
|
||||
{
|
||||
@@ -509,7 +509,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Gets whether or not the given repository is managed by the given team.
|
||||
/// </summary>
|
||||
/// <param name="teamSlug">The team identifier</param>
|
||||
/// <param name="teamId">The team identifier</param>
|
||||
/// <param name="owner">Owner of the org the team is associated with.</param>
|
||||
/// <param name="repo">Name of the repo.</param>
|
||||
/// <remarks>
|
||||
@@ -517,12 +517,12 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <returns><see langword="true"/> if the repository is managed by the given team; <see langword="false"/> otherwise.</returns>
|
||||
[ManualRoute("GET", "/teams/{team_id}/repos/{owner}/{name}")]
|
||||
public async Task<bool> IsRepositoryManagedByTeam(int teamSlug, string owner, string repo)
|
||||
public async Task<bool> IsRepositoryManagedByTeam(long teamId, string owner, string repo)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repo, nameof(repo));
|
||||
|
||||
var endpoint = ApiUrls.TeamRepository(teamSlug, owner, repo);
|
||||
var endpoint = ApiUrls.TeamRepository(teamId, owner, repo);
|
||||
|
||||
try
|
||||
{
|
||||
@@ -542,14 +542,14 @@ namespace Octokit
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#list-pending-team-invitations">API Documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="teamSlug">The team identifier</param>
|
||||
/// <param name="teamId">The team identifier</param>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("GET", "/teams/{team_id}/invitations")]
|
||||
public Task<IReadOnlyList<OrganizationMembershipInvitation>> GetAllPendingInvitations(int teamSlug)
|
||||
public Task<IReadOnlyList<OrganizationMembershipInvitation>> GetAllPendingInvitations(long teamId)
|
||||
{
|
||||
Ensure.ArgumentNotNull(teamSlug, nameof(teamSlug));
|
||||
Ensure.ArgumentNotNull(teamId, nameof(teamId));
|
||||
|
||||
return GetAllPendingInvitations(teamSlug, ApiOptions.None);
|
||||
return GetAllPendingInvitations(teamId, ApiOptions.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -559,13 +559,13 @@ namespace Octokit
|
||||
/// See the <a href="https://developer.github.com/v3/orgs/teams/#list-pending-team-invitations">API Documentation</a>
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="teamSlug">The team identifier</param>
|
||||
/// <param name="teamId">The team identifier</param>
|
||||
/// <param name="options">Options to change API behaviour</param>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("GET", "/teams/{team_id}/invitations")]
|
||||
public Task<IReadOnlyList<OrganizationMembershipInvitation>> GetAllPendingInvitations(int teamSlug, ApiOptions options)
|
||||
public Task<IReadOnlyList<OrganizationMembershipInvitation>> GetAllPendingInvitations(long teamId, ApiOptions options)
|
||||
{
|
||||
return ApiConnection.GetAll<OrganizationMembershipInvitation>(ApiUrls.TeamPendingInvitations(teamSlug), null, options);
|
||||
return ApiConnection.GetAll<OrganizationMembershipInvitation>(ApiUrls.TeamPendingInvitations(teamId), null, options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -577,19 +577,19 @@ namespace Octokit
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization name. The name is not case sensitive.</param>
|
||||
/// <param name="teamSlug">The slug of the team name.</param>
|
||||
/// <param name="teamId">The slug of the team name.</param>
|
||||
/// <param name="owner">The account owner of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="repo">The name of the repository. The name is not case sensitive.</param>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("GET", "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}")]
|
||||
public async Task<bool> CheckTeamPermissionsForARepository(string org, string teamSlug, string owner, string repo)
|
||||
public async Task<bool> CheckTeamPermissionsForARepository(string org, string teamId, string owner, string repo)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNullOrEmptyString(teamSlug, nameof(teamSlug));
|
||||
Ensure.ArgumentNotNullOrEmptyString(teamId, nameof(teamId));
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repo, nameof(repo));
|
||||
|
||||
var endpoint = ApiUrls.TeamPermissionsForARepository(org, teamSlug, owner, repo);
|
||||
var endpoint = ApiUrls.TeamPermissionsForARepository(org, teamId, owner, repo);
|
||||
|
||||
try
|
||||
{
|
||||
@@ -611,20 +611,20 @@ namespace Octokit
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization name. The name is not case sensitive.</param>
|
||||
/// <param name="teamSlug">The slug of the team name.</param>
|
||||
/// <param name="teamId">The slug of the team name.</param>
|
||||
/// <param name="owner">The account owner of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="repo">The name of the repository. The name is not case sensitive.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("GET", "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}")]
|
||||
public Task<TeamRepository> CheckTeamPermissionsForARepositoryWithCustomAcceptHeader(string org, string teamSlug, string owner, string repo)
|
||||
public Task<TeamRepository> CheckTeamPermissionsForARepositoryWithCustomAcceptHeader(string org, string teamId, string owner, string repo)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNullOrEmptyString(teamSlug, nameof(teamSlug));
|
||||
Ensure.ArgumentNotNullOrEmptyString(teamId, nameof(teamId));
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repo, nameof(repo));
|
||||
|
||||
var endpoint = ApiUrls.TeamPermissionsForARepository(org, teamSlug, owner, repo);
|
||||
var endpoint = ApiUrls.TeamPermissionsForARepository(org, teamId, owner, repo);
|
||||
|
||||
return ApiConnection.Get<TeamRepository>(endpoint, null, AcceptHeaders.RepositoryContentMediaType);
|
||||
}
|
||||
@@ -637,26 +637,26 @@ namespace Octokit
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization name. The name is not case sensitive.</param>
|
||||
/// <param name="teamSlug">The slug of the team name.</param>
|
||||
/// <param name="teamId">The slug of the team name.</param>
|
||||
/// <param name="owner">The account owner of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="repo">The name of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="permission">
|
||||
/// The permission to grant the team on this repository. We accept the following permissions to be set:
|
||||
/// pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the
|
||||
/// owning organization has defined any. If no permission is specified, the team's permission attribute
|
||||
/// The permission to grant the team on this repository. We accept the following permissions to be set:
|
||||
/// pull, triage, push, maintain, admin and you can also specify a custom repository role name, if the
|
||||
/// owning organization has defined any. If no permission is specified, the team's permission attribute
|
||||
/// will be used to determine what permission to grant the team on this repository
|
||||
/// </param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("PUT", "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}")]
|
||||
public Task AddOrUpdateTeamRepositoryPermissions(string org, string teamSlug, string owner, string repo, string permission)
|
||||
public Task AddOrUpdateTeamRepositoryPermissions(string org, string teamId, string owner, string repo, string permission)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNullOrEmptyString(teamSlug, nameof(teamSlug));
|
||||
Ensure.ArgumentNotNullOrEmptyString(teamId, nameof(teamId));
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repo, nameof(repo));
|
||||
|
||||
var endpoint = ApiUrls.TeamPermissionsForARepository(org, teamSlug, owner, repo);
|
||||
var endpoint = ApiUrls.TeamPermissionsForARepository(org, teamId, owner, repo);
|
||||
|
||||
return ApiConnection.Put(endpoint, new { permission });
|
||||
}
|
||||
@@ -669,20 +669,20 @@ namespace Octokit
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization name. The name is not case sensitive.</param>
|
||||
/// <param name="teamSlug">The slug of the team name.</param>
|
||||
/// <param name="teamId">The slug of the team name.</param>
|
||||
/// <param name="owner">The account owner of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="repo">The name of the repository. The name is not case sensitive.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("DELETE", "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}")]
|
||||
public Task RemoveRepositoryFromATeam(string org, string teamSlug, string owner, string repo)
|
||||
public Task RemoveRepositoryFromATeam(string org, string teamId, string owner, string repo)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNullOrEmptyString(teamSlug, nameof(teamSlug));
|
||||
Ensure.ArgumentNotNullOrEmptyString(teamId, nameof(teamId));
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
|
||||
Ensure.ArgumentNotNullOrEmptyString(repo, nameof(repo));
|
||||
|
||||
var endpoint = ApiUrls.TeamPermissionsForARepository(org, teamSlug, owner, repo);
|
||||
var endpoint = ApiUrls.TeamPermissionsForARepository(org, teamId, owner, repo);
|
||||
|
||||
return ApiConnection.Delete(endpoint);
|
||||
}
|
||||
@@ -695,17 +695,17 @@ namespace Octokit
|
||||
/// for more information.
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization name. The name is not case sensitive.</param>
|
||||
/// <param name="teamSlug">The slug of the team name.</param>
|
||||
/// <param name="teamId">The slug of the team name.</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <exception cref="NotFoundException">Thrown when the team wasn't found</exception>
|
||||
/// <returns>A <see cref="Team"/> instance if found, otherwise a <see cref="NotFoundException"/></returns>
|
||||
[ManualRoute("GET", "/orgs/{org}/teams/{teamSlug}")]
|
||||
public Task<Team> GetByName(string org, string teamSlug)
|
||||
[ManualRoute("GET", "/orgs/{org}/teams/{teamId}")]
|
||||
public Task<Team> GetByName(string org, string teamId)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));
|
||||
Ensure.ArgumentNotNullOrEmptyString(teamSlug, nameof(teamSlug));
|
||||
|
||||
var endpoint = ApiUrls.TeamsByOrganizationAndSlug(org, teamSlug);
|
||||
Ensure.ArgumentNotNullOrEmptyString(teamId, nameof(teamId));
|
||||
|
||||
var endpoint = ApiUrls.TeamsByOrganizationAndSlug(org, teamId);
|
||||
return ApiConnection.Get<Team>(endpoint);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <returns>The <see cref="GpgKey"/> for the specified Id.</returns>
|
||||
[ManualRoute("GET", "/user/gpg_keys/{gpg_key_id}")]
|
||||
public Task<GpgKey> Get(int gpgKeyId)
|
||||
public Task<GpgKey> Get(long gpgKeyId)
|
||||
{
|
||||
return ApiConnection.Get<GpgKey>(ApiUrls.GpgKeys(gpgKeyId));
|
||||
}
|
||||
@@ -89,7 +89,7 @@ namespace Octokit
|
||||
/// </remarks>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("DELETE", "/user/gpg_keys/{gpg_key_id}")]
|
||||
public Task Delete(int gpgKeyId)
|
||||
public Task Delete(long gpgKeyId)
|
||||
{
|
||||
return ApiConnection.Delete(ApiUrls.GpgKeys(gpgKeyId));
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace Octokit
|
||||
/// <param name="keyId">The Id of the SSH key</param>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("GET", "/user/keys/{key_id}")]
|
||||
public Task<PublicKey> Get(int keyId)
|
||||
public Task<PublicKey> Get(long keyId)
|
||||
{
|
||||
return ApiConnection.Get<PublicKey>(ApiUrls.Keys(keyId));
|
||||
}
|
||||
@@ -118,7 +118,7 @@ namespace Octokit
|
||||
/// <param name="keyId">The id of the key to delete</param>
|
||||
/// <returns></returns>
|
||||
[ManualRoute("DELETE", "/user/keys/{key_id}")]
|
||||
public Task Delete(int keyId)
|
||||
public Task Delete(long keyId)
|
||||
{
|
||||
return ApiConnection.Delete(ApiUrls.Keys(keyId));
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Octokit
|
||||
/// Returns the <see cref="Uri"/> that returns all authorizations for a given user
|
||||
/// </summary>
|
||||
/// <param name="id">The user Id to search for</param>
|
||||
public static Uri Authorizations(int id)
|
||||
public static Uri Authorizations(long id)
|
||||
{
|
||||
return "authorizations/{0}".FormatUri(id);
|
||||
}
|
||||
|
||||
@@ -268,7 +268,7 @@ namespace Octokit
|
||||
/// Returns the <see cref="Uri"/> to retrieve a given key.
|
||||
/// </summary>
|
||||
/// <param name="keyId">The Key Id to retrieve</param>
|
||||
public static Uri Keys(int keyId)
|
||||
public static Uri Keys(long keyId)
|
||||
{
|
||||
return "user/keys/{0}".FormatUri(keyId);
|
||||
}
|
||||
@@ -311,7 +311,7 @@ namespace Octokit
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="releaseId">The id of the release</param>
|
||||
/// <returns></returns>
|
||||
public static Uri Releases(string owner, string name, int releaseId)
|
||||
public static Uri Releases(string owner, string name, long releaseId)
|
||||
{
|
||||
return "repos/{0}/{1}/releases/{2}".FormatUri(owner, name, releaseId);
|
||||
}
|
||||
@@ -346,7 +346,7 @@ namespace Octokit
|
||||
/// <param name="name">The name of the repository</param>
|
||||
/// <param name="releaseId">The id of the release</param>
|
||||
/// <returns></returns>
|
||||
public static Uri ReleaseAssets(string owner, string name, int releaseId)
|
||||
public static Uri ReleaseAssets(string owner, string name, long releaseId)
|
||||
{
|
||||
return "repos/{0}/{1}/releases/{2}/assets".FormatUri(owner, name, releaseId);
|
||||
}
|
||||
@@ -1003,7 +1003,7 @@ namespace Octokit
|
||||
/// <param name="org">The name of the organization</param>
|
||||
/// <param name="invitationId">The unique identifier of the invitation</param>
|
||||
/// <returns></returns>
|
||||
public static Uri CancelOrganizationInvitation(string org, int invitationId)
|
||||
public static Uri CancelOrganizationInvitation(string org, long invitationId)
|
||||
{
|
||||
return "orgs/{0}/invitations/{1}".FormatUri(org, invitationId);
|
||||
}
|
||||
@@ -1981,7 +1981,7 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <param name="parentTeamId">The id of the parent team</param>
|
||||
/// <returns></returns>
|
||||
public static Uri TeamChildTeams(int parentTeamId)
|
||||
public static Uri TeamChildTeams(long parentTeamId)
|
||||
{
|
||||
return "teams/{0}/teams".FormatUri(parentTeamId);
|
||||
}
|
||||
@@ -1992,7 +1992,7 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <param name="teamId">The id of the <see cref="Team"/>.</param>
|
||||
/// <returns></returns>
|
||||
public static Uri Teams(int teamId)
|
||||
public static Uri Teams(long teamId)
|
||||
{
|
||||
return "teams/{0}".FormatUri(teamId);
|
||||
}
|
||||
@@ -2002,11 +2002,11 @@ namespace Octokit
|
||||
/// use for updating, or deleteing a <see cref="Team"/>.
|
||||
/// </summary>
|
||||
/// <param name="org"></param>
|
||||
/// <param name="teamSlug"></param>
|
||||
/// <param name="teamId"></param>
|
||||
/// <returns></returns>
|
||||
public static Uri TeamsByOrganizationAndSlug(string org, string teamSlug)
|
||||
public static Uri TeamsByOrganizationAndSlug(string org, string teamId)
|
||||
{
|
||||
return "orgs/{0}/teams/{1}".FormatUri(org, teamSlug);
|
||||
return "orgs/{0}/teams/{1}".FormatUri(org, teamId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -2014,7 +2014,7 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <param name="teamId">The team id</param>
|
||||
/// <param name="login">The user login.</param>
|
||||
public static Uri TeamMember(int teamId, string login)
|
||||
public static Uri TeamMember(long teamId, string login)
|
||||
{
|
||||
return "teams/{0}/memberships/{1}".FormatUri(teamId, login);
|
||||
}
|
||||
@@ -2023,7 +2023,7 @@ namespace Octokit
|
||||
/// returns the <see cref="Uri"/> for team members list
|
||||
/// </summary>
|
||||
/// <param name="teamId">The team id</param>
|
||||
public static Uri TeamMembers(int teamId)
|
||||
public static Uri TeamMembers(long teamId)
|
||||
{
|
||||
return "teams/{0}/members".FormatUri(teamId);
|
||||
}
|
||||
@@ -2032,7 +2032,7 @@ namespace Octokit
|
||||
/// returns the <see cref="Uri"/> for the repositories
|
||||
/// </summary>
|
||||
/// <param name="teamId">The team id</param>
|
||||
public static Uri TeamRepositories(int teamId)
|
||||
public static Uri TeamRepositories(long teamId)
|
||||
{
|
||||
return "teams/{0}/repos".FormatUri(teamId);
|
||||
}
|
||||
@@ -2043,7 +2043,7 @@ namespace Octokit
|
||||
/// <param name="teamId">The team id</param>
|
||||
/// <param name="organization">The organization id</param>
|
||||
/// <param name="repoName">The repository name</param>
|
||||
public static Uri TeamRepository(int teamId, string organization, string repoName)
|
||||
public static Uri TeamRepository(long teamId, string organization, string repoName)
|
||||
{
|
||||
return "teams/{0}/repos/{1}/{2}".FormatUri(teamId, organization, repoName);
|
||||
}
|
||||
@@ -2052,12 +2052,12 @@ namespace Octokit
|
||||
/// returns the <see cref="Uri"/> for a team repository
|
||||
/// </summary>
|
||||
/// <param name="org">The organization name. The name is not case sensitive.</param>
|
||||
/// <param name="teamSlug">The slug of the team name.</param>
|
||||
/// <param name="teamId">The slug of the team name.</param>
|
||||
/// <param name="owner">The account owner of the repository. The name is not case sensitive.</param>
|
||||
/// <param name="repo">The name of the repository. The name is not case sensitive.</param>
|
||||
public static Uri TeamPermissionsForARepository(string org, string teamSlug, string owner, string repo)
|
||||
public static Uri TeamPermissionsForARepository(string org, string teamId, string owner, string repo)
|
||||
{
|
||||
return "/orgs/{0}/teams/{1}/repos/{2}/{3}".FormatUri(org, teamSlug, owner, repo);
|
||||
return "/orgs/{0}/teams/{1}/repos/{2}/{3}".FormatUri(org, teamId, owner, repo);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -2065,7 +2065,7 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <param name="teamId">The team id</param>
|
||||
/// <returns></returns>
|
||||
public static Uri TeamPendingInvitations(int teamId)
|
||||
public static Uri TeamPendingInvitations(long teamId)
|
||||
{
|
||||
return "teams/{0}/invitations".FormatUri(teamId);
|
||||
}
|
||||
@@ -2665,7 +2665,7 @@ namespace Octokit
|
||||
/// <param name="name">Name of the repository</param>
|
||||
/// <param name="deploymentId">Id of the deployment</param>
|
||||
/// <returns></returns>
|
||||
public static Uri DeploymentStatuses(string owner, string name, int deploymentId)
|
||||
public static Uri DeploymentStatuses(string owner, string name, long deploymentId)
|
||||
{
|
||||
return "repos/{0}/{1}/deployments/{2}/statuses".FormatUri(owner, name, deploymentId);
|
||||
}
|
||||
@@ -2982,12 +2982,12 @@ namespace Octokit
|
||||
return EnterpriseAdminStats("all");
|
||||
}
|
||||
|
||||
public static Uri EnterpriseLdapTeamMapping(int teamId)
|
||||
public static Uri EnterpriseLdapTeamMapping(long teamId)
|
||||
{
|
||||
return "admin/ldap/teams/{0}/mapping".FormatUri(teamId);
|
||||
}
|
||||
|
||||
public static Uri EnterpriseLdapTeamSync(int teamId)
|
||||
public static Uri EnterpriseLdapTeamSync(long teamId)
|
||||
{
|
||||
return "admin/ldap/teams/{0}/sync".FormatUri(teamId);
|
||||
}
|
||||
@@ -3007,7 +3007,7 @@ namespace Octokit
|
||||
return "enterprise/settings/license".FormatUri();
|
||||
}
|
||||
|
||||
public static Uri EnterpriseMigrationById(string org, int migrationId)
|
||||
public static Uri EnterpriseMigrationById(string org, long migrationId)
|
||||
{
|
||||
return "orgs/{0}/migrations/{1}".FormatUri(org, migrationId);
|
||||
}
|
||||
@@ -3017,12 +3017,12 @@ namespace Octokit
|
||||
return "orgs/{0}/migrations".FormatUri(org);
|
||||
}
|
||||
|
||||
public static Uri EnterpriseMigrationArchive(string org, int migrationId)
|
||||
public static Uri EnterpriseMigrationArchive(string org, long migrationId)
|
||||
{
|
||||
return "orgs/{0}/migrations/{1}/archive".FormatUri(org, migrationId);
|
||||
}
|
||||
|
||||
public static Uri EnterpriseMigrationUnlockRepository(string org, int migrationId, string repo)
|
||||
public static Uri EnterpriseMigrationUnlockRepository(string org, long migrationId, string repo)
|
||||
{
|
||||
return "orgs/{0}/migrations/{1}/repos/{2}/lock".FormatUri(org, migrationId, repo);
|
||||
}
|
||||
@@ -3360,7 +3360,7 @@ namespace Octokit
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="deploymentId">Id of the deployment</param>
|
||||
/// <returns>The <see cref="Uri"/> for the Deployment Statuses API for the given deployment.</returns>
|
||||
public static Uri DeploymentStatuses(long repositoryId, int deploymentId)
|
||||
public static Uri DeploymentStatuses(long repositoryId, long deploymentId)
|
||||
{
|
||||
return "repositories/{0}/deployments/{1}/statuses".FormatUri(repositoryId, deploymentId);
|
||||
}
|
||||
@@ -3391,7 +3391,7 @@ namespace Octokit
|
||||
/// <param name="gpgKeyId">The GPG Key Id.</param>
|
||||
/// <returns></returns>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Gpg")]
|
||||
public static Uri GpgKeys(int gpgKeyId)
|
||||
public static Uri GpgKeys(long gpgKeyId)
|
||||
{
|
||||
return "user/gpg_keys/{0}".FormatUri(gpgKeyId);
|
||||
}
|
||||
@@ -3712,7 +3712,7 @@ namespace Octokit
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="releaseId">The id of the release</param>
|
||||
/// <returns>The <see cref="Uri"/> that returns all the assets for the specified release for the specified repository.</returns>
|
||||
public static Uri ReleaseAssets(long repositoryId, int releaseId)
|
||||
public static Uri ReleaseAssets(long repositoryId, long releaseId)
|
||||
{
|
||||
return "repositories/{0}/releases/{1}/assets".FormatUri(repositoryId, releaseId);
|
||||
}
|
||||
@@ -3743,7 +3743,7 @@ namespace Octokit
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <param name="releaseId">The id of the release</param>
|
||||
/// <returns>The <see cref="Uri"/> that returns a single release for the specified repository</returns>
|
||||
public static Uri Releases(long repositoryId, int releaseId)
|
||||
public static Uri Releases(long repositoryId, long releaseId)
|
||||
{
|
||||
return "repositories/{0}/releases/{1}".FormatUri(repositoryId, releaseId);
|
||||
}
|
||||
@@ -4185,7 +4185,7 @@ namespace Octokit
|
||||
/// <param name="repositoryId">The id of the repository</param>
|
||||
/// <param name="invitationId">The id of the invitation</param>
|
||||
/// <returns>The <see cref="Uri"/> for repository invitations.</returns>
|
||||
public static Uri RepositoryInvitations(long repositoryId, int invitationId)
|
||||
public static Uri RepositoryInvitations(long repositoryId, long invitationId)
|
||||
{
|
||||
return "repositories/{0}/invitations/{1}".FormatUri(repositoryId, invitationId);
|
||||
}
|
||||
@@ -4204,7 +4204,7 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <param name="invitationId">The id of the invitation</param>
|
||||
/// <returns>The <see cref="Uri"/> for invitations for the current user.</returns>
|
||||
public static Uri UserInvitations(int invitationId)
|
||||
public static Uri UserInvitations(long invitationId)
|
||||
{
|
||||
return "user/repository_invitations/{0}".FormatUri(invitationId);
|
||||
}
|
||||
@@ -4392,7 +4392,7 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <param name="cardId">The id of the card</param>
|
||||
/// <returns>The <see cref="Uri"/> for project cards.</returns>
|
||||
public static Uri ProjectCard(int cardId)
|
||||
public static Uri ProjectCard(long cardId)
|
||||
{
|
||||
return "projects/columns/cards/{0}".FormatUri(cardId);
|
||||
}
|
||||
@@ -4412,7 +4412,7 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <param name="cardId">The id of the card to move</param>
|
||||
/// <returns>The <see cref="Uri"/> to move a project card.</returns>
|
||||
public static Uri ProjectCardMove(int cardId)
|
||||
public static Uri ProjectCardMove(long cardId)
|
||||
{
|
||||
return "projects/columns/cards/{0}/moves".FormatUri(cardId);
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Id of a team to set as the parent team
|
||||
/// </summary>
|
||||
public int? ParentTeamId { get; set; }
|
||||
public long? ParentTeamId { get; set; }
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
@@ -70,4 +70,4 @@ namespace Octokit
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,60 +10,60 @@ namespace Octokit
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class OrganizationInvitationRequest
|
||||
{
|
||||
public OrganizationInvitationRequest(int inviteeId)
|
||||
public OrganizationInvitationRequest(long inviteeId)
|
||||
{
|
||||
InviteeId = inviteeId;
|
||||
}
|
||||
|
||||
|
||||
public OrganizationInvitationRequest(string email)
|
||||
{
|
||||
Email = email;
|
||||
}
|
||||
|
||||
public OrganizationInvitationRequest(int inviteeId, OrganizationMembershipRole role)
|
||||
|
||||
public OrganizationInvitationRequest(long inviteeId, OrganizationMembershipRole role)
|
||||
{
|
||||
InviteeId = inviteeId;
|
||||
Role = role;
|
||||
}
|
||||
|
||||
|
||||
public OrganizationInvitationRequest(string email, OrganizationMembershipRole role)
|
||||
{
|
||||
Email = email;
|
||||
Role = role;
|
||||
}
|
||||
|
||||
public OrganizationInvitationRequest(int inviteeId, int[] teamIds)
|
||||
|
||||
public OrganizationInvitationRequest(long inviteeId, long[] teamIds)
|
||||
{
|
||||
InviteeId = inviteeId;
|
||||
TeamIds = teamIds;
|
||||
}
|
||||
|
||||
public OrganizationInvitationRequest(string email, int[] teamIds)
|
||||
|
||||
public OrganizationInvitationRequest(string email, long[] teamIds)
|
||||
{
|
||||
Email = email;
|
||||
TeamIds = teamIds;
|
||||
}
|
||||
|
||||
public OrganizationInvitationRequest(int inviteeId, OrganizationMembershipRole role, int[] teamIds)
|
||||
|
||||
public OrganizationInvitationRequest(long inviteeId, OrganizationMembershipRole role, long[] teamIds)
|
||||
{
|
||||
InviteeId = inviteeId;
|
||||
Role = role;
|
||||
TeamIds = teamIds;
|
||||
}
|
||||
|
||||
public OrganizationInvitationRequest(string email, OrganizationMembershipRole role, int[] teamIds)
|
||||
|
||||
public OrganizationInvitationRequest(string email, OrganizationMembershipRole role, long[] teamIds)
|
||||
{
|
||||
Email = email;
|
||||
Role = role;
|
||||
TeamIds = teamIds;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The user ID of the person being invited. Required if Email is not specified.
|
||||
/// </summary>
|
||||
[Parameter(Key = "invitee_id")]
|
||||
public int? InviteeId { get; set; }
|
||||
|
||||
public long? InviteeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The email address of the person being invited. Required if InviteeId is not specified.
|
||||
/// </summary>
|
||||
@@ -75,12 +75,12 @@ namespace Octokit
|
||||
/// </summary>
|
||||
[Parameter(Key = "role")]
|
||||
public OrganizationMembershipRole Role { get; set; } = OrganizationMembershipRole.DirectMember;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The IDs for the team(s) to invite new members to
|
||||
/// </summary>
|
||||
[Parameter(Key = "team_ids")]
|
||||
public int[] TeamIds { get; set; }
|
||||
public long[] TeamIds { get; set; }
|
||||
|
||||
internal string DebuggerDisplay => $"InviteeId: {InviteeId}; Email: {Email}; Role: {Role}; Team IDs: {(TeamIds != null ? string.Join(", ", TeamIds) : "")}";
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Octokit
|
||||
/// Initializes a new instance of the <see cref="OrganizationRequest"/> class.
|
||||
/// </summary>
|
||||
/// <param name="since">The integer Id of the last Organization that you've seen.</param>
|
||||
public OrganizationRequest(int since)
|
||||
public OrganizationRequest(long since)
|
||||
{
|
||||
Ensure.ArgumentNotNull(since, nameof(since));
|
||||
|
||||
@@ -33,4 +33,4 @@ namespace Octokit
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Octokit
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class ProjectCardMove
|
||||
{
|
||||
public ProjectCardMove(ProjectCardPosition position, int columnId, int? cardId)
|
||||
public ProjectCardMove(ProjectCardPosition position, int columnId, long? cardId)
|
||||
{
|
||||
ColumnId = columnId;
|
||||
switch (position)
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <param name="newOwner">The new owner of the repository after the transfer.</param>
|
||||
/// <param name="teamIds">A list of team Ids to add to the repository after the transfer (only applies to transferring to an Organization).</param>
|
||||
public RepositoryTransfer(string newOwner, IReadOnlyList<int> teamIds)
|
||||
public RepositoryTransfer(string newOwner, IReadOnlyList<long> teamIds)
|
||||
: this(newOwner)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyEnumerable(teamIds, nameof(teamIds));
|
||||
@@ -44,15 +44,15 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// A list of team Ids to add to the repository after the transfer (only applies to transferring to an Organization).
|
||||
/// </summary>
|
||||
public IReadOnlyList<int> TeamIds { get; set; }
|
||||
public IReadOnlyList<long> TeamIds { get; set; }
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
get
|
||||
{
|
||||
string teamIdsStr = string.Join(", ", TeamIds ?? new int[0]);
|
||||
string teamIdsStr = string.Join(", ", TeamIds ?? new long[0]);
|
||||
return string.Format(CultureInfo.InvariantCulture, "NewOwner: {0}, TeamIds: [{1}]", NewOwner, teamIdsStr);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Octokit
|
||||
{
|
||||
protected Account() { }
|
||||
|
||||
protected Account(string avatarUrl, string bio, string blog, int collaborators, string company, DateTimeOffset createdAt, int diskUsage, string email, int followers, int following, bool? hireable, string htmlUrl, int totalPrivateRepos, int id, string location, string login, string name, string nodeId, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, AccountType type, string url)
|
||||
protected Account(string avatarUrl, string bio, string blog, int collaborators, string company, DateTimeOffset createdAt, int diskUsage, string email, int followers, int following, bool? hireable, string htmlUrl, int totalPrivateRepos, long id, string location, string login, string name, string nodeId, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, AccountType type, string url)
|
||||
{
|
||||
AvatarUrl = avatarUrl;
|
||||
Bio = bio;
|
||||
@@ -102,7 +102,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// The account's system-wide unique Id.
|
||||
/// </summary>
|
||||
public int Id { get; protected set; }
|
||||
public long Id { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// GraphQL Node Id
|
||||
@@ -166,4 +166,4 @@ namespace Octokit
|
||||
/// </summary>
|
||||
public string Url { get; protected set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Octokit
|
||||
{
|
||||
public Author() { }
|
||||
|
||||
public Author(string login, int id, string nodeId, string avatarUrl, string url, string htmlUrl, string followersUrl, string followingUrl, string gistsUrl, string type, string starredUrl, string subscriptionsUrl, string organizationsUrl, string reposUrl, string eventsUrl, string receivedEventsUrl, bool siteAdmin)
|
||||
public Author(string login, long id, string nodeId, string avatarUrl, string url, string htmlUrl, string followersUrl, string followingUrl, string gistsUrl, string type, string starredUrl, string subscriptionsUrl, string organizationsUrl, string reposUrl, string eventsUrl, string receivedEventsUrl, bool siteAdmin)
|
||||
{
|
||||
Login = login;
|
||||
Id = id;
|
||||
@@ -32,7 +32,7 @@ namespace Octokit
|
||||
|
||||
public string Login { get; protected set; }
|
||||
|
||||
public int Id { get; protected set; }
|
||||
public long Id { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// GraphQL Node Id
|
||||
@@ -77,4 +77,4 @@ namespace Octokit
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Octokit
|
||||
// TODO: I'd love to not need this
|
||||
public Authorization() { }
|
||||
|
||||
public Authorization(int id, string url, Application application, string tokenLastEight, string hashedToken, string fingerprint, string note, string noteUrl, DateTimeOffset createdAt, DateTimeOffset updateAt, string[] scopes)
|
||||
public Authorization(long id, string url, Application application, string tokenLastEight, string hashedToken, string fingerprint, string note, string noteUrl, DateTimeOffset createdAt, DateTimeOffset updateAt, string[] scopes)
|
||||
{
|
||||
Id = id;
|
||||
Url = url;
|
||||
@@ -36,7 +36,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// The Id of this <see cref="Authorization"/>.
|
||||
/// </summary>
|
||||
public int Id { get; protected set; }
|
||||
public long Id { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The API URL for this <see cref="Authorization"/>.
|
||||
@@ -103,4 +103,4 @@ namespace Octokit
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Octokit
|
||||
{
|
||||
public Collaborator() { }
|
||||
|
||||
public Collaborator(string login, int id, string email, string name, string nodeId, string avatarUrl, string gravatarUrl, string url, string htmlUrl, string followersUrl, string followingUrl, string gistsUrl, string type, string starredUrl, string subscriptionsUrl, string organizationsUrl, string reposUrl, string eventsUrl, string receivedEventsUrl, bool siteAdmin, CollaboratorPermissions permissions, string roleName)
|
||||
public Collaborator(string login, long id, string email, string name, string nodeId, string avatarUrl, string gravatarUrl, string url, string htmlUrl, string followersUrl, string followingUrl, string gistsUrl, string type, string starredUrl, string subscriptionsUrl, string organizationsUrl, string reposUrl, string eventsUrl, string receivedEventsUrl, bool siteAdmin, CollaboratorPermissions permissions, string roleName)
|
||||
{
|
||||
Login = login;
|
||||
Id = id;
|
||||
@@ -36,7 +36,7 @@ namespace Octokit
|
||||
|
||||
public string Login { get; protected set; }
|
||||
|
||||
public int Id { get; protected set; }
|
||||
public long Id { get; protected set; }
|
||||
|
||||
public string Email { get; protected set; }
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace Octokit
|
||||
public string NodeId { get; protected set; }
|
||||
|
||||
public string AvatarUrl { get; protected set; }
|
||||
|
||||
|
||||
public string GravatarUrl { get; protected set; }
|
||||
|
||||
public string Url { get; protected set; }
|
||||
@@ -84,4 +84,4 @@ namespace Octokit
|
||||
internal string DebuggerDisplay => string.Format(CultureInfo.InvariantCulture,
|
||||
$"Collaborator: Id: {Id} Login: {Login}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Octokit
|
||||
{
|
||||
public Deployment() { }
|
||||
|
||||
public Deployment(int id, string nodeId, string sha, string @ref, string url, User creator, IReadOnlyDictionary<string, string> payload, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string statusesUrl, string repositoryUrl, string environment, string originalEnvironment, bool transientEnvironment, bool productionEnvironment, string task)
|
||||
public Deployment(long id, string nodeId, string sha, string @ref, string url, User creator, IReadOnlyDictionary<string, string> payload, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string statusesUrl, string repositoryUrl, string environment, string originalEnvironment, bool transientEnvironment, bool productionEnvironment, string task)
|
||||
{
|
||||
Id = id;
|
||||
NodeId = nodeId;
|
||||
@@ -37,7 +37,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Id of this deployment.
|
||||
/// </summary>
|
||||
public int Id { get; private set; }
|
||||
public long Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// GraphQL Node Id
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Octokit.Models.Response
|
||||
{
|
||||
public DeploymentEnvironment() { }
|
||||
|
||||
public DeploymentEnvironment(int id, string nodeID, string name, string url, string htmlUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt)
|
||||
public DeploymentEnvironment(long id, string nodeID, string name, string url, string htmlUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt)
|
||||
{
|
||||
Id = id;
|
||||
NodeId = nodeID;
|
||||
@@ -28,7 +28,7 @@ namespace Octokit.Models.Response
|
||||
/// <summary>
|
||||
/// Id of this deployment environment
|
||||
/// </summary>
|
||||
public int Id { get; private set; }
|
||||
public long Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// GraphQL Node Id
|
||||
@@ -68,4 +68,4 @@ namespace Octokit.Models.Response
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Octokit
|
||||
public PreReceiveHook()
|
||||
{ }
|
||||
|
||||
public PreReceiveHook(int id, string name, StringEnum<PreReceiveHookEnforcement> enforcement, string script, Repository scriptRepository, PreReceiveEnvironment environment, bool allowDownstreamConfiguration)
|
||||
public PreReceiveHook(long id, string name, StringEnum<PreReceiveHookEnforcement> enforcement, string script, Repository scriptRepository, PreReceiveEnvironment environment, bool allowDownstreamConfiguration)
|
||||
{
|
||||
Id = id;
|
||||
Name = name;
|
||||
@@ -26,7 +26,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// The identifier for the pre-receive hook.
|
||||
/// </summary>
|
||||
public int Id { get; private set; }
|
||||
public long Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the hook.
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Octokit
|
||||
{
|
||||
public GpgKey() { }
|
||||
|
||||
public GpgKey(int id, int? primaryKeyId, string keyId, string publicKey, IReadOnlyList<EmailAddress> emails, IReadOnlyList<GpgKey> subkeys, bool canSign, bool canEncryptCommunications, bool canEncryptStorage, bool canCertify, DateTimeOffset createdAt, DateTimeOffset? expiresAt)
|
||||
public GpgKey(long id, long? primaryKeyId, string keyId, string publicKey, IReadOnlyList<EmailAddress> emails, IReadOnlyList<GpgKey> subkeys, bool canSign, bool canEncryptCommunications, bool canEncryptStorage, bool canCertify, DateTimeOffset createdAt, DateTimeOffset? expiresAt)
|
||||
{
|
||||
Id = id;
|
||||
PrimaryKeyId = primaryKeyId;
|
||||
@@ -28,8 +28,8 @@ namespace Octokit
|
||||
ExpiresAt = expiresAt;
|
||||
}
|
||||
|
||||
public int Id { get; private set; }
|
||||
public int? PrimaryKeyId { get; private set; }
|
||||
public long Id { get; private set; }
|
||||
public long? PrimaryKeyId { get; private set; }
|
||||
public string KeyId { get; private set; }
|
||||
public string PublicKey { get; private set; }
|
||||
public IReadOnlyList<EmailAddress> Emails { get; private set; }
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Octokit
|
||||
{ }
|
||||
|
||||
public Migration(
|
||||
int id,
|
||||
long id,
|
||||
string nodeId,
|
||||
string guid,
|
||||
MigrationState state,
|
||||
@@ -48,7 +48,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Id of migration.
|
||||
/// </summary>
|
||||
public int Id { get; private set; }
|
||||
public long Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// GraphQL Node Id
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Octokit
|
||||
{
|
||||
}
|
||||
|
||||
public OrganizationMembershipInvitation(int id, string nodeId, string login, string email, OrganizationMembershipRole role, DateTimeOffset createdAt, User inviter, int teamCount)
|
||||
public OrganizationMembershipInvitation(long id, string nodeId, string login, string email, OrganizationMembershipRole role, DateTimeOffset createdAt, User inviter, int teamCount)
|
||||
{
|
||||
Id = id;
|
||||
NodeId = nodeId;
|
||||
@@ -24,7 +24,7 @@ namespace Octokit
|
||||
TeamCount = teamCount;
|
||||
}
|
||||
|
||||
public int Id { get; private set; }
|
||||
public long Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// GraphQL Node Id
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Octokit
|
||||
{
|
||||
public ProjectCard() { }
|
||||
|
||||
public ProjectCard(string columnUrl, string contentUrl, int id, string nodeId, string note, User creator, DateTimeOffset createdAt, DateTimeOffset updatedAt, bool archived)
|
||||
public ProjectCard(string columnUrl, string contentUrl, long id, string nodeId, string note, User creator, DateTimeOffset createdAt, DateTimeOffset updatedAt, bool archived)
|
||||
{
|
||||
ColumnUrl = columnUrl;
|
||||
ContentUrl = contentUrl;
|
||||
@@ -35,7 +35,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// The Id for this card.
|
||||
/// </summary>
|
||||
public int Id { get; private set; }
|
||||
public long Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// GraphQL Node Id
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Octokit
|
||||
{
|
||||
public PublicKey() { }
|
||||
|
||||
public PublicKey(int id, string key, string url, string title)
|
||||
public PublicKey(long id, string key, string url, string title)
|
||||
{
|
||||
Id = id;
|
||||
Key = key;
|
||||
@@ -16,7 +16,7 @@ namespace Octokit
|
||||
Title = title;
|
||||
}
|
||||
|
||||
public int Id { get; private set; }
|
||||
public long Id { get; private set; }
|
||||
|
||||
public string Key { get; private set; }
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Octokit
|
||||
{
|
||||
public Release() { }
|
||||
|
||||
public Release(string url, string htmlUrl, string assetsUrl, string uploadUrl, int id, string nodeId, string tagName, string targetCommitish, string name, string body, bool draft, bool prerelease, DateTimeOffset createdAt, DateTimeOffset? publishedAt, Author author, string tarballUrl, string zipballUrl, IReadOnlyList<ReleaseAsset> assets)
|
||||
public Release(string url, string htmlUrl, string assetsUrl, string uploadUrl, long id, string nodeId, string tagName, string targetCommitish, string name, string body, bool draft, bool prerelease, DateTimeOffset createdAt, DateTimeOffset? publishedAt, Author author, string tarballUrl, string zipballUrl, IReadOnlyList<ReleaseAsset> assets)
|
||||
{
|
||||
Url = url;
|
||||
HtmlUrl = htmlUrl;
|
||||
@@ -47,7 +47,7 @@ namespace Octokit
|
||||
|
||||
public string UploadUrl { get; private set; }
|
||||
|
||||
public int Id { get; private set; }
|
||||
public long Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// GraphQL Node Id
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Octokit
|
||||
{
|
||||
public RepositoryContributor() { }
|
||||
|
||||
public RepositoryContributor(string login, int id, string nodeId, string avatarUrl, string url, string htmlUrl, string followersUrl, string followingUrl, string gistsUrl, string type, string starredUrl, string subscriptionsUrl, string organizationsUrl, string reposUrl, string eventsUrl, string receivedEventsUrl, bool siteAdmin, int contributions)
|
||||
public RepositoryContributor(string login, long id, string nodeId, string avatarUrl, string url, string htmlUrl, string followersUrl, string followingUrl, string gistsUrl, string type, string starredUrl, string subscriptionsUrl, string organizationsUrl, string reposUrl, string eventsUrl, string receivedEventsUrl, bool siteAdmin, int contributions)
|
||||
: base(login, id, nodeId, avatarUrl, url, htmlUrl, followersUrl, followingUrl, gistsUrl, type, starredUrl, subscriptionsUrl, organizationsUrl, reposUrl, eventsUrl, receivedEventsUrl, siteAdmin)
|
||||
{
|
||||
Contributions = contributions;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Octokit
|
||||
{
|
||||
public RepositoryInvitation() { }
|
||||
|
||||
public RepositoryInvitation(int id, string nodeId, Repository repository, User invitee, User inviter, InvitationPermissionType permissions, DateTimeOffset createdAt, bool expired, string url, string htmlUrl)
|
||||
public RepositoryInvitation(long id, string nodeId, Repository repository, User invitee, User inviter, InvitationPermissionType permissions, DateTimeOffset createdAt, bool expired, string url, string htmlUrl)
|
||||
{
|
||||
Id = id;
|
||||
NodeId = nodeId;
|
||||
@@ -29,7 +29,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Unique identifier of the repository invitation.
|
||||
/// </summary>
|
||||
public int Id { get; private set; }
|
||||
public long Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// GraphQL Node Id
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Octokit
|
||||
{
|
||||
public Team() { }
|
||||
|
||||
public Team(string url, string htmlUrl, int id, string nodeId, string slug, string name, string description, TeamPrivacy privacy, string permission, TeamRepositoryPermissions teamRepositoryPermissions, int membersCount, int reposCount, Organization organization, Team parent, string ldapDistinguishedName)
|
||||
public Team(string url, string htmlUrl, long id, string nodeId, string slug, string name, string description, TeamPrivacy privacy, string permission, TeamRepositoryPermissions teamRepositoryPermissions, int membersCount, int reposCount, Organization organization, Team parent, string ldapDistinguishedName)
|
||||
{
|
||||
Url = url;
|
||||
HtmlUrl = htmlUrl;
|
||||
@@ -44,7 +44,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// team id
|
||||
/// </summary>
|
||||
public int Id { get; private set; }
|
||||
public long Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// GraphQL Node Id
|
||||
@@ -75,9 +75,9 @@ namespace Octokit
|
||||
/// Deprecated. The permission that new repositories will be added to the team with when none is specified
|
||||
/// </summary>
|
||||
public string Permission { get; private set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
///
|
||||
/// </summary>
|
||||
public TeamRepositoryPermissions TeamRepositoryPermissions { get; private set; }
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Octokit
|
||||
{
|
||||
public TeamRepository() { }
|
||||
|
||||
public TeamRepository(int id,
|
||||
public TeamRepository(long id,
|
||||
string nodeId,
|
||||
string name,
|
||||
string fullName,
|
||||
@@ -198,7 +198,7 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Unique identifier of the repository
|
||||
/// </summary>
|
||||
public int Id { get; private set; }
|
||||
public long Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// GraphQL Node Id
|
||||
@@ -400,7 +400,7 @@ namespace Octokit
|
||||
|
||||
/// <summary>
|
||||
/// example: git @github.com:octocat/Hello-World.git
|
||||
///
|
||||
///
|
||||
/// </summary>
|
||||
public string SshUrl { get; private set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user