source: vendor/google/apiclient-services/src/CloudFilestore.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 14.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 CloudFilestore (v1).
24 *
25 * <p>
26 * The Cloud Filestore API is used for creating and managing cloud file servers.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/filestore/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class CloudFilestore 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_backups;
43 public $projects_locations_instances;
44 public $projects_locations_instances_snapshots;
45 public $projects_locations_operations;
46 public $rootUrlTemplate;
47
48 /**
49 * Constructs the internal representation of the CloudFilestore service.
50 *
51 * @param Client|array $clientOrConfig The client used to deliver requests, or a
52 * config array to pass to a new Client instance.
53 * @param string $rootUrl The root URL used for requests to the service.
54 */
55 public function __construct($clientOrConfig = [], $rootUrl = null)
56 {
57 parent::__construct($clientOrConfig);
58 $this->rootUrl = $rootUrl ?: 'https://file.googleapis.com/';
59 $this->rootUrlTemplate = $rootUrl ?: 'https://file.UNIVERSE_DOMAIN/';
60 $this->servicePath = '';
61 $this->batchPath = 'batch';
62 $this->version = 'v1';
63 $this->serviceName = 'file';
64
65 $this->projects_locations = new CloudFilestore\Resource\ProjectsLocations(
66 $this,
67 $this->serviceName,
68 'locations',
69 [
70 'methods' => [
71 'get' => [
72 'path' => 'v1/{+name}',
73 'httpMethod' => 'GET',
74 'parameters' => [
75 'name' => [
76 'location' => 'path',
77 'type' => 'string',
78 'required' => true,
79 ],
80 ],
81 ],'list' => [
82 'path' => 'v1/{+name}/locations',
83 'httpMethod' => 'GET',
84 'parameters' => [
85 'name' => [
86 'location' => 'path',
87 'type' => 'string',
88 'required' => true,
89 ],
90 'filter' => [
91 'location' => 'query',
92 'type' => 'string',
93 ],
94 'includeUnrevealedLocations' => [
95 'location' => 'query',
96 'type' => 'boolean',
97 ],
98 'pageSize' => [
99 'location' => 'query',
100 'type' => 'integer',
101 ],
102 'pageToken' => [
103 'location' => 'query',
104 'type' => 'string',
105 ],
106 ],
107 ],
108 ]
109 ]
110 );
111 $this->projects_locations_backups = new CloudFilestore\Resource\ProjectsLocationsBackups(
112 $this,
113 $this->serviceName,
114 'backups',
115 [
116 'methods' => [
117 'create' => [
118 'path' => 'v1/{+parent}/backups',
119 'httpMethod' => 'POST',
120 'parameters' => [
121 'parent' => [
122 'location' => 'path',
123 'type' => 'string',
124 'required' => true,
125 ],
126 'backupId' => [
127 'location' => 'query',
128 'type' => 'string',
129 ],
130 ],
131 ],'delete' => [
132 'path' => 'v1/{+name}',
133 'httpMethod' => 'DELETE',
134 'parameters' => [
135 'name' => [
136 'location' => 'path',
137 'type' => 'string',
138 'required' => true,
139 ],
140 ],
141 ],'get' => [
142 'path' => 'v1/{+name}',
143 'httpMethod' => 'GET',
144 'parameters' => [
145 'name' => [
146 'location' => 'path',
147 'type' => 'string',
148 'required' => true,
149 ],
150 ],
151 ],'list' => [
152 'path' => 'v1/{+parent}/backups',
153 'httpMethod' => 'GET',
154 'parameters' => [
155 'parent' => [
156 'location' => 'path',
157 'type' => 'string',
158 'required' => true,
159 ],
160 'filter' => [
161 'location' => 'query',
162 'type' => 'string',
163 ],
164 'orderBy' => [
165 'location' => 'query',
166 'type' => 'string',
167 ],
168 'pageSize' => [
169 'location' => 'query',
170 'type' => 'integer',
171 ],
172 'pageToken' => [
173 'location' => 'query',
174 'type' => 'string',
175 ],
176 ],
177 ],'patch' => [
178 'path' => 'v1/{+name}',
179 'httpMethod' => 'PATCH',
180 'parameters' => [
181 'name' => [
182 'location' => 'path',
183 'type' => 'string',
184 'required' => true,
185 ],
186 'updateMask' => [
187 'location' => 'query',
188 'type' => 'string',
189 ],
190 ],
191 ],
192 ]
193 ]
194 );
195 $this->projects_locations_instances = new CloudFilestore\Resource\ProjectsLocationsInstances(
196 $this,
197 $this->serviceName,
198 'instances',
199 [
200 'methods' => [
201 'create' => [
202 'path' => 'v1/{+parent}/instances',
203 'httpMethod' => 'POST',
204 'parameters' => [
205 'parent' => [
206 'location' => 'path',
207 'type' => 'string',
208 'required' => true,
209 ],
210 'instanceId' => [
211 'location' => 'query',
212 'type' => 'string',
213 ],
214 ],
215 ],'delete' => [
216 'path' => 'v1/{+name}',
217 'httpMethod' => 'DELETE',
218 'parameters' => [
219 'name' => [
220 'location' => 'path',
221 'type' => 'string',
222 'required' => true,
223 ],
224 'force' => [
225 'location' => 'query',
226 'type' => 'boolean',
227 ],
228 ],
229 ],'get' => [
230 'path' => 'v1/{+name}',
231 'httpMethod' => 'GET',
232 'parameters' => [
233 'name' => [
234 'location' => 'path',
235 'type' => 'string',
236 'required' => true,
237 ],
238 ],
239 ],'list' => [
240 'path' => 'v1/{+parent}/instances',
241 'httpMethod' => 'GET',
242 'parameters' => [
243 'parent' => [
244 'location' => 'path',
245 'type' => 'string',
246 'required' => true,
247 ],
248 'filter' => [
249 'location' => 'query',
250 'type' => 'string',
251 ],
252 'orderBy' => [
253 'location' => 'query',
254 'type' => 'string',
255 ],
256 'pageSize' => [
257 'location' => 'query',
258 'type' => 'integer',
259 ],
260 'pageToken' => [
261 'location' => 'query',
262 'type' => 'string',
263 ],
264 ],
265 ],'patch' => [
266 'path' => 'v1/{+name}',
267 'httpMethod' => 'PATCH',
268 'parameters' => [
269 'name' => [
270 'location' => 'path',
271 'type' => 'string',
272 'required' => true,
273 ],
274 'updateMask' => [
275 'location' => 'query',
276 'type' => 'string',
277 ],
278 ],
279 ],'promoteReplica' => [
280 'path' => 'v1/{+name}:promoteReplica',
281 'httpMethod' => 'POST',
282 'parameters' => [
283 'name' => [
284 'location' => 'path',
285 'type' => 'string',
286 'required' => true,
287 ],
288 ],
289 ],'restore' => [
290 'path' => 'v1/{+name}:restore',
291 'httpMethod' => 'POST',
292 'parameters' => [
293 'name' => [
294 'location' => 'path',
295 'type' => 'string',
296 'required' => true,
297 ],
298 ],
299 ],'revert' => [
300 'path' => 'v1/{+name}:revert',
301 'httpMethod' => 'POST',
302 'parameters' => [
303 'name' => [
304 'location' => 'path',
305 'type' => 'string',
306 'required' => true,
307 ],
308 ],
309 ],
310 ]
311 ]
312 );
313 $this->projects_locations_instances_snapshots = new CloudFilestore\Resource\ProjectsLocationsInstancesSnapshots(
314 $this,
315 $this->serviceName,
316 'snapshots',
317 [
318 'methods' => [
319 'create' => [
320 'path' => 'v1/{+parent}/snapshots',
321 'httpMethod' => 'POST',
322 'parameters' => [
323 'parent' => [
324 'location' => 'path',
325 'type' => 'string',
326 'required' => true,
327 ],
328 'snapshotId' => [
329 'location' => 'query',
330 'type' => 'string',
331 ],
332 ],
333 ],'delete' => [
334 'path' => 'v1/{+name}',
335 'httpMethod' => 'DELETE',
336 'parameters' => [
337 'name' => [
338 'location' => 'path',
339 'type' => 'string',
340 'required' => true,
341 ],
342 ],
343 ],'get' => [
344 'path' => 'v1/{+name}',
345 'httpMethod' => 'GET',
346 'parameters' => [
347 'name' => [
348 'location' => 'path',
349 'type' => 'string',
350 'required' => true,
351 ],
352 ],
353 ],'list' => [
354 'path' => 'v1/{+parent}/snapshots',
355 'httpMethod' => 'GET',
356 'parameters' => [
357 'parent' => [
358 'location' => 'path',
359 'type' => 'string',
360 'required' => true,
361 ],
362 'filter' => [
363 'location' => 'query',
364 'type' => 'string',
365 ],
366 'orderBy' => [
367 'location' => 'query',
368 'type' => 'string',
369 ],
370 'pageSize' => [
371 'location' => 'query',
372 'type' => 'integer',
373 ],
374 'pageToken' => [
375 'location' => 'query',
376 'type' => 'string',
377 ],
378 ],
379 ],'patch' => [
380 'path' => 'v1/{+name}',
381 'httpMethod' => 'PATCH',
382 'parameters' => [
383 'name' => [
384 'location' => 'path',
385 'type' => 'string',
386 'required' => true,
387 ],
388 'updateMask' => [
389 'location' => 'query',
390 'type' => 'string',
391 ],
392 ],
393 ],
394 ]
395 ]
396 );
397 $this->projects_locations_operations = new CloudFilestore\Resource\ProjectsLocationsOperations(
398 $this,
399 $this->serviceName,
400 'operations',
401 [
402 'methods' => [
403 'cancel' => [
404 'path' => 'v1/{+name}:cancel',
405 'httpMethod' => 'POST',
406 'parameters' => [
407 'name' => [
408 'location' => 'path',
409 'type' => 'string',
410 'required' => true,
411 ],
412 ],
413 ],'delete' => [
414 'path' => 'v1/{+name}',
415 'httpMethod' => 'DELETE',
416 'parameters' => [
417 'name' => [
418 'location' => 'path',
419 'type' => 'string',
420 'required' => true,
421 ],
422 ],
423 ],'get' => [
424 'path' => 'v1/{+name}',
425 'httpMethod' => 'GET',
426 'parameters' => [
427 'name' => [
428 'location' => 'path',
429 'type' => 'string',
430 'required' => true,
431 ],
432 ],
433 ],'list' => [
434 'path' => 'v1/{+name}/operations',
435 'httpMethod' => 'GET',
436 'parameters' => [
437 'name' => [
438 'location' => 'path',
439 'type' => 'string',
440 'required' => true,
441 ],
442 'filter' => [
443 'location' => 'query',
444 'type' => 'string',
445 ],
446 'pageSize' => [
447 'location' => 'query',
448 'type' => 'integer',
449 ],
450 'pageToken' => [
451 'location' => 'query',
452 'type' => 'string',
453 ],
454 ],
455 ],
456 ]
457 ]
458 );
459 }
460}
461
462// Adding a class alias for backwards compatibility with the previous class name.
463class_alias(CloudFilestore::class, 'Google_Service_CloudFilestore');
Note: See TracBrowser for help on using the repository browser.