| Copyright | (c) 2015 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 |
Network.Google.Resource.CloudResourceManager.Projects.Undelete
Description
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] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated by a lifecycle state of [DELETE_IN_PROGRESS] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS], 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 = "v1beta1" :> ("projects" :> (CaptureMode "projectId" "undelete" 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 :> Post `[JSON]` Empty))))))))))
- projectsUndelete :: Text -> ProjectsUndelete
- data ProjectsUndelete
- puXgafv :: Lens' ProjectsUndelete (Maybe Text)
- puUploadProtocol :: Lens' ProjectsUndelete (Maybe Text)
- puPp :: Lens' ProjectsUndelete Bool
- puAccessToken :: Lens' ProjectsUndelete (Maybe Text)
- puUploadType :: Lens' ProjectsUndelete (Maybe Text)
- puBearerToken :: Lens' ProjectsUndelete (Maybe Text)
- puProjectId :: Lens' ProjectsUndelete Text
- puCallback :: Lens' ProjectsUndelete (Maybe Text)
REST Resource
type ProjectsUndeleteResource = "v1beta1" :> ("projects" :> (CaptureMode "projectId" "undelete" 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 :> Post `[JSON]` Empty)))))))))) Source
A resource alias for cloudresourcemanager.projects.undelete method which the
ProjectsUndelete request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> ProjectsUndelete |
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] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated by a lifecycle state of [DELETE_IN_PROGRESS] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS], 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").
puPp :: Lens' ProjectsUndelete Bool Source
Pretty-print response.
puAccessToken :: Lens' ProjectsUndelete (Maybe Text) Source
OAuth access token.
puUploadType :: Lens' ProjectsUndelete (Maybe Text) Source
Legacy upload protocol for media (e.g. "media", "multipart").
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