Class CoursesResource.CourseWorkResource.AddOnAttachmentsResource.DeleteRequest
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_ARGUMENTif the request is malformed. *NOT_FOUNDif one of the identified resources does not exist.
Inheritance
CoursesResource.CourseWorkResource.AddOnAttachmentsResource.DeleteRequest
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.CourseWorkResource.AddOnAttachmentsResource.DeleteRequest : ClassroomBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
DeleteRequest(IClientService, string, string, string)
Constructs a new Delete request.
Declaration
public DeleteRequest(IClientService service, string courseId, string itemId, string attachmentId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| 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 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.
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
Optional. Deprecated, use item_id instead.
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
Methods
InitParameters()
Initializes Delete parameter list.
Declaration
protected override void InitParameters()