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.Get

Contents

Description

Gets the metadata of the specified Photo. 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 requested Photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being indexed.

See: Street View Publish API Reference for streetviewpublish.photo.get.

Synopsis

REST Resource

type PhotoGetResource = "v1" :> ("photo" :> (Capture "photoId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "view" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Photo)))))))))) Source #

A resource alias for streetviewpublish.photo.get method which the PhotoGet request conforms to.

Creating a Request

photoGet Source #

Arguments

:: Text

pgPhotoId

-> PhotoGet 

Creates a value of PhotoGet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PhotoGet Source #

Gets the metadata of the specified Photo. 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 requested Photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being indexed.

See: photoGet smart constructor.

Instances
Eq PhotoGet Source # 
Instance details

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

Data PhotoGet Source # 
Instance details

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

Methods

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

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

toConstr :: PhotoGet -> Constr #

dataTypeOf :: PhotoGet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PhotoGet Source # 
Instance details

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

Generic PhotoGet Source # 
Instance details

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

Associated Types

type Rep PhotoGet :: Type -> Type #

Methods

from :: PhotoGet -> Rep PhotoGet x #

to :: Rep PhotoGet x -> PhotoGet #

GoogleRequest PhotoGet Source # 
Instance details

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

Associated Types

type Rs PhotoGet :: Type #

type Scopes PhotoGet :: [Symbol] #

type Rep PhotoGet Source # 
Instance details

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

type Rep PhotoGet = D1 (MetaData "PhotoGet" "Network.Google.Resource.StreetViewPublish.Photo.Get" "gogol-streetviewpublish-0.4.0-hUlDUTRvH6EXX72hhSGUR" False) (C1 (MetaCons "PhotoGet'" PrefixI True) (((S1 (MetaSel (Just "_pgXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_pgLanguageCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pgUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pgAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pgUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pgView") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pgPhotoId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pgCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes PhotoGet Source # 
Instance details

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

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

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

Request Lenses

pgXgafv :: Lens' PhotoGet (Maybe Xgafv) Source #

V1 error format.

pgLanguageCode :: Lens' PhotoGet (Maybe Text) Source #

The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If language_code is unspecified, the user's language preference for Google services will be used.

pgUploadProtocol :: Lens' PhotoGet (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

pgAccessToken :: Lens' PhotoGet (Maybe Text) Source #

OAuth access token.

pgUploadType :: Lens' PhotoGet (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

pgView :: Lens' PhotoGet (Maybe Text) Source #

Specifies if a download URL for the photo bytes should be returned in the Photo response.

pgPhotoId :: Lens' PhotoGet Text Source #

Required. ID of the Photo.