Class NotesResource.PermissionsResource
The "permissions" collection of methods.
Inherited Members
Namespace: Google.Apis.Keep.v1
Assembly: Google.Apis.Keep.v1.dll
Syntax
public class NotesResource.PermissionsResource
Constructors
PermissionsResource(IClientService)
Constructs a new resource.
Declaration
public PermissionsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
BatchCreate(BatchCreatePermissionsRequest, string)
Creates one or more permissions on the note. Only permissions with the WRITER
role may be created. If
adding any permission fails, then the entire request fails and no changes are made.
Declaration
public virtual NotesResource.PermissionsResource.BatchCreateRequest BatchCreate(BatchCreatePermissionsRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
BatchCreatePermissionsRequest | body | The body of the request. |
string | parent | The parent resource shared by all Permissions being created. Format: |
Returns
Type | Description |
---|---|
NotesResource.PermissionsResource.BatchCreateRequest |
BatchDelete(BatchDeletePermissionsRequest, string)
Deletes one or more permissions on the note. The specified entities will immediately lose access. A
permission with the OWNER
role can't be removed. If removing a permission fails, then the entire
request fails and no changes are made. Returns a 400 bad request error if a specified permission does
not exist on the note.
Declaration
public virtual NotesResource.PermissionsResource.BatchDeleteRequest BatchDelete(BatchDeletePermissionsRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
BatchDeletePermissionsRequest | body | The body of the request. |
string | parent | The parent resource shared by all permissions being deleted. Format: |
Returns
Type | Description |
---|---|
NotesResource.PermissionsResource.BatchDeleteRequest |