* Publishes 360 photos to Google Maps, along with position, orientation, and * connectivity metadata. Apps can offer an interface for positioning, * connecting, and uploading user-generated Street View images.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class StreetViewPublish extends \Google\Service { /** Publish and manage your 360 photos on Google Street View. */ const STREETVIEWPUBLISH = "https://www.googleapis.com/auth/streetviewpublish"; public $photo; public $photos; /** * Constructs the internal representation of the StreetViewPublish service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://streetviewpublish.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'streetviewpublish'; $this->photo = new StreetViewPublish\Resource\Photo( $this, $this->serviceName, 'photo', [ 'methods' => [ 'create' => [ 'path' => 'v1/photo', 'httpMethod' => 'POST', 'parameters' => [], ],'delete' => [ 'path' => 'v1/photo/{photoId}', 'httpMethod' => 'DELETE', 'parameters' => [ 'photoId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'get' => [ 'path' => 'v1/photo/{photoId}', 'httpMethod' => 'GET', 'parameters' => [ 'photoId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'languageCode' => [ 'location' => 'query', 'type' => 'string', ], 'view' => [ 'location' => 'query', 'type' => 'string', ], ], ],'startUpload' => [ 'path' => 'v1/photo:startUpload', 'httpMethod' => 'POST', 'parameters' => [], ],'update' => [ 'path' => 'v1/photo/{id}', 'httpMethod' => 'PUT', 'parameters' => [ 'id' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->photos = new StreetViewPublish\Resource\Photos( $this, $this->serviceName, 'photos', [ 'methods' => [ 'batchDelete' => [ 'path' => 'v1/photos:batchDelete', 'httpMethod' => 'POST', 'parameters' => [], ],'batchGet' => [ 'path' => 'v1/photos:batchGet', 'httpMethod' => 'GET', 'parameters' => [ 'languageCode' => [ 'location' => 'query', 'type' => 'string', ], 'photoIds' => [ 'location' => 'query', 'type' => 'string', 'repeated' => true, ], 'view' => [ 'location' => 'query', 'type' => 'string', ], ], ],'batchUpdate' => [ 'path' => 'v1/photos:batchUpdate', 'httpMethod' => 'POST', 'parameters' => [], ],'list' => [ 'path' => 'v1/photos', 'httpMethod' => 'GET', 'parameters' => [ 'filter' => [ 'location' => 'query', 'type' => 'string', ], 'languageCode' => [ 'location' => 'query', 'type' => 'string', ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], 'view' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(StreetViewPublish::class, 'Google_Service_StreetViewPublish');