/// <summary>
 /// <para>Initializes a new instance of the <see cref="AlphaGroupUpdateArgs" />
 /// class.</para>
 /// </summary>
 /// <param name="group">Specify a group.</param>
 /// <param name="returnMembers">Whether to return the list of members in the group.
 /// Note that the default value will cause all the group members  to be returned in the
 /// response. This may take a long time for large groups.</param>
 /// <param name="newGroupName">Optional argument. Set group name to this if
 /// provided.</param>
 /// <param name="newGroupExternalId">Optional argument. New group external ID. If the
 /// argument is None, the group's external_id won't be updated. If the argument is
 /// empty string, the group's external id will be cleared.</param>
 /// <param name="newGroupManagementType">Set new group management type, if
 /// provided.</param>
 public AlphaGroupUpdateArgs(GroupSelector @group,
                             bool returnMembers        = true,
                             string newGroupName       = null,
                             string newGroupExternalId = null,
                             Dropbox.Api.TeamCommon.GroupManagementType newGroupManagementType = null)
     : base(@group, returnMembers, newGroupName, newGroupExternalId)
 {
     this.NewGroupManagementType = newGroupManagementType;
 }
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="GroupMembersSetAccessTypeArg" />
        /// class.</para>
        /// </summary>
        /// <param name="group">Specify a group.</param>
        /// <param name="user">Identity of a user that is a member of <paramref name="@group"
        /// />.</param>
        /// <param name="accessType">New group access type the user will have.</param>
        public GroupMembersSetAccessTypeArg(GroupSelector @group,
                                            UserSelectorArg user,
                                            GroupAccessType accessType)
            : base(@group, user)
        {
            if (accessType == null)
            {
                throw new sys.ArgumentNullException("accessType");
            }

            this.AccessType = accessType;
        }
Exemple #3
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="GroupUpdateArgs" />
        /// class.</para>
        /// </summary>
        /// <param name="group">Specify a group.</param>
        /// <param name="newGroupName">Optional argument. Set group name to this if
        /// provided.</param>
        /// <param name="newGroupExternalId">Optional argument. New group external ID. If the
        /// argument is None, the group's external_id won't be updated. If the argument is
        /// empty string, the group's external id will be cleared.</param>
        public GroupUpdateArgs(GroupSelector @group,
                               string newGroupName       = null,
                               string newGroupExternalId = null)
        {
            if (@group == null)
            {
                throw new sys.ArgumentNullException("@group");
            }

            this.Group              = @group;
            this.NewGroupName       = newGroupName;
            this.NewGroupExternalId = newGroupExternalId;
        }
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="GroupUpdateArgs" />
        /// class.</para>
        /// </summary>
        /// <param name="group">Specify a group.</param>
        /// <param name="returnMembers">Whether to return the list of members in the group.
        /// Note that the default value will cause all the group members  to be returned in the
        /// response. This may take a long time for large groups.</param>
        /// <param name="newGroupName">Optional argument. Set group name to this if
        /// provided.</param>
        /// <param name="newGroupExternalId">Optional argument. New group external ID. If the
        /// argument is None, the group's external_id won't be updated. If the argument is
        /// empty string, the group's external id will be cleared.</param>
        public GroupUpdateArgs(GroupSelector @group,
                               bool returnMembers        = true,
                               string newGroupName       = null,
                               string newGroupExternalId = null)
            : base(returnMembers)
        {
            if (@group == null)
            {
                throw new sys.ArgumentNullException("@group");
            }

            this.Group              = @group;
            this.NewGroupName       = newGroupName;
            this.NewGroupExternalId = newGroupExternalId;
        }
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="GroupMembersSelector" />
        /// class.</para>
        /// </summary>
        /// <param name="group">Specify a group.</param>
        /// <param name="users">A list of users that are members of <paramref name="group"
        /// />.</param>
        public GroupMembersSelector(GroupSelector @group,
                                    UsersSelectorArg users)
        {
            if (@group == null)
            {
                throw new sys.ArgumentNullException("@group");
            }

            if (users == null)
            {
                throw new sys.ArgumentNullException("users");
            }

            this.Group = @group;
            this.Users = users;
        }
Exemple #6
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="GroupUpdateArgs" />
        /// class.</para>
        /// </summary>
        /// <param name="group">Specify a group.</param>
        /// <param name="returnMembers">Whether to return the list of members in the group.
        /// Note that the default value will cause all the group members  to be returned in the
        /// response. This may take a long time for large groups.</param>
        /// <param name="newGroupName">Optional argument. Set group name to this if
        /// provided.</param>
        /// <param name="newGroupExternalId">Optional argument. New group external ID. If the
        /// argument is None, the group's external_id won't be updated. If the argument is
        /// empty string, the group's external id will be cleared.</param>
        /// <param name="newGroupManagementType">Set new group management type, if
        /// provided.</param>
        public GroupUpdateArgs(GroupSelector @group,
                               bool returnMembers        = true,
                               string newGroupName       = null,
                               string newGroupExternalId = null,
                               global::Dropbox.Api.TeamCommon.GroupManagementType newGroupManagementType = null)
            : base(returnMembers)
        {
            if (@group == null)
            {
                throw new sys.ArgumentNullException("@group");
            }

            this.Group                  = @group;
            this.NewGroupName           = newGroupName;
            this.NewGroupExternalId     = newGroupExternalId;
            this.NewGroupManagementType = newGroupManagementType;
        }
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="GroupMembersRemoveArg" />
        /// class.</para>
        /// </summary>
        /// <param name="group">The group</param>
        /// <param name="users">The users</param>
        public GroupMembersRemoveArg(GroupSelector @group,
                                     col.IEnumerable <UserSelectorArg> users)
        {
            if (@group == null)
            {
                throw new sys.ArgumentNullException("@group");
            }

            var usersList = enc.Util.ToList(users);

            if (users == null)
            {
                throw new sys.ArgumentNullException("users");
            }

            this.Group = @group;
            this.Users = usersList;
        }
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="GroupMembersAddArg" />
        /// class.</para>
        /// </summary>
        /// <param name="group">Group to which users will be added.</param>
        /// <param name="members">List of users to be added to the group.</param>
        public GroupMembersAddArg(GroupSelector @group,
                                  col.IEnumerable <MemberAccess> members)
        {
            if (@group == null)
            {
                throw new sys.ArgumentNullException("@group");
            }

            var membersList = enc.Util.ToList(members);

            if (members == null)
            {
                throw new sys.ArgumentNullException("members");
            }

            this.Group   = @group;
            this.Members = membersList;
        }
Exemple #9
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="GroupsMembersListArg" />
        /// class.</para>
        /// </summary>
        /// <param name="group">The group whose members are to be listed.</param>
        /// <param name="limit">Number of results to return per call.</param>
        public GroupsMembersListArg(GroupSelector @group,
                                    uint limit = 1000)
        {
            if (@group == null)
            {
                throw new sys.ArgumentNullException("@group");
            }

            if (limit < 1U)
            {
                throw new sys.ArgumentOutOfRangeException("limit", "Value should be greater or equal than 1");
            }
            if (limit > 1000U)
            {
                throw new sys.ArgumentOutOfRangeException("limit", "Value should be less of equal than 1000");
            }

            this.Group = @group;
            this.Limit = limit;
        }