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 |
Moves a Folder under a new resource parent. Returns an Operation which can be used to track the progress of the folder move workflow. Upon success the Operation.response field will be populated with the moved Folder. Upon failure, a FolderOperationError categorizing the failure cause will be returned - if the failure occurs synchronously then the FolderOperationError will be returned via the Status.details field and if it occurs asynchronously then the FolderOperation will be returned via the the Operation.error field. In addition, the Operation.metadata field will be populated with a FolderOperation message as an aid to stateless clients. Folder moves will be rejected if they violate either the naming, height or fanout constraints described in the CreateFolder documentation. The caller must have `resourcemanager.folders.move` permission on the folder's current and proposed new parent.
See: Cloud Resource Manager API Reference for cloudresourcemanager.folders.move
.
Synopsis
- type FoldersMoveResource = "v2" :> (CaptureMode "name" "move" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] MoveFolderRequest :> Post '[JSON] Operation))))))))
- foldersMove :: MoveFolderRequest -> Text -> FoldersMove
- data FoldersMove
- fmXgafv :: Lens' FoldersMove (Maybe Xgafv)
- fmUploadProtocol :: Lens' FoldersMove (Maybe Text)
- fmAccessToken :: Lens' FoldersMove (Maybe Text)
- fmUploadType :: Lens' FoldersMove (Maybe Text)
- fmPayload :: Lens' FoldersMove MoveFolderRequest
- fmName :: Lens' FoldersMove Text
- fmCallback :: Lens' FoldersMove (Maybe Text)
REST Resource
type FoldersMoveResource = "v2" :> (CaptureMode "name" "move" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] MoveFolderRequest :> Post '[JSON] Operation)))))))) Source #
A resource alias for cloudresourcemanager.folders.move
method which the
FoldersMove
request conforms to.
Creating a Request
Creates a value of FoldersMove
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data FoldersMove Source #
Moves a Folder under a new resource parent. Returns an Operation which can be used to track the progress of the folder move workflow. Upon success the Operation.response field will be populated with the moved Folder. Upon failure, a FolderOperationError categorizing the failure cause will be returned - if the failure occurs synchronously then the FolderOperationError will be returned via the Status.details field and if it occurs asynchronously then the FolderOperation will be returned via the the Operation.error field. In addition, the Operation.metadata field will be populated with a FolderOperation message as an aid to stateless clients. Folder moves will be rejected if they violate either the naming, height or fanout constraints described in the CreateFolder documentation. The caller must have `resourcemanager.folders.move` permission on the folder's current and proposed new parent.
See: foldersMove
smart constructor.
Instances
Request Lenses
fmUploadProtocol :: Lens' FoldersMove (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
fmAccessToken :: Lens' FoldersMove (Maybe Text) Source #
OAuth access token.
fmUploadType :: Lens' FoldersMove (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
fmPayload :: Lens' FoldersMove MoveFolderRequest Source #
Multipart request metadata.
fmName :: Lens' FoldersMove Text Source #
The resource name of the Folder to move. Must be of the form folders/{folder_id}
fmCallback :: Lens' FoldersMove (Maybe Text) Source #
JSONP