gogol-classroom-0.1.1: 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.UserProFiles.Guardians.Get

Contents

Description

Returns a specific guardian. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to view guardian information for the student identified by the `student_id`, if guardians are not enabled for the domain in question, or for other access errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot be recognized (it is not an email address, nor a `student_id` from the API, nor the literal string `me`). * `NOT_FOUND` if Classroom cannot find any record of the given student or `guardian_id`, or if the guardian has been disabled.

See: Google Classroom API Reference for classroom.userProfiles.guardians.get.

Synopsis

REST Resource

type UserProFilesGuardiansGetResource = "v1" :> ("userProfiles" :> (Capture "studentId" Text :> ("guardians" :> (Capture "guardianId" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Guardian)))))))))))) Source #

A resource alias for classroom.userProfiles.guardians.get method which the UserProFilesGuardiansGet request conforms to.

Creating a Request

data UserProFilesGuardiansGet Source #

Returns a specific guardian. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to view guardian information for the student identified by the `student_id`, if guardians are not enabled for the domain in question, or for other access errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot be recognized (it is not an email address, nor a `student_id` from the API, nor the literal string `me`). * `NOT_FOUND` if Classroom cannot find any record of the given student or `guardian_id`, or if the guardian has been disabled.

See: userProFilesGuardiansGet smart constructor.

Instances

Eq UserProFilesGuardiansGet Source # 
Data UserProFilesGuardiansGet Source # 

Methods

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

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

toConstr :: UserProFilesGuardiansGet -> Constr #

dataTypeOf :: UserProFilesGuardiansGet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UserProFilesGuardiansGet Source # 
Generic UserProFilesGuardiansGet Source # 
GoogleRequest UserProFilesGuardiansGet Source # 
type Rep UserProFilesGuardiansGet Source # 
type Rep UserProFilesGuardiansGet = D1 (MetaData "UserProFilesGuardiansGet" "Network.Google.Resource.Classroom.UserProFiles.Guardians.Get" "gogol-classroom-0.1.1-uUyuMhDFcTJtl7PtU5n8Y" False) (C1 (MetaCons "UserProFilesGuardiansGet'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_upfggStudentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_upfggXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_upfggUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_upfggPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_upfggAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_upfggUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_upfggGuardianId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_upfggBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_upfggCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))))
type Scopes UserProFilesGuardiansGet Source # 
type Rs UserProFilesGuardiansGet Source # 

Request Lenses

upfggStudentId :: Lens' UserProFilesGuardiansGet Text Source #

The student whose guardian is being requested. One of the following: * the numeric identifier for the user * the email address of the user * the string literal `"me"`, indicating the requesting user

upfggUploadProtocol :: Lens' UserProFilesGuardiansGet (Maybe Text) Source #

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

upfggUploadType :: Lens' UserProFilesGuardiansGet (Maybe Text) Source #

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

upfggGuardianId :: Lens' UserProFilesGuardiansGet Text Source #

The `id` field from a `Guardian`.