Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Deletes an entity.
Synopsis
- data DeleteEntity = DeleteEntity' {
- isRecursive :: Maybe Bool
- workspaceId :: Text
- entityId :: Text
- newDeleteEntity :: Text -> Text -> DeleteEntity
- deleteEntity_isRecursive :: Lens' DeleteEntity (Maybe Bool)
- deleteEntity_workspaceId :: Lens' DeleteEntity Text
- deleteEntity_entityId :: Lens' DeleteEntity Text
- data DeleteEntityResponse = DeleteEntityResponse' {
- httpStatus :: Int
- state :: State
- newDeleteEntityResponse :: Int -> State -> DeleteEntityResponse
- deleteEntityResponse_httpStatus :: Lens' DeleteEntityResponse Int
- deleteEntityResponse_state :: Lens' DeleteEntityResponse State
Creating a Request
data DeleteEntity Source #
See: newDeleteEntity
smart constructor.
DeleteEntity' | |
|
Instances
Create a value of DeleteEntity
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:isRecursive:DeleteEntity'
, deleteEntity_isRecursive
- A Boolean value that specifies whether the operation deletes child
entities.
DeleteEntity
, deleteEntity_workspaceId
- The ID of the workspace that contains the entity to delete.
DeleteEntity
, deleteEntity_entityId
- The ID of the entity to delete.
Request Lenses
deleteEntity_isRecursive :: Lens' DeleteEntity (Maybe Bool) Source #
A Boolean value that specifies whether the operation deletes child entities.
deleteEntity_workspaceId :: Lens' DeleteEntity Text Source #
The ID of the workspace that contains the entity to delete.
deleteEntity_entityId :: Lens' DeleteEntity Text Source #
The ID of the entity to delete.
Destructuring the Response
data DeleteEntityResponse Source #
See: newDeleteEntityResponse
smart constructor.
DeleteEntityResponse' | |
|
Instances
newDeleteEntityResponse Source #
Create a value of DeleteEntityResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DeleteEntityResponse'
, deleteEntityResponse_httpStatus
- The response's http status code.
DeleteEntityResponse
, deleteEntityResponse_state
- The current state of the deleted entity.
Response Lenses
deleteEntityResponse_httpStatus :: Lens' DeleteEntityResponse Int Source #
The response's http status code.
deleteEntityResponse_state :: Lens' DeleteEntityResponse State Source #
The current state of the deleted entity.