Merge remote-tracking branch 'upstream/master' into enterprise-adminstats

This commit is contained in:
Ryan Gribble
2016-01-16 14:01:48 +10:00
51 changed files with 453 additions and 183 deletions

View File

@@ -92,10 +92,9 @@ namespace Octokit
PullRequest = new PullRequestsClient(apiConnection);
Repository = new RepositoriesClient(apiConnection);
Gist = new GistsClient(apiConnection);
Release = new ReleasesClient(apiConnection);
User = new UsersClient(apiConnection);
SshKey = new SshKeysClient(apiConnection);
GitDatabase = new GitDatabaseClient(apiConnection);
Git = new GitDatabaseClient(apiConnection);
Search = new SearchClient(apiConnection);
Deployment = new DeploymentsClient(apiConnection);
Enterprise = new EnterpriseClient(apiConnection);
@@ -216,14 +215,17 @@ namespace Octokit
/// </remarks>
public IGistsClient Gist { get; private set; }
// TODO: this should be under Repositories to align with the API docs
/// <summary>
/// Access GitHub's Releases API.
/// </summary>
/// <remarks>
/// Refer to the API docmentation for more information: https://developer.github.com/v3/repos/releases/
/// </remarks>
public IReleasesClient Release { get; private set; }
[Obsolete("Use Repository.Release instead")]
public IReleasesClient Release
{
get { return Repository.Release; }
}
// TODO: this should be under Users to align with the API docs
// TODO: this should be named PublicKeys to align with the API docs
@@ -258,7 +260,16 @@ namespace Octokit
/// <remarks>
/// Refer to the API docmentation for more information: https://developer.github.com/v3/git/
/// </remarks>
public IGitDatabaseClient GitDatabase { get; private set; }
[Obsolete("Use Git instead")]
public IGitDatabaseClient GitDatabase { get { return Git; } }
/// <summary>
/// Access GitHub's Git Data API.
/// </summary>
/// <remarks>
/// Refer to the API docmentation for more information: https://developer.github.com/v3/git/
/// </remarks>
public IGitDatabaseClient Git { get; private set; }
/// <summary>
/// Access GitHub's Search API.