Class CoursesResource.PostsResource.AddOnAttachmentsResource
The "addOnAttachments" collection of methods.
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.PostsResource.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.PostsResource.AddOnAttachmentsResource.StudentSubmissionsResource StudentSubmissions { get; }
Property Value
Type | Description |
---|---|
CoursesResource.PostsResource.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.PostsResource.AddOnAttachmentsResource.CreateRequest Create(AddOnAttachment body, string courseId, string postId)
Parameters
Type | Name | Description |
---|---|---|
AddOnAttachment | body | The body of the request. |
string | courseId | Required. Identifier of the course. |
string | postId | Optional. Deprecated, use |
Returns
Type | Description |
---|---|
CoursesResource.PostsResource.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.PostsResource.AddOnAttachmentsResource.DeleteRequest Delete(string courseId, string postId, string attachmentId)
Parameters
Type | Name | Description |
---|---|---|
string | courseId | Required. Identifier of the course. |
string | postId | Optional. Deprecated, use |
string | attachmentId | Required. Identifier of the attachment. |
Returns
Type | Description |
---|---|
CoursesResource.PostsResource.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.PostsResource.AddOnAttachmentsResource.GetRequest Get(string courseId, string postId, string attachmentId)
Parameters
Type | Name | Description |
---|---|---|
string | courseId | Required. Identifier of the course. |
string | postId | Optional. Deprecated, use |
string | attachmentId | Required. Identifier of the attachment. |
Returns
Type | Description |
---|---|
CoursesResource.PostsResource.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.PostsResource.AddOnAttachmentsResource.ListRequest List(string courseId, string postId)
Parameters
Type | Name | Description |
---|---|---|
string | courseId | Required. Identifier of the course. |
string | postId | Optional. Identifier of the post under the course whose attachments to enumerate. Deprecated, use
|
Returns
Type | Description |
---|---|
CoursesResource.PostsResource.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.PostsResource.AddOnAttachmentsResource.PatchRequest Patch(AddOnAttachment body, string courseId, string postId, string attachmentId)
Parameters
Type | Name | Description |
---|---|---|
AddOnAttachment | body | The body of the request. |
string | courseId | Required. Identifier of the course. |
string | postId | Required. Identifier of the post under which the attachment is attached. |
string | attachmentId | Required. Identifier of the attachment. |
Returns
Type | Description |
---|---|
CoursesResource.PostsResource.AddOnAttachmentsResource.PatchRequest |