mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
* Initial implementation of ManagementConsole - maintenance mode * Add environment var support for management console password for integration tests * Add reactive client and unit tests * Update some xmlDoc * I think this is a better way to setup the underlying baseUri on IConneciton, to achieve managemet console access rather than requiring a specific GitHubClient that cant call normal API's Instead, the management client methods can check the base Url and if it contains /api/v3/ they can set their relative endpoint Uri to include a leading "/" which will cause the /api/v3/ to be removed. * Update EnterpriseClient.cs Fix xml comments * Update IEnterpriseClient.cs Fix xml comments * Still trying to get the xmDoc perfect, thanks app veyor :) * XmlDoc'ing my way to success * Add specific test attribute for management console tests * check chronic string empty/null * Use helper's password field in test * Tidy up maintenance mode tests by using a context/destructor to manage the initial/end state of maintenance mode * make internal and tidy up URL concatenation * move GHE endpoint fixup inside ApiUrls methods * Rework request object to be the correct structure so SimpleJsonSerializer can be used to serialize it. Remove MaintenanceDate class and just pass in the Date/string for when Still need to use UrlFormEncoding rather than json in the POST body though... * Create abstract base class for FormUrlEncoded parameters (similar to existing RequetParameters) and inherit from it in UpdateMaintenanceRequest * Fix maintenance context logic - destructor should always turn maintenance OFF regardless of initial requested state * Fix xml comment * Fix Xml comment * Those pesky xml comments! * Fine, I give up! * Fix string.Format * fix bad rebase * fix failing convention tests * restore missing whitespace * writing some docs * some edits * edit
81 lines
3.8 KiB
C#
81 lines
3.8 KiB
C#
namespace Octokit.Reactive
|
|
{
|
|
/// <summary>
|
|
/// A client for GitHub's Enterprise API.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="http://developer.github.com/v3/enterprise/">Enterprise API documentation</a> for more information.
|
|
/// </remarks>
|
|
public class ObservableEnterpriseClient : IObservableEnterpriseClient
|
|
{
|
|
public ObservableEnterpriseClient(IGitHubClient client)
|
|
{
|
|
Ensure.ArgumentNotNull(client, nameof(client));
|
|
|
|
AdminStats = new ObservableEnterpriseAdminStatsClient(client);
|
|
Ldap = new ObservableEnterpriseLdapClient(client);
|
|
License = new ObservableEnterpriseLicenseClient(client);
|
|
ManagementConsole = new ObservableEnterpriseManagementConsoleClient(client);
|
|
Organization = new ObservableEnterpriseOrganizationClient(client);
|
|
SearchIndexing = new ObservableEnterpriseSearchIndexingClient(client);
|
|
PreReceiveEnvironment = new ObservableEnterprisePreReceiveEnvironmentsClient(client);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A client for GitHub's Enterprise Admin Stats API
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="http://developer.github.com/v3/enterprise/admin_stats/">Enterprise Admin Stats API documentation</a> for more information.
|
|
/// </remarks>
|
|
public IObservableEnterpriseAdminStatsClient AdminStats { get; private set; }
|
|
|
|
/// <summary>
|
|
/// A client for GitHub's Enterprise LDAP API
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="https://developer.github.com/v3/enterprise/ldap/">Enterprise LDAP API documentation</a> for more information.
|
|
/// </remarks>
|
|
public IObservableEnterpriseLdapClient Ldap { get; private set; }
|
|
|
|
/// <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 IObservableEnterpriseLicenseClient License { get; private set; }
|
|
|
|
/// <summary>
|
|
/// A client for GitHub's Enterprise Management Console API
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="https://developer.github.com/v3/enterprise/management_console/">Enterprise Management Console API documentation</a> for more information.
|
|
/// </remarks>
|
|
public IObservableEnterpriseManagementConsoleClient ManagementConsole { get; private set; }
|
|
|
|
/// <summary>
|
|
/// A client for GitHub's Enterprise Organization API
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="https://developer.github.com/v3/enterprise/orgs/">Enterprise Organization API documentation</a> for more information.
|
|
/// </remarks>
|
|
public IObservableEnterpriseOrganizationClient Organization { get; private set; }
|
|
|
|
/// <summary>
|
|
/// A client for GitHub's Enterprise Search Indexing API
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="https://developer.github.com/v3/enterprise/search_indexing/">Enterprise Search Indexing API documentation</a> for more information.
|
|
/// </remarks>
|
|
public IObservableEnterpriseSearchIndexingClient SearchIndexing { get; private set; }
|
|
|
|
/// <summary>
|
|
/// A client for GitHub's Enterprise Pre-receive Environments API
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// See the <a href="https://developer.github.com/v3/enterprise-admin/pre_receive_environments/">Enterprise Pre-receive Environments API documentation</a> for more information.
|
|
///</remarks>
|
|
public IObservableEnterprisePreReceiveEnvironmentsClient PreReceiveEnvironment { get; private set; }
|
|
}
|
|
}
|