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
Inherited Members
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
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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
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()