Class CoursesResource.PostsResource.AddOnAttachmentsResource.GetRequest
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.
Inheritance
CoursesResource.PostsResource.AddOnAttachmentsResource.GetRequest
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.PostsResource.AddOnAttachmentsResource.GetRequest : ClassroomBaseServiceRequest<AddOnAttachment>, IClientServiceRequest<AddOnAttachment>, IClientServiceRequest
Constructors
GetRequest(IClientService, string, string, string)
Constructs a new Get request.
Declaration
public GetRequest(IClientService service, string courseId, string postId, string attachmentId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | courseId | |
| string | postId | |
| 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.Query)]
public virtual string ItemId { get; set; }
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.Path)]
public virtual string PostId { get; }
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 Get parameter list.
Declaration
protected override void InitParameters()