gogol-resourcemanager-0.0.1: Google Cloud Resource Manager SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.CloudResourceManager.Projects.Undelete

Contents

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.

Synopsis

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

projectsUndelete Source

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.

puUploadType :: Lens' ProjectsUndelete (Maybe Text) Source

Legacy upload protocol for media (e.g. "media", "multipart").

puProjectId :: Lens' ProjectsUndelete Text Source

The project ID (for example, `foo-bar-123`). Required.