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 Photo and its metadata. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested photo. * google.rpc.Code.NOT_FOUND if the photo ID does not exist.
See: Street View Publish API Reference for streetviewpublish.photo.delete
.
Synopsis
- type PhotoDeleteResource = "v1" :> ("photo" :> (Capture "photoId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty))))))))
- photoDelete :: Text -> PhotoDelete
- data PhotoDelete
- pdXgafv :: Lens' PhotoDelete (Maybe Xgafv)
- pdUploadProtocol :: Lens' PhotoDelete (Maybe Text)
- pdAccessToken :: Lens' PhotoDelete (Maybe Text)
- pdUploadType :: Lens' PhotoDelete (Maybe Text)
- pdPhotoId :: Lens' PhotoDelete Text
- pdCallback :: Lens' PhotoDelete (Maybe Text)
REST Resource
type PhotoDeleteResource = "v1" :> ("photo" :> (Capture "photoId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty)))))))) Source #
A resource alias for streetviewpublish.photo.delete
method which the
PhotoDelete
request conforms to.
Creating a Request
:: Text | |
-> PhotoDelete |
Creates a value of PhotoDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PhotoDelete Source #
Deletes a Photo and its metadata. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested photo. * google.rpc.Code.NOT_FOUND if the photo ID does not exist.
See: photoDelete
smart constructor.
Instances
Request Lenses
pdUploadProtocol :: Lens' PhotoDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pdAccessToken :: Lens' PhotoDelete (Maybe Text) Source #
OAuth access token.
pdUploadType :: Lens' PhotoDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pdCallback :: Lens' PhotoDelete (Maybe Text) Source #
JSONP