source: vendor/google/apiclient-services/src/StreetViewPublish.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 8.3 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for StreetViewPublish (v1).
24 *
25 * <p>
26 * Publishes 360 photos to Google Maps, along with position, orientation, and
27 * connectivity metadata. Apps can offer an interface for positioning,
28 * connecting, and uploading user-generated Street View images.</p>
29 *
30 * <p>
31 * For more information about this service, see the API
32 * <a href="https://developers.google.com/streetview/publish/" target="_blank">Documentation</a>
33 * </p>
34 *
35 * @author Google, Inc.
36 */
37class StreetViewPublish extends \Google\Service
38{
39 /** Publish and manage your 360 photos on Google Street View. */
40 const STREETVIEWPUBLISH =
41 "https://www.googleapis.com/auth/streetviewpublish";
42
43 public $photo;
44 public $photoSequence;
45 public $photoSequences;
46 public $photos;
47 public $rootUrlTemplate;
48
49 /**
50 * Constructs the internal representation of the StreetViewPublish service.
51 *
52 * @param Client|array $clientOrConfig The client used to deliver requests, or a
53 * config array to pass to a new Client instance.
54 * @param string $rootUrl The root URL used for requests to the service.
55 */
56 public function __construct($clientOrConfig = [], $rootUrl = null)
57 {
58 parent::__construct($clientOrConfig);
59 $this->rootUrl = $rootUrl ?: 'https://streetviewpublish.googleapis.com/';
60 $this->rootUrlTemplate = $rootUrl ?: 'https://streetviewpublish.UNIVERSE_DOMAIN/';
61 $this->servicePath = '';
62 $this->batchPath = 'batch';
63 $this->version = 'v1';
64 $this->serviceName = 'streetviewpublish';
65
66 $this->photo = new StreetViewPublish\Resource\Photo(
67 $this,
68 $this->serviceName,
69 'photo',
70 [
71 'methods' => [
72 'create' => [
73 'path' => 'v1/photo',
74 'httpMethod' => 'POST',
75 'parameters' => [],
76 ],'delete' => [
77 'path' => 'v1/photo/{photoId}',
78 'httpMethod' => 'DELETE',
79 'parameters' => [
80 'photoId' => [
81 'location' => 'path',
82 'type' => 'string',
83 'required' => true,
84 ],
85 ],
86 ],'get' => [
87 'path' => 'v1/photo/{photoId}',
88 'httpMethod' => 'GET',
89 'parameters' => [
90 'photoId' => [
91 'location' => 'path',
92 'type' => 'string',
93 'required' => true,
94 ],
95 'languageCode' => [
96 'location' => 'query',
97 'type' => 'string',
98 ],
99 'view' => [
100 'location' => 'query',
101 'type' => 'string',
102 ],
103 ],
104 ],'startUpload' => [
105 'path' => 'v1/photo:startUpload',
106 'httpMethod' => 'POST',
107 'parameters' => [],
108 ],'update' => [
109 'path' => 'v1/photo/{id}',
110 'httpMethod' => 'PUT',
111 'parameters' => [
112 'id' => [
113 'location' => 'path',
114 'type' => 'string',
115 'required' => true,
116 ],
117 'updateMask' => [
118 'location' => 'query',
119 'type' => 'string',
120 ],
121 ],
122 ],
123 ]
124 ]
125 );
126 $this->photoSequence = new StreetViewPublish\Resource\PhotoSequence(
127 $this,
128 $this->serviceName,
129 'photoSequence',
130 [
131 'methods' => [
132 'create' => [
133 'path' => 'v1/photoSequence',
134 'httpMethod' => 'POST',
135 'parameters' => [
136 'inputType' => [
137 'location' => 'query',
138 'type' => 'string',
139 ],
140 ],
141 ],'delete' => [
142 'path' => 'v1/photoSequence/{sequenceId}',
143 'httpMethod' => 'DELETE',
144 'parameters' => [
145 'sequenceId' => [
146 'location' => 'path',
147 'type' => 'string',
148 'required' => true,
149 ],
150 ],
151 ],'get' => [
152 'path' => 'v1/photoSequence/{sequenceId}',
153 'httpMethod' => 'GET',
154 'parameters' => [
155 'sequenceId' => [
156 'location' => 'path',
157 'type' => 'string',
158 'required' => true,
159 ],
160 'filter' => [
161 'location' => 'query',
162 'type' => 'string',
163 ],
164 'view' => [
165 'location' => 'query',
166 'type' => 'string',
167 ],
168 ],
169 ],'startUpload' => [
170 'path' => 'v1/photoSequence:startUpload',
171 'httpMethod' => 'POST',
172 'parameters' => [],
173 ],
174 ]
175 ]
176 );
177 $this->photoSequences = new StreetViewPublish\Resource\PhotoSequences(
178 $this,
179 $this->serviceName,
180 'photoSequences',
181 [
182 'methods' => [
183 'list' => [
184 'path' => 'v1/photoSequences',
185 'httpMethod' => 'GET',
186 'parameters' => [
187 'filter' => [
188 'location' => 'query',
189 'type' => 'string',
190 ],
191 'pageSize' => [
192 'location' => 'query',
193 'type' => 'integer',
194 ],
195 'pageToken' => [
196 'location' => 'query',
197 'type' => 'string',
198 ],
199 ],
200 ],
201 ]
202 ]
203 );
204 $this->photos = new StreetViewPublish\Resource\Photos(
205 $this,
206 $this->serviceName,
207 'photos',
208 [
209 'methods' => [
210 'batchDelete' => [
211 'path' => 'v1/photos:batchDelete',
212 'httpMethod' => 'POST',
213 'parameters' => [],
214 ],'batchGet' => [
215 'path' => 'v1/photos:batchGet',
216 'httpMethod' => 'GET',
217 'parameters' => [
218 'languageCode' => [
219 'location' => 'query',
220 'type' => 'string',
221 ],
222 'photoIds' => [
223 'location' => 'query',
224 'type' => 'string',
225 'repeated' => true,
226 ],
227 'view' => [
228 'location' => 'query',
229 'type' => 'string',
230 ],
231 ],
232 ],'batchUpdate' => [
233 'path' => 'v1/photos:batchUpdate',
234 'httpMethod' => 'POST',
235 'parameters' => [],
236 ],'list' => [
237 'path' => 'v1/photos',
238 'httpMethod' => 'GET',
239 'parameters' => [
240 'filter' => [
241 'location' => 'query',
242 'type' => 'string',
243 ],
244 'languageCode' => [
245 'location' => 'query',
246 'type' => 'string',
247 ],
248 'pageSize' => [
249 'location' => 'query',
250 'type' => 'integer',
251 ],
252 'pageToken' => [
253 'location' => 'query',
254 'type' => 'string',
255 ],
256 'view' => [
257 'location' => 'query',
258 'type' => 'string',
259 ],
260 ],
261 ],
262 ]
263 ]
264 );
265 }
266}
267
268// Adding a class alias for backwards compatibility with the previous class name.
269class_alias(StreetViewPublish::class, 'Google_Service_StreetViewPublish');
Note: See TracBrowser for help on using the repository browser.