mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
Added a pre-receive environments client (#1796)
* Added pre-receive environment client https://developer.github.com/v3/enterprise-admin/pre_receive_environments * Added unit and integration tests for the pre-receive environments client * moved test setup outside of tests * fixed unit test * Added reactive components for pre-receive environment endpoints * Debugger display's and non public setters on response object conventions * removed redundant parameter attributes implemented update request independently of new request changed ints to longs for future proofing updated unit tests changed update integration tests to create a new update request to ensure optional values function * updating reactive environmentids to longs as well * also converting response id to a long * Fixed an incorrect unit test renamed some test variable names for consistency Added mockable ctors on responses, and parameterless ctors to maintain functionality * Adding missing state parameter * rename client member accessor to singular form in accordance with octokit naming conventions * fixup tests * add integration tests for observable client
This commit is contained in:
@@ -2495,6 +2495,42 @@ namespace Octokit
|
||||
return "admin/keys/{0}".FormatUri(keyId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the <see cref="Uri"/> for pre-receive environments.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static Uri AdminPreReceiveEnvironments()
|
||||
{
|
||||
return "admin/pre-receive-environments".FormatUri();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the <see cref="Uri"/> for pre-receive environments.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static Uri AdminPreReceiveEnvironments(long environmentId)
|
||||
{
|
||||
return "admin/pre-receive-environments/{0}".FormatUri(environmentId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the <see cref="Uri"/> for pre-receive environment download status.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static Uri AdminPreReceiveEnvironmentDownload(long environmentId)
|
||||
{
|
||||
return "admin/pre-receive-environments/{0}/downloads".FormatUri(environmentId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the <see cref="Uri"/> for pre-receive environment download status.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static Uri AdminPreReceiveEnvironmentDownloadStatus(long environmentId)
|
||||
{
|
||||
return "admin/pre-receive-environments/{0}/downloads/latest".FormatUri(environmentId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the relative <see cref="Uri"/> for altering administration status of a user.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user