Class CoursesResource.PostsResource.AddOnAttachmentsResource.ListRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.Classroom.v1
Assembly: Google.Apis.Classroom.v1.dll
Syntax
public class CoursesResource.PostsResource.AddOnAttachmentsResource.ListRequest : ClassroomBaseServiceRequest<ListAddOnAttachmentsResponse>, IClientServiceRequest<ListAddOnAttachmentsResponse>, IClientServiceRequest
Constructors
ListRequest(IClientService, string, string)
Constructs a new List request.
Declaration
public ListRequest(IClientService service, string courseId, string postId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | courseId | |
| string | postId |
Properties
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 whose attachments should
be enumerated. 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
PageSize
The maximum number of attachments to return. The service may return fewer than this value. If unspecified, at most 20 attachments will be returned. The maximum value is 20; values above 20 will be coerced to 20.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
PageToken
A page token, received from a previous ListAddOnAttachments call. Provide this to retrieve the
subsequent page. When paginating, all other parameters provided to ListAddOnAttachments must
match the call that provided the page token.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PostId
Optional. Identifier of the post under the course whose attachments to enumerate. 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 List parameter list.
Declaration
protected override void InitParameters()