Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Returns a specific guardian invitation. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to view guardian invitations 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 `invitation_id`. May also be returned if the student exists, but the requesting user does not have access to see that student.
See: Google Classroom API Reference for classroom.userProfiles.guardianInvitations.get
.
Synopsis
- type UserProFilesGuardianInvitationsGetResource = "v1" :> ("userProfiles" :> (Capture "studentId" Text :> ("guardianInvitations" :> (Capture "invitationId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GuardianInvitation))))))))))
- userProFilesGuardianInvitationsGet :: Text -> Text -> UserProFilesGuardianInvitationsGet
- data UserProFilesGuardianInvitationsGet
- upfgigStudentId :: Lens' UserProFilesGuardianInvitationsGet Text
- upfgigXgafv :: Lens' UserProFilesGuardianInvitationsGet (Maybe Xgafv)
- upfgigUploadProtocol :: Lens' UserProFilesGuardianInvitationsGet (Maybe Text)
- upfgigAccessToken :: Lens' UserProFilesGuardianInvitationsGet (Maybe Text)
- upfgigUploadType :: Lens' UserProFilesGuardianInvitationsGet (Maybe Text)
- upfgigInvitationId :: Lens' UserProFilesGuardianInvitationsGet Text
- upfgigCallback :: Lens' UserProFilesGuardianInvitationsGet (Maybe Text)
REST Resource
type UserProFilesGuardianInvitationsGetResource = "v1" :> ("userProfiles" :> (Capture "studentId" Text :> ("guardianInvitations" :> (Capture "invitationId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GuardianInvitation)))))))))) Source #
A resource alias for classroom.userProfiles.guardianInvitations.get
method which the
UserProFilesGuardianInvitationsGet
request conforms to.
Creating a Request
userProFilesGuardianInvitationsGet Source #
Creates a value of UserProFilesGuardianInvitationsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UserProFilesGuardianInvitationsGet Source #
Returns a specific guardian invitation. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to view guardian invitations 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 `invitation_id`. May also be returned if the student exists, but the requesting user does not have access to see that student.
See: userProFilesGuardianInvitationsGet
smart constructor.
Instances
Request Lenses
upfgigStudentId :: Lens' UserProFilesGuardianInvitationsGet Text Source #
The ID of the student whose guardian invitation is being requested.
upfgigXgafv :: Lens' UserProFilesGuardianInvitationsGet (Maybe Xgafv) Source #
V1 error format.
upfgigUploadProtocol :: Lens' UserProFilesGuardianInvitationsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
upfgigAccessToken :: Lens' UserProFilesGuardianInvitationsGet (Maybe Text) Source #
OAuth access token.
upfgigUploadType :: Lens' UserProFilesGuardianInvitationsGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
upfgigInvitationId :: Lens' UserProFilesGuardianInvitationsGet Text Source #
The `id` field of the `GuardianInvitation` being requested.