class Photos extends Resource (View source)

The "photos" collection of methods.

Typical usage is:

 $streetviewpublishService = new Google\Service\StreetViewPublish(...);
 $photos = $streetviewpublishService->photos;

Methods

batchDelete(BatchDeletePhotosRequest $postBody, array $optParams = [])

Deletes a list of Photos and their metadata. Note that if BatchDeletePhotos fails, either critical fields are missing or there is an authentication error. Even if BatchDeletePhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchDeletePhotosResponse.results. See DeletePhoto for specific failures that can occur per photo. (photos.batchDelete)

batchGet(array $optParams = [])

Gets the metadata of the specified Photo batch. Note that if BatchGetPhotos fails, either critical fields are missing or there is an authentication error. Even if BatchGetPhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchGetPhotosResponse.results. See GetPhoto for specific failures that can occur per photo. (photos.batchGet)

batchUpdate(BatchUpdatePhotosRequest $postBody, array $optParams = [])

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 is an authentication error. Even if BatchUpdatePhotos succeeds, individual photos in the batch may have failures. These failures are 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.

listPhotos(array $optParams = [])

Lists all the Photos that belong to the user. > Note: Recently created photos that are still being indexed are not returned in the response.

Details

BatchDeletePhotosResponse batchDelete(BatchDeletePhotosRequest $postBody, array $optParams = [])

Deletes a list of Photos and their metadata. Note that if BatchDeletePhotos fails, either critical fields are missing or there is an authentication error. Even if BatchDeletePhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchDeletePhotosResponse.results. See DeletePhoto for specific failures that can occur per photo. (photos.batchDelete)

Parameters

BatchDeletePhotosRequest $postBody
array $optParams

Optional parameters.

Return Value

BatchDeletePhotosResponse

Exceptions

Exception

BatchGetPhotosResponse batchGet(array $optParams = [])

Gets the metadata of the specified Photo batch. Note that if BatchGetPhotos fails, either critical fields are missing or there is an authentication error. Even if BatchGetPhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchGetPhotosResponse.results. See GetPhoto for specific failures that can occur per photo. (photos.batchGet)

Parameters

array $optParams

Optional parameters.

Return Value

BatchGetPhotosResponse

Exceptions

Exception

BatchUpdatePhotosResponse batchUpdate(BatchUpdatePhotosRequest $postBody, array $optParams = [])

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 is an authentication error. Even if BatchUpdatePhotos succeeds, individual photos in the batch may have failures. These failures are 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.

(photos.batchUpdate)

Parameters

BatchUpdatePhotosRequest $postBody
array $optParams

Optional parameters.

Return Value

BatchUpdatePhotosResponse

Exceptions

Exception

ListPhotosResponse listPhotos(array $optParams = [])

Lists all the Photos that belong to the user. > Note: Recently created photos that are still being indexed are not returned in the response.

(photos.listPhotos)

Parameters

array $optParams

Optional parameters.

Return Value

ListPhotosResponse

Exceptions

Exception