Class GroupsResource
The "groups" collection of methods.
Inherited Members
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class GroupsResource
Constructors
GroupsResource(IClientService)
Constructs a new resource.
Declaration
public GroupsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Aliases
Gets the Aliases resource.
Declaration
public virtual GroupsResource.AliasesResource Aliases { get; }
Property Value
Type | Description |
---|---|
GroupsResource.AliasesResource |
Methods
Delete(string)
Deletes a group.
Declaration
public virtual GroupsResource.DeleteRequest Delete(string groupKey)
Parameters
Type | Name | Description |
---|---|---|
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 |
---|---|
GroupsResource.DeleteRequest |
Get(string)
Retrieves a group's properties.
Declaration
public virtual GroupsResource.GetRequest Get(string groupKey)
Parameters
Type | Name | Description |
---|---|---|
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 |
---|---|
GroupsResource.GetRequest |
Insert(Group)
Creates a group.
Declaration
public virtual GroupsResource.InsertRequest Insert(Group body)
Parameters
Type | Name | Description |
---|---|---|
Group | body | The body of the request. |
Returns
Type | Description |
---|---|
GroupsResource.InsertRequest |
List()
Retrieves all groups of a domain or of a user given a userKey (paginated).
Declaration
public virtual GroupsResource.ListRequest List()
Returns
Type | Description |
---|---|
GroupsResource.ListRequest |
Patch(Group, string)
Updates a group's properties. This method supports patch semantics.
Declaration
public virtual GroupsResource.PatchRequest Patch(Group body, string groupKey)
Parameters
Type | Name | Description |
---|---|---|
Group | body | The body of the request. |
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 |
---|---|
GroupsResource.PatchRequest |
Update(Group, string)
Updates a group's properties.
Declaration
public virtual GroupsResource.UpdateRequest Update(Group body, string groupKey)
Parameters
Type | Name | Description |
---|---|---|
Group | body | The body of the request. |
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 |
---|---|
GroupsResource.UpdateRequest |