Class UsersResource.LabelsResource
The "labels" collection of methods.
public class UsersResource.LabelsResource
- Inheritance
-
UsersResource.LabelsResource
- Inherited Members
Constructors
LabelsResource(IClientService)
Constructs a new resource.
public LabelsResource(IClientService service)
Parameters
service
IClientService
Methods
Create(Label, string)
Creates a new label.
public virtual UsersResource.LabelsResource.CreateRequest Create(Label body, string userId)
Parameters
body
LabelThe body of the request.
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.
Returns
Delete(string, string)
Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to.
public virtual UsersResource.LabelsResource.DeleteRequest Delete(string userId, string id)
Parameters
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.id
stringThe ID of the label to delete.
Returns
Get(string, string)
Gets the specified label.
public virtual UsersResource.LabelsResource.GetRequest Get(string userId, string id)
Parameters
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.id
stringThe ID of the label to retrieve.
Returns
List(string)
Lists all labels in the user's mailbox.
public virtual UsersResource.LabelsResource.ListRequest List(string userId)
Parameters
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.
Returns
Patch(Label, string, string)
Patch the specified label.
public virtual UsersResource.LabelsResource.PatchRequest Patch(Label body, string userId, string id)
Parameters
body
LabelThe body of the request.
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.id
stringThe ID of the label to update.
Returns
Update(Label, string, string)
Updates the specified label.
public virtual UsersResource.LabelsResource.UpdateRequest Update(Label body, string userId, string id)
Parameters
body
LabelThe body of the request.
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.id
stringThe ID of the label to update.