source: vendor/google/apiclient-services/src/Looker.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 11.1 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 Looker (v1).
24 *
25 * <p>
26</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/looker/docs/reference/rest/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Looker extends \Google\Service
36{
37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40
41 public $projects_locations;
42 public $projects_locations_instances;
43 public $projects_locations_instances_backups;
44 public $projects_locations_operations;
45 public $rootUrlTemplate;
46
47 /**
48 * Constructs the internal representation of the Looker service.
49 *
50 * @param Client|array $clientOrConfig The client used to deliver requests, or a
51 * config array to pass to a new Client instance.
52 * @param string $rootUrl The root URL used for requests to the service.
53 */
54 public function __construct($clientOrConfig = [], $rootUrl = null)
55 {
56 parent::__construct($clientOrConfig);
57 $this->rootUrl = $rootUrl ?: 'https://looker.googleapis.com/';
58 $this->rootUrlTemplate = $rootUrl ?: 'https://looker.UNIVERSE_DOMAIN/';
59 $this->servicePath = '';
60 $this->batchPath = 'batch';
61 $this->version = 'v1';
62 $this->serviceName = 'looker';
63
64 $this->projects_locations = new Looker\Resource\ProjectsLocations(
65 $this,
66 $this->serviceName,
67 'locations',
68 [
69 'methods' => [
70 'get' => [
71 'path' => 'v1/{+name}',
72 'httpMethod' => 'GET',
73 'parameters' => [
74 'name' => [
75 'location' => 'path',
76 'type' => 'string',
77 'required' => true,
78 ],
79 ],
80 ],'list' => [
81 'path' => 'v1/{+name}/locations',
82 'httpMethod' => 'GET',
83 'parameters' => [
84 'name' => [
85 'location' => 'path',
86 'type' => 'string',
87 'required' => true,
88 ],
89 'filter' => [
90 'location' => 'query',
91 'type' => 'string',
92 ],
93 'pageSize' => [
94 'location' => 'query',
95 'type' => 'integer',
96 ],
97 'pageToken' => [
98 'location' => 'query',
99 'type' => 'string',
100 ],
101 ],
102 ],
103 ]
104 ]
105 );
106 $this->projects_locations_instances = new Looker\Resource\ProjectsLocationsInstances(
107 $this,
108 $this->serviceName,
109 'instances',
110 [
111 'methods' => [
112 'create' => [
113 'path' => 'v1/{+parent}/instances',
114 'httpMethod' => 'POST',
115 'parameters' => [
116 'parent' => [
117 'location' => 'path',
118 'type' => 'string',
119 'required' => true,
120 ],
121 'instanceId' => [
122 'location' => 'query',
123 'type' => 'string',
124 ],
125 ],
126 ],'delete' => [
127 'path' => 'v1/{+name}',
128 'httpMethod' => 'DELETE',
129 'parameters' => [
130 'name' => [
131 'location' => 'path',
132 'type' => 'string',
133 'required' => true,
134 ],
135 'force' => [
136 'location' => 'query',
137 'type' => 'boolean',
138 ],
139 ],
140 ],'export' => [
141 'path' => 'v1/{+name}:export',
142 'httpMethod' => 'POST',
143 'parameters' => [
144 'name' => [
145 'location' => 'path',
146 'type' => 'string',
147 'required' => true,
148 ],
149 ],
150 ],'get' => [
151 'path' => 'v1/{+name}',
152 'httpMethod' => 'GET',
153 'parameters' => [
154 'name' => [
155 'location' => 'path',
156 'type' => 'string',
157 'required' => true,
158 ],
159 ],
160 ],'getIamPolicy' => [
161 'path' => 'v1/{+resource}:getIamPolicy',
162 'httpMethod' => 'GET',
163 'parameters' => [
164 'resource' => [
165 'location' => 'path',
166 'type' => 'string',
167 'required' => true,
168 ],
169 'options.requestedPolicyVersion' => [
170 'location' => 'query',
171 'type' => 'integer',
172 ],
173 ],
174 ],'import' => [
175 'path' => 'v1/{+name}:import',
176 'httpMethod' => 'POST',
177 'parameters' => [
178 'name' => [
179 'location' => 'path',
180 'type' => 'string',
181 'required' => true,
182 ],
183 ],
184 ],'list' => [
185 'path' => 'v1/{+parent}/instances',
186 'httpMethod' => 'GET',
187 'parameters' => [
188 'parent' => [
189 'location' => 'path',
190 'type' => 'string',
191 'required' => true,
192 ],
193 'pageSize' => [
194 'location' => 'query',
195 'type' => 'integer',
196 ],
197 'pageToken' => [
198 'location' => 'query',
199 'type' => 'string',
200 ],
201 ],
202 ],'patch' => [
203 'path' => 'v1/{+name}',
204 'httpMethod' => 'PATCH',
205 'parameters' => [
206 'name' => [
207 'location' => 'path',
208 'type' => 'string',
209 'required' => true,
210 ],
211 'updateMask' => [
212 'location' => 'query',
213 'type' => 'string',
214 ],
215 ],
216 ],'restart' => [
217 'path' => 'v1/{+name}:restart',
218 'httpMethod' => 'POST',
219 'parameters' => [
220 'name' => [
221 'location' => 'path',
222 'type' => 'string',
223 'required' => true,
224 ],
225 ],
226 ],'setIamPolicy' => [
227 'path' => 'v1/{+resource}:setIamPolicy',
228 'httpMethod' => 'POST',
229 'parameters' => [
230 'resource' => [
231 'location' => 'path',
232 'type' => 'string',
233 'required' => true,
234 ],
235 ],
236 ],'testIamPermissions' => [
237 'path' => 'v1/{+resource}:testIamPermissions',
238 'httpMethod' => 'POST',
239 'parameters' => [
240 'resource' => [
241 'location' => 'path',
242 'type' => 'string',
243 'required' => true,
244 ],
245 ],
246 ],
247 ]
248 ]
249 );
250 $this->projects_locations_instances_backups = new Looker\Resource\ProjectsLocationsInstancesBackups(
251 $this,
252 $this->serviceName,
253 'backups',
254 [
255 'methods' => [
256 'getIamPolicy' => [
257 'path' => 'v1/{+resource}:getIamPolicy',
258 'httpMethod' => 'GET',
259 'parameters' => [
260 'resource' => [
261 'location' => 'path',
262 'type' => 'string',
263 'required' => true,
264 ],
265 'options.requestedPolicyVersion' => [
266 'location' => 'query',
267 'type' => 'integer',
268 ],
269 ],
270 ],'setIamPolicy' => [
271 'path' => 'v1/{+resource}:setIamPolicy',
272 'httpMethod' => 'POST',
273 'parameters' => [
274 'resource' => [
275 'location' => 'path',
276 'type' => 'string',
277 'required' => true,
278 ],
279 ],
280 ],'testIamPermissions' => [
281 'path' => 'v1/{+resource}:testIamPermissions',
282 'httpMethod' => 'POST',
283 'parameters' => [
284 'resource' => [
285 'location' => 'path',
286 'type' => 'string',
287 'required' => true,
288 ],
289 ],
290 ],
291 ]
292 ]
293 );
294 $this->projects_locations_operations = new Looker\Resource\ProjectsLocationsOperations(
295 $this,
296 $this->serviceName,
297 'operations',
298 [
299 'methods' => [
300 'cancel' => [
301 'path' => 'v1/{+name}:cancel',
302 'httpMethod' => 'POST',
303 'parameters' => [
304 'name' => [
305 'location' => 'path',
306 'type' => 'string',
307 'required' => true,
308 ],
309 ],
310 ],'delete' => [
311 'path' => 'v1/{+name}',
312 'httpMethod' => 'DELETE',
313 'parameters' => [
314 'name' => [
315 'location' => 'path',
316 'type' => 'string',
317 'required' => true,
318 ],
319 ],
320 ],'get' => [
321 'path' => 'v1/{+name}',
322 'httpMethod' => 'GET',
323 'parameters' => [
324 'name' => [
325 'location' => 'path',
326 'type' => 'string',
327 'required' => true,
328 ],
329 ],
330 ],'list' => [
331 'path' => 'v1/{+name}/operations',
332 'httpMethod' => 'GET',
333 'parameters' => [
334 'name' => [
335 'location' => 'path',
336 'type' => 'string',
337 'required' => true,
338 ],
339 'filter' => [
340 'location' => 'query',
341 'type' => 'string',
342 ],
343 'pageSize' => [
344 'location' => 'query',
345 'type' => 'integer',
346 ],
347 'pageToken' => [
348 'location' => 'query',
349 'type' => 'string',
350 ],
351 ],
352 ],
353 ]
354 ]
355 );
356 }
357}
358
359// Adding a class alias for backwards compatibility with the previous class name.
360class_alias(Looker::class, 'Google_Service_Looker');
Note: See TracBrowser for help on using the repository browser.