Table of Contents

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 string

Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.

memberKey string

Identifies 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

MembersResource.DeleteRequest

Get(string, string)

Retrieves a group member's properties.

public virtual MembersResource.GetRequest Get(string groupKey, string memberKey)

Parameters

groupKey string

Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.

memberKey string

Identifies 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

MembersResource.GetRequest

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 string

Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.

memberKey string

Identifies the user member in the API request. The value can be the user's primary email address, alias, or unique ID.

Returns

MembersResource.HasMemberRequest

Insert(Member, string)

Adds a user to the specified group.

public virtual MembersResource.InsertRequest Insert(Member body, string groupKey)

Parameters

body Member

The body of the request.

groupKey string

Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.

Returns

MembersResource.InsertRequest

List(string)

Retrieves a paginated list of all members in a group.

public virtual MembersResource.ListRequest List(string groupKey)

Parameters

groupKey string

Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.

Returns

MembersResource.ListRequest

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 Member

The body of the request.

groupKey string

Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.

memberKey string

Identifies 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

MembersResource.PatchRequest

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 Member

The body of the request.

groupKey string

Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID.

memberKey string

Identifies 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

MembersResource.UpdateRequest