CoursesCourseWorkAddOnAttachments
class CoursesCourseWorkAddOnAttachments extends Resource (View source)
The "addOnAttachments" collection of methods.
Typical usage is:
$classroomService = new Google\Service\Classroom(...);
$addOnAttachments = $classroomService->courses_courseWork_addOnAttachments;
Methods
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. (addOnAttachments.create)
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.
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. (addOnAttachments.get)
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.
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.
Details
AddOnAttachment
create(string $courseId, string $itemId, AddOnAttachment $postBody, array $optParams = [])
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. (addOnAttachments.create)
ClassroomEmpty
delete(string $courseId, string $itemId, string $attachmentId, array $optParams = [])
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.
(addOnAttachments.delete)
AddOnAttachment
get(string $courseId, string $itemId, string $attachmentId, array $optParams = [])
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. (addOnAttachments.get)
ListAddOnAttachmentsResponse
listCoursesCourseWorkAddOnAttachments(string $courseId, string $itemId, array $optParams = [])
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.
(addOnAttachments.listCoursesCourseWorkAddOnAttachments)
AddOnAttachment
patch(string $courseId, string $itemId, string $attachmentId, AddOnAttachment $postBody, array $optParams = [])
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.
(addOnAttachments.patch)