diff --git a/Octokit.Reactive/Clients/Enterprise/IObservableEnterpriseLdapClient.cs b/Octokit.Reactive/Clients/Enterprise/IObservableEnterpriseLdapClient.cs index 1791d57e0c..f446f15029 100644 --- a/Octokit.Reactive/Clients/Enterprise/IObservableEnterpriseLdapClient.cs +++ b/Octokit.Reactive/Clients/Enterprise/IObservableEnterpriseLdapClient.cs @@ -43,7 +43,7 @@ public interface IObservableEnterpriseLdapClient /// The teamId to update LDAP mapping /// The /// The object. - IObservable UpdateTeamMapping(int teamId, NewLdapMapping newLdapMapping); + IObservable UpdateTeamMapping(long teamId, NewLdapMapping newLdapMapping); /// /// Queue an LDAP Sync job for a team on a GitHub Enterprise appliance (must be Site Admin user). @@ -53,6 +53,6 @@ public interface IObservableEnterpriseLdapClient /// /// The teamId to update LDAP mapping /// The of the queue request. - IObservable QueueSyncTeamMapping(int teamId); + IObservable QueueSyncTeamMapping(long teamId); } } diff --git a/Octokit.Reactive/Clients/Enterprise/ObservableEnterpriseLdapClient.cs b/Octokit.Reactive/Clients/Enterprise/ObservableEnterpriseLdapClient.cs index b6fb718455..8a490b4e7a 100644 --- a/Octokit.Reactive/Clients/Enterprise/ObservableEnterpriseLdapClient.cs +++ b/Octokit.Reactive/Clients/Enterprise/ObservableEnterpriseLdapClient.cs @@ -58,7 +58,7 @@ public IObservable QueueSyncUserMapping(string userName) /// The teamId to update LDAP mapping /// The /// The object. - public IObservable UpdateTeamMapping(int teamId, NewLdapMapping newLdapMapping) + public IObservable UpdateTeamMapping(long teamId, NewLdapMapping newLdapMapping) { return _client.UpdateTeamMapping(teamId, newLdapMapping).ToObservable(); } @@ -71,7 +71,7 @@ public IObservable UpdateTeamMapping(int teamId, NewLdapMapping newLdapMap /// /// The teamId to update LDAP mapping /// The of the queue request. - public IObservable QueueSyncTeamMapping(int teamId) + public IObservable QueueSyncTeamMapping(long teamId) { return _client.QueueSyncTeamMapping(teamId).ToObservable(); } diff --git a/Octokit.Reactive/Clients/IObservableAuthorizationsClient.cs b/Octokit.Reactive/Clients/IObservableAuthorizationsClient.cs index 74183fb475..5ee7812bce 100644 --- a/Octokit.Reactive/Clients/IObservableAuthorizationsClient.cs +++ b/Octokit.Reactive/Clients/IObservableAuthorizationsClient.cs @@ -42,7 +42,7 @@ public interface IObservableAuthorizationsClient /// An [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "It's fiiiine. It's fine. Trust us.")] - IObservable Get(int id); + IObservable Get(long id); /// /// Creates a new personal token for the authenticated user. @@ -219,7 +219,7 @@ IObservable GetOrCreateApplicationAuthentication( /// The id of the /// The changes to make to the authorization /// - IObservable Update(int id, AuthorizationUpdate authorizationUpdate); + IObservable Update(long id, AuthorizationUpdate authorizationUpdate); /// /// Deletes the specified . @@ -234,7 +234,7 @@ IObservable GetOrCreateApplicationAuthentication( /// Thrown when the current user does not have permission to make the request. /// /// Thrown when a general API error occurs. - IObservable Delete(int id); + IObservable Delete(long id); /// /// Deletes the specified . @@ -250,6 +250,6 @@ IObservable GetOrCreateApplicationAuthentication( /// Thrown when the current user does not have permission to make the request. /// /// Thrown when a general API error occurs. - IObservable Delete(int id, string twoFactorAuthenticationCode); + IObservable Delete(long id, string twoFactorAuthenticationCode); } } diff --git a/Octokit.Reactive/Clients/IObservableDeploymentStatusClient.cs b/Octokit.Reactive/Clients/IObservableDeploymentStatusClient.cs index 307e1d0e27..2f6c8a0508 100644 --- a/Octokit.Reactive/Clients/IObservableDeploymentStatusClient.cs +++ b/Octokit.Reactive/Clients/IObservableDeploymentStatusClient.cs @@ -21,7 +21,7 @@ public interface IObservableDeploymentStatusClient /// The owner of the repository. /// The name of the repository. /// The id of the deployment. - IObservable GetAll(string owner, string name, int deploymentId); + IObservable GetAll(string owner, string name, long deploymentId); /// /// Gets all the statuses for the given deployment. Any user with pull access to a repository can @@ -32,7 +32,7 @@ public interface IObservableDeploymentStatusClient /// /// The Id of the repository. /// The id of the deployment. - IObservable GetAll(long repositoryId, int deploymentId); + IObservable GetAll(long repositoryId, long deploymentId); /// /// Gets all the statuses for the given deployment. Any user with pull access to a repository can @@ -45,7 +45,7 @@ public interface IObservableDeploymentStatusClient /// The name of the repository. /// The id of the deployment. /// Options for changing the API response - IObservable GetAll(string owner, string name, int deploymentId, ApiOptions options); + IObservable GetAll(string owner, string name, long deploymentId, ApiOptions options); /// /// Gets all the statuses for the given deployment. Any user with pull access to a repository can @@ -57,7 +57,7 @@ public interface IObservableDeploymentStatusClient /// The Id of the repository. /// The id of the deployment. /// Options for changing the API response - IObservable GetAll(long repositoryId, int deploymentId, ApiOptions options); + IObservable GetAll(long repositoryId, long deploymentId, ApiOptions options); /// /// Creates a new status for the given deployment. Users with push access can create deployment @@ -70,7 +70,7 @@ public interface IObservableDeploymentStatusClient /// The name of the repository. /// The id of the deployment. /// The new deployment status to create. - IObservable Create(string owner, string name, int deploymentId, NewDeploymentStatus newDeploymentStatus); + IObservable Create(string owner, string name, long deploymentId, NewDeploymentStatus newDeploymentStatus); /// /// Creates a new status for the given deployment. Users with push access can create deployment @@ -82,6 +82,6 @@ public interface IObservableDeploymentStatusClient /// The Id of the repository. /// The id of the deployment. /// The new deployment status to create. - IObservable Create(long repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus); + IObservable Create(long repositoryId, long deploymentId, NewDeploymentStatus newDeploymentStatus); } } diff --git a/Octokit.Reactive/Clients/IObservableGistCommentsClient.cs b/Octokit.Reactive/Clients/IObservableGistCommentsClient.cs index ea817b2f89..aa1061615e 100644 --- a/Octokit.Reactive/Clients/IObservableGistCommentsClient.cs +++ b/Octokit.Reactive/Clients/IObservableGistCommentsClient.cs @@ -15,7 +15,7 @@ public interface IObservableGistCommentsClient /// IObservable{GistComment}. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] - IObservable Get(string gistId, int commentId); + IObservable Get(string gistId, long commentId); /// /// Gets all comments for the gist with the specified id. @@ -51,7 +51,7 @@ public interface IObservableGistCommentsClient /// The id of the comment /// The updated body of the comment /// IObservable{GistComment}. - IObservable Update(string gistId, int commentId, string comment); + IObservable Update(string gistId, long commentId, string comment); /// /// Deletes the comment with the specified gist- and comment id. @@ -60,6 +60,6 @@ public interface IObservableGistCommentsClient /// The id of the gist /// The id of the comment /// IObservable{Unit}. - IObservable Delete(string gistId, int commentId); + IObservable Delete(string gistId, long commentId); } } \ No newline at end of file diff --git a/Octokit.Reactive/Clients/IObservableOrganizationHooksClient.cs b/Octokit.Reactive/Clients/IObservableOrganizationHooksClient.cs index 533a0b4e9d..b542995c0b 100644 --- a/Octokit.Reactive/Clients/IObservableOrganizationHooksClient.cs +++ b/Octokit.Reactive/Clients/IObservableOrganizationHooksClient.cs @@ -28,7 +28,7 @@ public interface IObservableOrganizationHooksClient /// The organizations hook id /// See API documentation for more information. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "This is ok; we're matching HTTP verbs not keyworks")] - IObservable Get(string org, int hookId); + IObservable Get(string org, long hookId); /// /// Creates a hook for a organization @@ -44,7 +44,7 @@ public interface IObservableOrganizationHooksClient /// The organizations hook id /// The hook's parameters /// See API documentation for more information. - IObservable Edit(string org, int hookId, EditOrganizationHook hook); + IObservable Edit(string org, long hookId, EditOrganizationHook hook); /// /// This will trigger a ping event to be sent to the hook. @@ -52,7 +52,7 @@ public interface IObservableOrganizationHooksClient /// The organizations name /// The organizations hook id /// See API documentation for more information. - IObservable Ping(string org, int hookId); + IObservable Ping(string org, long hookId); /// /// Deletes a hook for a organization @@ -60,6 +60,6 @@ public interface IObservableOrganizationHooksClient /// The organizations name /// The organizations hook id /// See API documentation for more information. - IObservable Delete(string org, int hookId); + IObservable Delete(string org, long hookId); } } \ No newline at end of file diff --git a/Octokit.Reactive/Clients/IObservableProjectCardsClient.cs b/Octokit.Reactive/Clients/IObservableProjectCardsClient.cs index ff6209b0aa..c0633ce522 100644 --- a/Octokit.Reactive/Clients/IObservableProjectCardsClient.cs +++ b/Octokit.Reactive/Clients/IObservableProjectCardsClient.cs @@ -18,7 +18,7 @@ public interface IObservableProjectCardsClient /// See the API documentation for more information. /// /// The id of the column - IObservable GetAll(int columnId); + IObservable GetAll(long columnId); /// /// Gets all cards. @@ -28,7 +28,7 @@ public interface IObservableProjectCardsClient /// /// The id of the column /// Options for changing the API response - IObservable GetAll(int columnId, ApiOptions options); + IObservable GetAll(long columnId, ApiOptions options); /// /// Gets all cards. @@ -38,7 +38,7 @@ public interface IObservableProjectCardsClient /// /// The id of the column /// Used to filter the list of project cards returned - IObservable GetAll(int columnId, ProjectCardRequest request); + IObservable GetAll(long columnId, ProjectCardRequest request); /// /// Gets all cards. @@ -49,7 +49,7 @@ public interface IObservableProjectCardsClient /// The id of the column /// Used to filter the list of project cards returned /// Options for changing the API response - IObservable GetAll(int columnId, ProjectCardRequest request, ApiOptions options); + IObservable GetAll(long columnId, ProjectCardRequest request, ApiOptions options); /// /// Gets a single card. @@ -59,7 +59,7 @@ public interface IObservableProjectCardsClient /// /// The id of the card [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - IObservable Get(int id); + IObservable Get(long id); /// /// Creates a card. @@ -69,7 +69,7 @@ public interface IObservableProjectCardsClient /// /// The id of the column /// The card to create - IObservable Create(int columnId, NewProjectCard newProjectCard); + IObservable Create(long columnId, NewProjectCard newProjectCard); /// /// Updates a card. @@ -79,7 +79,7 @@ public interface IObservableProjectCardsClient /// /// The id of the card /// New values to update the card with - IObservable Update(int id, ProjectCardUpdate projectCardUpdate); + IObservable Update(long id, ProjectCardUpdate projectCardUpdate); /// /// Deletes a card. @@ -88,7 +88,7 @@ public interface IObservableProjectCardsClient /// See the API documentation for more information. /// /// The id of the card - IObservable Delete(int id); + IObservable Delete(long id); /// /// Moves a card. @@ -98,6 +98,6 @@ public interface IObservableProjectCardsClient /// /// The id of the card /// The position to move the card - IObservable Move(int id, ProjectCardMove position); + IObservable Move(long id, ProjectCardMove position); } } diff --git a/Octokit.Reactive/Clients/IObservableProjectColumnsClient.cs b/Octokit.Reactive/Clients/IObservableProjectColumnsClient.cs index b1eb1f500a..162a4e9a10 100644 --- a/Octokit.Reactive/Clients/IObservableProjectColumnsClient.cs +++ b/Octokit.Reactive/Clients/IObservableProjectColumnsClient.cs @@ -18,7 +18,7 @@ public interface IObservableProjectColumnsClient /// See the API documentation for more information. /// /// The Id of the project - IObservable GetAll(int projectId); + IObservable GetAll(long projectId); /// /// Gets all columns. @@ -28,7 +28,7 @@ public interface IObservableProjectColumnsClient /// /// The Id of the project /// Options for changing the API response - IObservable GetAll(int projectId, ApiOptions options); + IObservable GetAll(long projectId, ApiOptions options); /// /// Gets a single column. @@ -38,7 +38,7 @@ public interface IObservableProjectColumnsClient /// /// The id of the column [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - IObservable Get(int id); + IObservable Get(long id); /// /// Creates a column. @@ -48,7 +48,7 @@ public interface IObservableProjectColumnsClient /// /// The Id of the project /// The column to create - IObservable Create(int projectId, NewProjectColumn newProjectColumn); + IObservable Create(long projectId, NewProjectColumn newProjectColumn); /// /// Updates a column. @@ -58,7 +58,7 @@ public interface IObservableProjectColumnsClient /// /// The id of the column /// New values to update the column with - IObservable Update(int id, ProjectColumnUpdate projectColumnUpdate); + IObservable Update(long id, ProjectColumnUpdate projectColumnUpdate); /// /// Deletes a column. @@ -67,7 +67,7 @@ public interface IObservableProjectColumnsClient /// See the API documentation for more information. /// /// The id of the column - IObservable Delete(int id); + IObservable Delete(long id); /// /// Moves a column. @@ -77,6 +77,6 @@ public interface IObservableProjectColumnsClient /// /// The id of the column /// The position to move the column - IObservable Move(int id, ProjectColumnMove position); + IObservable Move(long id, ProjectColumnMove position); } } diff --git a/Octokit.Reactive/Clients/IObservableReleasesClient.cs b/Octokit.Reactive/Clients/IObservableReleasesClient.cs index 7320f5addd..5a513ddd78 100644 --- a/Octokit.Reactive/Clients/IObservableReleasesClient.cs +++ b/Octokit.Reactive/Clients/IObservableReleasesClient.cs @@ -67,7 +67,7 @@ public interface IObservableReleasesClient /// The repository's name /// The id of the release /// Thrown when a general API error occurs. - IObservable Get(string owner, string name, int id); + IObservable Get(string owner, string name, long id); /// /// Gets a single for the specified repository. @@ -90,7 +90,7 @@ public interface IObservableReleasesClient /// The Id of the repository /// The id of the release /// Thrown when a general API error occurs. - IObservable Get(long repositoryId, int id); + IObservable Get(long repositoryId, long id); /// /// Gets a single for the specified repository. @@ -158,7 +158,7 @@ public interface IObservableReleasesClient /// The id of the release /// A description of the release to edit /// Thrown when a general API error occurs. - IObservable Edit(string owner, string name, int id, ReleaseUpdate data); + IObservable Edit(string owner, string name, long id, ReleaseUpdate data); /// /// Edits an existing for the specified repository. @@ -170,7 +170,7 @@ public interface IObservableReleasesClient /// The id of the release /// A description of the release to edit /// Thrown when a general API error occurs. - IObservable Edit(long repositoryId, int id, ReleaseUpdate data); + IObservable Edit(long repositoryId, long id, ReleaseUpdate data); /// /// Deletes an existing for the specified repository. @@ -182,7 +182,7 @@ public interface IObservableReleasesClient /// The repository's name /// The id of the release to delete /// Thrown when a general API error occurs. - IObservable Delete(string owner, string name, int id); + IObservable Delete(string owner, string name, long id); /// /// Deletes an existing for the specified repository. @@ -193,7 +193,7 @@ public interface IObservableReleasesClient /// The Id of the repository /// The id of the release to delete /// Thrown when a general API error occurs. - IObservable Delete(long repositoryId, int id); + IObservable Delete(long repositoryId, long id); /// /// Gets all for the specified release of the specified repository. @@ -205,7 +205,7 @@ public interface IObservableReleasesClient /// The repository's name /// The id of the . /// Thrown when a general API error occurs. - IObservable GetAllAssets(string owner, string name, int id); + IObservable GetAllAssets(string owner, string name, long id); /// /// Gets all for the specified release of the specified repository. @@ -216,7 +216,7 @@ public interface IObservableReleasesClient /// The Id of the repository /// The id of the . /// Thrown when a general API error occurs. - IObservable GetAllAssets(long repositoryId, int id); + IObservable GetAllAssets(long repositoryId, long id); /// /// Gets all for the specified release of the specified repository. @@ -229,7 +229,7 @@ public interface IObservableReleasesClient /// The id of the . /// Options for changing the API response /// Thrown when a general API error occurs. - IObservable GetAllAssets(string owner, string name, int id, ApiOptions options); + IObservable GetAllAssets(string owner, string name, long id, ApiOptions options); /// /// Gets all for the specified release of the specified repository. @@ -241,7 +241,7 @@ public interface IObservableReleasesClient /// The id of the . /// Options for changing the API response /// Thrown when a general API error occurs. - IObservable GetAllAssets(long repositoryId, int id, ApiOptions options); + IObservable GetAllAssets(long repositoryId, long id, ApiOptions options); /// /// Uploads a for the specified release. @@ -264,7 +264,7 @@ public interface IObservableReleasesClient /// The repository's owner /// The repository's name /// The id of the - IObservable GetAsset(string owner, string name, int assetId); + IObservable GetAsset(string owner, string name, long assetId); /// /// Gets the specified for the specified release of the specified repository. @@ -274,7 +274,7 @@ public interface IObservableReleasesClient /// /// The Id of the repository /// The id of the - IObservable GetAsset(long repositoryId, int assetId); + IObservable GetAsset(long repositoryId, long assetId); /// /// Edits the for the specified release of the specified repository. @@ -286,7 +286,7 @@ public interface IObservableReleasesClient /// The repository's name /// The id of the /// Description of the asset with its amended data - IObservable EditAsset(string owner, string name, int assetId, ReleaseAssetUpdate data); + IObservable EditAsset(string owner, string name, long assetId, ReleaseAssetUpdate data); /// /// Edits the for the specified release of the specified repository. @@ -297,7 +297,7 @@ public interface IObservableReleasesClient /// The Id of the repository /// The id of the /// Description of the asset with its amended data - IObservable EditAsset(long repositoryId, int assetId, ReleaseAssetUpdate data); + IObservable EditAsset(long repositoryId, long assetId, ReleaseAssetUpdate data); /// /// Deletes the specified from the specified repository @@ -308,7 +308,7 @@ public interface IObservableReleasesClient /// The repository's owner /// The repository's name /// The id of the . - IObservable DeleteAsset(string owner, string name, int id); + IObservable DeleteAsset(string owner, string name, long id); /// /// Deletes the specified from the specified repository @@ -318,6 +318,6 @@ public interface IObservableReleasesClient /// /// The Id of the repository /// The id of the . - IObservable DeleteAsset(long repositoryId, int id); + IObservable DeleteAsset(long repositoryId, long id); } } diff --git a/Octokit.Reactive/Clients/IObservableRepositoryHooksClient.cs b/Octokit.Reactive/Clients/IObservableRepositoryHooksClient.cs index e6daa3d909..946e11358a 100644 --- a/Octokit.Reactive/Clients/IObservableRepositoryHooksClient.cs +++ b/Octokit.Reactive/Clients/IObservableRepositoryHooksClient.cs @@ -52,7 +52,7 @@ public interface IObservableRepositoryHooksClient /// The repository's hook id /// See API documentation for more information. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "This is ok; we're matching HTTP verbs not keyworks")] - IObservable Get(string owner, string name, int hookId); + IObservable Get(string owner, string name, long hookId); /// /// Gets a single hook by Id @@ -61,7 +61,7 @@ public interface IObservableRepositoryHooksClient /// The repository's hook id /// See API documentation for more information. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "This is ok; we're matching HTTP verbs not keyworks")] - IObservable Get(long repositoryId, int hookId); + IObservable Get(long repositoryId, long hookId); /// /// Creates a hook for a repository @@ -88,7 +88,7 @@ public interface IObservableRepositoryHooksClient /// The repository's hook id /// The requested changes to an edit repository hook /// See API documentation for more information. - IObservable Edit(string owner, string name, int hookId, EditRepositoryHook hook); + IObservable Edit(string owner, string name, long hookId, EditRepositoryHook hook); /// /// Edits a hook for a repository @@ -97,7 +97,7 @@ public interface IObservableRepositoryHooksClient /// The repository's hook id /// The requested changes to an edit repository hook /// See API documentation for more information. - IObservable Edit(long repositoryId, int hookId, EditRepositoryHook hook); + IObservable Edit(long repositoryId, long hookId, EditRepositoryHook hook); /// /// Tests a hook for a repository @@ -108,7 +108,7 @@ public interface IObservableRepositoryHooksClient /// See API documentation for more information. /// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook /// is not subscribed to push events, the server will respond with 204 but no test POST will be generated. - IObservable Test(string owner, string name, int hookId); + IObservable Test(string owner, string name, long hookId); /// /// Tests a hook for a repository @@ -118,7 +118,7 @@ public interface IObservableRepositoryHooksClient /// See API documentation for more information. /// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook /// is not subscribed to push events, the server will respond with 204 but no test POST will be generated. - IObservable Test(long repositoryId, int hookId); + IObservable Test(long repositoryId, long hookId); /// /// This will trigger a ping event to be sent to the hook. @@ -127,7 +127,7 @@ public interface IObservableRepositoryHooksClient /// The repository's name /// The repository's hook id /// See API documentation for more information. - IObservable Ping(string owner, string name, int hookId); + IObservable Ping(string owner, string name, long hookId); /// /// This will trigger a ping event to be sent to the hook. @@ -135,7 +135,7 @@ public interface IObservableRepositoryHooksClient /// The Id of the repository /// The repository's hook id /// See API documentation for more information. - IObservable Ping(long repositoryId, int hookId); + IObservable Ping(long repositoryId, long hookId); /// /// Deletes a hook for a repository @@ -144,7 +144,7 @@ public interface IObservableRepositoryHooksClient /// The repository's name /// The repository's hook id /// See API documentation for more information. - IObservable Delete(string owner, string name, int hookId); + IObservable Delete(string owner, string name, long hookId); /// /// Deletes a hook for a repository @@ -152,6 +152,6 @@ public interface IObservableRepositoryHooksClient /// The Id of the repository /// The repository's hook id /// See API documentation for more information. - IObservable Delete(long repositoryId, int hookId); + IObservable Delete(long repositoryId, long hookId); } } \ No newline at end of file diff --git a/Octokit.Reactive/Clients/IObservableRepositoryInvitationsClient.cs b/Octokit.Reactive/Clients/IObservableRepositoryInvitationsClient.cs index 2f339c8fca..047214d197 100644 --- a/Octokit.Reactive/Clients/IObservableRepositoryInvitationsClient.cs +++ b/Octokit.Reactive/Clients/IObservableRepositoryInvitationsClient.cs @@ -13,7 +13,7 @@ public interface IObservableRepositoryInvitationsClient /// See the API documentation for more information. /// /// The id of the invitation. - IObservable Accept(int invitationId); + IObservable Accept(long invitationId); /// /// Decline a repository invitation. @@ -22,7 +22,7 @@ public interface IObservableRepositoryInvitationsClient /// See the API documentation for more information. /// /// The id of the invitation. - IObservable Decline(int invitationId); + IObservable Decline(long invitationId); /// /// Deletes a repository invitation. @@ -32,7 +32,7 @@ public interface IObservableRepositoryInvitationsClient /// /// The id of the repository. /// The id of the invitation. - IObservable Delete(long repositoryId, int invitationId); + IObservable Delete(long repositoryId, long invitationId); /// /// Gets all invitations for the current user. @@ -82,6 +82,6 @@ public interface IObservableRepositoryInvitationsClient /// The id of the invitation. /// The permission to set. /// - IObservable Edit(long repositoryId, int invitationId, InvitationUpdate permissions); + IObservable Edit(long repositoryId, long invitationId, InvitationUpdate permissions); } } diff --git a/Octokit.Reactive/Clients/IObservableUserAdministrationClient.cs b/Octokit.Reactive/Clients/IObservableUserAdministrationClient.cs index 844a0e1598..65678cf782 100644 --- a/Octokit.Reactive/Clients/IObservableUserAdministrationClient.cs +++ b/Octokit.Reactive/Clients/IObservableUserAdministrationClient.cs @@ -133,6 +133,6 @@ public interface IObservableUserAdministrationClient /// /// The key to delete /// - IObservable DeletePublicKey(int keyId); + IObservable DeletePublicKey(long keyId); } } diff --git a/Octokit.Reactive/Clients/ObservableAuthorizationsClient.cs b/Octokit.Reactive/Clients/ObservableAuthorizationsClient.cs index 7da86509db..1458c6fd1d 100644 --- a/Octokit.Reactive/Clients/ObservableAuthorizationsClient.cs +++ b/Octokit.Reactive/Clients/ObservableAuthorizationsClient.cs @@ -56,7 +56,7 @@ public IObservable GetAll(ApiOptions options) /// /// The id of the /// An - public IObservable Get(int id) + public IObservable Get(long id) { return _client.Get(id).ToObservable(); } @@ -307,7 +307,7 @@ public IObservable RevokeApplicationAuthentication(string clientId, string /// The id of the /// The changes to make to the authorization /// - public IObservable Update(int id, AuthorizationUpdate authorizationUpdate) + public IObservable Update(long id, AuthorizationUpdate authorizationUpdate) { Ensure.ArgumentNotNull(authorizationUpdate, nameof(authorizationUpdate)); @@ -327,7 +327,7 @@ public IObservable Update(int id, AuthorizationUpdate authorizati /// Thrown when the current user does not have permission to make the request. /// /// Thrown when a general API error occurs. - public IObservable Delete(int id) + public IObservable Delete(long id) { return _client.Delete(id).ToObservable(); } @@ -346,7 +346,7 @@ public IObservable Delete(int id) /// Thrown when the current user does not have permission to make the request. /// /// Thrown when a general API error occurs. - public IObservable Delete(int id, string twoFactorAuthenticationCode) + public IObservable Delete(long id, string twoFactorAuthenticationCode) { return _client.Delete(id, twoFactorAuthenticationCode).ToObservable(); } diff --git a/Octokit.Reactive/Clients/ObservableDeploymentStatusClient.cs b/Octokit.Reactive/Clients/ObservableDeploymentStatusClient.cs index e9ec0425ff..525b1bc98b 100644 --- a/Octokit.Reactive/Clients/ObservableDeploymentStatusClient.cs +++ b/Octokit.Reactive/Clients/ObservableDeploymentStatusClient.cs @@ -34,7 +34,7 @@ public ObservableDeploymentStatusClient(IGitHubClient client) /// The owner of the repository. /// The name of the repository. /// The id of the deployment. - public IObservable GetAll(string owner, string name, int deploymentId) + public IObservable GetAll(string owner, string name, long deploymentId) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -51,7 +51,7 @@ public IObservable GetAll(string owner, string name, int deplo /// /// The Id of the repository. /// The id of the deployment. - public IObservable GetAll(long repositoryId, int deploymentId) + public IObservable GetAll(long repositoryId, long deploymentId) { return GetAll(repositoryId, deploymentId, ApiOptions.None); } @@ -67,7 +67,7 @@ public IObservable GetAll(long repositoryId, int deploymentId) /// The name of the repository. /// The id of the deployment. /// Options for changing the API response - public IObservable GetAll(string owner, string name, int deploymentId, ApiOptions options) + public IObservable GetAll(string owner, string name, long deploymentId, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -87,7 +87,7 @@ public IObservable GetAll(string owner, string name, int deplo /// The Id of the repository. /// The id of the deployment. /// Options for changing the API response - public IObservable GetAll(long repositoryId, int deploymentId, ApiOptions options) + public IObservable GetAll(long repositoryId, long deploymentId, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -106,7 +106,7 @@ public IObservable GetAll(long repositoryId, int deploymentId, /// The name of the repository. /// The id of the deployment. /// The new deployment status to create. - public IObservable Create(string owner, string name, int deploymentId, NewDeploymentStatus newDeploymentStatus) + public IObservable Create(string owner, string name, long deploymentId, NewDeploymentStatus newDeploymentStatus) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -125,7 +125,7 @@ public IObservable Create(string owner, string name, int deplo /// The Id of the repository. /// The id of the deployment. /// The new deployment status to create. - public IObservable Create(long repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus) + public IObservable Create(long repositoryId, long deploymentId, NewDeploymentStatus newDeploymentStatus) { Ensure.ArgumentNotNull(newDeploymentStatus, nameof(newDeploymentStatus)); diff --git a/Octokit.Reactive/Clients/ObservableGistCommentsClient.cs b/Octokit.Reactive/Clients/ObservableGistCommentsClient.cs index ac16b247eb..7aefce8171 100644 --- a/Octokit.Reactive/Clients/ObservableGistCommentsClient.cs +++ b/Octokit.Reactive/Clients/ObservableGistCommentsClient.cs @@ -25,7 +25,7 @@ public ObservableGistCommentsClient(IGitHubClient client) /// The id of the gist /// The id of the comment /// IObservable{GistComment}. - public IObservable Get(string gistId, int commentId) + public IObservable Get(string gistId, long commentId) { return _client.Get(gistId, commentId).ToObservable(); } @@ -80,7 +80,7 @@ public IObservable Create(string gistId, string comment) /// The id of the comment /// The updated body of the comment /// IObservable{GistComment}. - public IObservable Update(string gistId, int commentId, string comment) + public IObservable Update(string gistId, long commentId, string comment) { Ensure.ArgumentNotNullOrEmptyString(comment, nameof(comment)); @@ -94,7 +94,7 @@ public IObservable Update(string gistId, int commentId, string comm /// The id of the gist /// The id of the comment /// IObservable{Unit}. - public IObservable Delete(string gistId, int commentId) + public IObservable Delete(string gistId, long commentId) { return _client.Delete(gistId, commentId).ToObservable(); } diff --git a/Octokit.Reactive/Clients/ObservableOrganizationHooksClient.cs b/Octokit.Reactive/Clients/ObservableOrganizationHooksClient.cs index b8e78925b6..302c1c68d3 100644 --- a/Octokit.Reactive/Clients/ObservableOrganizationHooksClient.cs +++ b/Octokit.Reactive/Clients/ObservableOrganizationHooksClient.cs @@ -50,7 +50,7 @@ public IObservable GetAll(string org, ApiOptions options) /// The organizations name /// The organizations hook id /// See API documentation for more information. - public IObservable Get(string org, int hookId) + public IObservable Get(string org, long hookId) { Ensure.ArgumentNotNullOrEmptyString(org, nameof(org)); @@ -79,7 +79,7 @@ public IObservable Create(string org, NewOrganizationHook hook /// The hook's parameters /// See API documentation for more information. /// - public IObservable Edit(string org, int hookId, EditOrganizationHook hook) + public IObservable Edit(string org, long hookId, EditOrganizationHook hook) { Ensure.ArgumentNotNullOrEmptyString(org, nameof(org)); Ensure.ArgumentNotNull(hook, nameof(hook)); @@ -93,7 +93,7 @@ public IObservable Edit(string org, int hookId, EditOrganizati /// The organizations name /// The organizations hook id /// See API documentation for more information. - public IObservable Ping(string org, int hookId) + public IObservable Ping(string org, long hookId) { Ensure.ArgumentNotNullOrEmptyString(org, nameof(org)); @@ -106,7 +106,7 @@ public IObservable Ping(string org, int hookId) /// The organizations name /// The organizations hook id /// See API documentation for more information. - public IObservable Delete(string org, int hookId) + public IObservable Delete(string org, long hookId) { Ensure.ArgumentNotNullOrEmptyString(org, nameof(org)); diff --git a/Octokit.Reactive/Clients/ObservableProjectCardsClient.cs b/Octokit.Reactive/Clients/ObservableProjectCardsClient.cs index 424f1c7cc3..cab403d621 100644 --- a/Octokit.Reactive/Clients/ObservableProjectCardsClient.cs +++ b/Octokit.Reactive/Clients/ObservableProjectCardsClient.cs @@ -30,7 +30,7 @@ public ObservableProjectCardsClient(IGitHubClient client) /// See the API documentation for more information. /// /// The id of the column - public IObservable GetAll(int columnId) + public IObservable GetAll(long columnId) { return GetAll(columnId, ApiOptions.None); } @@ -43,7 +43,7 @@ public IObservable GetAll(int columnId) /// /// The id of the column /// Options for changing the API response - public IObservable GetAll(int columnId, ApiOptions options) + public IObservable GetAll(long columnId, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -58,7 +58,7 @@ public IObservable GetAll(int columnId, ApiOptions options) /// /// The id of the column /// Used to filter the list of project cards returned - public IObservable GetAll(int columnId, ProjectCardRequest request) + public IObservable GetAll(long columnId, ProjectCardRequest request) { Ensure.ArgumentNotNull(request, nameof(request)); @@ -74,7 +74,7 @@ public IObservable GetAll(int columnId, ProjectCardRequest request) /// The id of the column /// Used to filter the list of project cards returned /// Options for changing the API response - public IObservable GetAll(int columnId, ProjectCardRequest request, ApiOptions options) + public IObservable GetAll(long columnId, ProjectCardRequest request, ApiOptions options) { Ensure.ArgumentNotNull(request, nameof(request)); Ensure.ArgumentNotNull(options, nameof(options)); @@ -91,7 +91,7 @@ public IObservable GetAll(int columnId, ProjectCardRequest request, /// See the API documentation for more information. /// /// The id of the card - public IObservable Get(int id) + public IObservable Get(long id) { return _client.Get(id).ToObservable(); } @@ -104,7 +104,7 @@ public IObservable Get(int id) /// /// The id of the column /// The card to create - public IObservable Create(int columnId, NewProjectCard newProjectCard) + public IObservable Create(long columnId, NewProjectCard newProjectCard) { Ensure.ArgumentNotNull(newProjectCard, nameof(newProjectCard)); @@ -119,7 +119,7 @@ public IObservable Create(int columnId, NewProjectCard newProjectCa /// /// The id of the card /// New values to update the card with - public IObservable Update(int id, ProjectCardUpdate projectCardUpdate) + public IObservable Update(long id, ProjectCardUpdate projectCardUpdate) { Ensure.ArgumentNotNull(projectCardUpdate, nameof(projectCardUpdate)); @@ -133,7 +133,7 @@ public IObservable Update(int id, ProjectCardUpdate projectCardUpda /// See the API documentation for more information. /// /// The id of the card - public IObservable Delete(int id) + public IObservable Delete(long id) { return _client.Delete(id).ToObservable(); } @@ -146,7 +146,7 @@ public IObservable Delete(int id) /// /// The id of the card /// The position to move the card - public IObservable Move(int id, ProjectCardMove position) + public IObservable Move(long id, ProjectCardMove position) { Ensure.ArgumentNotNull(position, nameof(position)); diff --git a/Octokit.Reactive/Clients/ObservableProjectColumnsClient.cs b/Octokit.Reactive/Clients/ObservableProjectColumnsClient.cs index c52d51fa1f..aac0874ad7 100644 --- a/Octokit.Reactive/Clients/ObservableProjectColumnsClient.cs +++ b/Octokit.Reactive/Clients/ObservableProjectColumnsClient.cs @@ -25,7 +25,7 @@ public ObservableProjectColumnsClient(IGitHubClient client) /// See the API documentation for more information. /// /// The Id of the project - public IObservable GetAll(int projectId) + public IObservable GetAll(long projectId) { return GetAll(projectId, ApiOptions.None); } @@ -38,7 +38,7 @@ public IObservable GetAll(int projectId) /// /// The Id of the project /// Options for changing the API response - public IObservable GetAll(int projectId, ApiOptions options) + public IObservable GetAll(long projectId, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -54,7 +54,7 @@ public IObservable GetAll(int projectId, ApiOptions options) /// See the API documentation for more information. /// /// The id of the column - public IObservable Get(int id) + public IObservable Get(long id) { return _client.Get(id).ToObservable(); } @@ -67,7 +67,7 @@ public IObservable Get(int id) /// /// The id of the project /// The column to create - public IObservable Create(int projectId, NewProjectColumn newProjectColumn) + public IObservable Create(long projectId, NewProjectColumn newProjectColumn) { Ensure.ArgumentNotNull(newProjectColumn, nameof(newProjectColumn)); @@ -82,7 +82,7 @@ public IObservable Create(int projectId, NewProjectColumn newProj /// /// The id of the column /// New values to update the column with - public IObservable Update(int id, ProjectColumnUpdate projectColumnUpdate) + public IObservable Update(long id, ProjectColumnUpdate projectColumnUpdate) { Ensure.ArgumentNotNull(projectColumnUpdate, nameof(projectColumnUpdate)); @@ -96,7 +96,7 @@ public IObservable Update(int id, ProjectColumnUpdate projectColu /// See the API documentation for more information. /// /// The id of the column - public IObservable Delete(int id) + public IObservable Delete(long id) { return _client.Delete(id).ToObservable(); } @@ -109,7 +109,7 @@ public IObservable Delete(int id) /// /// The id of the column /// The position to move the column - public IObservable Move(int id, ProjectColumnMove position) + public IObservable Move(long id, ProjectColumnMove position) { Ensure.ArgumentNotNull(position, nameof(position)); diff --git a/Octokit.Reactive/Clients/ObservableReleasesClient.cs b/Octokit.Reactive/Clients/ObservableReleasesClient.cs index 644269643b..656e96ee6f 100644 --- a/Octokit.Reactive/Clients/ObservableReleasesClient.cs +++ b/Octokit.Reactive/Clients/ObservableReleasesClient.cs @@ -100,7 +100,7 @@ public IObservable GetAll(long repositoryId, ApiOptions options) /// The repository's name /// The id of the release /// Thrown when a general API error occurs. - public IObservable Get(string owner, string name, int id) + public IObservable Get(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -136,7 +136,7 @@ public IObservable Get(string owner, string name, string tag) /// The Id of the repository /// The id of the release /// Thrown when a general API error occurs. - public IObservable Get(long repositoryId, int id) + public IObservable Get(long repositoryId, long id) { return _client.Get(repositoryId, id).ToObservable(); } @@ -233,7 +233,7 @@ public IObservable Create(long repositoryId, NewRelease data) /// The id of the release /// A description of the release to edit /// Thrown when a general API error occurs. - public IObservable Edit(string owner, string name, int id, ReleaseUpdate data) + public IObservable Edit(string owner, string name, long id, ReleaseUpdate data) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -252,7 +252,7 @@ public IObservable Edit(string owner, string name, int id, ReleaseUpdat /// The id of the release /// A description of the release to edit /// Thrown when a general API error occurs. - public IObservable Edit(long repositoryId, int id, ReleaseUpdate data) + public IObservable Edit(long repositoryId, long id, ReleaseUpdate data) { Ensure.ArgumentNotNull(data, nameof(data)); @@ -269,7 +269,7 @@ public IObservable Edit(long repositoryId, int id, ReleaseUpdate data) /// The repository's name /// The id of the release to delete /// Thrown when a general API error occurs. - public IObservable Delete(string owner, string name, int id) + public IObservable Delete(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -286,7 +286,7 @@ public IObservable Delete(string owner, string name, int id) /// The Id of the repository /// The id of the release to delete /// Thrown when a general API error occurs. - public IObservable Delete(long repositoryId, int id) + public IObservable Delete(long repositoryId, long id) { return _client.Delete(repositoryId, id).ToObservable(); } @@ -301,7 +301,7 @@ public IObservable Delete(long repositoryId, int id) /// The repository's name /// The id of the . /// Thrown when a general API error occurs. - public IObservable GetAllAssets(string owner, string name, int id) + public IObservable GetAllAssets(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -318,7 +318,7 @@ public IObservable GetAllAssets(string owner, string name, int id) /// The Id of the repository /// The id of the . /// Thrown when a general API error occurs. - public IObservable GetAllAssets(long repositoryId, int id) + public IObservable GetAllAssets(long repositoryId, long id) { return GetAllAssets(repositoryId, id, ApiOptions.None); } @@ -334,7 +334,7 @@ public IObservable GetAllAssets(long repositoryId, int id) /// The id of the . /// Options for changing the API response /// Thrown when a general API error occurs. - public IObservable GetAllAssets(string owner, string name, int id, ApiOptions options) + public IObservable GetAllAssets(string owner, string name, long id, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -353,7 +353,7 @@ public IObservable GetAllAssets(string owner, string name, int id, /// The id of the . /// Options for changing the API response /// Thrown when a general API error occurs. - public IObservable GetAllAssets(long repositoryId, int id, ApiOptions options) + public IObservable GetAllAssets(long repositoryId, long id, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -369,7 +369,7 @@ public IObservable GetAllAssets(long repositoryId, int id, ApiOpti /// The repository's owner /// The repository's name /// The id of the - public IObservable GetAsset(string owner, string name, int assetId) + public IObservable GetAsset(string owner, string name, long assetId) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -386,7 +386,7 @@ public IObservable GetAsset(string owner, string name, int assetId /// /// The Id of the repository /// The id of the - public IObservable GetAsset(long repositoryId, int assetId) + public IObservable GetAsset(long repositoryId, long assetId) { Ensure.ArgumentNotNull(assetId, nameof(assetId)); @@ -421,7 +421,7 @@ public IObservable UploadAsset(Release release, ReleaseAssetUpload /// The repository's name /// The id of the /// Description of the asset with its amended data - public IObservable EditAsset(string owner, string name, int assetId, ReleaseAssetUpdate data) + public IObservable EditAsset(string owner, string name, long assetId, ReleaseAssetUpdate data) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -439,7 +439,7 @@ public IObservable EditAsset(string owner, string name, int assetI /// The Id of the repository /// The id of the /// Description of the asset with its amended data - public IObservable EditAsset(long repositoryId, int assetId, ReleaseAssetUpdate data) + public IObservable EditAsset(long repositoryId, long assetId, ReleaseAssetUpdate data) { Ensure.ArgumentNotNull(data, nameof(data)); @@ -455,7 +455,7 @@ public IObservable EditAsset(long repositoryId, int assetId, Relea /// The repository's owner /// The repository's name /// The id of the . - public IObservable DeleteAsset(string owner, string name, int id) + public IObservable DeleteAsset(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -471,7 +471,7 @@ public IObservable DeleteAsset(string owner, string name, int id) /// /// The Id of the repository /// The id of the . - public IObservable DeleteAsset(long repositoryId, int id) + public IObservable DeleteAsset(long repositoryId, long id) { return _client.DeleteAsset(repositoryId, id).ToObservable(); } diff --git a/Octokit.Reactive/Clients/ObservableRepositoryHooksClient.cs b/Octokit.Reactive/Clients/ObservableRepositoryHooksClient.cs index 5e7ee9c893..56f84696c5 100644 --- a/Octokit.Reactive/Clients/ObservableRepositoryHooksClient.cs +++ b/Octokit.Reactive/Clients/ObservableRepositoryHooksClient.cs @@ -84,7 +84,7 @@ public IObservable GetAll(long repositoryId, ApiOptions options) /// The repository's name /// The repository's hook id /// See API documentation for more information. - public IObservable Get(string owner, string name, int hookId) + public IObservable Get(string owner, string name, long hookId) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -98,7 +98,7 @@ public IObservable Get(string owner, string name, int hookId) /// The Id of the repository /// The repository's hook id /// See API documentation for more information. - public IObservable Get(long repositoryId, int hookId) + public IObservable Get(long repositoryId, long hookId) { return _client.Get(repositoryId, hookId).ToObservable(); } @@ -140,7 +140,7 @@ public IObservable Create(long repositoryId, NewRepositoryHook h /// The repository's hook id /// The requested changes to an edit repository hook /// See API documentation for more information. - public IObservable Edit(string owner, string name, int hookId, EditRepositoryHook hook) + public IObservable Edit(string owner, string name, long hookId, EditRepositoryHook hook) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -156,7 +156,7 @@ public IObservable Edit(string owner, string name, int hookId, E /// The repository's hook id /// The requested changes to an edit repository hook /// See API documentation for more information. - public IObservable Edit(long repositoryId, int hookId, EditRepositoryHook hook) + public IObservable Edit(long repositoryId, long hookId, EditRepositoryHook hook) { Ensure.ArgumentNotNull(hook, nameof(hook)); @@ -172,7 +172,7 @@ public IObservable Edit(long repositoryId, int hookId, EditRepos /// See API documentation for more information. /// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook /// is not subscribed to push events, the server will respond with 204 but no test POST will be generated. - public IObservable Test(string owner, string name, int hookId) + public IObservable Test(string owner, string name, long hookId) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -188,7 +188,7 @@ public IObservable Test(string owner, string name, int hookId) /// See API documentation for more information. /// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook /// is not subscribed to push events, the server will respond with 204 but no test POST will be generated. - public IObservable Test(long repositoryId, int hookId) + public IObservable Test(long repositoryId, long hookId) { return _client.Test(repositoryId, hookId).ToObservable(); } @@ -200,7 +200,7 @@ public IObservable Test(long repositoryId, int hookId) /// The repository's name /// The repository's hook id /// See API documentation for more information. - public IObservable Ping(string owner, string name, int hookId) + public IObservable Ping(string owner, string name, long hookId) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -214,7 +214,7 @@ public IObservable Ping(string owner, string name, int hookId) /// The Id of the repository /// The repository's hook id /// See API documentation for more information. - public IObservable Ping(long repositoryId, int hookId) + public IObservable Ping(long repositoryId, long hookId) { return _client.Ping(repositoryId, hookId).ToObservable(); } @@ -226,7 +226,7 @@ public IObservable Ping(long repositoryId, int hookId) /// The repository's name /// The repository's hook id /// See API documentation for more information. - public IObservable Delete(string owner, string name, int hookId) + public IObservable Delete(string owner, string name, long hookId) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -240,7 +240,7 @@ public IObservable Delete(string owner, string name, int hookId) /// The Id of the repository /// The repository's hook id /// See API documentation for more information. - public IObservable Delete(long repositoryId, int hookId) + public IObservable Delete(long repositoryId, long hookId) { return _client.Delete(repositoryId, hookId).ToObservable(); } diff --git a/Octokit.Reactive/Clients/ObservableRepositoryInvitationsClient.cs b/Octokit.Reactive/Clients/ObservableRepositoryInvitationsClient.cs index 06c8a8d759..fae6bf8cfc 100644 --- a/Octokit.Reactive/Clients/ObservableRepositoryInvitationsClient.cs +++ b/Octokit.Reactive/Clients/ObservableRepositoryInvitationsClient.cs @@ -26,7 +26,7 @@ public ObservableRepositoryInvitationsClient(IGitHubClient client) /// See the API documentation for more information. /// /// The id of the invitation. - public IObservable Accept(int invitationId) + public IObservable Accept(long invitationId) { return _client.Accept(invitationId).ToObservable(); } @@ -38,7 +38,7 @@ public IObservable Accept(int invitationId) /// See the API documentation for more information. /// /// The id of the invitation. - public IObservable Decline(int invitationId) + public IObservable Decline(long invitationId) { return _client.Decline(invitationId).ToObservable(); } @@ -51,7 +51,7 @@ public IObservable Decline(int invitationId) /// /// The id of the repository. /// The id of the invitation. - public IObservable Delete(long repositoryId, int invitationId) + public IObservable Delete(long repositoryId, long invitationId) { return _client.Delete(repositoryId, invitationId).ToObservable(); } @@ -65,7 +65,7 @@ public IObservable Delete(long repositoryId, int invitationId) /// The id of the repository. /// The id of the invitatio.n /// The permission to set. - public IObservable Edit(long repositoryId, int invitationId, InvitationUpdate permissions) + public IObservable Edit(long repositoryId, long invitationId, InvitationUpdate permissions) { Ensure.ArgumentNotNull(permissions, nameof(permissions)); diff --git a/Octokit.Reactive/Clients/ObservableUserAdministrationClient.cs b/Octokit.Reactive/Clients/ObservableUserAdministrationClient.cs index 622813df8e..7890d500b4 100644 --- a/Octokit.Reactive/Clients/ObservableUserAdministrationClient.cs +++ b/Octokit.Reactive/Clients/ObservableUserAdministrationClient.cs @@ -180,7 +180,7 @@ public IObservable Delete(string login) /// /// The key to delete /// - public IObservable DeletePublicKey(int keyId) + public IObservable DeletePublicKey(long keyId) { return _client.DeletePublicKey(keyId).ToObservable(); } diff --git a/Octokit.Tests.Integration/Clients/ProjectCardsClientTests.cs b/Octokit.Tests.Integration/Clients/ProjectCardsClientTests.cs index c48cf6757f..b468e35229 100644 --- a/Octokit.Tests.Integration/Clients/ProjectCardsClientTests.cs +++ b/Octokit.Tests.Integration/Clients/ProjectCardsClientTests.cs @@ -428,7 +428,7 @@ private static async Task CreateRepositoryProjectHelper(IGitHubClient g return result; } - private static async Task CreateColumnHelper(IGitHubClient githubClient, int projectId) + private static async Task CreateColumnHelper(IGitHubClient githubClient, long projectId) { var newColumn = new NewProjectColumn(Helper.MakeNameWithTimestamp("new-project-column")); var result = await githubClient.Repository.Project.Column.Create(projectId, newColumn); @@ -453,7 +453,7 @@ private static async Task CreateArchivedCardHelper(IGitHubClient gi return result; } - private static async Task CreateIssueCardHelper(IGitHubClient githubClient, int issueId, int columnId) + private static async Task CreateIssueCardHelper(IGitHubClient githubClient, long issueId, int columnId) { var newCard = new NewProjectCard(issueId, ProjectCardContentType.Issue); var result = await githubClient.Repository.Project.Card.Create(columnId, newCard); diff --git a/Octokit.Tests.Integration/Clients/ProjectColumnsClientTests.cs b/Octokit.Tests.Integration/Clients/ProjectColumnsClientTests.cs index a8bfe67da1..8c08a1f336 100644 --- a/Octokit.Tests.Integration/Clients/ProjectColumnsClientTests.cs +++ b/Octokit.Tests.Integration/Clients/ProjectColumnsClientTests.cs @@ -282,7 +282,7 @@ private static async Task CreateRepositoryProjectHelper(IGitHubClient g return result; } - private static async Task CreateColumnHelper(IGitHubClient githubClient, int projectId) + private static async Task CreateColumnHelper(IGitHubClient githubClient, long projectId) { var newColumn = new NewProjectColumn(Helper.MakeNameWithTimestamp("new-project-column")); var result = await githubClient.Repository.Project.Column.Create(projectId, newColumn); diff --git a/Octokit.Tests.Integration/Clients/RepositoryHooksClientTests.cs b/Octokit.Tests.Integration/Clients/RepositoryHooksClientTests.cs index 838d959a92..8db13dd864 100644 --- a/Octokit.Tests.Integration/Clients/RepositoryHooksClientTests.cs +++ b/Octokit.Tests.Integration/Clients/RepositoryHooksClientTests.cs @@ -295,7 +295,7 @@ Dictionary CreateExpectedConfigDictionary(Dictionary k.Key, v => v.Value); } - string CreateExpectedBaseHookUrl(string url, int id) + string CreateExpectedBaseHookUrl(string url, long id) { return url + "/hooks/" + id; } diff --git a/Octokit.Tests.Integration/Reactive/ObservableProjectCardsClientTests.cs b/Octokit.Tests.Integration/Reactive/ObservableProjectCardsClientTests.cs index d3f29dbaea..e027c9095d 100644 --- a/Octokit.Tests.Integration/Reactive/ObservableProjectCardsClientTests.cs +++ b/Octokit.Tests.Integration/Reactive/ObservableProjectCardsClientTests.cs @@ -441,7 +441,7 @@ private static async Task CreateArchivedCardHelper(IObservableGitHu return result; } - private static async Task CreateIssueCardHelper(IObservableGitHubClient githubClient, int issueId, int columnId) + private static async Task CreateIssueCardHelper(IObservableGitHubClient githubClient, long issueId, int columnId) { var newCard = new NewProjectCard(issueId, ProjectCardContentType.Issue); var result = await githubClient.Repository.Project.Card.Create(columnId, newCard); diff --git a/Octokit.Tests/Reactive/Enterprise/ObservableEnterpriseLdapClientTests.cs b/Octokit.Tests/Reactive/Enterprise/ObservableEnterpriseLdapClientTests.cs index d11aa68290..7ae745ac2a 100644 --- a/Octokit.Tests/Reactive/Enterprise/ObservableEnterpriseLdapClientTests.cs +++ b/Octokit.Tests/Reactive/Enterprise/ObservableEnterpriseLdapClientTests.cs @@ -61,7 +61,7 @@ public void CallsIntoClient() client.UpdateTeamMapping(1, new NewLdapMapping(_distinguishedName)); github.Enterprise.Ldap.Received(1).UpdateTeamMapping( - Arg.Is(a => a == 1), + Arg.Is(a => a == 1), Arg.Is(a => a.LdapDistinguishedName == _distinguishedName)); } @@ -77,7 +77,7 @@ public void CallsIntoClient() client.QueueSyncTeamMapping(1); github.Enterprise.Ldap.Received(1).QueueSyncTeamMapping( - Arg.Is(a => a == 1)); + Arg.Is(a => a == 1)); } } } diff --git a/Octokit/Clients/AuthorizationsClient.cs b/Octokit/Clients/AuthorizationsClient.cs index d1be719133..677b13cc6c 100644 --- a/Octokit/Clients/AuthorizationsClient.cs +++ b/Octokit/Clients/AuthorizationsClient.cs @@ -73,7 +73,7 @@ public Task> GetAll(ApiOptions options) /// Thrown when a general API error occurs. /// The specified . [ManualRoute("GET", "/authorizations/{id}")] - public Task Get(int id) + public Task Get(long id) { return ApiConnection.Get(ApiUrls.Authorizations(id), null); } @@ -426,7 +426,7 @@ public Task RevokeApplicationAuthentication(string clientId, string accessToken) /// Thrown when a general API error occurs. /// The updated . [ManualRoute("PATCH", "/authorizations/{id}")] - public Task Update(int id, AuthorizationUpdate authorizationUpdate) + public Task Update(long id, AuthorizationUpdate authorizationUpdate) { Ensure.ArgumentNotNull(authorizationUpdate, nameof(authorizationUpdate)); @@ -450,7 +450,7 @@ public Task Update(int id, AuthorizationUpdate authorizationUpdat /// Thrown when a general API error occurs. /// A for the request's execution. [ManualRoute("DELETE", "/authorizations/{id}")] - public Task Delete(int id) + public Task Delete(long id) { return ApiConnection.Delete(ApiUrls.Authorizations(id)); } @@ -471,7 +471,7 @@ public Task Delete(int id) /// Thrown when a general API error occurs. /// A for the request's execution. [ManualRoute("DELETE", "/authorizations/{id}")] - public Task Delete(int id, string twoFactorAuthenticationCode) + public Task Delete(long id, string twoFactorAuthenticationCode) { return ApiConnection.Delete(ApiUrls.Authorizations(id), twoFactorAuthenticationCode); } diff --git a/Octokit/Clients/DeploymentStatusClient.cs b/Octokit/Clients/DeploymentStatusClient.cs index 63eee18cc1..bcb3cff241 100644 --- a/Octokit/Clients/DeploymentStatusClient.cs +++ b/Octokit/Clients/DeploymentStatusClient.cs @@ -28,7 +28,7 @@ public DeploymentStatusClient(IApiConnection apiConnection) /// The name of the repository. /// The id of the deployment. [ManualRoute("GET", "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses")] - public Task> GetAll(string owner, string name, int deploymentId) + public Task> GetAll(string owner, string name, long deploymentId) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -46,7 +46,7 @@ public Task> GetAll(string owner, string name, i /// The Id of the repository. /// The id of the deployment. [ManualRoute("GET", "/repositories/{id}/deployments/{deployment_id}/statuses")] - public Task> GetAll(long repositoryId, int deploymentId) + public Task> GetAll(long repositoryId, long deploymentId) { return GetAll(repositoryId, deploymentId, ApiOptions.None); } @@ -65,7 +65,7 @@ public Task> GetAll(long repositoryId, int deplo [Preview("ant-man")] [Preview("flash")] [ManualRoute("GET", "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses")] - public Task> GetAll(string owner, string name, int deploymentId, ApiOptions options) + public Task> GetAll(string owner, string name, long deploymentId, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -90,7 +90,7 @@ public Task> GetAll(string owner, string name, i [Preview("ant-man")] [Preview("flash")] [ManualRoute("GET", "/repositories/{id}/deployments/{deployment_id}/statuses")] - public Task> GetAll(long repositoryId, int deploymentId, ApiOptions options) + public Task> GetAll(long repositoryId, long deploymentId, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -114,7 +114,7 @@ public Task> GetAll(long repositoryId, int deplo [Preview("ant-man")] [Preview("flash")] [ManualRoute("POST", "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses")] - public Task Create(string owner, string name, int deploymentId, NewDeploymentStatus newDeploymentStatus) + public Task Create(string owner, string name, long deploymentId, NewDeploymentStatus newDeploymentStatus) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -138,7 +138,7 @@ public Task Create(string owner, string name, int deploymentId [Preview("ant-man")] [Preview("flash")] [ManualRoute("POST", "/repositories/{id}/deployments/{deployment_id}/statuses")] - public Task Create(long repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus) + public Task Create(long repositoryId, long deploymentId, NewDeploymentStatus newDeploymentStatus) { Ensure.ArgumentNotNull(newDeploymentStatus, nameof(newDeploymentStatus)); diff --git a/Octokit/Clients/Enterprise/EnterpriseLdapClient.cs b/Octokit/Clients/Enterprise/EnterpriseLdapClient.cs index c89e1f61c5..328449fd87 100644 --- a/Octokit/Clients/Enterprise/EnterpriseLdapClient.cs +++ b/Octokit/Clients/Enterprise/EnterpriseLdapClient.cs @@ -69,7 +69,7 @@ public async Task QueueSyncUserMapping(string userName) /// The /// The object. [ManualRoute("PATCH", "/admin/ldap/teams/{team_id}/mapping")] - public Task UpdateTeamMapping(int teamId, NewLdapMapping newLdapMapping) + public Task UpdateTeamMapping(long teamId, NewLdapMapping newLdapMapping) { Ensure.ArgumentNotNull(teamId, nameof(teamId)); Ensure.ArgumentNotNull(newLdapMapping, nameof(newLdapMapping)); @@ -88,7 +88,7 @@ public Task UpdateTeamMapping(int teamId, NewLdapMapping newLdapMapping) /// The teamId to update LDAP mapping /// The of the queue request. [ManualRoute("POST", "/admin/ldap/teams/{team_id}/sync")] - public async Task QueueSyncTeamMapping(int teamId) + public async Task QueueSyncTeamMapping(long teamId) { Ensure.ArgumentNotNull(teamId, nameof(teamId)); diff --git a/Octokit/Clients/Enterprise/IEnterpriseLdapClient.cs b/Octokit/Clients/Enterprise/IEnterpriseLdapClient.cs index 68f30cdd45..151ae686bd 100644 --- a/Octokit/Clients/Enterprise/IEnterpriseLdapClient.cs +++ b/Octokit/Clients/Enterprise/IEnterpriseLdapClient.cs @@ -40,7 +40,7 @@ public interface IEnterpriseLdapClient /// The teamId to update LDAP mapping /// The /// The object. - Task UpdateTeamMapping(int teamId, NewLdapMapping newLdapMapping); + Task UpdateTeamMapping(long teamId, NewLdapMapping newLdapMapping); /// /// Queue an LDAP Sync job for a team on a GitHub Enterprise appliance (must be Site Admin user). @@ -50,6 +50,6 @@ public interface IEnterpriseLdapClient /// /// The teamId to update LDAP mapping /// The of the queue request. - Task QueueSyncTeamMapping(int teamId); + Task QueueSyncTeamMapping(long teamId); } } diff --git a/Octokit/Clients/GistCommentsClient.cs b/Octokit/Clients/GistCommentsClient.cs index f645692a18..e9c80159f5 100644 --- a/Octokit/Clients/GistCommentsClient.cs +++ b/Octokit/Clients/GistCommentsClient.cs @@ -27,7 +27,7 @@ public GistCommentsClient(IApiConnection apiConnection) : base(apiConnection) /// The id of the comment /// Task{GistComment}. [ManualRoute("GET", "/gists/{gist_id}/comments/{comment_id}")] - public Task Get(string gistId, int commentId) + public Task Get(string gistId, long commentId) { return ApiConnection.Get(ApiUrls.GistComment(gistId, commentId)); } @@ -86,7 +86,7 @@ public Task Create(string gistId, string comment) /// The updated body of the comment /// Task{GistComment}. [ManualRoute("PATCH", "/gists/{gist_id}/comments/{comment_id}")] - public Task Update(string gistId, int commentId, string comment) + public Task Update(string gistId, long commentId, string comment) { Ensure.ArgumentNotNullOrEmptyString(comment, nameof(comment)); @@ -101,7 +101,7 @@ public Task Update(string gistId, int commentId, string comment) /// The id of the comment /// Task. [ManualRoute("DELETE", "/gists/{gist_id}/comments/{comment_id}")] - public Task Delete(string gistId, int commentId) + public Task Delete(string gistId, long commentId) { return ApiConnection.Delete(ApiUrls.GistComment(gistId, commentId)); } diff --git a/Octokit/Clients/IAuthorizationsClient.cs b/Octokit/Clients/IAuthorizationsClient.cs index e3f08b47ca..7c18a1e5a7 100644 --- a/Octokit/Clients/IAuthorizationsClient.cs +++ b/Octokit/Clients/IAuthorizationsClient.cs @@ -61,7 +61,7 @@ public interface IAuthorizationsClient /// The specified . [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "It's fiiiine. It's fine. Trust us.")] - Task Get(int id); + Task Get(long id); /// /// Creates a new personal token for the authenticated user. @@ -251,7 +251,7 @@ Task GetOrCreateApplicationAuthentication( /// /// Thrown when a general API error occurs. /// The updated . - Task Update(int id, AuthorizationUpdate authorizationUpdate); + Task Update(long id, AuthorizationUpdate authorizationUpdate); /// /// Deletes the specified . @@ -267,7 +267,7 @@ Task GetOrCreateApplicationAuthentication( /// /// Thrown when a general API error occurs. /// A for the request's execution. - Task Delete(int id); + Task Delete(long id); /// /// Deletes the specified . @@ -284,6 +284,6 @@ Task GetOrCreateApplicationAuthentication( /// /// Thrown when a general API error occurs. /// A for the request's execution. - Task Delete(int id, string twoFactorAuthenticationCode); + Task Delete(long id, string twoFactorAuthenticationCode); } } diff --git a/Octokit/Clients/IDeploymentStatusClient.cs b/Octokit/Clients/IDeploymentStatusClient.cs index 66d04c5a0a..0bfdbf1ff0 100644 --- a/Octokit/Clients/IDeploymentStatusClient.cs +++ b/Octokit/Clients/IDeploymentStatusClient.cs @@ -22,7 +22,7 @@ public interface IDeploymentStatusClient /// The owner of the repository. /// The name of the repository. /// The id of the deployment. - Task> GetAll(string owner, string name, int deploymentId); + Task> GetAll(string owner, string name, long deploymentId); /// /// Gets all the statuses for the given deployment. Any user with pull access to a repository can @@ -33,7 +33,7 @@ public interface IDeploymentStatusClient /// /// The Id of the repository. /// The id of the deployment. - Task> GetAll(long repositoryId, int deploymentId); + Task> GetAll(long repositoryId, long deploymentId); /// /// Gets all the statuses for the given deployment. Any user with pull access to a repository can @@ -46,7 +46,7 @@ public interface IDeploymentStatusClient /// The name of the repository. /// The id of the deployment. /// Options for changing the API response - Task> GetAll(string owner, string name, int deploymentId, ApiOptions options); + Task> GetAll(string owner, string name, long deploymentId, ApiOptions options); /// /// Gets all the statuses for the given deployment. Any user with pull access to a repository can @@ -58,7 +58,7 @@ public interface IDeploymentStatusClient /// The Id of the repository. /// The id of the deployment. /// Options for changing the API response - Task> GetAll(long repositoryId, int deploymentId, ApiOptions options); + Task> GetAll(long repositoryId, long deploymentId, ApiOptions options); /// /// Creates a new status for the given deployment. Users with push access can create deployment @@ -71,7 +71,7 @@ public interface IDeploymentStatusClient /// The name of the repository. /// The id of the deployment. /// The new deployment status to create. - Task Create(string owner, string name, int deploymentId, NewDeploymentStatus newDeploymentStatus); + Task Create(string owner, string name, long deploymentId, NewDeploymentStatus newDeploymentStatus); /// /// Creates a new status for the given deployment. Users with push access can create deployment @@ -83,6 +83,6 @@ public interface IDeploymentStatusClient /// The Id of the repository. /// The id of the deployment. /// The new deployment status to create. - Task Create(long repositoryId, int deploymentId, NewDeploymentStatus newDeploymentStatus); + Task Create(long repositoryId, long deploymentId, NewDeploymentStatus newDeploymentStatus); } } \ No newline at end of file diff --git a/Octokit/Clients/IGistCommentsClient.cs b/Octokit/Clients/IGistCommentsClient.cs index 308677746c..4ab9b89773 100644 --- a/Octokit/Clients/IGistCommentsClient.cs +++ b/Octokit/Clients/IGistCommentsClient.cs @@ -21,7 +21,7 @@ public interface IGistCommentsClient /// Task{GistComment}. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "Method makes a network request")] - Task Get(string gistId, int commentId); + Task Get(string gistId, long commentId); /// /// Gets all comments for the gist with the specified id. @@ -57,7 +57,7 @@ public interface IGistCommentsClient /// The id of the comment /// The updated body of the comment /// Task{GistComment}. - Task Update(string gistId, int commentId, string comment); + Task Update(string gistId, long commentId, string comment); /// /// Deletes the comment with the specified gist- and comment id. @@ -66,6 +66,6 @@ public interface IGistCommentsClient /// The id of the gist /// The id of the comment /// Task. - Task Delete(string gistId, int commentId); + Task Delete(string gistId, long commentId); } } diff --git a/Octokit/Clients/IOrganizationHooksClient.cs b/Octokit/Clients/IOrganizationHooksClient.cs index 3d8820a0fc..1b33b6b517 100644 --- a/Octokit/Clients/IOrganizationHooksClient.cs +++ b/Octokit/Clients/IOrganizationHooksClient.cs @@ -34,7 +34,7 @@ public interface IOrganizationHooksClient /// The repository's hook id /// See API documentation for more information. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "This is ok; we're matching HTTP verbs not keywords")] - Task Get(string org, int hookId); + Task Get(string org, long hookId); /// /// Creates a hook for a organization @@ -51,7 +51,7 @@ public interface IOrganizationHooksClient /// The organizations hook id /// The hook's parameters /// See API documentation for more information. - Task Edit(string org, int hookId, EditOrganizationHook hook); + Task Edit(string org, long hookId, EditOrganizationHook hook); /// /// This will trigger a ping event to be sent to the hook. @@ -59,7 +59,7 @@ public interface IOrganizationHooksClient /// The organizations name /// The organizations hook id /// See API documentation for more information. - Task Ping(string org, int hookId); + Task Ping(string org, long hookId); /// /// Deletes a hook for a organization @@ -67,6 +67,6 @@ public interface IOrganizationHooksClient /// The organizations name /// The organizations hook id /// See API documentation for more information. - Task Delete(string org, int hookId); + Task Delete(string org, long hookId); } } diff --git a/Octokit/Clients/IProjectCardsClient.cs b/Octokit/Clients/IProjectCardsClient.cs index f119de634d..cd8d458817 100644 --- a/Octokit/Clients/IProjectCardsClient.cs +++ b/Octokit/Clients/IProjectCardsClient.cs @@ -19,7 +19,7 @@ public interface IProjectCardsClient /// See the API documentation for more information. /// /// The id of the column - Task> GetAll(int columnId); + Task> GetAll(long columnId); /// /// Gets all cards. @@ -29,7 +29,7 @@ public interface IProjectCardsClient /// /// The id of the column /// Options for changing the API response - Task> GetAll(int columnId, ApiOptions options); + Task> GetAll(long columnId, ApiOptions options); /// /// Gets all cards. @@ -39,7 +39,7 @@ public interface IProjectCardsClient /// /// The id of the column /// Used to filter the list of project cards returned - Task> GetAll(int columnId, ProjectCardRequest request); + Task> GetAll(long columnId, ProjectCardRequest request); /// /// Gets all cards. @@ -50,7 +50,7 @@ public interface IProjectCardsClient /// The id of the column /// Used to filter the list of project cards returned /// Options for changing the API response - Task> GetAll(int columnId, ProjectCardRequest request, ApiOptions options); + Task> GetAll(long columnId, ProjectCardRequest request, ApiOptions options); /// /// Gets a single card. @@ -60,7 +60,7 @@ public interface IProjectCardsClient /// /// The id of the card [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - Task Get(int id); + Task Get(long id); /// /// Creates a card. @@ -70,7 +70,7 @@ public interface IProjectCardsClient /// /// The id of the column /// The card to create - Task Create(int columnId, NewProjectCard newProjectCard); + Task Create(long columnId, NewProjectCard newProjectCard); /// /// Updates a card. @@ -80,7 +80,7 @@ public interface IProjectCardsClient /// /// The id of the card /// New values to update the card with - Task Update(int id, ProjectCardUpdate projectCardUpdate); + Task Update(long id, ProjectCardUpdate projectCardUpdate); /// /// Deletes a card. @@ -89,7 +89,7 @@ public interface IProjectCardsClient /// See the API documentation for more information. /// /// The id of the card - Task Delete(int id); + Task Delete(long id); /// /// Moves a card. @@ -99,6 +99,6 @@ public interface IProjectCardsClient /// /// The id of the card /// The position to move the card - Task Move(int id, ProjectCardMove position); + Task Move(long id, ProjectCardMove position); } } diff --git a/Octokit/Clients/IProjectColumnsClient.cs b/Octokit/Clients/IProjectColumnsClient.cs index bd9ca8bcfc..c7929deddb 100644 --- a/Octokit/Clients/IProjectColumnsClient.cs +++ b/Octokit/Clients/IProjectColumnsClient.cs @@ -19,7 +19,7 @@ public interface IProjectColumnsClient /// See the API documentation for more information. /// /// The Id of the project - Task> GetAll(int projectId); + Task> GetAll(long projectId); /// /// Gets all columns. @@ -29,7 +29,7 @@ public interface IProjectColumnsClient /// /// The Id of the project /// Options for changing the API response - Task> GetAll(int projectId, ApiOptions options); + Task> GetAll(long projectId, ApiOptions options); /// /// Gets a single column. @@ -39,7 +39,7 @@ public interface IProjectColumnsClient /// /// The id of the column [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - Task Get(int id); + Task Get(long id); /// /// Creates a column. @@ -49,7 +49,7 @@ public interface IProjectColumnsClient /// /// The Id of the project /// The column to create - Task Create(int projectId, NewProjectColumn newProjectColumn); + Task Create(long projectId, NewProjectColumn newProjectColumn); /// /// Updates a column. @@ -59,7 +59,7 @@ public interface IProjectColumnsClient /// /// The id of the column /// New values to update the column with - Task Update(int id, ProjectColumnUpdate projectColumnUpdate); + Task Update(long id, ProjectColumnUpdate projectColumnUpdate); /// /// Deletes a column. @@ -68,7 +68,7 @@ public interface IProjectColumnsClient /// See the API documentation for more information. /// /// The id of the column - Task Delete(int id); + Task Delete(long id); /// /// Moves a column. @@ -78,6 +78,6 @@ public interface IProjectColumnsClient /// /// The id of the column /// The position to move the column - Task Move(int id, ProjectColumnMove position); + Task Move(long id, ProjectColumnMove position); } } diff --git a/Octokit/Clients/IReleasesClient.cs b/Octokit/Clients/IReleasesClient.cs index d8ef30bb33..1c2208cb72 100644 --- a/Octokit/Clients/IReleasesClient.cs +++ b/Octokit/Clients/IReleasesClient.cs @@ -67,7 +67,7 @@ public interface IReleasesClient /// The repository's name /// The id of the release /// Thrown when a general API error occurs. - Task Get(string owner, string name, int id); + Task Get(string owner, string name, long id); /// /// Gets a single for the specified repository. @@ -90,7 +90,7 @@ public interface IReleasesClient /// The Id of the repository /// The id of the release /// Thrown when a general API error occurs. - Task Get(long repositoryId, int id); + Task Get(long repositoryId, long id); /// /// Gets a single for the specified repository. @@ -158,7 +158,7 @@ public interface IReleasesClient /// The id of the release /// A description of the release to edit /// Thrown when a general API error occurs. - Task Edit(string owner, string name, int id, ReleaseUpdate data); + Task Edit(string owner, string name, long id, ReleaseUpdate data); /// /// Edits an existing for the specified repository. @@ -170,7 +170,7 @@ public interface IReleasesClient /// The id of the release /// A description of the release to edit /// Thrown when a general API error occurs. - Task Edit(long repositoryId, int id, ReleaseUpdate data); + Task Edit(long repositoryId, long id, ReleaseUpdate data); /// /// Deletes an existing for the specified repository. @@ -182,7 +182,7 @@ public interface IReleasesClient /// The repository's name /// The id of the release to delete /// Thrown when a general API error occurs. - Task Delete(string owner, string name, int id); + Task Delete(string owner, string name, long id); /// /// Deletes an existing for the specified repository. @@ -193,7 +193,7 @@ public interface IReleasesClient /// The Id of the repository /// The id of the release to delete /// Thrown when a general API error occurs. - Task Delete(long repositoryId, int id); + Task Delete(long repositoryId, long id); /// /// Gets all for the specified release of the specified repository. @@ -205,7 +205,7 @@ public interface IReleasesClient /// The repository's name /// The id of the . /// Thrown when a general API error occurs. - Task> GetAllAssets(string owner, string name, int id); + Task> GetAllAssets(string owner, string name, long id); /// /// Gets all for the specified release of the specified repository. @@ -216,7 +216,7 @@ public interface IReleasesClient /// The Id of the repository /// The id of the . /// Thrown when a general API error occurs. - Task> GetAllAssets(long repositoryId, int id); + Task> GetAllAssets(long repositoryId, long id); /// /// Gets all for the specified release of the specified repository. @@ -229,7 +229,7 @@ public interface IReleasesClient /// The id of the . /// Options for changing the API response /// Thrown when a general API error occurs. - Task> GetAllAssets(string owner, string name, int id, ApiOptions options); + Task> GetAllAssets(string owner, string name, long id, ApiOptions options); /// /// Gets all for the specified release of the specified repository. @@ -241,7 +241,7 @@ public interface IReleasesClient /// The id of the . /// Options for changing the API response /// Thrown when a general API error occurs. - Task> GetAllAssets(long repositoryId, int id, ApiOptions options); + Task> GetAllAssets(long repositoryId, long id, ApiOptions options); /// /// Uploads a for the specified release. @@ -264,7 +264,7 @@ public interface IReleasesClient /// The repository's owner /// The repository's name /// The id of the - Task GetAsset(string owner, string name, int assetId); + Task GetAsset(string owner, string name, long assetId); /// /// Gets the specified for the specified release of the specified repository. @@ -274,7 +274,7 @@ public interface IReleasesClient /// /// The Id of the repository /// The id of the - Task GetAsset(long repositoryId, int assetId); + Task GetAsset(long repositoryId, long assetId); /// /// Edits the for the specified release of the specified repository. @@ -286,7 +286,7 @@ public interface IReleasesClient /// The repository's name /// The id of the /// Description of the asset with its amended data - Task EditAsset(string owner, string name, int assetId, ReleaseAssetUpdate data); + Task EditAsset(string owner, string name, long assetId, ReleaseAssetUpdate data); /// /// Edits the for the specified release of the specified repository. @@ -297,7 +297,7 @@ public interface IReleasesClient /// The Id of the repository /// The id of the /// Description of the asset with its amended data - Task EditAsset(long repositoryId, int assetId, ReleaseAssetUpdate data); + Task EditAsset(long repositoryId, long assetId, ReleaseAssetUpdate data); /// /// Deletes the specified from the specified repository @@ -308,7 +308,7 @@ public interface IReleasesClient /// The repository's owner /// The repository's name /// The id of the . - Task DeleteAsset(string owner, string name, int id); + Task DeleteAsset(string owner, string name, long id); /// /// Deletes the specified from the specified repository @@ -318,6 +318,6 @@ public interface IReleasesClient /// /// The Id of the repository /// The id of the . - Task DeleteAsset(long repositoryId, int id); + Task DeleteAsset(long repositoryId, long id); } } diff --git a/Octokit/Clients/IRepositoryHooksClient.cs b/Octokit/Clients/IRepositoryHooksClient.cs index c7899ff563..b49197ceb9 100644 --- a/Octokit/Clients/IRepositoryHooksClient.cs +++ b/Octokit/Clients/IRepositoryHooksClient.cs @@ -52,7 +52,7 @@ public interface IRepositoryHooksClient /// The repository's hook id /// See API documentation for more information. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "This is ok; we're matching HTTP verbs not keywords")] - Task Get(string owner, string name, int hookId); + Task Get(string owner, string name, long hookId); /// /// Gets a single hook by Id @@ -61,7 +61,7 @@ public interface IRepositoryHooksClient /// The repository's hook id /// See API documentation for more information. [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get", Justification = "This is ok; we're matching HTTP verbs not keywords")] - Task Get(long repositoryId, int hookId); + Task Get(long repositoryId, long hookId); /// /// Creates a hook for a repository @@ -88,7 +88,7 @@ public interface IRepositoryHooksClient /// The repository's hook id /// The requested changes to an edit repository hook /// See API documentation for more information. - Task Edit(string owner, string name, int hookId, EditRepositoryHook hook); + Task Edit(string owner, string name, long hookId, EditRepositoryHook hook); /// /// Edits a hook for a repository @@ -97,7 +97,7 @@ public interface IRepositoryHooksClient /// The repository's hook id /// The requested changes to an edit repository hook /// See API documentation for more information. - Task Edit(long repositoryId, int hookId, EditRepositoryHook hook); + Task Edit(long repositoryId, long hookId, EditRepositoryHook hook); /// /// Tests a hook for a repository @@ -108,7 +108,7 @@ public interface IRepositoryHooksClient /// See API documentation for more information. /// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook /// is not subscribed to push events, the server will respond with 204 but no test POST will be generated. - Task Test(string owner, string name, int hookId); + Task Test(string owner, string name, long hookId); /// /// Tests a hook for a repository @@ -118,7 +118,7 @@ public interface IRepositoryHooksClient /// See API documentation for more information. /// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook /// is not subscribed to push events, the server will respond with 204 but no test POST will be generated. - Task Test(long repositoryId, int hookId); + Task Test(long repositoryId, long hookId); /// /// This will trigger a ping event to be sent to the hook. @@ -127,7 +127,7 @@ public interface IRepositoryHooksClient /// The repository's name /// The repository's hook id /// See API documentation for more information. - Task Ping(string owner, string name, int hookId); + Task Ping(string owner, string name, long hookId); /// /// This will trigger a ping event to be sent to the hook. @@ -135,7 +135,7 @@ public interface IRepositoryHooksClient /// The Id of the repository /// The repository's hook id /// See API documentation for more information. - Task Ping(long repositoryId, int hookId); + Task Ping(long repositoryId, long hookId); /// /// Deletes a hook for a repository @@ -144,7 +144,7 @@ public interface IRepositoryHooksClient /// The repository's name /// The repository's hook id /// See API documentation for more information. - Task Delete(string owner, string name, int hookId); + Task Delete(string owner, string name, long hookId); /// /// Deletes a hook for a repository @@ -152,6 +152,6 @@ public interface IRepositoryHooksClient /// The Id of the repository /// The repository's hook id /// See API documentation for more information. - Task Delete(long repositoryId, int hookId); + Task Delete(long repositoryId, long hookId); } } diff --git a/Octokit/Clients/IRepositoryInvitationsClient.cs b/Octokit/Clients/IRepositoryInvitationsClient.cs index 9295cfffd6..f05ef2f3db 100644 --- a/Octokit/Clients/IRepositoryInvitationsClient.cs +++ b/Octokit/Clients/IRepositoryInvitationsClient.cs @@ -20,7 +20,7 @@ public interface IRepositoryInvitationsClient /// /// The id of the invitation /// Thrown when a general API error occurs. - Task Accept(int invitationId); + Task Accept(long invitationId); /// /// Decline a repository invitation. @@ -30,7 +30,7 @@ public interface IRepositoryInvitationsClient /// /// The id of the invitation /// Thrown when a general API error occurs. - Task Decline(int invitationId); + Task Decline(long invitationId); /// /// Deletes a repository invitation. @@ -41,7 +41,7 @@ public interface IRepositoryInvitationsClient /// The id of the repository /// The id of the invitation /// Thrown when a general API error occurs. - Task Delete(long repositoryId, int invitationId); + Task Delete(long repositoryId, long invitationId); /// /// Gets all invitations for the current user. @@ -95,6 +95,6 @@ public interface IRepositoryInvitationsClient /// The id of the invitation /// The permission for the collaborator /// Thrown when a general API error occurs. - Task Edit(long repositoryId, int invitationId, InvitationUpdate permissions); + Task Edit(long repositoryId, long invitationId, InvitationUpdate permissions); } } diff --git a/Octokit/Clients/ITeamsClient.cs b/Octokit/Clients/ITeamsClient.cs index ec3321d081..f19f1ed91b 100644 --- a/Octokit/Clients/ITeamsClient.cs +++ b/Octokit/Clients/ITeamsClient.cs @@ -133,7 +133,7 @@ public interface ITeamsClient Task Update(int id, UpdateTeam team); /// - /// Delte a team - must have owner permissions to this + /// Delete a team - must have owner permissions to this /// /// Thrown when a general API error occurs. /// diff --git a/Octokit/Clients/IUserAdministrationClient.cs b/Octokit/Clients/IUserAdministrationClient.cs index 8bd2af8e75..bc67d76b67 100644 --- a/Octokit/Clients/IUserAdministrationClient.cs +++ b/Octokit/Clients/IUserAdministrationClient.cs @@ -132,6 +132,6 @@ public interface IUserAdministrationClient /// /// The key to delete /// - Task DeletePublicKey(int keyId); + Task DeletePublicKey(long keyId); } } diff --git a/Octokit/Clients/OrganizationHooksClient.cs b/Octokit/Clients/OrganizationHooksClient.cs index a7bc46ffc1..283cd6e990 100644 --- a/Octokit/Clients/OrganizationHooksClient.cs +++ b/Octokit/Clients/OrganizationHooksClient.cs @@ -52,7 +52,7 @@ public Task> GetAll(string org, ApiOptions optio /// /// See API documentation for more information. [ManualRoute("GET", "orgs/{org}/hooks/{hook_id}")] - public Task Get(string org, int hookId) + public Task Get(string org, long hookId) { Ensure.ArgumentNotNullOrEmptyString(org, nameof(org)); Ensure.ArgumentNotNull(hookId, nameof(hookId)); @@ -80,7 +80,7 @@ public Task Create(string org, NewOrganizationHook hook) /// See API documentation for more information. /// [ManualRoute("PATCH", "orgs/{org}/hooks/{hook_id}")] - public Task Edit(string org, int hookId, EditOrganizationHook hook) + public Task Edit(string org, long hookId, EditOrganizationHook hook) { Ensure.ArgumentNotNullOrEmptyString(org, nameof(org)); Ensure.ArgumentNotNull(hook, nameof(hook)); @@ -94,7 +94,7 @@ public Task Edit(string org, int hookId, EditOrganizationHook /// See API documentation for more information. /// [ManualRoute("POST", "orgs/{org}/hooks/{hook_id}/pings")] - public Task Ping(string org, int hookId) + public Task Ping(string org, long hookId) { Ensure.ArgumentNotNullOrEmptyString(org, nameof(org)); Ensure.ArgumentNotNull(hookId, nameof(hookId)); @@ -107,7 +107,7 @@ public Task Ping(string org, int hookId) /// See API documentation for more information. /// [ManualRoute("DELETE", "orgs/{org}/hooks/{hook_id}")] - public Task Delete(string org, int hookId) + public Task Delete(string org, long hookId) { Ensure.ArgumentNotNullOrEmptyString(org, nameof(org)); Ensure.ArgumentNotNull(hookId, nameof(hookId)); diff --git a/Octokit/Clients/ProjectCardsClient.cs b/Octokit/Clients/ProjectCardsClient.cs index 93556e26ca..e1d8159cb0 100644 --- a/Octokit/Clients/ProjectCardsClient.cs +++ b/Octokit/Clients/ProjectCardsClient.cs @@ -25,7 +25,7 @@ public ProjectCardsClient(IApiConnection apiConnection) : /// /// The id of the column [ManualRoute("GET", "/projects/columns/{column_id}/cards")] - public Task> GetAll(int columnId) + public Task> GetAll(long columnId) { return GetAll(columnId, ApiOptions.None); } @@ -39,7 +39,7 @@ public Task> GetAll(int columnId) /// The id of the column /// Options for changing the API response [ManualRoute("GET", "/projects/columns/{column_id}/cards")] - public Task> GetAll(int columnId, ApiOptions options) + public Task> GetAll(long columnId, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -55,7 +55,7 @@ public Task> GetAll(int columnId, ApiOptions options) /// The id of the column /// Used to filter the list of project cards returned [ManualRoute("GET", "/projects/columns/{column_id}/cards")] - public Task> GetAll(int columnId, ProjectCardRequest request) + public Task> GetAll(long columnId, ProjectCardRequest request) { Ensure.ArgumentNotNull(request, nameof(request)); @@ -73,7 +73,7 @@ public Task> GetAll(int columnId, ProjectCardRequest /// Options for changing the API response [Preview("inertia")] [ManualRoute("GET", "/projects/columns/{column_id}/cards")] - public Task> GetAll(int columnId, ProjectCardRequest request, ApiOptions options) + public Task> GetAll(long columnId, ProjectCardRequest request, ApiOptions options) { Ensure.ArgumentNotNull(request, nameof(request)); Ensure.ArgumentNotNull(options, nameof(options)); @@ -90,7 +90,7 @@ public Task> GetAll(int columnId, ProjectCardRequest /// The id of the card [Preview("inertia")] [ManualRoute("GET", "/projects/columns/cards/{card_id}")] - public Task Get(int id) + public Task Get(long id) { return ApiConnection.Get(ApiUrls.ProjectCard(id), null, AcceptHeaders.ProjectsApiPreview); } @@ -105,7 +105,7 @@ public Task Get(int id) /// The card to create [Preview("inertia")] [ManualRoute("POST", "/projects/columns/{column_id}/cards")] - public Task Create(int columnId, NewProjectCard newProjectCard) + public Task Create(long columnId, NewProjectCard newProjectCard) { Ensure.ArgumentNotNull(newProjectCard, nameof(newProjectCard)); @@ -122,7 +122,7 @@ public Task Create(int columnId, NewProjectCard newProjectCard) /// New values to update the card with [Preview("inertia")] [ManualRoute("GET", "/projects/columns/cards/{card_id}")] - public Task Update(int id, ProjectCardUpdate projectCardUpdate) + public Task Update(long id, ProjectCardUpdate projectCardUpdate) { Ensure.ArgumentNotNull(projectCardUpdate, nameof(projectCardUpdate)); @@ -138,7 +138,7 @@ public Task Update(int id, ProjectCardUpdate projectCardUpdate) /// The id of the card [Preview("inertia")] [ManualRoute("DELETE", "/projects/columns/cards/{card_id}")] - public async Task Delete(int id) + public async Task Delete(long id) { var endpoint = ApiUrls.ProjectCard(id); @@ -163,7 +163,7 @@ public async Task Delete(int id) /// The position to move the card [Preview("inertia")] [ManualRoute("POST", "/projects/columns/cards/{card_id}/moves")] - public async Task Move(int id, ProjectCardMove position) + public async Task Move(long id, ProjectCardMove position) { Ensure.ArgumentNotNull(position, nameof(position)); diff --git a/Octokit/Clients/ProjectColumnsClient.cs b/Octokit/Clients/ProjectColumnsClient.cs index 4c9fc2b7f0..5499d66534 100644 --- a/Octokit/Clients/ProjectColumnsClient.cs +++ b/Octokit/Clients/ProjectColumnsClient.cs @@ -25,7 +25,7 @@ public ProjectColumnsClient(IApiConnection apiConnection) : /// /// The Id of the project [ManualRoute("GET", "/projects/{project_id}/columns")] - public Task> GetAll(int projectId) + public Task> GetAll(long projectId) { return GetAll(projectId, ApiOptions.None); } @@ -40,7 +40,7 @@ public Task> GetAll(int projectId) /// Options for changing the API response [Preview("inertia")] [ManualRoute("GET", "/projects/{project_id}/columns")] - public Task> GetAll(int projectId, ApiOptions options) + public Task> GetAll(long projectId, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -56,7 +56,7 @@ public Task> GetAll(int projectId, ApiOptions optio /// The id of the column [Preview("inertia")] [ManualRoute("GET", "/projects/columns/{column_id}")] - public Task Get(int id) + public Task Get(long id) { return ApiConnection.Get(ApiUrls.ProjectColumn(id), null, AcceptHeaders.ProjectsApiPreview); } @@ -71,7 +71,7 @@ public Task Get(int id) /// The column to create [Preview("inertia")] [ManualRoute("POST", "/projects/{project_id}/columns")] - public Task Create(int projectId, NewProjectColumn newProjectColumn) + public Task Create(long projectId, NewProjectColumn newProjectColumn) { Ensure.ArgumentNotNull(newProjectColumn, nameof(newProjectColumn)); @@ -88,7 +88,7 @@ public Task Create(int projectId, NewProjectColumn newProjectColu /// New values to update the column with [Preview("inertia")] [ManualRoute("PATCH", "/projects/columns/{column_id}")] - public Task Update(int id, ProjectColumnUpdate projectColumnUpdate) + public Task Update(long id, ProjectColumnUpdate projectColumnUpdate) { Ensure.ArgumentNotNull(projectColumnUpdate, nameof(projectColumnUpdate)); @@ -104,7 +104,7 @@ public Task Update(int id, ProjectColumnUpdate projectColumnUpdat /// The id of the column [Preview("inertia")] [ManualRoute("DELETE", "/projects/columns/{column_id}")] - public async Task Delete(int id) + public async Task Delete(long id) { var endpoint = ApiUrls.ProjectColumn(id); try @@ -128,7 +128,7 @@ public async Task Delete(int id) /// The position to move the column [Preview("inertia")] [ManualRoute("POST", "/projects/columns/{column_id}/moves")] - public async Task Move(int id, ProjectColumnMove position) + public async Task Move(long id, ProjectColumnMove position) { Ensure.ArgumentNotNull(position, nameof(position)); diff --git a/Octokit/Clients/ReleasesClient.cs b/Octokit/Clients/ReleasesClient.cs index dd1b360eb6..25fb2d5ba1 100644 --- a/Octokit/Clients/ReleasesClient.cs +++ b/Octokit/Clients/ReleasesClient.cs @@ -102,7 +102,7 @@ public Task> GetAll(long repositoryId, ApiOptions options /// The id of the release /// Thrown when a general API error occurs. [ManualRoute("GET", "/repos/{owner}/{repo}/releases/{release_id}")] - public Task Get(string owner, string name, int id) + public Task Get(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -142,7 +142,7 @@ public Task Get(string owner, string name, string tag) /// The id of the release /// Thrown when a general API error occurs. [ManualRoute("GET", "/repositories/{id}/releases/{id}")] - public Task Get(long repositoryId, int id) + public Task Get(long repositoryId, long id) { var endpoint = ApiUrls.Releases(repositoryId, id); return ApiConnection.Get(endpoint); @@ -251,7 +251,7 @@ public Task Create(long repositoryId, NewRelease data) /// A description of the release to edit /// Thrown when a general API error occurs. [ManualRoute("PATCH", "/repos/{owner}/{repo}/releases/{release_id}")] - public Task Edit(string owner, string name, int id, ReleaseUpdate data) + public Task Edit(string owner, string name, long id, ReleaseUpdate data) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -272,7 +272,7 @@ public Task Edit(string owner, string name, int id, ReleaseUpdate data) /// A description of the release to edit /// Thrown when a general API error occurs. [ManualRoute("PATCH", "/repositories/{id}/releases/{id}")] - public Task Edit(long repositoryId, int id, ReleaseUpdate data) + public Task Edit(long repositoryId, long id, ReleaseUpdate data) { Ensure.ArgumentNotNull(data, nameof(data)); @@ -291,7 +291,7 @@ public Task Edit(long repositoryId, int id, ReleaseUpdate data) /// The id of the release to delete /// Thrown when a general API error occurs. [ManualRoute("DELETE", "/repos/{owner}/{repo}/releases/{release_id}")] - public Task Delete(string owner, string name, int id) + public Task Delete(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -310,7 +310,7 @@ public Task Delete(string owner, string name, int id) /// The id of the release to delete /// Thrown when a general API error occurs. [ManualRoute("DELETE", "/repositories/{id}/releases/{id}")] - public Task Delete(long repositoryId, int id) + public Task Delete(long repositoryId, long id) { var endpoint = ApiUrls.Releases(repositoryId, id); return ApiConnection.Delete(endpoint); @@ -327,7 +327,7 @@ public Task Delete(long repositoryId, int id) /// The id of the . /// Thrown when a general API error occurs. [ManualRoute("GET", "/repos/{owner}/{repo}/releases/{release_id}/assets")] - public Task> GetAllAssets(string owner, string name, int id) + public Task> GetAllAssets(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -345,7 +345,7 @@ public Task> GetAllAssets(string owner, string name, /// The id of the . /// Thrown when a general API error occurs. [ManualRoute("GET", "/repositories/{id}/releases/{id}/assets")] - public Task> GetAllAssets(long repositoryId, int id) + public Task> GetAllAssets(long repositoryId, long id) { return GetAllAssets(repositoryId, id, ApiOptions.None); } @@ -362,7 +362,7 @@ public Task> GetAllAssets(long repositoryId, int id) /// Options for changing the API response /// Thrown when a general API error occurs. [ManualRoute("GET", "/repos/{owner}/{repo}/releases/{release_id}/assets")] - public Task> GetAllAssets(string owner, string name, int id, ApiOptions options) + public Task> GetAllAssets(string owner, string name, long id, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -383,7 +383,7 @@ public Task> GetAllAssets(string owner, string name, /// Options for changing the API response /// Thrown when a general API error occurs. [ManualRoute("GET", "/repositories/{id}/releases/{id}/assets")] - public Task> GetAllAssets(long repositoryId, int id, ApiOptions options) + public Task> GetAllAssets(long repositoryId, long id, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -438,7 +438,7 @@ public Task UploadAsset(Release release, ReleaseAssetUpload data, /// The repository's name /// The id of the [ManualRoute("GET", "/repos/{owner}/{repo}/releases/assets/{asset_id}")] - public Task GetAsset(string owner, string name, int assetId) + public Task GetAsset(string owner, string name, long assetId) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -456,7 +456,7 @@ public Task GetAsset(string owner, string name, int assetId) /// The Id of the repository /// The id of the [ManualRoute("GET", "/repositories/{id}/releases/assets/{asset_id}")] - public Task GetAsset(long repositoryId, int assetId) + public Task GetAsset(long repositoryId, long assetId) { var endpoint = ApiUrls.Asset(repositoryId, assetId); return ApiConnection.Get(endpoint); @@ -473,7 +473,7 @@ public Task GetAsset(long repositoryId, int assetId) /// The id of the /// Description of the asset with its amended data [ManualRoute("PATCH", "/repos/{owner}/{repo}/releases/assets/{asset_id}")] - public Task EditAsset(string owner, string name, int assetId, ReleaseAssetUpdate data) + public Task EditAsset(string owner, string name, long assetId, ReleaseAssetUpdate data) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -493,7 +493,7 @@ public Task EditAsset(string owner, string name, int assetId, Rele /// The id of the /// Description of the asset with its amended data [ManualRoute("PATCH", "/repositories/{id}/releases/assets/{asset_id}")] - public Task EditAsset(long repositoryId, int assetId, ReleaseAssetUpdate data) + public Task EditAsset(long repositoryId, long assetId, ReleaseAssetUpdate data) { Ensure.ArgumentNotNull(data, nameof(data)); @@ -511,7 +511,7 @@ public Task EditAsset(long repositoryId, int assetId, ReleaseAsset /// The repository's name /// The id of the . [ManualRoute("DELETE", "/repos/{owner}/{repo}/releases/assets/{asset_id}")] - public Task DeleteAsset(string owner, string name, int id) + public Task DeleteAsset(string owner, string name, long id) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -529,7 +529,7 @@ public Task DeleteAsset(string owner, string name, int id) /// The Id of the repository /// The id of the . [ManualRoute("DELETE", "/repositories/{id}/releases/assets/{asset_id}")] - public Task DeleteAsset(long repositoryId, int id) + public Task DeleteAsset(long repositoryId, long id) { var endpoint = ApiUrls.Asset(repositoryId, id); return ApiConnection.Delete(endpoint); diff --git a/Octokit/Clients/RepositoryHooksClient.cs b/Octokit/Clients/RepositoryHooksClient.cs index 6bb5e2735c..b82d138d55 100644 --- a/Octokit/Clients/RepositoryHooksClient.cs +++ b/Octokit/Clients/RepositoryHooksClient.cs @@ -85,7 +85,7 @@ public Task> GetAll(long repositoryId, ApiOptions /// The repository's hook id /// See API documentation for more information. [ManualRoute("GET", "/repos/{owner}/{repo}/hooks/{id}")] - public Task Get(string owner, string name, int hookId) + public Task Get(string owner, string name, long hookId) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -100,7 +100,7 @@ public Task Get(string owner, string name, int hookId) /// The repository's hook id /// See API documentation for more information. [ManualRoute("GET", "/repositories/{id}/hooks/{id}")] - public Task Get(long repositoryId, int hookId) + public Task Get(long repositoryId, long hookId) { return ApiConnection.Get(ApiUrls.RepositoryHookById(repositoryId, hookId)); } @@ -145,7 +145,7 @@ public Task Create(long repositoryId, NewRepositoryHook hook) /// The requested changes to an edit repository hook /// See API documentation for more information. [ManualRoute("PATCH", "/repos/{owner}/{repo}/hooks/{id}")] - public Task Edit(string owner, string name, int hookId, EditRepositoryHook hook) + public Task Edit(string owner, string name, long hookId, EditRepositoryHook hook) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -162,7 +162,7 @@ public Task Edit(string owner, string name, int hookId, EditRepo /// The requested changes to an edit repository hook /// See API documentation for more information. [ManualRoute("POST", "/repositories/{id}/hooks/{hook_id}")] - public Task Edit(long repositoryId, int hookId, EditRepositoryHook hook) + public Task Edit(long repositoryId, long hookId, EditRepositoryHook hook) { Ensure.ArgumentNotNull(hook, nameof(hook)); @@ -179,7 +179,7 @@ public Task Edit(long repositoryId, int hookId, EditRepositoryHo /// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook /// is not subscribed to push events, the server will respond with 204 but no test POST will be generated. [ManualRoute("POST", "/repos/{owner}/{repo}/hooks/{id}/tests")] - public Task Test(string owner, string name, int hookId) + public Task Test(string owner, string name, long hookId) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -196,7 +196,7 @@ public Task Test(string owner, string name, int hookId) /// This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook /// is not subscribed to push events, the server will respond with 204 but no test POST will be generated. [ManualRoute("POST", "/repositories/{id}/hooks/{hook_id}/tests")] - public Task Test(long repositoryId, int hookId) + public Task Test(long repositoryId, long hookId) { return ApiConnection.Post(ApiUrls.RepositoryHookTest(repositoryId, hookId)); } @@ -209,7 +209,7 @@ public Task Test(long repositoryId, int hookId) /// The repository's hook id /// See API documentation for more information. [ManualRoute("POST", "/repos/{owner}/{repo}/hooks/{id}/pings")] - public Task Ping(string owner, string name, int hookId) + public Task Ping(string owner, string name, long hookId) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -224,7 +224,7 @@ public Task Ping(string owner, string name, int hookId) /// The repository's hook id /// See API documentation for more information. [ManualRoute("POST", "/repositories/{id}/hooks/{hook_id}/pings")] - public Task Ping(long repositoryId, int hookId) + public Task Ping(long repositoryId, long hookId) { return ApiConnection.Post(ApiUrls.RepositoryHookPing(repositoryId, hookId)); } @@ -237,7 +237,7 @@ public Task Ping(long repositoryId, int hookId) /// The repository's hook id /// See API documentation for more information. [ManualRoute("DELETE", "/repos/{owner}/{repo}/hooks/{id}")] - public Task Delete(string owner, string name, int hookId) + public Task Delete(string owner, string name, long hookId) { Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner)); Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); @@ -252,7 +252,7 @@ public Task Delete(string owner, string name, int hookId) /// The repository's hook id /// See API documentation for more information. [ManualRoute("DELETE", "/repositories/{id}/hooks/{hook_id}")] - public Task Delete(long repositoryId, int hookId) + public Task Delete(long repositoryId, long hookId) { return ApiConnection.Delete(ApiUrls.RepositoryHookById(repositoryId, hookId)); } diff --git a/Octokit/Clients/RepositoryInvitationsClient.cs b/Octokit/Clients/RepositoryInvitationsClient.cs index 0a4261d5ce..22b4bec5f3 100644 --- a/Octokit/Clients/RepositoryInvitationsClient.cs +++ b/Octokit/Clients/RepositoryInvitationsClient.cs @@ -21,7 +21,7 @@ public RepositoryInvitationsClient(IApiConnection apiConnection) /// The id of the invitation /// Thrown when a general API error occurs. [ManualRoute("PATCH", "/user/repository_invitations/{invitation_id}")] - public async Task Accept(int invitationId) + public async Task Accept(long invitationId) { var endpoint = ApiUrls.UserInvitations(invitationId); @@ -45,7 +45,7 @@ public async Task Accept(int invitationId) /// The id of the invitation /// Thrown when a general API error occurs. [ManualRoute("DELETE", "/user/repository_invitations/{invitation_id}")] - public async Task Decline(int invitationId) + public async Task Decline(long invitationId) { var endpoint = ApiUrls.UserInvitations(invitationId); @@ -70,7 +70,7 @@ public async Task Decline(int invitationId) /// The id of the invitation /// Thrown when a general API error occurs. [ManualRoute("DELETE", "/repos/:owner/:repo/invitations/{invitation_id}")] - public async Task Delete(long repositoryId, int invitationId) + public async Task Delete(long repositoryId, long invitationId) { var endpoint = ApiUrls.RepositoryInvitations(repositoryId, invitationId); @@ -154,7 +154,7 @@ public Task> GetAllForRepository(long reposi /// The permission for the collaborator /// Thrown when a general API error occurs. [ManualRoute("PATCH", "/repositories/{id}/invitations/{invitation_id}")] - public Task Edit(long repositoryId, int invitationId, InvitationUpdate permissions) + public Task Edit(long repositoryId, long invitationId, InvitationUpdate permissions) { Ensure.ArgumentNotNull(permissions, nameof(permissions)); diff --git a/Octokit/Clients/TeamsClient.cs b/Octokit/Clients/TeamsClient.cs index 08a1bfd65b..5b73ae99ae 100644 --- a/Octokit/Clients/TeamsClient.cs +++ b/Octokit/Clients/TeamsClient.cs @@ -242,7 +242,7 @@ public Task Update(int id, UpdateTeam team) } /// - /// Delte a team - must have owner permissions to this + /// Delete a team - must have owner permissions to this /// /// Thrown when a general API error occurs. /// diff --git a/Octokit/Clients/UserAdministrationClient.cs b/Octokit/Clients/UserAdministrationClient.cs index 136e23b160..21f518ea49 100644 --- a/Octokit/Clients/UserAdministrationClient.cs +++ b/Octokit/Clients/UserAdministrationClient.cs @@ -221,7 +221,7 @@ public async Task Delete(string login) /// The key to delete /// [ManualRoute("DELETE", "/admin/keys/{key_id}")] - public async Task DeletePublicKey(int keyId) + public async Task DeletePublicKey(long keyId) { Ensure.ArgumentNotNull(keyId, nameof(keyId)); var endpoint = ApiUrls.UserAdministrationPublicKeys(keyId); diff --git a/Octokit/Helpers/ApiUrls.Authorizations.cs b/Octokit/Helpers/ApiUrls.Authorizations.cs index 66112e2c5d..5211d6c457 100644 --- a/Octokit/Helpers/ApiUrls.Authorizations.cs +++ b/Octokit/Helpers/ApiUrls.Authorizations.cs @@ -18,7 +18,7 @@ public static Uri Authorizations() /// Returns the that returns all authorizations for a given user /// /// The user Id to search for - public static Uri Authorizations(int id) + public static Uri Authorizations(long id) { return "authorizations/{0}".FormatUri(id); } diff --git a/Octokit/Helpers/ApiUrls.cs b/Octokit/Helpers/ApiUrls.cs index 74f0ff3f9c..3f47d0ae4d 100644 --- a/Octokit/Helpers/ApiUrls.cs +++ b/Octokit/Helpers/ApiUrls.cs @@ -189,7 +189,7 @@ public static Uri Releases(string owner, string name) /// The name of the repository /// The id of the release /// - public static Uri Releases(string owner, string name, int id) + public static Uri Releases(string owner, string name, long id) { return "repos/{0}/{1}/releases/{2}".FormatUri(owner, name, id); } @@ -224,7 +224,7 @@ public static Uri LatestRelease(string owner, string name) /// The name of the repository /// The id of the release /// - public static Uri ReleaseAssets(string owner, string name, int id) + public static Uri ReleaseAssets(string owner, string name, long id) { return "repos/{0}/{1}/releases/{2}/assets".FormatUri(owner, name, id); } @@ -236,7 +236,7 @@ public static Uri ReleaseAssets(string owner, string name, int id) /// The name of the repository /// The id of the release asset /// - public static Uri Asset(string owner, string name, int id) + public static Uri Asset(string owner, string name, long id) { return "repos/{0}/{1}/releases/assets/{2}".FormatUri(owner, name, id); } @@ -535,7 +535,7 @@ public static Uri IssueComment(string owner, string name, int id) /// The name of the repository /// The comment number /// - public static Uri IssueCommentReactions(string owner, string name, int number) + public static Uri IssueCommentReactions(string owner, string name, long number) { return "repos/{0}/{1}/issues/comments/{2}/reactions".FormatUri(owner, name, number); } @@ -546,7 +546,7 @@ public static Uri IssueCommentReactions(string owner, string name, int number) /// The owner of the repository /// The comment number /// - public static Uri IssueCommentReactions(long repositoryId, int number) + public static Uri IssueCommentReactions(long repositoryId, long number) { return "repositories/{0}/issues/comments/{1}/reactions".FormatUri(repositoryId, number); } @@ -956,7 +956,7 @@ public static Uri RepositoryHooks(string owner, string name) /// The name of the repository /// The identifier of the repository hook /// - public static Uri RepositoryHookById(string owner, string name, int hookId) + public static Uri RepositoryHookById(string owner, string name, long hookId) { return "repos/{0}/{1}/hooks/{2}".FormatUri(owner, name, hookId); } @@ -968,7 +968,7 @@ public static Uri RepositoryHookById(string owner, string name, int hookId) /// The name of the repository /// The identifier of the repository hook /// - public static Uri RepositoryHookTest(string owner, string name, int hookId) + public static Uri RepositoryHookTest(string owner, string name, long hookId) { return "repos/{0}/{1}/hooks/{2}/tests".FormatUri(owner, name, hookId); } @@ -980,7 +980,7 @@ public static Uri RepositoryHookTest(string owner, string name, int hookId) /// The name of the repository /// The identifier of the repository hook /// - public static Uri RepositoryHookPing(string owner, string name, int hookId) + public static Uri RepositoryHookPing(string owner, string name, long hookId) { return "repos/{0}/{1}/hooks/{2}/pings".FormatUri(owner, name, hookId); } @@ -1001,7 +1001,7 @@ public static Uri OrganizationHooks(string org) /// The name of the organization /// The identifier of the organization hook /// - public static Uri OrganizationHookById(string org, int hookId) + public static Uri OrganizationHookById(string org, long hookId) { return "orgs/{0}/hooks/{1}".FormatUri(org, hookId); } @@ -1012,7 +1012,7 @@ public static Uri OrganizationHookById(string org, int hookId) /// The name of the organization /// The identifier of the organization hook /// - public static Uri OrganizationHookPing(string org, int hookId) + public static Uri OrganizationHookPing(string org, long hookId) { return "orgs/{0}/hooks/{1}/pings".FormatUri(org, hookId); } @@ -1313,7 +1313,7 @@ public static Uri PullRequestFiles(string owner, string name, int number) /// /// The id of the gist /// The id of the comment - public static Uri GistComment(string gistId, int commentId) + public static Uri GistComment(string gistId, long commentId) { return "gists/{0}/comments/{1}".FormatUri(gistId, commentId); } @@ -2264,7 +2264,7 @@ public static Uri Deployments(string owner, string name) /// Name of the repository /// Id of the deployment /// - 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); } @@ -2567,12 +2567,12 @@ public static Uri EnterpriseAdminStatsAll() 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); } @@ -2654,7 +2654,7 @@ public static Uri UserAdministrationPublicKeys() return "admin/keys".FormatUri(); } - public static Uri UserAdministrationPublicKeys(int keyId) + public static Uri UserAdministrationPublicKeys(long keyId) { return "admin/keys/{0}".FormatUri(keyId); } @@ -2721,7 +2721,7 @@ public static Uri UserAdministrationSuspension(string login) /// The Id of the repository /// The id of the release asset /// The that returns the assets specified by the asset id. - public static Uri Asset(long repositoryId, int id) + public static Uri Asset(long repositoryId, long id) { return "repositories/{0}/releases/assets/{1}".FormatUri(repositoryId, id); } @@ -2895,7 +2895,7 @@ public static Uri Deployments(long repositoryId) /// The Id of the repository /// Id of the deployment /// The for the Deployment Statuses API for the given deployment. - 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); } @@ -3247,7 +3247,7 @@ public static Uri Reference(long repositoryId, string referenceName) /// The Id of the repository /// The id of the release /// The that returns all the assets for the specified release for the specified repository. - public static Uri ReleaseAssets(long repositoryId, int id) + public static Uri ReleaseAssets(long repositoryId, long id) { return "repositories/{0}/releases/{1}/assets".FormatUri(repositoryId, id); } @@ -3268,7 +3268,7 @@ public static Uri Releases(long repositoryId) /// The Id of the repository /// The id of the release /// The that returns a single release for the specified repository - public static Uri Releases(long repositoryId, int id) + public static Uri Releases(long repositoryId, long id) { return "repositories/{0}/releases/{1}".FormatUri(repositoryId, id); } @@ -3454,7 +3454,7 @@ public static Uri RepositoryForks(long repositoryId) /// The Id of the repository /// The identifier of the repository hook /// The that gets the repository hook for the specified reference. - public static Uri RepositoryHookById(long repositoryId, int hookId) + public static Uri RepositoryHookById(long repositoryId, long hookId) { return "repositories/{0}/hooks/{1}".FormatUri(repositoryId, hookId); } @@ -3465,7 +3465,7 @@ public static Uri RepositoryHookById(long repositoryId, int hookId) /// The Id of the repository /// The identifier of the repository hook /// The that can ping a specified repository hook - public static Uri RepositoryHookPing(long repositoryId, int hookId) + public static Uri RepositoryHookPing(long repositoryId, long hookId) { return "repositories/{0}/hooks/{1}/pings".FormatUri(repositoryId, hookId); } @@ -3486,7 +3486,7 @@ public static Uri RepositoryHooks(long repositoryId) /// The Id of the repository /// The identifier of the repository hook /// The that can tests a specified repository hook - public static Uri RepositoryHookTest(long repositoryId, int hookId) + public static Uri RepositoryHookTest(long repositoryId, long hookId) { return "repositories/{0}/hooks/{1}/tests".FormatUri(repositoryId, hookId); } @@ -3710,7 +3710,7 @@ public static Uri RepositoryInvitations(long repositoryId) /// The id of the repository /// The id of the invitation /// The for repository invitations. - public static Uri RepositoryInvitations(long repositoryId, int invitationId) + public static Uri RepositoryInvitations(long repositoryId, long invitationId) { return "repositories/{0}/invitations/{1}".FormatUri(repositoryId, invitationId); } @@ -3729,7 +3729,7 @@ public static Uri UserInvitations() /// /// The id of the invitation /// The for invitations for the current user. - public static Uri UserInvitations(int invitationId) + public static Uri UserInvitations(long invitationId) { return "user/repository_invitations/{0}".FormatUri(invitationId); } @@ -3887,7 +3887,7 @@ public static Uri Project(int id) /// /// The id of the columns /// The for project columns. - public static Uri ProjectColumn(int id) + public static Uri ProjectColumn(long id) { return "projects/columns/{0}".FormatUri(id); } @@ -3897,7 +3897,7 @@ public static Uri ProjectColumn(int id) /// /// The id of the project /// The for a specific project column. - public static Uri ProjectColumns(int projectId) + public static Uri ProjectColumns(long projectId) { return "projects/{0}/columns".FormatUri(projectId); } @@ -3907,7 +3907,7 @@ public static Uri ProjectColumns(int projectId) /// /// The id of the column to move /// The to move a project column. - public static Uri ProjectColumnMove(int id) + public static Uri ProjectColumnMove(long id) { return "projects/columns/{0}/moves".FormatUri(id); } @@ -3917,7 +3917,7 @@ public static Uri ProjectColumnMove(int id) /// /// The id of the card /// The for project cards. - public static Uri ProjectCard(int id) + public static Uri ProjectCard(long id) { return "projects/columns/cards/{0}".FormatUri(id); } @@ -3927,7 +3927,7 @@ public static Uri ProjectCard(int id) /// /// The id of the column /// The for project cards. - public static Uri ProjectCards(int columnId) + public static Uri ProjectCards(long columnId) { return "projects/columns/{0}/cards".FormatUri(columnId); } @@ -3937,7 +3937,7 @@ public static Uri ProjectCards(int columnId) /// /// The id of the card to move /// The to move a project card. - public static Uri ProjectCardMove(int id) + public static Uri ProjectCardMove(long id) { return "projects/columns/cards/{0}/moves".FormatUri(id); } diff --git a/Octokit/Models/Request/NewRepository.cs b/Octokit/Models/Request/NewRepository.cs index 3942d53ed6..66c638f011 100644 --- a/Octokit/Models/Request/NewRepository.cs +++ b/Octokit/Models/Request/NewRepository.cs @@ -81,7 +81,7 @@ public NewRepository(string name) /// /// Optional. Gets or sets the Id of the team to grant access to this repository. This is only valid when creating a repository for an organization. /// - public int? TeamId { get; set; } + public long? TeamId { get; set; } public bool? DeleteBranchOnMerge { get; set; } diff --git a/Octokit/Models/Request/NewTeam.cs b/Octokit/Models/Request/NewTeam.cs index 23ba322dec..14aa3835c0 100644 --- a/Octokit/Models/Request/NewTeam.cs +++ b/Octokit/Models/Request/NewTeam.cs @@ -60,7 +60,7 @@ public NewTeam(string name) /// /// Id of a team to set as the parent team /// - public int? ParentTeamId { get; set; } + public long? ParentTeamId { get; set; } internal string DebuggerDisplay { diff --git a/Octokit/Models/Request/ProjectCardMove.cs b/Octokit/Models/Request/ProjectCardMove.cs index 040bfd3617..a64fd0a8e8 100644 --- a/Octokit/Models/Request/ProjectCardMove.cs +++ b/Octokit/Models/Request/ProjectCardMove.cs @@ -6,7 +6,7 @@ namespace Octokit [DebuggerDisplay("{DebuggerDisplay,nq}")] public class ProjectCardMove { - public ProjectCardMove(ProjectCardPosition position, int columnId, int? cardId) + public ProjectCardMove(ProjectCardPosition position, long columnId, long? cardId) { ColumnId = columnId; switch (position) @@ -26,7 +26,7 @@ public ProjectCardMove(ProjectCardPosition position, int columnId, int? cardId) public string Position { get; private set; } - public int ColumnId { get; set; } + public long ColumnId { get; set; } internal string DebuggerDisplay { diff --git a/Octokit/Models/Request/ProjectColumnMove.cs b/Octokit/Models/Request/ProjectColumnMove.cs index ab60033f82..2b9f74d7e1 100644 --- a/Octokit/Models/Request/ProjectColumnMove.cs +++ b/Octokit/Models/Request/ProjectColumnMove.cs @@ -6,7 +6,7 @@ namespace Octokit [DebuggerDisplay("{DebuggerDisplay,nq}")] public class ProjectColumnMove { - public ProjectColumnMove(ProjectColumnPosition position, int? columnId) + public ProjectColumnMove(ProjectColumnPosition position, long? columnId) { switch (position) { diff --git a/Octokit/Models/Response/Author.cs b/Octokit/Models/Response/Author.cs index 95e1e93000..e88d55b9bf 100644 --- a/Octokit/Models/Response/Author.cs +++ b/Octokit/Models/Response/Author.cs @@ -9,7 +9,7 @@ public class Author { 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 @@ public Author(string login, int id, string nodeId, string avatarUrl, string url, public string Login { get; protected set; } - public int Id { get; protected set; } + public long Id { get; protected set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/Authorization.cs b/Octokit/Models/Response/Authorization.cs index ea930e08e1..04c590a971 100644 --- a/Octokit/Models/Response/Authorization.cs +++ b/Octokit/Models/Response/Authorization.cs @@ -14,7 +14,7 @@ public class Authorization // 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 @@ public Authorization(int id, string url, Application application, string tokenLa /// /// The Id of this . /// - public int Id { get; protected set; } + public long Id { get; protected set; } /// /// The API URL for this . diff --git a/Octokit/Models/Response/Deployment.cs b/Octokit/Models/Response/Deployment.cs index 4d4e5be667..cd2e58f78d 100644 --- a/Octokit/Models/Response/Deployment.cs +++ b/Octokit/Models/Response/Deployment.cs @@ -13,7 +13,7 @@ public class Deployment { public Deployment() { } - public Deployment(int id, string nodeId, string sha, string url, User creator, IReadOnlyDictionary payload, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string statusesUrl, bool transientEnvironment, bool productionEnvironment) + public Deployment(long id, string nodeId, string sha, string url, User creator, IReadOnlyDictionary payload, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string statusesUrl, bool transientEnvironment, bool productionEnvironment) { Id = id; NodeId = nodeId; @@ -32,7 +32,7 @@ public Deployment(int id, string nodeId, string sha, string url, User creator, I /// /// Id of this deployment. /// - public int Id { get; protected set; } + public long Id { get; protected set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/DeploymentStatus.cs b/Octokit/Models/Response/DeploymentStatus.cs index cd46e7339e..0eb8a93fc5 100644 --- a/Octokit/Models/Response/DeploymentStatus.cs +++ b/Octokit/Models/Response/DeploymentStatus.cs @@ -11,7 +11,7 @@ public class DeploymentStatus { public DeploymentStatus() { } - public DeploymentStatus(int id, string nodeId, string url, DeploymentState state, User creator, IReadOnlyDictionary payload, string targetUrl, string logUrl, string environmentUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description) + public DeploymentStatus(long id, string nodeId, string url, DeploymentState state, User creator, IReadOnlyDictionary payload, string targetUrl, string logUrl, string environmentUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description) { Id = id; NodeId = nodeId; @@ -30,7 +30,7 @@ public DeploymentStatus(int id, string nodeId, string url, DeploymentState state /// /// Id of this deployment status. /// - public int Id { get; protected set; } + public long Id { get; protected set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/GistComment.cs b/Octokit/Models/Response/GistComment.cs index 9a9b773c18..122c7950a4 100644 --- a/Octokit/Models/Response/GistComment.cs +++ b/Octokit/Models/Response/GistComment.cs @@ -9,7 +9,7 @@ public class GistComment { public GistComment() { } - public GistComment(int id, string nodeId, string url, string body, User user, DateTimeOffset createdAt, DateTimeOffset? updatedAt) + public GistComment(long id, string nodeId, string url, string body, User user, DateTimeOffset createdAt, DateTimeOffset? updatedAt) { Id = id; NodeId = nodeId; @@ -23,7 +23,7 @@ public GistComment(int id, string nodeId, string url, string body, User user, Da /// /// The gist comment id. /// - public int Id { get; protected set; } + public long Id { get; protected set; } /// /// GraphQL Node Id diff --git a/Octokit/Models/Response/Issue.cs b/Octokit/Models/Response/Issue.cs index 4a0add46fa..1a65334a0e 100644 --- a/Octokit/Models/Response/Issue.cs +++ b/Octokit/Models/Response/Issue.cs @@ -11,7 +11,7 @@ public class Issue { public Issue() { } - public Issue(string url, string htmlUrl, string commentsUrl, string eventsUrl, int number, ItemState state, string title, string body, User closedBy, User user, IReadOnlyList