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 |
Marks the Project identified by the specified `project_id` (for example, `my-project-123`) for deletion. This method will only affect the Project if the following criteria are met: + The Project does not have a billing account associated with it. + The Project has a lifecycle state of ACTIVE. This method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The deletion starts at an unspecified time, at which point the Project is no longer accessible. Until the deletion completes, you can check the lifecycle state checked by retrieving the Project with GetProject, and the Project remains visible to ListProjects. However, you cannot update the project. After the deletion completes, the Project is not retrievable by the GetProject and ListProjects methods. The caller must have modify permissions for this Project.
See: Google Cloud Resource Manager API Reference for cloudresourcemanager.projects.delete
.
- type ProjectsDeleteResource = "v1" :> ("projects" :> (Capture "projectId" 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 :> Delete '[JSON] Empty))))))))))
- projectsDelete :: Text -> ProjectsDelete
- data ProjectsDelete
- pdXgafv :: Lens' ProjectsDelete (Maybe Text)
- pdUploadProtocol :: Lens' ProjectsDelete (Maybe Text)
- pdPp :: Lens' ProjectsDelete Bool
- pdAccessToken :: Lens' ProjectsDelete (Maybe Text)
- pdUploadType :: Lens' ProjectsDelete (Maybe Text)
- pdBearerToken :: Lens' ProjectsDelete (Maybe Text)
- pdProjectId :: Lens' ProjectsDelete Text
- pdCallback :: Lens' ProjectsDelete (Maybe Text)
REST Resource
type ProjectsDeleteResource = "v1" :> ("projects" :> (Capture "projectId" 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 :> Delete '[JSON] Empty)))))))))) Source #
A resource alias for cloudresourcemanager.projects.delete
method which the
ProjectsDelete
request conforms to.
Creating a Request
Creates a value of ProjectsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsDelete Source #
Marks the Project identified by the specified `project_id` (for example, `my-project-123`) for deletion. This method will only affect the Project if the following criteria are met: + The Project does not have a billing account associated with it. + The Project has a lifecycle state of ACTIVE. This method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The deletion starts at an unspecified time, at which point the Project is no longer accessible. Until the deletion completes, you can check the lifecycle state checked by retrieving the Project with GetProject, and the Project remains visible to ListProjects. However, you cannot update the project. After the deletion completes, the Project is not retrievable by the GetProject and ListProjects methods. The caller must have modify permissions for this Project.
See: projectsDelete
smart constructor.
Request Lenses
pdUploadProtocol :: Lens' ProjectsDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pdAccessToken :: Lens' ProjectsDelete (Maybe Text) Source #
OAuth access token.
pdUploadType :: Lens' ProjectsDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pdBearerToken :: Lens' ProjectsDelete (Maybe Text) Source #
OAuth bearer token.
pdProjectId :: Lens' ProjectsDelete Text Source #
The Project ID (for example, `foo-bar-123`). Required.
pdCallback :: Lens' ProjectsDelete (Maybe Text) Source #
JSONP