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 |
Cancels the deletion request for a Folder. This method may only be called on a Folder in the DELETE_REQUESTED state. In order to succeed, the Folder's parent must be in the ACTIVE state. In addition, reintroducing the folder into the tree must not violate folder naming, height and fanout constraints described in the CreateFolder documentation. The caller must have `resourcemanager.folders.undelete` permission on the identified folder.
See: Cloud Resource Manager API Reference for cloudresourcemanager.folders.undelete
.
Synopsis
- type FoldersUndeleteResource = "v2" :> (CaptureMode "name" "undelete" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UndeleteFolderRequest :> Post '[JSON] Folder))))))))
- foldersUndelete :: UndeleteFolderRequest -> Text -> FoldersUndelete
- data FoldersUndelete
- fuXgafv :: Lens' FoldersUndelete (Maybe Xgafv)
- fuUploadProtocol :: Lens' FoldersUndelete (Maybe Text)
- fuAccessToken :: Lens' FoldersUndelete (Maybe Text)
- fuUploadType :: Lens' FoldersUndelete (Maybe Text)
- fuPayload :: Lens' FoldersUndelete UndeleteFolderRequest
- fuName :: Lens' FoldersUndelete Text
- fuCallback :: Lens' FoldersUndelete (Maybe Text)
REST Resource
type FoldersUndeleteResource = "v2" :> (CaptureMode "name" "undelete" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UndeleteFolderRequest :> Post '[JSON] Folder)))))))) Source #
A resource alias for cloudresourcemanager.folders.undelete
method which the
FoldersUndelete
request conforms to.
Creating a Request
Creates a value of FoldersUndelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data FoldersUndelete Source #
Cancels the deletion request for a Folder. This method may only be called on a Folder in the DELETE_REQUESTED state. In order to succeed, the Folder's parent must be in the ACTIVE state. In addition, reintroducing the folder into the tree must not violate folder naming, height and fanout constraints described in the CreateFolder documentation. The caller must have `resourcemanager.folders.undelete` permission on the identified folder.
See: foldersUndelete
smart constructor.
Instances
Request Lenses
fuUploadProtocol :: Lens' FoldersUndelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
fuAccessToken :: Lens' FoldersUndelete (Maybe Text) Source #
OAuth access token.
fuUploadType :: Lens' FoldersUndelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
fuPayload :: Lens' FoldersUndelete UndeleteFolderRequest Source #
Multipart request metadata.
fuName :: Lens' FoldersUndelete Text Source #
The resource name of the Folder to undelete. Must be of the form `folders/{folder_id}`.
fuCallback :: Lens' FoldersUndelete (Maybe Text) Source #
JSONP