using System;
using System.Reactive;
namespace Octokit.Reactive
{
public interface IObservableOrganizationMembersClient
{
///
///
/// List all users who are members of an organization. A member is a user that
/// belongs to at least 1 team in the organization.
///
///
/// If the authenticated user is also an owner of this organization then both
/// concealed and public member will be returned.
///
///
/// If the requester is not an owner of the organization the query will be redirected
/// to the public members list.
///
///
///
/// See the API documentation
/// for more information.
///
/// The login for the organization
///
IObservable GetAll(string org);
///
///
/// List all users who are members of an organization. A member is a user that
/// belongs to at least 1 team in the organization.
///
///
/// If the authenticated user is also an owner of this organization then both
/// concealed and public member will be returned.
///
///
/// If the requester is not an owner of the organization the query will be redirected
/// to the public members list.
///
///
///
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// Options for changing the API response
///
IObservable GetAll(string org, ApiOptions options);
///
///
/// List all users who are members of an organization. A member is a user that
/// belongs to at least 1 team in the organization.
///
///
/// If the authenticated user is also an owner of this organization then both
/// concealed and public member will be returned.
///
///
/// If the requester is not an owner of the organization the query will be redirected
/// to the public members list.
///
///
///
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// The members filter,
///
IObservable GetAll(string org, OrganizationMembersFilter filter);
///
///
/// List all users who are members of an organization. A member is a user that
/// belongs to at least 1 team in the organization.
///
///
/// If the authenticated user is also an owner of this organization then both
/// concealed and public member will be returned.
///
///
/// If the requester is not an owner of the organization the query will be redirected
/// to the public members list.
///
///
///
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// The members filter,
/// Options for changing the API response
///
IObservable GetAll(string org, OrganizationMembersFilter filter, ApiOptions options);
///
///
/// List all users who are members of an organization. A member is a user that
/// belongs to at least 1 team in the organization.
///
///
/// If the authenticated user is also an owner of this organization then both
/// concealed and public member will be returned.
///
///
/// If the requester is not an owner of the organization the query will be redirected
/// to the public members list.
///
///
///
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// The role filter to use when getting the users,
///
IObservable GetAll(string org, OrganizationMembersRole role);
///
///
/// List all users who are members of an organization. A member is a user that
/// belongs to at least 1 team in the organization.
///
///
/// If the authenticated user is also an owner of this organization then both
/// concealed and public member will be returned.
///
///
/// If the requester is not an owner of the organization the query will be redirected
/// to the public members list.
///
///
///
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// The role filter to use when getting the users,
/// Options for changing the API response
///
IObservable GetAll(string org, OrganizationMembersRole role, ApiOptions options);
///
///
/// List all users who are members of an organization. A member is a user that
/// belongs to at least 1 team in the organization.
///
///
/// If the authenticated user is also an owner of this organization then both
/// concealed and public member will be returned.
///
///
/// If the requester is not an owner of the organization the query will be redirected
/// to the public members list.
///
///
///
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// The members filter,
/// The role filter to use when getting the users,
///
IObservable GetAll(string org, OrganizationMembersFilter filter, OrganizationMembersRole role);
///
///
/// List all users who are members of an organization. A member is a user that
/// belongs to at least 1 team in the organization.
///
///
/// If the authenticated user is also an owner of this organization then both
/// concealed and public member will be returned.
///
///
/// If the requester is not an owner of the organization the query will be redirected
/// to the public members list.
///
///
///
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// The members filter,
/// The role filter to use when getting the users,
/// Options for changing the API response
///
IObservable GetAll(string org, OrganizationMembersFilter filter, OrganizationMembersRole role, ApiOptions options);
///
/// List all users who have publicized their membership of the organization.
///
/// http://developer.github.com/v3/orgs/members/#public-members-list
/// The login for the organization
///
IObservable GetAllPublic(string org);
///
/// List all users who have publicized their membership of the organization.
///
/// http://developer.github.com/v3/orgs/members/#public-members-list
/// The login for the organization
/// Options for changing the API response
///
IObservable GetAllPublic(string org, ApiOptions options);
///
/// Check if a user is, publicly or privately, a member of the organization.
///
///
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// The login for the user
///
IObservable CheckMember(string org, string user);
///
/// Check is a user is publicly a member of the organization.
///
///
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// The login for the user
///
IObservable CheckMemberPublic(string org, string user);
///
/// Removes a user from the organization, this will also remove them from all teams
/// within the organization and they will no longer have any access to the organization's
/// repositories.
///
///
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// The login for the user
///
IObservable Delete(string org, string user);
///
/// Make the authenticated user's organization membership public.
///
///
/// This method requires authentication.
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// The login for the user
///
IObservable Publicize(string org, string user);
///
/// Make the authenticated user's organization membership private.
///
///
/// This method requires authentication.
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// The login for the user
///
IObservable Conceal(string org, string user);
///
/// Get a user's membership with an organization.
///
///
/// This method requires authentication.
/// The authenticated user must be an organization member.
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// The login for the user
///
IObservable GetOrganizationMembership(string org, string user);
///
/// Add a user to the organization or update the user's role withing the organization.
///
///
/// This method requires authentication.
/// The authenticated user must be an organization owner.
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// The login for the user
/// An instance describing the
/// changes to make to the user's organization membership
///
IObservable AddOrUpdateOrganizationMembership(string org, string user, OrganizationMembershipUpdate addOrUpdateRequest);
///
/// Create an organization invitation for a user
///
///
/// This method requires authentication.
/// The authenticated user must be an organization owner.
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// An instance containing the
/// details of the organization invitation
///
IObservable CreateOrganizationInvitation(string org, OrganizationInvitationRequest invitationRequest);
///
/// Remove a user's membership with an organization.
///
///
/// This method requires authentication.
/// The authenticated user must be an organization owner.
/// See the API documentation
/// for more information.
///
/// The login for the organization
/// The login for the user
///
IObservable RemoveOrganizationMembership(string org, string user);
///
/// List all pending invitations for the organization.
///
///
/// See the API Documentation
/// for more information.
///
/// The login for the organization
///
IObservable GetAllPendingInvitations(string org);
///
/// List all pending invitations for the organization.
///
///
/// See the API Documentation
/// for more information.
///
/// The login for the organization
/// Options to change API behaviour
///
IObservable GetAllPendingInvitations(string org, ApiOptions options);
///
/// List failed organization invitations.
///
///
/// See the API Documentation
/// for more information.
///
/// The login for the organization
///
IObservable GetAllFailedInvitations(string org);
///
/// List failed organization invitations.
///
///
/// See the API Documentation
/// for more information.
///
/// The login for the organization
/// Options to change API behaviour
///
IObservable GetAllFailedInvitations(string org, ApiOptions options);
///
/// Cancel an organization invitation. In order to cancel an organization invitation, the authenticated user must be an organization owner.
///
///
/// See the API Documentation
/// for more information.
///
/// The login for the organization
/// The unique identifier of the invitation
///
IObservable CancelOrganizationInvitation(string org, long invitationId);
///
/// Returns all s for the current user.
///
///
/// See the API Documentation
/// for more information.
///
/// Thrown when a general API error occurs.
///
IObservable GetAllOrganizationMembershipsForCurrent();
///
/// Returns all s for the current user.
///
///
/// See the API Documentation
/// for more information.
///
/// Thrown when a general API error occurs.
/// Options to change API behaviour
///
IObservable GetAllOrganizationMembershipsForCurrent(ApiOptions options);
}
}