gogol-streetviewpublish-0.4.0: Google Street View Publish SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.StreetViewPublish.Photo.Delete

Contents

Description

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

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

photoDelete Source #

Arguments

:: Text

pdPhotoId

-> 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
Eq PhotoDelete Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photo.Delete

Data PhotoDelete Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photo.Delete

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PhotoDelete -> c PhotoDelete #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PhotoDelete #

toConstr :: PhotoDelete -> Constr #

dataTypeOf :: PhotoDelete -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PhotoDelete) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PhotoDelete) #

gmapT :: (forall b. Data b => b -> b) -> PhotoDelete -> PhotoDelete #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PhotoDelete -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PhotoDelete -> r #

gmapQ :: (forall d. Data d => d -> u) -> PhotoDelete -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PhotoDelete -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PhotoDelete -> m PhotoDelete #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PhotoDelete -> m PhotoDelete #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PhotoDelete -> m PhotoDelete #

Show PhotoDelete Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photo.Delete

Generic PhotoDelete Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photo.Delete

Associated Types

type Rep PhotoDelete :: Type -> Type #

GoogleRequest PhotoDelete Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photo.Delete

Associated Types

type Rs PhotoDelete :: Type #

type Scopes PhotoDelete :: [Symbol] #

type Rep PhotoDelete Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photo.Delete

type Rep PhotoDelete = D1 (MetaData "PhotoDelete" "Network.Google.Resource.StreetViewPublish.Photo.Delete" "gogol-streetviewpublish-0.4.0-hUlDUTRvH6EXX72hhSGUR" False) (C1 (MetaCons "PhotoDelete'" PrefixI True) ((S1 (MetaSel (Just "_pdXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pdUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pdAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_pdUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_pdPhotoId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pdCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes PhotoDelete Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photo.Delete

type Scopes PhotoDelete = "https://www.googleapis.com/auth/streetviewpublish" ': ([] :: [Symbol])
type Rs PhotoDelete Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photo.Delete

Request Lenses

pdXgafv :: Lens' PhotoDelete (Maybe Xgafv) Source #

V1 error format.

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").

pdPhotoId :: Lens' PhotoDelete Text Source #

Required. ID of the Photo.