diff --git a/Octokit/Clients/IRepositoriesClient.cs b/Octokit/Clients/IRepositoriesClient.cs index 175bc203..1f770051 100644 --- a/Octokit/Clients/IRepositoriesClient.cs +++ b/Octokit/Clients/IRepositoriesClient.cs @@ -30,6 +30,14 @@ namespace Octokit /// IRepositoryCommentsClient RepositoryComments { get; } + /// + /// Client for managing deploy keys in a repository. + /// + /// + /// See the Repository Deploy Keys API documentation for more information. + /// + IRepositoryDeployKeysClient DeployKeys { get; } + /// /// Creates a new repository for the current user. /// diff --git a/Octokit/Clients/IRepositoryDeployKeysClient.cs b/Octokit/Clients/IRepositoryDeployKeysClient.cs index 8f6b09c9..ab537f20 100644 --- a/Octokit/Clients/IRepositoryDeployKeysClient.cs +++ b/Octokit/Clients/IRepositoryDeployKeysClient.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -17,7 +18,7 @@ namespace Octokit /// The owner of the repository. /// The name of the repository. /// The id of the deploy key. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] + [SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] Task Get(string owner, string name, int number); /// @@ -41,19 +42,6 @@ namespace Octokit /// The deploy key to create for the repository. /// Task Create(string owner, string name, NewDeployKey newDeployKey); - - /// - /// Deploy keys are immutable. If you need to update a key, remove the key and create a new one instead. - /// - /// - /// See the API documentation for more information. - /// - /// - /// - /// - /// - /// - /// Task Update(string owner, string name, int number, NewDeployKey newDeployKey); /// /// Deletes a deploy key from a repository. diff --git a/Octokit/Clients/RepositoriesClient.cs b/Octokit/Clients/RepositoriesClient.cs index 2a33c858..d09c80a1 100644 --- a/Octokit/Clients/RepositoriesClient.cs +++ b/Octokit/Clients/RepositoriesClient.cs @@ -303,7 +303,7 @@ namespace Octokit public IRepositoryCommentsClient RepositoryComments { get; private set; } /// - /// Client for manging deploy keys in a repository + /// Client for managing deploy keys in a repository. /// /// /// See the Repository Deploy Keys API documentation for more information. diff --git a/Octokit/Clients/RepositoryDeployKeysClient.cs b/Octokit/Clients/RepositoryDeployKeysClient.cs index 9783911f..57a740c2 100644 --- a/Octokit/Clients/RepositoryDeployKeysClient.cs +++ b/Octokit/Clients/RepositoryDeployKeysClient.cs @@ -82,18 +82,6 @@ namespace Octokit } - /// - /// Deploy keys are immutable. If you need to update a key, remove the key and create a new one instead. - /// - /// - /// See the API documentation for more information. - /// - /// - /// - /// - /// - /// - /// Task Update(string owner, string name, int number, NewDeployKey newDeployKey); /// /// Deletes a deploy key from a repository. ///