mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 04:56:29 +00:00
feat: added Missing APIOption overload for PackagesClient.GetAll* #2923 added missing APIOption overload for PackagesClient and ObservablePackagesClient added overload for optional parameter packageVisibility to be a nonbreaking change extended PackagesClientTests.cs to be conform with RepositoriesClientTests.cs to take ApiOptions into account
This commit is contained in:
@@ -7,6 +7,27 @@ namespace Octokit.Reactive
|
||||
{
|
||||
IObservablePackageVersionsClient PackageVersions { get; }
|
||||
|
||||
/// <summary>
|
||||
/// List all packages for an organisations, readable by the current user
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-an-organization">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="org">Required: Organisation Name</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
IObservable<Package> GetAllForOrg(string org, PackageType packageType);
|
||||
|
||||
/// <summary>
|
||||
/// List all packages for an organisations, readable by the current user
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-an-organization">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="org">Required: Organisation Name</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Package> GetAllForOrg(string org, PackageType packageType, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// List all packages for an organisations, readable by the current user
|
||||
/// </summary>
|
||||
@@ -16,7 +37,19 @@ namespace Octokit.Reactive
|
||||
/// <param name="org">Required: Organisation Name</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
IObservable<Package> GetAllForOrg(string org, PackageType packageType, PackageVisibility? packageVisibility = null);
|
||||
IObservable<Package> GetAllForOrg(string org, PackageType packageType, PackageVisibility? packageVisibility);
|
||||
|
||||
/// <summary>
|
||||
/// List all packages for an organisations, readable by the current user
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-an-organization">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="org">Required: Organisation Name</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Package> GetAllForOrg(string org, PackageType packageType, PackageVisibility? packageVisibility, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Get a specific package for an Organization.
|
||||
@@ -51,6 +84,25 @@ namespace Octokit.Reactive
|
||||
/// <param name="packageName">Required: The name of the package</param>
|
||||
IObservable<Unit> RestoreForOrg(string org, PackageType packageType, string packageName);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
IObservable<Package> GetAllForActiveUser(PackageType packageType);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Package> GetAllForActiveUser(PackageType packageType, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
@@ -59,7 +111,18 @@ namespace Octokit.Reactive
|
||||
/// </remarks>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
IObservable<Package> GetAllForActiveUser(PackageType packageType, PackageVisibility? packageVisibility = null);
|
||||
IObservable<Package> GetAllForActiveUser(PackageType packageType, PackageVisibility? packageVisibility);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Package> GetAllForActiveUser(PackageType packageType, PackageVisibility? packageVisibility, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a specific package for a package owned by the authenticated user.
|
||||
@@ -91,6 +154,27 @@ namespace Octokit.Reactive
|
||||
/// <param name="packageName">Required: The name of the package</param>
|
||||
IObservable<Unit> RestoreForActiveUser(PackageType packageType, string packageName);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="username">Required: Username</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
IObservable<Package> GetAllForUser(string username, PackageType packageType);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="username">Required: Username</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Package> GetAllForUser(string username, PackageType packageType, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
@@ -100,7 +184,19 @@ namespace Octokit.Reactive
|
||||
/// <param name="username">Required: Username</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
IObservable<Package> GetAllForUser(string username, PackageType packageType, PackageVisibility? packageVisibility = null);
|
||||
IObservable<Package> GetAllForUser(string username, PackageType packageType, PackageVisibility? packageVisibility);
|
||||
|
||||
/// <summary>
|
||||
/// Lists packages owned by the authenticated user within the user's namespace
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See the <a href="https://docs.github.com/rest/packages#list-packages-for-the-authenticated-users-namespace">API documentation</a> for more details
|
||||
/// </remarks>
|
||||
/// <param name="username">Required: Username</param>
|
||||
/// <param name="packageType">Required: The type of package</param>
|
||||
/// <param name="packageVisibility">Optional: The visibility of the package</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
IObservable<Package> GetAllForUser(string username, PackageType packageType, PackageVisibility? packageVisibility, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a specific package metadata for a public package owned by a user.
|
||||
|
||||
Reference in New Issue
Block a user