/// <summary>
        /// Gets a list of change sets associated with a repository. By default, this call returns the 15 most recent changesets.
        /// It also returns the count which is the total number of changesets on the repository.
        /// Private repositories require the caller to authenticate.
        /// </summary>
        /// <returns></returns>
        public ChangesetInfo ListChangeset()
        {
            var overrideUrl = _baserUrl + "changesets/";

            return(_sharpBucketV1.Get(new ChangesetInfo(), overrideUrl));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Get a list of all groups in an account.
 /// </summary>
 /// <returns></returns>
 public List <Group> ListGroups()
 {
     return(_sharpBucketV1.Get <List <Group> >(new List <Group>(), _baseUrl));
 }
Exemplo n.º 3
0
        /// <summary>
        /// Gets a list of the privileges granted on a repository.
        /// Only the repository owner, a team account administrator,
        /// or an account with administrative rights on the repository can make this call.
        /// If a repository has no individual users with privileges, the method returns an [] empty array.
        /// To get privileges for groups, use the group-privileges Endpoint.
        /// </summary>
        /// <param name="repository">Repository identifier.</param>
        /// <returns></returns>
        public List <RepositoryPrivileges> ListRepositoryPrivileges(string repository)
        {
            var overrideUrl = _baseUrl + repository + "/";

            return(_sharpBucketV1.Get(new List <RepositoryPrivileges>(), overrideUrl));
        }
Exemplo n.º 4
0
        /// <summary>
        /// Gets a count and the list of events associated with an account.
        /// This call requires authentication.
        /// </summary>
        /// <returns></returns>
        public EventInfo ListUserEvents()
        {
            var overrideUrl = _baseUrl + "events/";

            return(_sharpBucketV1.Get(new EventInfo(), overrideUrl));
        }
Exemplo n.º 5
0
 /// <summary>
 /// Gets the basic information associated with an account and a list of all of the repositories owned by the user.
 /// </summary>
 /// <returns></returns>
 public UserInfo GetInfo()
 {
     return(_sharpBucketV1.Get(new UserInfo(), _baseUrl));
 }
Exemplo n.º 6
0
 /// <summary>
 /// Gets the basic information associated with an account and a list of all of the repositories owned by the user.
 /// </summary>
 /// <returns></returns>
 public UserInfo GetInfo()
 {
     return(_sharpBucketV1.Get <UserInfo>(_baseUrl));
 }