gogol-classroom-0.5.0: Google Classroom SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Classroom.Courses.List

Contents

Description

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.

See: Google Classroom API Reference for classroom.courses.list.

Synopsis

REST Resource

type CoursesListResource = "v1" :> ("courses" :> (QueryParam "studentId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "teacherId" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParams "courseStates" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListCoursesResponse)))))))))))) Source #

A resource alias for classroom.courses.list method which the CoursesList request conforms to.

Creating a Request

coursesList :: CoursesList Source #

Creates a value of CoursesList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CoursesList Source #

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.

See: coursesList smart constructor.

Instances
Eq CoursesList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.List

Data CoursesList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.List

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CoursesList -> c CoursesList #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CoursesList #

toConstr :: CoursesList -> Constr #

dataTypeOf :: CoursesList -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CoursesList) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CoursesList) #

gmapT :: (forall b. Data b => b -> b) -> CoursesList -> CoursesList #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CoursesList -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CoursesList -> r #

gmapQ :: (forall d. Data d => d -> u) -> CoursesList -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CoursesList -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CoursesList -> m CoursesList #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CoursesList -> m CoursesList #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CoursesList -> m CoursesList #

Show CoursesList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.List

Generic CoursesList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.List

Associated Types

type Rep CoursesList :: Type -> Type #

GoogleRequest CoursesList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.List

Associated Types

type Rs CoursesList :: Type #

type Scopes CoursesList :: [Symbol] #

type Rep CoursesList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.List

type Scopes CoursesList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.List

type Scopes CoursesList = "https://www.googleapis.com/auth/classroom.courses" ': ("https://www.googleapis.com/auth/classroom.courses.readonly" ': ([] :: [Symbol]))
type Rs CoursesList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Courses.List

Request Lenses

clStudentId :: Lens' CoursesList (Maybe Text) Source #

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

clXgafv :: Lens' CoursesList (Maybe Xgafv) Source #

V1 error format.

clUploadProtocol :: Lens' CoursesList (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

clAccessToken :: Lens' CoursesList (Maybe Text) Source #

OAuth access token.

clUploadType :: Lens' CoursesList (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

clTeacherId :: Lens' CoursesList (Maybe Text) Source #

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

clPageToken :: Lens' CoursesList (Maybe Text) Source #

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.

clPageSize :: Lens' CoursesList (Maybe Int32) Source #

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.

clCourseStates :: Lens' CoursesList [Text] Source #

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