mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-19 05:35:11 +00:00
and the other docs
This commit is contained in:
@@ -43,6 +43,7 @@ namespace Octokit.Reactive
|
|||||||
/// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks>
|
/// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks>
|
||||||
/// <param name="owner">The owner of the repository</param>
|
/// <param name="owner">The owner of the repository</param>
|
||||||
/// <param name="name">The name of the repository</param>
|
/// <param name="name">The name of the repository</param>
|
||||||
|
/// <returns>A promise, containing the binary contents of the archive</returns>
|
||||||
IObservable<byte[]> GetArchive(string owner, string name);
|
IObservable<byte[]> GetArchive(string owner, string name);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -66,7 +67,7 @@ namespace Octokit.Reactive
|
|||||||
/// <param name="owner">The owner of the repository</param>
|
/// <param name="owner">The owner of the repository</param>
|
||||||
/// <param name="name">The name of the repository</param>
|
/// <param name="name">The name of the repository</param>
|
||||||
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
|
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
|
||||||
/// <returns></returns>
|
/// <returns>A promise, containing the binary contents of the archive</returns>
|
||||||
IObservable<byte[]> GetArchive(string owner, string name, ArchiveFormat archiveFormat);
|
IObservable<byte[]> GetArchive(string owner, string name, ArchiveFormat archiveFormat);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -92,6 +93,7 @@ namespace Octokit.Reactive
|
|||||||
/// <param name="name">The name of the repository</param>
|
/// <param name="name">The name of the repository</param>
|
||||||
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
|
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
|
||||||
/// <param name="reference">A valid Git reference.</param>
|
/// <param name="reference">A valid Git reference.</param>
|
||||||
|
/// <returns>A promise, containing the binary contents of the archive</returns>
|
||||||
IObservable<byte[]> GetArchive(string owner, string name, ArchiveFormat archiveFormat, string reference);
|
IObservable<byte[]> GetArchive(string owner, string name, ArchiveFormat archiveFormat, string reference);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ namespace Octokit.Reactive
|
|||||||
/// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks>
|
/// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks>
|
||||||
/// <param name="owner">The owner of the repository</param>
|
/// <param name="owner">The owner of the repository</param>
|
||||||
/// <param name="name">The name of the repository</param>
|
/// <param name="name">The name of the repository</param>
|
||||||
|
/// <returns>A promise, containing the binary contents of the archive</returns>
|
||||||
public IObservable<byte[]> GetArchive(string owner, string name)
|
public IObservable<byte[]> GetArchive(string owner, string name)
|
||||||
{
|
{
|
||||||
return _client.Repository.Content.GetArchive(owner, name).ToObservable();
|
return _client.Repository.Content.GetArchive(owner, name).ToObservable();
|
||||||
@@ -100,7 +101,7 @@ namespace Octokit.Reactive
|
|||||||
/// <param name="owner">The owner of the repository</param>
|
/// <param name="owner">The owner of the repository</param>
|
||||||
/// <param name="name">The name of the repository</param>
|
/// <param name="name">The name of the repository</param>
|
||||||
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
|
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
|
||||||
/// <returns></returns>
|
/// <returns>A promise, containing the binary contents of the archive</returns>
|
||||||
public IObservable<byte[]> GetArchive(string owner, string name, ArchiveFormat archiveFormat)
|
public IObservable<byte[]> GetArchive(string owner, string name, ArchiveFormat archiveFormat)
|
||||||
{
|
{
|
||||||
return _client.Repository.Content.GetArchive(owner, name, archiveFormat).ToObservable();
|
return _client.Repository.Content.GetArchive(owner, name, archiveFormat).ToObservable();
|
||||||
@@ -135,6 +136,7 @@ namespace Octokit.Reactive
|
|||||||
/// <param name="name">The name of the repository</param>
|
/// <param name="name">The name of the repository</param>
|
||||||
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
|
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
|
||||||
/// <param name="reference">A valid Git reference.</param>
|
/// <param name="reference">A valid Git reference.</param>
|
||||||
|
/// <returns>A promise, containing the binary contents of the archive</returns>
|
||||||
public IObservable<byte[]> GetArchive(string owner, string name, ArchiveFormat archiveFormat, string reference)
|
public IObservable<byte[]> GetArchive(string owner, string name, ArchiveFormat archiveFormat, string reference)
|
||||||
{
|
{
|
||||||
return _client.Repository.Content.GetArchive(owner, name, archiveFormat, reference).ToObservable();
|
return _client.Repository.Content.GetArchive(owner, name, archiveFormat, reference).ToObservable();
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ namespace Octokit
|
|||||||
/// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks>
|
/// <remarks>https://developer.github.com/v3/repos/contents/#get-archive-link</remarks>
|
||||||
/// <param name="owner">The owner of the repository</param>
|
/// <param name="owner">The owner of the repository</param>
|
||||||
/// <param name="name">The name of the repository</param>
|
/// <param name="name">The name of the repository</param>
|
||||||
/// <returns></returns>
|
/// <returns>The binary contents of the archive</returns>
|
||||||
public Task<byte[]> GetArchive(string owner, string name)
|
public Task<byte[]> GetArchive(string owner, string name)
|
||||||
{
|
{
|
||||||
return GetArchive(owner, name, ArchiveFormat.Tarball, string.Empty);
|
return GetArchive(owner, name, ArchiveFormat.Tarball, string.Empty);
|
||||||
@@ -124,7 +124,7 @@ namespace Octokit
|
|||||||
/// <param name="owner">The owner of the repository</param>
|
/// <param name="owner">The owner of the repository</param>
|
||||||
/// <param name="name">The name of the repository</param>
|
/// <param name="name">The name of the repository</param>
|
||||||
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
|
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
|
||||||
/// <returns></returns>
|
/// <returns>The binary contents of the archive</returns>
|
||||||
public Task<byte[]> GetArchive(string owner, string name, ArchiveFormat archiveFormat)
|
public Task<byte[]> GetArchive(string owner, string name, ArchiveFormat archiveFormat)
|
||||||
{
|
{
|
||||||
return GetArchive(owner, name, archiveFormat, string.Empty);
|
return GetArchive(owner, name, archiveFormat, string.Empty);
|
||||||
@@ -158,7 +158,7 @@ namespace Octokit
|
|||||||
/// <param name="name">The name of the repository</param>
|
/// <param name="name">The name of the repository</param>
|
||||||
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
|
/// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param>
|
||||||
/// <param name="reference">A valid Git reference.</param>
|
/// <param name="reference">A valid Git reference.</param>
|
||||||
/// <returns></returns>
|
/// <returns>The binary contents of the archive</returns>
|
||||||
public async Task<byte[]> GetArchive(string owner, string name, ArchiveFormat archiveFormat, string reference)
|
public async Task<byte[]> GetArchive(string owner, string name, ArchiveFormat archiveFormat, string reference)
|
||||||
{
|
{
|
||||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||||
|
|||||||
Reference in New Issue
Block a user