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.Photos.BatchUpdate

Contents

Description

Updates the metadata of Photos, such as pose, place association, connections, etc. Changing the pixels of photos is not supported. Note that if BatchUpdatePhotos fails, either critical fields are missing or there was an authentication error. Even if BatchUpdatePhotos succeeds, there may have been failures for single photos in the batch. These failures will be specified in each PhotoResponse.status in BatchUpdatePhotosResponse.results. See UpdatePhoto for specific failures that can occur per photo. Only the fields specified in updateMask field are used. If `updateMask` is not present, the update applies to all fields. The number of UpdatePhotoRequest messages in a BatchUpdatePhotosRequest must not exceed 20. Note: To update Pose.altitude, Pose.latLngPair has to be filled as well. Otherwise, the request will fail.

See: Street View Publish API Reference for streetviewpublish.photos.batchUpdate.

Synopsis

REST Resource

type PhotosBatchUpdateResource = "v1" :> ("photos:batchUpdate" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchUpdatePhotosRequest :> Post '[JSON] BatchUpdatePhotosResponse)))))))) Source #

A resource alias for streetviewpublish.photos.batchUpdate method which the PhotosBatchUpdate request conforms to.

Creating a Request

photosBatchUpdate Source #

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

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

data PhotosBatchUpdate Source #

Updates the metadata of Photos, such as pose, place association, connections, etc. Changing the pixels of photos is not supported. Note that if BatchUpdatePhotos fails, either critical fields are missing or there was an authentication error. Even if BatchUpdatePhotos succeeds, there may have been failures for single photos in the batch. These failures will be specified in each PhotoResponse.status in BatchUpdatePhotosResponse.results. See UpdatePhoto for specific failures that can occur per photo. Only the fields specified in updateMask field are used. If `updateMask` is not present, the update applies to all fields. The number of UpdatePhotoRequest messages in a BatchUpdatePhotosRequest must not exceed 20. Note: To update Pose.altitude, Pose.latLngPair has to be filled as well. Otherwise, the request will fail.

See: photosBatchUpdate smart constructor.

Instances
Eq PhotosBatchUpdate Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photos.BatchUpdate

Data PhotosBatchUpdate Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photos.BatchUpdate

Methods

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

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

toConstr :: PhotosBatchUpdate -> Constr #

dataTypeOf :: PhotosBatchUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PhotosBatchUpdate Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photos.BatchUpdate

Generic PhotosBatchUpdate Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photos.BatchUpdate

Associated Types

type Rep PhotosBatchUpdate :: Type -> Type #

GoogleRequest PhotosBatchUpdate Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photos.BatchUpdate

Associated Types

type Rs PhotosBatchUpdate :: Type #

type Scopes PhotosBatchUpdate :: [Symbol] #

type Rep PhotosBatchUpdate Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photos.BatchUpdate

type Rep PhotosBatchUpdate = D1 (MetaData "PhotosBatchUpdate" "Network.Google.Resource.StreetViewPublish.Photos.BatchUpdate" "gogol-streetviewpublish-0.4.0-hUlDUTRvH6EXX72hhSGUR" False) (C1 (MetaCons "PhotosBatchUpdate'" PrefixI True) ((S1 (MetaSel (Just "_pbuXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pbuUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pbuAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_pbuUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_pbuPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 BatchUpdatePhotosRequest) :*: S1 (MetaSel (Just "_pbuCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes PhotosBatchUpdate Source # 
Instance details

Defined in Network.Google.Resource.StreetViewPublish.Photos.BatchUpdate

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

Defined in Network.Google.Resource.StreetViewPublish.Photos.BatchUpdate

Request Lenses

pbuUploadProtocol :: Lens' PhotosBatchUpdate (Maybe Text) Source #

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

pbuUploadType :: Lens' PhotosBatchUpdate (Maybe Text) Source #

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