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 |
Undelete a Role, bringing it back in its previous state.
See: Identity and Access Management (IAM) API Reference for iam.projects.roles.undelete
.
Synopsis
- type ProjectsRolesUndeleteResource = "v1" :> (CaptureMode "name" "undelete" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UndeleteRoleRequest :> Post '[JSON] Role))))))))
- projectsRolesUndelete :: UndeleteRoleRequest -> Text -> ProjectsRolesUndelete
- data ProjectsRolesUndelete
- pruXgafv :: Lens' ProjectsRolesUndelete (Maybe Xgafv)
- pruUploadProtocol :: Lens' ProjectsRolesUndelete (Maybe Text)
- pruAccessToken :: Lens' ProjectsRolesUndelete (Maybe Text)
- pruUploadType :: Lens' ProjectsRolesUndelete (Maybe Text)
- pruPayload :: Lens' ProjectsRolesUndelete UndeleteRoleRequest
- pruName :: Lens' ProjectsRolesUndelete Text
- pruCallback :: Lens' ProjectsRolesUndelete (Maybe Text)
REST Resource
type ProjectsRolesUndeleteResource = "v1" :> (CaptureMode "name" "undelete" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UndeleteRoleRequest :> Post '[JSON] Role)))))))) Source #
A resource alias for iam.projects.roles.undelete
method which the
ProjectsRolesUndelete
request conforms to.
Creating a Request
projectsRolesUndelete Source #
Creates a value of ProjectsRolesUndelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsRolesUndelete Source #
Undelete a Role, bringing it back in its previous state.
See: projectsRolesUndelete
smart constructor.
Instances
Request Lenses
pruUploadProtocol :: Lens' ProjectsRolesUndelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pruAccessToken :: Lens' ProjectsRolesUndelete (Maybe Text) Source #
OAuth access token.
pruUploadType :: Lens' ProjectsRolesUndelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pruPayload :: Lens' ProjectsRolesUndelete UndeleteRoleRequest Source #
Multipart request metadata.
pruName :: Lens' ProjectsRolesUndelete Text Source #
The resource name of the role in one of the following formats: `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` `projects/{PROJECT_ID}/roles/{ROLE_NAME}`
pruCallback :: Lens' ProjectsRolesUndelete (Maybe Text) Source #
JSONP