source: vendor/google/apiclient-services/src/CloudRedis.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: 16.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 CloudRedis (v1).
24 *
25 * <p>
26 * Creates and manages Redis instances on the Google Cloud Platform.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/memorystore/docs/redis/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class CloudRedis 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_backupCollections;
43 public $projects_locations_backupCollections_backups;
44 public $projects_locations_clusters;
45 public $projects_locations_instances;
46 public $projects_locations_operations;
47 public $rootUrlTemplate;
48
49 /**
50 * Constructs the internal representation of the CloudRedis 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://redis.googleapis.com/';
60 $this->rootUrlTemplate = $rootUrl ?: 'https://redis.UNIVERSE_DOMAIN/';
61 $this->servicePath = '';
62 $this->batchPath = 'batch';
63 $this->version = 'v1';
64 $this->serviceName = 'redis';
65
66 $this->projects_locations = new CloudRedis\Resource\ProjectsLocations(
67 $this,
68 $this->serviceName,
69 'locations',
70 [
71 'methods' => [
72 'get' => [
73 'path' => 'v1/{+name}',
74 'httpMethod' => 'GET',
75 'parameters' => [
76 'name' => [
77 'location' => 'path',
78 'type' => 'string',
79 'required' => true,
80 ],
81 ],
82 ],'list' => [
83 'path' => 'v1/{+name}/locations',
84 'httpMethod' => 'GET',
85 'parameters' => [
86 'name' => [
87 'location' => 'path',
88 'type' => 'string',
89 'required' => true,
90 ],
91 'filter' => [
92 'location' => 'query',
93 'type' => 'string',
94 ],
95 'pageSize' => [
96 'location' => 'query',
97 'type' => 'integer',
98 ],
99 'pageToken' => [
100 'location' => 'query',
101 'type' => 'string',
102 ],
103 ],
104 ],
105 ]
106 ]
107 );
108 $this->projects_locations_backupCollections = new CloudRedis\Resource\ProjectsLocationsBackupCollections(
109 $this,
110 $this->serviceName,
111 'backupCollections',
112 [
113 'methods' => [
114 'get' => [
115 'path' => 'v1/{+name}',
116 'httpMethod' => 'GET',
117 'parameters' => [
118 'name' => [
119 'location' => 'path',
120 'type' => 'string',
121 'required' => true,
122 ],
123 ],
124 ],'list' => [
125 'path' => 'v1/{+parent}/backupCollections',
126 'httpMethod' => 'GET',
127 'parameters' => [
128 'parent' => [
129 'location' => 'path',
130 'type' => 'string',
131 'required' => true,
132 ],
133 'pageSize' => [
134 'location' => 'query',
135 'type' => 'integer',
136 ],
137 'pageToken' => [
138 'location' => 'query',
139 'type' => 'string',
140 ],
141 ],
142 ],
143 ]
144 ]
145 );
146 $this->projects_locations_backupCollections_backups = new CloudRedis\Resource\ProjectsLocationsBackupCollectionsBackups(
147 $this,
148 $this->serviceName,
149 'backups',
150 [
151 'methods' => [
152 'delete' => [
153 'path' => 'v1/{+name}',
154 'httpMethod' => 'DELETE',
155 'parameters' => [
156 'name' => [
157 'location' => 'path',
158 'type' => 'string',
159 'required' => true,
160 ],
161 'requestId' => [
162 'location' => 'query',
163 'type' => 'string',
164 ],
165 ],
166 ],'export' => [
167 'path' => 'v1/{+name}:export',
168 'httpMethod' => 'POST',
169 'parameters' => [
170 'name' => [
171 'location' => 'path',
172 'type' => 'string',
173 'required' => true,
174 ],
175 ],
176 ],'get' => [
177 'path' => 'v1/{+name}',
178 'httpMethod' => 'GET',
179 'parameters' => [
180 'name' => [
181 'location' => 'path',
182 'type' => 'string',
183 'required' => true,
184 ],
185 ],
186 ],'list' => [
187 'path' => 'v1/{+parent}/backups',
188 'httpMethod' => 'GET',
189 'parameters' => [
190 'parent' => [
191 'location' => 'path',
192 'type' => 'string',
193 'required' => true,
194 ],
195 'pageSize' => [
196 'location' => 'query',
197 'type' => 'integer',
198 ],
199 'pageToken' => [
200 'location' => 'query',
201 'type' => 'string',
202 ],
203 ],
204 ],
205 ]
206 ]
207 );
208 $this->projects_locations_clusters = new CloudRedis\Resource\ProjectsLocationsClusters(
209 $this,
210 $this->serviceName,
211 'clusters',
212 [
213 'methods' => [
214 'backup' => [
215 'path' => 'v1/{+name}:backup',
216 'httpMethod' => 'POST',
217 'parameters' => [
218 'name' => [
219 'location' => 'path',
220 'type' => 'string',
221 'required' => true,
222 ],
223 ],
224 ],'create' => [
225 'path' => 'v1/{+parent}/clusters',
226 'httpMethod' => 'POST',
227 'parameters' => [
228 'parent' => [
229 'location' => 'path',
230 'type' => 'string',
231 'required' => true,
232 ],
233 'clusterId' => [
234 'location' => 'query',
235 'type' => 'string',
236 ],
237 'requestId' => [
238 'location' => 'query',
239 'type' => 'string',
240 ],
241 ],
242 ],'delete' => [
243 'path' => 'v1/{+name}',
244 'httpMethod' => 'DELETE',
245 'parameters' => [
246 'name' => [
247 'location' => 'path',
248 'type' => 'string',
249 'required' => true,
250 ],
251 'requestId' => [
252 'location' => 'query',
253 'type' => 'string',
254 ],
255 ],
256 ],'get' => [
257 'path' => 'v1/{+name}',
258 'httpMethod' => 'GET',
259 'parameters' => [
260 'name' => [
261 'location' => 'path',
262 'type' => 'string',
263 'required' => true,
264 ],
265 ],
266 ],'getCertificateAuthority' => [
267 'path' => 'v1/{+name}',
268 'httpMethod' => 'GET',
269 'parameters' => [
270 'name' => [
271 'location' => 'path',
272 'type' => 'string',
273 'required' => true,
274 ],
275 ],
276 ],'list' => [
277 'path' => 'v1/{+parent}/clusters',
278 'httpMethod' => 'GET',
279 'parameters' => [
280 'parent' => [
281 'location' => 'path',
282 'type' => 'string',
283 'required' => true,
284 ],
285 'pageSize' => [
286 'location' => 'query',
287 'type' => 'integer',
288 ],
289 'pageToken' => [
290 'location' => 'query',
291 'type' => 'string',
292 ],
293 ],
294 ],'patch' => [
295 'path' => 'v1/{+name}',
296 'httpMethod' => 'PATCH',
297 'parameters' => [
298 'name' => [
299 'location' => 'path',
300 'type' => 'string',
301 'required' => true,
302 ],
303 'requestId' => [
304 'location' => 'query',
305 'type' => 'string',
306 ],
307 'updateMask' => [
308 'location' => 'query',
309 'type' => 'string',
310 ],
311 ],
312 ],'rescheduleClusterMaintenance' => [
313 'path' => 'v1/{+name}:rescheduleClusterMaintenance',
314 'httpMethod' => 'POST',
315 'parameters' => [
316 'name' => [
317 'location' => 'path',
318 'type' => 'string',
319 'required' => true,
320 ],
321 ],
322 ],
323 ]
324 ]
325 );
326 $this->projects_locations_instances = new CloudRedis\Resource\ProjectsLocationsInstances(
327 $this,
328 $this->serviceName,
329 'instances',
330 [
331 'methods' => [
332 'create' => [
333 'path' => 'v1/{+parent}/instances',
334 'httpMethod' => 'POST',
335 'parameters' => [
336 'parent' => [
337 'location' => 'path',
338 'type' => 'string',
339 'required' => true,
340 ],
341 'instanceId' => [
342 'location' => 'query',
343 'type' => 'string',
344 ],
345 ],
346 ],'delete' => [
347 'path' => 'v1/{+name}',
348 'httpMethod' => 'DELETE',
349 'parameters' => [
350 'name' => [
351 'location' => 'path',
352 'type' => 'string',
353 'required' => true,
354 ],
355 ],
356 ],'export' => [
357 'path' => 'v1/{+name}:export',
358 'httpMethod' => 'POST',
359 'parameters' => [
360 'name' => [
361 'location' => 'path',
362 'type' => 'string',
363 'required' => true,
364 ],
365 ],
366 ],'failover' => [
367 'path' => 'v1/{+name}:failover',
368 'httpMethod' => 'POST',
369 'parameters' => [
370 'name' => [
371 'location' => 'path',
372 'type' => 'string',
373 'required' => true,
374 ],
375 ],
376 ],'get' => [
377 'path' => 'v1/{+name}',
378 'httpMethod' => 'GET',
379 'parameters' => [
380 'name' => [
381 'location' => 'path',
382 'type' => 'string',
383 'required' => true,
384 ],
385 ],
386 ],'getAuthString' => [
387 'path' => 'v1/{+name}/authString',
388 'httpMethod' => 'GET',
389 'parameters' => [
390 'name' => [
391 'location' => 'path',
392 'type' => 'string',
393 'required' => true,
394 ],
395 ],
396 ],'import' => [
397 'path' => 'v1/{+name}:import',
398 'httpMethod' => 'POST',
399 'parameters' => [
400 'name' => [
401 'location' => 'path',
402 'type' => 'string',
403 'required' => true,
404 ],
405 ],
406 ],'list' => [
407 'path' => 'v1/{+parent}/instances',
408 'httpMethod' => 'GET',
409 'parameters' => [
410 'parent' => [
411 'location' => 'path',
412 'type' => 'string',
413 'required' => true,
414 ],
415 'pageSize' => [
416 'location' => 'query',
417 'type' => 'integer',
418 ],
419 'pageToken' => [
420 'location' => 'query',
421 'type' => 'string',
422 ],
423 ],
424 ],'patch' => [
425 'path' => 'v1/{+name}',
426 'httpMethod' => 'PATCH',
427 'parameters' => [
428 'name' => [
429 'location' => 'path',
430 'type' => 'string',
431 'required' => true,
432 ],
433 'updateMask' => [
434 'location' => 'query',
435 'type' => 'string',
436 ],
437 ],
438 ],'rescheduleMaintenance' => [
439 'path' => 'v1/{+name}:rescheduleMaintenance',
440 'httpMethod' => 'POST',
441 'parameters' => [
442 'name' => [
443 'location' => 'path',
444 'type' => 'string',
445 'required' => true,
446 ],
447 ],
448 ],'upgrade' => [
449 'path' => 'v1/{+name}:upgrade',
450 'httpMethod' => 'POST',
451 'parameters' => [
452 'name' => [
453 'location' => 'path',
454 'type' => 'string',
455 'required' => true,
456 ],
457 ],
458 ],
459 ]
460 ]
461 );
462 $this->projects_locations_operations = new CloudRedis\Resource\ProjectsLocationsOperations(
463 $this,
464 $this->serviceName,
465 'operations',
466 [
467 'methods' => [
468 'cancel' => [
469 'path' => 'v1/{+name}:cancel',
470 'httpMethod' => 'POST',
471 'parameters' => [
472 'name' => [
473 'location' => 'path',
474 'type' => 'string',
475 'required' => true,
476 ],
477 ],
478 ],'delete' => [
479 'path' => 'v1/{+name}',
480 'httpMethod' => 'DELETE',
481 'parameters' => [
482 'name' => [
483 'location' => 'path',
484 'type' => 'string',
485 'required' => true,
486 ],
487 ],
488 ],'get' => [
489 'path' => 'v1/{+name}',
490 'httpMethod' => 'GET',
491 'parameters' => [
492 'name' => [
493 'location' => 'path',
494 'type' => 'string',
495 'required' => true,
496 ],
497 ],
498 ],'list' => [
499 'path' => 'v1/{+name}/operations',
500 'httpMethod' => 'GET',
501 'parameters' => [
502 'name' => [
503 'location' => 'path',
504 'type' => 'string',
505 'required' => true,
506 ],
507 'filter' => [
508 'location' => 'query',
509 'type' => 'string',
510 ],
511 'pageSize' => [
512 'location' => 'query',
513 'type' => 'integer',
514 ],
515 'pageToken' => [
516 'location' => 'query',
517 'type' => 'string',
518 ],
519 ],
520 ],
521 ]
522 ]
523 );
524 }
525}
526
527// Adding a class alias for backwards compatibility with the previous class name.
528class_alias(CloudRedis::class, 'Google_Service_CloudRedis');
Note: See TracBrowser for help on using the repository browser.