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