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 |
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][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE]. This method changes the project's lifecycle state from [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE] to [DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_REQUESTED]. The deletion starts at an unspecified time, at which point the lifecycle state changes to [DELETE_IN_PROGRESS] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS]. Until the deletion completes, you can check the lifecycle state checked by retrieving the project with [GetProject] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject], and the project remains visible to [ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects]. However, you cannot update the project. After the deletion completes, the project is not retrievable by the [GetProject] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject] and [ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects] methods. The caller must have modify permissions for this project.
See: Google Cloud Resource Manager API Reference for cloudresourcemanager.projects.delete
.
- type ProjectsDeleteResource = "v1beta1" :> ("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 = "v1beta1" :> ("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][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE]. This method changes the project's lifecycle state from [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE] to [DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_REQUESTED]. The deletion starts at an unspecified time, at which point the lifecycle state changes to [DELETE_IN_PROGRESS] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS]. Until the deletion completes, you can check the lifecycle state checked by retrieving the project with [GetProject] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject], and the project remains visible to [ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects]. However, you cannot update the project. After the deletion completes, the project is not retrievable by the [GetProject] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject] and [ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.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").
pdPp :: Lens' ProjectsDelete Bool Source
Pretty-print response.
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