gogol-streetviewpublish-0.5.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.Create

Contents

Description

After the client finishes uploading the photo with the returned UploadRef, CreatePhoto publishes the uploaded Photo to Street View on Google Maps. Currently, the only way to set heading, pitch, and roll in CreatePhoto is through the Photo Sphere XMP metadata in the photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`, `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose. This method returns the following error codes: * google.rpc.Code.INVALID_ARGUMENT if the request is malformed or if the uploaded photo is not a 360 photo. * google.rpc.Code.NOT_FOUND if the upload reference does not exist. * google.rpc.Code.RESOURCE_EXHAUSTED if the account has reached the storage limit.

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

Synopsis

REST Resource

type PhotoCreateResource = "v1" :> ("photo" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Photo :> Post '[JSON] Photo)))))))) Source #

A resource alias for streetviewpublish.photo.create method which the PhotoCreate request conforms to.

Creating a Request

photoCreate Source #

Arguments

:: Photo

pcPayload

-> PhotoCreate 

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

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

data PhotoCreate Source #

After the client finishes uploading the photo with the returned UploadRef, CreatePhoto publishes the uploaded Photo to Street View on Google Maps. Currently, the only way to set heading, pitch, and roll in CreatePhoto is through the Photo Sphere XMP metadata in the photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`, `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose. This method returns the following error codes: * google.rpc.Code.INVALID_ARGUMENT if the request is malformed or if the uploaded photo is not a 360 photo. * google.rpc.Code.NOT_FOUND if the upload reference does not exist. * google.rpc.Code.RESOURCE_EXHAUSTED if the account has reached the storage limit.

See: photoCreate smart constructor.

Instances
Eq PhotoCreate Source # 
Instance details

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

Data PhotoCreate Source # 
Instance details

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

Methods

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

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

toConstr :: PhotoCreate -> Constr #

dataTypeOf :: PhotoCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PhotoCreate Source # 
Instance details

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

Generic PhotoCreate Source # 
Instance details

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

Associated Types

type Rep PhotoCreate :: Type -> Type #

GoogleRequest PhotoCreate Source # 
Instance details

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

Associated Types

type Rs PhotoCreate :: Type #

type Scopes PhotoCreate :: [Symbol] #

type Rep PhotoCreate Source # 
Instance details

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

type Rep PhotoCreate = D1 (MetaData "PhotoCreate" "Network.Google.Resource.StreetViewPublish.Photo.Create" "gogol-streetviewpublish-0.5.0-HRXV9QomJ3A5SdaI0FplPP" False) (C1 (MetaCons "PhotoCreate'" PrefixI True) ((S1 (MetaSel (Just "_pcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_pcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_pcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Photo) :*: S1 (MetaSel (Just "_pcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes PhotoCreate Source # 
Instance details

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

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

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

Request Lenses

pcXgafv :: Lens' PhotoCreate (Maybe Xgafv) Source #

V1 error format.

pcUploadProtocol :: Lens' PhotoCreate (Maybe Text) Source #

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

pcAccessToken :: Lens' PhotoCreate (Maybe Text) Source #

OAuth access token.

pcUploadType :: Lens' PhotoCreate (Maybe Text) Source #

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

pcPayload :: Lens' PhotoCreate Photo Source #

Multipart request metadata.