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 |
Restores the Project identified by the specified `project_id` (for example, `my-project-123`). You can only use this method for a Project that has a lifecycle state of DELETE_REQUESTED. After deletion starts, the Project cannot be restored. The caller must have modify permissions for this Project.
See: Google Cloud Resource Manager API Reference for cloudresourcemanager.projects.undelete
.
- type ProjectsUndeleteResource = "v1" :> ("projects" :> (CaptureMode "projectId" "undelete" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UndeleteProjectRequest :> Post '[JSON] Empty)))))))))))
- projectsUndelete :: UndeleteProjectRequest -> Text -> ProjectsUndelete
- data ProjectsUndelete
- puXgafv :: Lens' ProjectsUndelete (Maybe Xgafv)
- puUploadProtocol :: Lens' ProjectsUndelete (Maybe Text)
- puPp :: Lens' ProjectsUndelete Bool
- puAccessToken :: Lens' ProjectsUndelete (Maybe Text)
- puUploadType :: Lens' ProjectsUndelete (Maybe Text)
- puPayload :: Lens' ProjectsUndelete UndeleteProjectRequest
- puBearerToken :: Lens' ProjectsUndelete (Maybe Text)
- puProjectId :: Lens' ProjectsUndelete Text
- puCallback :: Lens' ProjectsUndelete (Maybe Text)
REST Resource
type ProjectsUndeleteResource = "v1" :> ("projects" :> (CaptureMode "projectId" "undelete" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UndeleteProjectRequest :> Post '[JSON] Empty))))))))))) Source #
A resource alias for cloudresourcemanager.projects.undelete
method which the
ProjectsUndelete
request conforms to.
Creating a Request
Creates a value of ProjectsUndelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsUndelete Source #
Restores the Project identified by the specified `project_id` (for example, `my-project-123`). You can only use this method for a Project that has a lifecycle state of DELETE_REQUESTED. After deletion starts, the Project cannot be restored. The caller must have modify permissions for this Project.
See: projectsUndelete
smart constructor.
Request Lenses
puUploadProtocol :: Lens' ProjectsUndelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
puAccessToken :: Lens' ProjectsUndelete (Maybe Text) Source #
OAuth access token.
puUploadType :: Lens' ProjectsUndelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
puPayload :: Lens' ProjectsUndelete UndeleteProjectRequest Source #
Multipart request metadata.
puBearerToken :: Lens' ProjectsUndelete (Maybe Text) Source #
OAuth bearer token.
puProjectId :: Lens' ProjectsUndelete Text Source #
The project ID (for example, `foo-bar-123`). Required.
puCallback :: Lens' ProjectsUndelete (Maybe Text) Source #
JSONP