mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using System.Threading.Tasks;
|
|
|
|
namespace Octokit
|
|
{
|
|
/// <summary>
|
|
/// A client for GitHub's Enterprise License API
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="https://developer.github.com/v3/enterprise/license/">Enterprise License API documentation</a> for more information.
|
|
///</remarks>
|
|
public class EnterpriseLicenseClient : ApiClient, IEnterpriseLicenseClient
|
|
{
|
|
public EnterpriseLicenseClient(IApiConnection apiConnection)
|
|
: base(apiConnection)
|
|
{ }
|
|
|
|
/// <summary>
|
|
/// Gets GitHub Enterprise License Information (must be Site Admin user).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// https://developer.github.com/v3/enterprise/license/#get-license-information
|
|
/// </remarks>
|
|
/// <returns>The <see cref="LicenseInfo"/> statistics.</returns>
|
|
[ManualRoute("GET", "/enterprise/settings/license")]
|
|
public Task<LicenseInfo> Get()
|
|
{
|
|
var endpoint = ApiUrls.EnterpriseLicense();
|
|
|
|
return ApiConnection.Get<LicenseInfo>(endpoint);
|
|
}
|
|
}
|
|
}
|