Class CoursesResource.AnnouncementsResource.AddOnAttachmentsResource.PatchRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.AnnouncementsResource.AddOnAttachmentsResource.PatchRequest : ClassroomBaseServiceRequest<AddOnAttachment>, IClientServiceRequest<AddOnAttachment>, IClientServiceRequest
Constructors
PatchRequest(IClientService, AddOnAttachment, string, string, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, AddOnAttachment body, string courseId, string itemId, string attachmentId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
AddOnAttachment | body | |
string | courseId | |
string | itemId | |
string | attachmentId |
Properties
AttachmentId
Required. Identifier of the attachment.
Declaration
[RequestParameter("attachmentId", RequestParameterType.Path)]
public virtual string AttachmentId { get; }
Property Value
Type | Description |
---|---|
string |
CourseId
Required. Identifier of the course.
Declaration
[RequestParameter("courseId", RequestParameterType.Path)]
public virtual string CourseId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ItemId
Identifier of the post under which the attachment is attached.
Declaration
[RequestParameter("itemId", RequestParameterType.Path)]
public virtual string ItemId { get; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
PostId
Required. Identifier of the post under which the attachment is attached.
Declaration
[RequestParameter("postId", RequestParameterType.Query)]
public virtual string PostId { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UpdateMask
Required. Mask that identifies which fields on the attachment to update. The update fails if
invalid fields are specified. If a field supports empty values, it can be cleared by specifying
it in the update mask and not in the AddOnAttachment
object. If a field that does not support
empty values is included in the update mask and not set in the AddOnAttachment
object, an
INVALID_ARGUMENT
error is returned. The following fields may be specified by teachers: *
title
* teacher_view_uri
* student_view_uri
* student_work_review_uri
* due_date
*
due_time
* max_points
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()