Class MembersResource
- Namespace
- Google.Apis.Admin.Directory.directory_v1
- Assembly
- Google.Apis.Admin.Directory.directory_v1.dll
The "members" collection of methods.
public class MembersResource
- Inheritance
-
MembersResource
- Inherited Members
Constructors
MembersResource(IClientService)
Constructs a new resource.
public MembersResource(IClientService service)
Parameters
service
IClientService
Methods
Delete(string, string)
Removes a member from a group.
public virtual MembersResource.DeleteRequest Delete(string groupKey, string memberKey)
Parameters
groupKey
stringIdentifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
memberKey
stringIdentifies the group member in the API request. A group member can be a user or another group. The value can be the member's (group or user) primary email address, alias, or unique ID.
Returns
Get(string, string)
Retrieves a group member's properties.
public virtual MembersResource.GetRequest Get(string groupKey, string memberKey)
Parameters
groupKey
stringIdentifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
memberKey
stringIdentifies the group member in the API request. A group member can be a user or another group. The value can be the member's (group or user) primary email address, alias, or unique ID.
Returns
HasMember(string, string)
Checks whether the given user is a member of the group. Membership can be direct or nested.
public virtual MembersResource.HasMemberRequest HasMember(string groupKey, string memberKey)
Parameters
groupKey
stringIdentifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
memberKey
stringIdentifies the user member in the API request. The value can be the user's primary email address, alias, or unique ID.
Returns
Insert(Member, string)
Adds a user to the specified group.
public virtual MembersResource.InsertRequest Insert(Member body, string groupKey)
Parameters
body
MemberThe body of the request.
groupKey
stringIdentifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
Returns
List(string)
Retrieves a paginated list of all members in a group.
public virtual MembersResource.ListRequest List(string groupKey)
Parameters
groupKey
stringIdentifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
Returns
Patch(Member, string, string)
Updates the membership properties of a user in the specified group. This method supports patch semantics.
public virtual MembersResource.PatchRequest Patch(Member body, string groupKey, string memberKey)
Parameters
body
MemberThe body of the request.
groupKey
stringIdentifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
memberKey
stringIdentifies the group member in the API request. A group member can be a user or another group. The value can be the member's (group or user) primary email address, alias, or unique ID.
Returns
Update(Member, string, string)
Updates the membership of a user in the specified group.
public virtual MembersResource.UpdateRequest Update(Member body, string groupKey, string memberKey)
Parameters
body
MemberThe body of the request.
groupKey
stringIdentifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.
memberKey
stringIdentifies the group member in the API request. A group member can be a user or another group. The value can be the member's (group or user) primary email address, alias, or unique ID.