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 |
Deletes a guardian. The guardian will no longer receive guardian notifications and the guardian will no longer be accessible via the API. This method returns the following error codes: * `PERMISSION_DENIED` if no user that matches the provided `student_id` is visible to the requesting user, if the requesting user is not permitted to manage guardians 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). * `NOT_FOUND` if the requesting user is permitted to modify guardians for the requested `student_id`, but no `Guardian` record exists for that student with the provided `guardian_id`.
See: Google Classroom API Reference for classroom.userProfiles.guardians.delete
.
Synopsis
- type UserProFilesGuardiansDeleteResource = "v1" :> ("userProfiles" :> (Capture "studentId" Text :> ("guardians" :> (Capture "guardianId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty))))))))))
- userProFilesGuardiansDelete :: Text -> Text -> UserProFilesGuardiansDelete
- data UserProFilesGuardiansDelete
- upfgdStudentId :: Lens' UserProFilesGuardiansDelete Text
- upfgdXgafv :: Lens' UserProFilesGuardiansDelete (Maybe Xgafv)
- upfgdUploadProtocol :: Lens' UserProFilesGuardiansDelete (Maybe Text)
- upfgdAccessToken :: Lens' UserProFilesGuardiansDelete (Maybe Text)
- upfgdUploadType :: Lens' UserProFilesGuardiansDelete (Maybe Text)
- upfgdGuardianId :: Lens' UserProFilesGuardiansDelete Text
- upfgdCallback :: Lens' UserProFilesGuardiansDelete (Maybe Text)
REST Resource
type UserProFilesGuardiansDeleteResource = "v1" :> ("userProfiles" :> (Capture "studentId" Text :> ("guardians" :> (Capture "guardianId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty)))))))))) Source #
A resource alias for classroom.userProfiles.guardians.delete
method which the
UserProFilesGuardiansDelete
request conforms to.
Creating a Request
userProFilesGuardiansDelete Source #
Creates a value of UserProFilesGuardiansDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UserProFilesGuardiansDelete Source #
Deletes a guardian. The guardian will no longer receive guardian notifications and the guardian will no longer be accessible via the API. This method returns the following error codes: * `PERMISSION_DENIED` if no user that matches the provided `student_id` is visible to the requesting user, if the requesting user is not permitted to manage guardians 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). * `NOT_FOUND` if the requesting user is permitted to modify guardians for the requested `student_id`, but no `Guardian` record exists for that student with the provided `guardian_id`.
See: userProFilesGuardiansDelete
smart constructor.
Instances
Request Lenses
upfgdStudentId :: Lens' UserProFilesGuardiansDelete Text Source #
The student whose guardian is to be deleted. One of the following: * the numeric identifier for the user * the email address of the user * the string literal `"me"`, indicating the requesting user
upfgdXgafv :: Lens' UserProFilesGuardiansDelete (Maybe Xgafv) Source #
V1 error format.
upfgdUploadProtocol :: Lens' UserProFilesGuardiansDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
upfgdAccessToken :: Lens' UserProFilesGuardiansDelete (Maybe Text) Source #
OAuth access token.
upfgdUploadType :: Lens' UserProFilesGuardiansDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
upfgdGuardianId :: Lens' UserProFilesGuardiansDelete Text Source #
The `id` field from a `Guardian`.
upfgdCallback :: Lens' UserProFilesGuardiansDelete (Maybe Text) Source #
JSONP