Class CoursesResource.AnnouncementsResource.AddOnAttachmentsResource
The "addOnAttachments" collection of methods.
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.AnnouncementsResource.AddOnAttachmentsResource
Constructors
AddOnAttachmentsResource(IClientService)
Constructs a new resource.
Declaration
public AddOnAttachmentsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(AddOnAttachment, string, string)
Creates an add-on attachment under a post. Requires the add-on to have permission to create new
attachments on the post. This method returns the following error codes: * PERMISSION_DENIED
for
access errors. * INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if one of the
identified resources does not exist.
Declaration
public virtual CoursesResource.AnnouncementsResource.AddOnAttachmentsResource.CreateRequest Create(AddOnAttachment body, string courseId, string itemId)
Parameters
Type | Name | Description |
---|---|---|
AddOnAttachment | body | The body of the request. |
string | courseId | Required. Identifier of the course. |
string | itemId | Identifier of the |
Returns
Type | Description |
---|---|
CoursesResource.AnnouncementsResource.AddOnAttachmentsResource.CreateRequest |
Delete(string, string, string)
Deletes an add-on attachment. Requires the add-on to have been the original creator of the
attachment. This method returns the following error codes: * PERMISSION_DENIED
for access errors.
INVALID_ARGUMENT
if the request is malformed. *NOT_FOUND
if one of the identified resources does not exist.
Declaration
public virtual CoursesResource.AnnouncementsResource.AddOnAttachmentsResource.DeleteRequest Delete(string courseId, string itemId, string attachmentId)
Parameters
Type | Name | Description |
---|---|---|
string | courseId | Required. Identifier of the course. |
string | itemId | Identifier of the |
string | attachmentId | Required. Identifier of the attachment. |
Returns
Type | Description |
---|---|
CoursesResource.AnnouncementsResource.AddOnAttachmentsResource.DeleteRequest |
Get(string, string, string)
Returns an add-on attachment. Requires the add-on requesting the attachment to be the original
creator of the attachment. This method returns the following error codes: * PERMISSION_DENIED
for
access errors. * INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if one of the
identified resources does not exist.
Declaration
public virtual CoursesResource.AnnouncementsResource.AddOnAttachmentsResource.GetRequest Get(string courseId, string itemId, string attachmentId)
Parameters
Type | Name | Description |
---|---|---|
string | courseId | Required. Identifier of the course. |
string | itemId | Identifier of the |
string | attachmentId | Required. Identifier of the attachment. |
Returns
Type | Description |
---|---|
CoursesResource.AnnouncementsResource.AddOnAttachmentsResource.GetRequest |
List(string, string)
Returns all attachments created by an add-on under the post. Requires the add-on to have active
attachments on the post or have permission to create new attachments on the post. This method
returns the following error codes: * PERMISSION_DENIED
for access errors. * INVALID_ARGUMENT
if
the request is malformed. * NOT_FOUND
if one of the identified resources does not exist.
Declaration
public virtual CoursesResource.AnnouncementsResource.AddOnAttachmentsResource.ListRequest List(string courseId, string itemId)
Parameters
Type | Name | Description |
---|---|---|
string | courseId | Required. Identifier of the course. |
string | itemId | Identifier of the |
Returns
Type | Description |
---|---|
CoursesResource.AnnouncementsResource.AddOnAttachmentsResource.ListRequest |
Patch(AddOnAttachment, string, string, string)
Updates an add-on attachment. Requires the add-on to have been the original creator of the
attachment. This method returns the following error codes: * PERMISSION_DENIED
for access errors.
INVALID_ARGUMENT
if the request is malformed. *NOT_FOUND
if one of the identified resources does not exist.
Declaration
public virtual CoursesResource.AnnouncementsResource.AddOnAttachmentsResource.PatchRequest Patch(AddOnAttachment body, string courseId, string itemId, string attachmentId)
Parameters
Type | Name | Description |
---|---|---|
AddOnAttachment | body | The body of the request. |
string | courseId | Required. Identifier of the course. |
string | itemId | Identifier of the post under which the attachment is attached. |
string | attachmentId | Required. Identifier of the attachment. |
Returns
Type | Description |
---|---|
CoursesResource.AnnouncementsResource.AddOnAttachmentsResource.PatchRequest |