Show / Hide Table of Contents

Class CoursesResource.ListRequest

Returns a list of courses that the requesting user is permitted to view, restricted to those that match the request. Returned courses are ordered by creation time, with the most recently created coming first. This method returns the following error codes: * PERMISSION_DENIED for access errors. * INVALID_ARGUMENT if the query argument is malformed. * NOT_FOUND if any users specified in the query arguments do not exist.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<ListCoursesResponse>
ClassroomBaseServiceRequest<ListCoursesResponse>
CoursesResource.ListRequest
Implements
IClientServiceRequest<ListCoursesResponse>
IClientServiceRequest
Inherited Members
ClassroomBaseServiceRequest<ListCoursesResponse>.Xgafv
ClassroomBaseServiceRequest<ListCoursesResponse>.AccessToken
ClassroomBaseServiceRequest<ListCoursesResponse>.Alt
ClassroomBaseServiceRequest<ListCoursesResponse>.Callback
ClassroomBaseServiceRequest<ListCoursesResponse>.Fields
ClassroomBaseServiceRequest<ListCoursesResponse>.Key
ClassroomBaseServiceRequest<ListCoursesResponse>.OauthToken
ClassroomBaseServiceRequest<ListCoursesResponse>.PrettyPrint
ClassroomBaseServiceRequest<ListCoursesResponse>.QuotaUser
ClassroomBaseServiceRequest<ListCoursesResponse>.UploadType
ClassroomBaseServiceRequest<ListCoursesResponse>.UploadProtocol
ClientServiceRequest<ListCoursesResponse>.Execute()
ClientServiceRequest<ListCoursesResponse>.ExecuteAsStream()
ClientServiceRequest<ListCoursesResponse>.ExecuteAsync()
ClientServiceRequest<ListCoursesResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<ListCoursesResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<ListCoursesResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<ListCoursesResponse>.CreateRequest(bool?)
ClientServiceRequest<ListCoursesResponse>.GenerateRequestUri()
ClientServiceRequest<ListCoursesResponse>.GetBody()
ClientServiceRequest<ListCoursesResponse>.GetDefaultETagAction(string)
ClientServiceRequest<ListCoursesResponse>.ETagAction
ClientServiceRequest<ListCoursesResponse>.ModifyRequest
ClientServiceRequest<ListCoursesResponse>.ValidateParameters
ClientServiceRequest<ListCoursesResponse>.ApiVersion
ClientServiceRequest<ListCoursesResponse>.RequestParameters
ClientServiceRequest<ListCoursesResponse>.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.ListRequest : ClassroomBaseServiceRequest<ListCoursesResponse>, IClientServiceRequest<ListCoursesResponse>, IClientServiceRequest

Constructors

ListRequest(IClientService)

Constructs a new List request.

Declaration
public ListRequest(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

CourseStates

Restricts returned courses to those in one of the specified states The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED.

Declaration
[RequestParameter("courseStates", RequestParameterType.Query)]
public virtual CoursesResource.ListRequest.CourseStatesEnum? CourseStates { get; set; }
Property Value
Type Description
CoursesResource.ListRequest.CourseStatesEnum?
Remarks

Use this property to set a single value for the parameter, or CourseStatesList to set multiple values. Do not set both properties.

CourseStatesList

Restricts returned courses to those in one of the specified states The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED.

Declaration
[RequestParameter("courseStates", RequestParameterType.Query)]
public virtual Repeatable<CoursesResource.ListRequest.CourseStatesEnum> CourseStatesList { get; set; }
Property Value
Type Description
Repeatable<CoursesResource.ListRequest.CourseStatesEnum>
Remarks

Use this property to set one or more values for the parameter. Do not set both this property and CourseStates.

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ListCoursesResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ListCoursesResponse>.MethodName

PageSize

Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results.

Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type Description
int?

PageToken

nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token.

Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ListCoursesResponse>.RestPath

StudentId

Restricts returned courses to those having a student with the specified identifier. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal "me", indicating the requesting user

Declaration
[RequestParameter("studentId", RequestParameterType.Query)]
public virtual string StudentId { get; set; }
Property Value
Type Description
string

TeacherId

Restricts returned courses to those having a teacher with the specified identifier. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal "me", indicating the requesting user

Declaration
[RequestParameter("teacherId", RequestParameterType.Query)]
public virtual string TeacherId { get; set; }
Property Value
Type Description
string

Methods

InitParameters()

Initializes List parameter list.

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

Implements

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