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 |
Requests deletion of a Folder. The Folder is moved into the DELETE_REQUESTED state immediately, and is deleted approximately 30 days later. This method may only be called on an empty Folder in the ACTIVE state, where a Folder is empty if it doesn't contain any Folders or Projects in the ACTIVE state. The caller must have `resourcemanager.folders.delete` permission on the identified folder.
See: Cloud Resource Manager API Reference for cloudresourcemanager.folders.delete
.
Synopsis
- type FoldersDeleteResource = "v2" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Folder)))))))
- foldersDelete :: Text -> FoldersDelete
- data FoldersDelete
- fdXgafv :: Lens' FoldersDelete (Maybe Xgafv)
- fdUploadProtocol :: Lens' FoldersDelete (Maybe Text)
- fdAccessToken :: Lens' FoldersDelete (Maybe Text)
- fdUploadType :: Lens' FoldersDelete (Maybe Text)
- fdName :: Lens' FoldersDelete Text
- fdCallback :: Lens' FoldersDelete (Maybe Text)
REST Resource
type FoldersDeleteResource = "v2" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Folder))))))) Source #
A resource alias for cloudresourcemanager.folders.delete
method which the
FoldersDelete
request conforms to.
Creating a Request
:: Text | |
-> FoldersDelete |
Creates a value of FoldersDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data FoldersDelete Source #
Requests deletion of a Folder. The Folder is moved into the DELETE_REQUESTED state immediately, and is deleted approximately 30 days later. This method may only be called on an empty Folder in the ACTIVE state, where a Folder is empty if it doesn't contain any Folders or Projects in the ACTIVE state. The caller must have `resourcemanager.folders.delete` permission on the identified folder.
See: foldersDelete
smart constructor.
Instances
Request Lenses
fdUploadProtocol :: Lens' FoldersDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
fdAccessToken :: Lens' FoldersDelete (Maybe Text) Source #
OAuth access token.
fdUploadType :: Lens' FoldersDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
fdName :: Lens' FoldersDelete Text Source #
the resource name of the Folder to be deleted. Must be of the form `folders/{folder_id}`.
fdCallback :: Lens' FoldersDelete (Maybe Text) Source #
JSONP