From c9026e472378b427fd6ac1dfac15028a6d859261 Mon Sep 17 00:00:00 2001 From: Ryan Gribble Date: Thu, 24 Dec 2015 15:05:34 +1000 Subject: [PATCH] add base Enterprise client to GitHubClient --- Octokit/GitHubClient.cs | 9 +++++++++ Octokit/IGitHubClient.cs | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/Octokit/GitHubClient.cs b/Octokit/GitHubClient.cs index 6115f282..6b59e945 100644 --- a/Octokit/GitHubClient.cs +++ b/Octokit/GitHubClient.cs @@ -98,6 +98,7 @@ namespace Octokit GitDatabase = new GitDatabaseClient(apiConnection); Search = new SearchClient(apiConnection); Deployment = new DeploymentsClient(apiConnection); + Enterprise = new EnterpriseClient(apiConnection); } /// @@ -276,6 +277,14 @@ namespace Octokit /// public IDeploymentsClient Deployment { get; private set; } + /// + /// Access GitHub's Enterprise API. + /// + /// + /// Refer to the API docmentation for more information: https://developer.github.com/v3/enterprise/ + /// + public IEnterpriseClient Enterprise { get; private set; } + static Uri FixUpBaseUri(Uri uri) { Ensure.ArgumentNotNull(uri, "uri"); diff --git a/Octokit/IGitHubClient.cs b/Octokit/IGitHubClient.cs index 07aae0a5..281d0de9 100644 --- a/Octokit/IGitHubClient.cs +++ b/Octokit/IGitHubClient.cs @@ -134,5 +134,13 @@ /// Refer to the API docmentation for more information: https://developer.github.com/v3/search/ /// ISearchClient Search { get; } + + /// + /// Access GitHub's Enterprise API + /// + /// + /// Refer to the API documentation for more information: https://developer.github.com/v3/enterprise/ + /// + IEnterpriseClient Enterprise { get; } } }