Show / Hide Table of Contents

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
object
ClientServiceRequest
ClientServiceRequest<ListAddOnAttachmentsResponse>
ClassroomBaseServiceRequest<ListAddOnAttachmentsResponse>
CoursesResource.PostsResource.AddOnAttachmentsResource.ListRequest
Implements
IClientServiceRequest<ListAddOnAttachmentsResponse>
IClientServiceRequest
Inherited Members
ClassroomBaseServiceRequest<ListAddOnAttachmentsResponse>.Xgafv
ClassroomBaseServiceRequest<ListAddOnAttachmentsResponse>.AccessToken
ClassroomBaseServiceRequest<ListAddOnAttachmentsResponse>.Alt
ClassroomBaseServiceRequest<ListAddOnAttachmentsResponse>.Callback
ClassroomBaseServiceRequest<ListAddOnAttachmentsResponse>.Fields
ClassroomBaseServiceRequest<ListAddOnAttachmentsResponse>.Key
ClassroomBaseServiceRequest<ListAddOnAttachmentsResponse>.OauthToken
ClassroomBaseServiceRequest<ListAddOnAttachmentsResponse>.PrettyPrint
ClassroomBaseServiceRequest<ListAddOnAttachmentsResponse>.QuotaUser
ClassroomBaseServiceRequest<ListAddOnAttachmentsResponse>.UploadType
ClassroomBaseServiceRequest<ListAddOnAttachmentsResponse>.UploadProtocol
ClientServiceRequest<ListAddOnAttachmentsResponse>.Execute()
ClientServiceRequest<ListAddOnAttachmentsResponse>.ExecuteAsStream()
ClientServiceRequest<ListAddOnAttachmentsResponse>.ExecuteAsync()
ClientServiceRequest<ListAddOnAttachmentsResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<ListAddOnAttachmentsResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<ListAddOnAttachmentsResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<ListAddOnAttachmentsResponse>.CreateRequest(bool?)
ClientServiceRequest<ListAddOnAttachmentsResponse>.GenerateRequestUri()
ClientServiceRequest<ListAddOnAttachmentsResponse>.GetBody()
ClientServiceRequest<ListAddOnAttachmentsResponse>.GetDefaultETagAction(string)
ClientServiceRequest<ListAddOnAttachmentsResponse>.ETagAction
ClientServiceRequest<ListAddOnAttachmentsResponse>.ModifyRequest
ClientServiceRequest<ListAddOnAttachmentsResponse>.ValidateParameters
ClientServiceRequest<ListAddOnAttachmentsResponse>.ApiVersion
ClientServiceRequest<ListAddOnAttachmentsResponse>.RequestParameters
ClientServiceRequest<ListAddOnAttachmentsResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
ClientServiceRequest<ListAddOnAttachmentsResponse>.HttpMethod

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
ClientServiceRequest<ListAddOnAttachmentsResponse>.MethodName

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
ClientServiceRequest<ListAddOnAttachmentsResponse>.RestPath

Methods

InitParameters()

Initializes List parameter list.

Declaration
protected override void InitParameters()
Overrides
ClassroomBaseServiceRequest<ListAddOnAttachmentsResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX