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 |
Deletes a list of Photos and their metadata. Note that if BatchDeletePhotos fails, either critical fields are missing or there was an authentication error. Even if BatchDeletePhotos succeeds, there may have been failures for single photos in the batch. These failures will be specified in each PhotoResponse.status in BatchDeletePhotosResponse.results. See DeletePhoto for specific failures that can occur per photo.
See: Street View Publish API Reference for streetviewpublish.photos.batchDelete
.
Synopsis
- type PhotosBatchDeleteResource = "v1" :> ("photos:batchDelete" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchDeletePhotosRequest :> Post '[JSON] BatchDeletePhotosResponse))))))))
- photosBatchDelete :: BatchDeletePhotosRequest -> PhotosBatchDelete
- data PhotosBatchDelete
- pbdXgafv :: Lens' PhotosBatchDelete (Maybe Xgafv)
- pbdUploadProtocol :: Lens' PhotosBatchDelete (Maybe Text)
- pbdAccessToken :: Lens' PhotosBatchDelete (Maybe Text)
- pbdUploadType :: Lens' PhotosBatchDelete (Maybe Text)
- pbdPayload :: Lens' PhotosBatchDelete BatchDeletePhotosRequest
- pbdCallback :: Lens' PhotosBatchDelete (Maybe Text)
REST Resource
type PhotosBatchDeleteResource = "v1" :> ("photos:batchDelete" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchDeletePhotosRequest :> Post '[JSON] BatchDeletePhotosResponse)))))))) Source #
A resource alias for streetviewpublish.photos.batchDelete
method which the
PhotosBatchDelete
request conforms to.
Creating a Request
Creates a value of PhotosBatchDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PhotosBatchDelete Source #
Deletes a list of Photos and their metadata. Note that if BatchDeletePhotos fails, either critical fields are missing or there was an authentication error. Even if BatchDeletePhotos succeeds, there may have been failures for single photos in the batch. These failures will be specified in each PhotoResponse.status in BatchDeletePhotosResponse.results. See DeletePhoto for specific failures that can occur per photo.
See: photosBatchDelete
smart constructor.
Instances
Request Lenses
pbdUploadProtocol :: Lens' PhotosBatchDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pbdAccessToken :: Lens' PhotosBatchDelete (Maybe Text) Source #
OAuth access token.
pbdUploadType :: Lens' PhotosBatchDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pbdPayload :: Lens' PhotosBatchDelete BatchDeletePhotosRequest Source #
Multipart request metadata.
pbdCallback :: Lens' PhotosBatchDelete (Maybe Text) Source #
JSONP