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 |
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
- 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))))))))
- photosBatchUpdate :: BatchUpdatePhotosRequest -> PhotosBatchUpdate
- data PhotosBatchUpdate
- pbuXgafv :: Lens' PhotosBatchUpdate (Maybe Xgafv)
- pbuUploadProtocol :: Lens' PhotosBatchUpdate (Maybe Text)
- pbuAccessToken :: Lens' PhotosBatchUpdate (Maybe Text)
- pbuUploadType :: Lens' PhotosBatchUpdate (Maybe Text)
- pbuPayload :: Lens' PhotosBatchUpdate BatchUpdatePhotosRequest
- pbuCallback :: Lens' PhotosBatchUpdate (Maybe Text)
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
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
Request Lenses
pbuUploadProtocol :: Lens' PhotosBatchUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pbuAccessToken :: Lens' PhotosBatchUpdate (Maybe Text) Source #
OAuth access token.
pbuUploadType :: Lens' PhotosBatchUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pbuPayload :: Lens' PhotosBatchUpdate BatchUpdatePhotosRequest Source #
Multipart request metadata.
pbuCallback :: Lens' PhotosBatchUpdate (Maybe Text) Source #
JSONP