source: vendor/google/apiclient-services/src/CloudMemorystoreforMemcached.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: 9.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 CloudMemorystoreforMemcached (v1).
24 *
25 * <p>
26 * Google Cloud Memorystore for Memcached API is used for creating and managing
27 * Memcached instances in GCP.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/memorystore/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class CloudMemorystoreforMemcached extends \Google\Service
37{
38 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
39 const CLOUD_PLATFORM =
40 "https://www.googleapis.com/auth/cloud-platform";
41
42 public $projects_locations;
43 public $projects_locations_instances;
44 public $projects_locations_operations;
45 public $rootUrlTemplate;
46
47 /**
48 * Constructs the internal representation of the CloudMemorystoreforMemcached
49 * 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://memcache.googleapis.com/';
59 $this->rootUrlTemplate = $rootUrl ?: 'https://memcache.UNIVERSE_DOMAIN/';
60 $this->servicePath = '';
61 $this->batchPath = 'batch';
62 $this->version = 'v1';
63 $this->serviceName = 'memcache';
64
65 $this->projects_locations = new CloudMemorystoreforMemcached\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 'pageSize' => [
95 'location' => 'query',
96 'type' => 'integer',
97 ],
98 'pageToken' => [
99 'location' => 'query',
100 'type' => 'string',
101 ],
102 ],
103 ],
104 ]
105 ]
106 );
107 $this->projects_locations_instances = new CloudMemorystoreforMemcached\Resource\ProjectsLocationsInstances(
108 $this,
109 $this->serviceName,
110 'instances',
111 [
112 'methods' => [
113 'applyParameters' => [
114 'path' => 'v1/{+name}:applyParameters',
115 'httpMethod' => 'POST',
116 'parameters' => [
117 'name' => [
118 'location' => 'path',
119 'type' => 'string',
120 'required' => true,
121 ],
122 ],
123 ],'create' => [
124 'path' => 'v1/{+parent}/instances',
125 'httpMethod' => 'POST',
126 'parameters' => [
127 'parent' => [
128 'location' => 'path',
129 'type' => 'string',
130 'required' => true,
131 ],
132 'instanceId' => [
133 'location' => 'query',
134 'type' => 'string',
135 ],
136 ],
137 ],'delete' => [
138 'path' => 'v1/{+name}',
139 'httpMethod' => 'DELETE',
140 'parameters' => [
141 'name' => [
142 'location' => 'path',
143 'type' => 'string',
144 'required' => true,
145 ],
146 ],
147 ],'get' => [
148 'path' => 'v1/{+name}',
149 'httpMethod' => 'GET',
150 'parameters' => [
151 'name' => [
152 'location' => 'path',
153 'type' => 'string',
154 'required' => true,
155 ],
156 ],
157 ],'list' => [
158 'path' => 'v1/{+parent}/instances',
159 'httpMethod' => 'GET',
160 'parameters' => [
161 'parent' => [
162 'location' => 'path',
163 'type' => 'string',
164 'required' => true,
165 ],
166 'filter' => [
167 'location' => 'query',
168 'type' => 'string',
169 ],
170 'orderBy' => [
171 'location' => 'query',
172 'type' => 'string',
173 ],
174 'pageSize' => [
175 'location' => 'query',
176 'type' => 'integer',
177 ],
178 'pageToken' => [
179 'location' => 'query',
180 'type' => 'string',
181 ],
182 ],
183 ],'patch' => [
184 'path' => 'v1/{+name}',
185 'httpMethod' => 'PATCH',
186 'parameters' => [
187 'name' => [
188 'location' => 'path',
189 'type' => 'string',
190 'required' => true,
191 ],
192 'updateMask' => [
193 'location' => 'query',
194 'type' => 'string',
195 ],
196 ],
197 ],'rescheduleMaintenance' => [
198 'path' => 'v1/{+instance}:rescheduleMaintenance',
199 'httpMethod' => 'POST',
200 'parameters' => [
201 'instance' => [
202 'location' => 'path',
203 'type' => 'string',
204 'required' => true,
205 ],
206 ],
207 ],'updateParameters' => [
208 'path' => 'v1/{+name}:updateParameters',
209 'httpMethod' => 'PATCH',
210 'parameters' => [
211 'name' => [
212 'location' => 'path',
213 'type' => 'string',
214 'required' => true,
215 ],
216 ],
217 ],'upgrade' => [
218 'path' => 'v1/{+name}:upgrade',
219 'httpMethod' => 'POST',
220 'parameters' => [
221 'name' => [
222 'location' => 'path',
223 'type' => 'string',
224 'required' => true,
225 ],
226 ],
227 ],
228 ]
229 ]
230 );
231 $this->projects_locations_operations = new CloudMemorystoreforMemcached\Resource\ProjectsLocationsOperations(
232 $this,
233 $this->serviceName,
234 'operations',
235 [
236 'methods' => [
237 'cancel' => [
238 'path' => 'v1/{+name}:cancel',
239 'httpMethod' => 'POST',
240 'parameters' => [
241 'name' => [
242 'location' => 'path',
243 'type' => 'string',
244 'required' => true,
245 ],
246 ],
247 ],'delete' => [
248 'path' => 'v1/{+name}',
249 'httpMethod' => 'DELETE',
250 'parameters' => [
251 'name' => [
252 'location' => 'path',
253 'type' => 'string',
254 'required' => true,
255 ],
256 ],
257 ],'get' => [
258 'path' => 'v1/{+name}',
259 'httpMethod' => 'GET',
260 'parameters' => [
261 'name' => [
262 'location' => 'path',
263 'type' => 'string',
264 'required' => true,
265 ],
266 ],
267 ],'list' => [
268 'path' => 'v1/{+name}/operations',
269 'httpMethod' => 'GET',
270 'parameters' => [
271 'name' => [
272 'location' => 'path',
273 'type' => 'string',
274 'required' => true,
275 ],
276 'filter' => [
277 'location' => 'query',
278 'type' => 'string',
279 ],
280 'pageSize' => [
281 'location' => 'query',
282 'type' => 'integer',
283 ],
284 'pageToken' => [
285 'location' => 'query',
286 'type' => 'string',
287 ],
288 ],
289 ],
290 ]
291 ]
292 );
293 }
294}
295
296// Adding a class alias for backwards compatibility with the previous class name.
297class_alias(CloudMemorystoreforMemcached::class, 'Google_Service_CloudMemorystoreforMemcached');
Note: See TracBrowser for help on using the repository browser.