Show / Hide Table of Contents

Class CoursesResource.CourseWorkResource.AddOnAttachmentsResource

The "addOnAttachments" collection of methods.

Inheritance
object
CoursesResource.CourseWorkResource.AddOnAttachmentsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.CourseWorkResource.AddOnAttachmentsResource

Constructors

AddOnAttachmentsResource(IClientService)

Constructs a new resource.

Declaration
public AddOnAttachmentsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

StudentSubmissions

Gets the StudentSubmissions resource.

Declaration
public virtual CoursesResource.CourseWorkResource.AddOnAttachmentsResource.StudentSubmissionsResource StudentSubmissions { get; }
Property Value
Type Description
CoursesResource.CourseWorkResource.AddOnAttachmentsResource.StudentSubmissionsResource

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.CourseWorkResource.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 Announcement, CourseWork, or CourseWorkMaterial under which to create the attachment. This field is required, but is not marked as such while we are migrating from post_id.

Returns
Type Description
CoursesResource.CourseWorkResource.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.CourseWorkResource.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 Announcement, CourseWork, or CourseWorkMaterial under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id.

string attachmentId

Required. Identifier of the attachment.

Returns
Type Description
CoursesResource.CourseWorkResource.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.CourseWorkResource.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 Announcement, CourseWork, or CourseWorkMaterial under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id.

string attachmentId

Required. Identifier of the attachment.

Returns
Type Description
CoursesResource.CourseWorkResource.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.CourseWorkResource.AddOnAttachmentsResource.ListRequest List(string courseId, string itemId)
Parameters
Type Name Description
string courseId

Required. Identifier of the course.

string itemId

Identifier of the Announcement, CourseWork, or CourseWorkMaterial whose attachments should be enumerated. This field is required, but is not marked as such while we are migrating from post_id.

Returns
Type Description
CoursesResource.CourseWorkResource.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.CourseWorkResource.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.CourseWorkResource.AddOnAttachmentsResource.PatchRequest
In this article
Back to top Generated by DocFX