source: vendor/google/apiclient-services/src/Parallelstore.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: 8.8 KB
RevLine 
[e3d4e0a]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 Parallelstore (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/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Parallelstore 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_operations;
44 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the Parallelstore service.
48 *
49 * @param Client|array $clientOrConfig The client used to deliver requests, or a
50 * config array to pass to a new Client instance.
51 * @param string $rootUrl The root URL used for requests to the service.
52 */
53 public function __construct($clientOrConfig = [], $rootUrl = null)
54 {
55 parent::__construct($clientOrConfig);
56 $this->rootUrl = $rootUrl ?: 'https://parallelstore.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://parallelstore.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1';
61 $this->serviceName = 'parallelstore';
62
63 $this->projects_locations = new Parallelstore\Resource\ProjectsLocations(
64 $this,
65 $this->serviceName,
66 'locations',
67 [
68 'methods' => [
69 'get' => [
70 'path' => 'v1/{+name}',
71 'httpMethod' => 'GET',
72 'parameters' => [
73 'name' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 ],
79 ],'list' => [
80 'path' => 'v1/{+name}/locations',
81 'httpMethod' => 'GET',
82 'parameters' => [
83 'name' => [
84 'location' => 'path',
85 'type' => 'string',
86 'required' => true,
87 ],
88 'filter' => [
89 'location' => 'query',
90 'type' => 'string',
91 ],
92 'pageSize' => [
93 'location' => 'query',
94 'type' => 'integer',
95 ],
96 'pageToken' => [
97 'location' => 'query',
98 'type' => 'string',
99 ],
100 ],
101 ],
102 ]
103 ]
104 );
105 $this->projects_locations_instances = new Parallelstore\Resource\ProjectsLocationsInstances(
106 $this,
107 $this->serviceName,
108 'instances',
109 [
110 'methods' => [
111 'create' => [
112 'path' => 'v1/{+parent}/instances',
113 'httpMethod' => 'POST',
114 'parameters' => [
115 'parent' => [
116 'location' => 'path',
117 'type' => 'string',
118 'required' => true,
119 ],
120 'instanceId' => [
121 'location' => 'query',
122 'type' => 'string',
123 ],
124 'requestId' => [
125 'location' => 'query',
126 'type' => 'string',
127 ],
128 ],
129 ],'delete' => [
130 'path' => 'v1/{+name}',
131 'httpMethod' => 'DELETE',
132 'parameters' => [
133 'name' => [
134 'location' => 'path',
135 'type' => 'string',
136 'required' => true,
137 ],
138 'requestId' => [
139 'location' => 'query',
140 'type' => 'string',
141 ],
142 ],
143 ],'exportData' => [
144 'path' => 'v1/{+name}:exportData',
145 'httpMethod' => 'POST',
146 'parameters' => [
147 'name' => [
148 'location' => 'path',
149 'type' => 'string',
150 'required' => true,
151 ],
152 ],
153 ],'get' => [
154 'path' => 'v1/{+name}',
155 'httpMethod' => 'GET',
156 'parameters' => [
157 'name' => [
158 'location' => 'path',
159 'type' => 'string',
160 'required' => true,
161 ],
162 ],
163 ],'importData' => [
164 'path' => 'v1/{+name}:importData',
165 'httpMethod' => 'POST',
166 'parameters' => [
167 'name' => [
168 'location' => 'path',
169 'type' => 'string',
170 'required' => true,
171 ],
172 ],
173 ],'list' => [
174 'path' => 'v1/{+parent}/instances',
175 'httpMethod' => 'GET',
176 'parameters' => [
177 'parent' => [
178 'location' => 'path',
179 'type' => 'string',
180 'required' => true,
181 ],
182 'filter' => [
183 'location' => 'query',
184 'type' => 'string',
185 ],
186 'orderBy' => [
187 'location' => 'query',
188 'type' => 'string',
189 ],
190 'pageSize' => [
191 'location' => 'query',
192 'type' => 'integer',
193 ],
194 'pageToken' => [
195 'location' => 'query',
196 'type' => 'string',
197 ],
198 ],
199 ],'patch' => [
200 'path' => 'v1/{+name}',
201 'httpMethod' => 'PATCH',
202 'parameters' => [
203 'name' => [
204 'location' => 'path',
205 'type' => 'string',
206 'required' => true,
207 ],
208 'requestId' => [
209 'location' => 'query',
210 'type' => 'string',
211 ],
212 'updateMask' => [
213 'location' => 'query',
214 'type' => 'string',
215 ],
216 ],
217 ],
218 ]
219 ]
220 );
221 $this->projects_locations_operations = new Parallelstore\Resource\ProjectsLocationsOperations(
222 $this,
223 $this->serviceName,
224 'operations',
225 [
226 'methods' => [
227 'cancel' => [
228 'path' => 'v1/{+name}:cancel',
229 'httpMethod' => 'POST',
230 'parameters' => [
231 'name' => [
232 'location' => 'path',
233 'type' => 'string',
234 'required' => true,
235 ],
236 ],
237 ],'delete' => [
238 'path' => 'v1/{+name}',
239 'httpMethod' => 'DELETE',
240 'parameters' => [
241 'name' => [
242 'location' => 'path',
243 'type' => 'string',
244 'required' => true,
245 ],
246 ],
247 ],'get' => [
248 'path' => 'v1/{+name}',
249 'httpMethod' => 'GET',
250 'parameters' => [
251 'name' => [
252 'location' => 'path',
253 'type' => 'string',
254 'required' => true,
255 ],
256 ],
257 ],'list' => [
258 'path' => 'v1/{+name}/operations',
259 'httpMethod' => 'GET',
260 'parameters' => [
261 'name' => [
262 'location' => 'path',
263 'type' => 'string',
264 'required' => true,
265 ],
266 'filter' => [
267 'location' => 'query',
268 'type' => 'string',
269 ],
270 'pageSize' => [
271 'location' => 'query',
272 'type' => 'integer',
273 ],
274 'pageToken' => [
275 'location' => 'query',
276 'type' => 'string',
277 ],
278 ],
279 ],
280 ]
281 ]
282 );
283 }
284}
285
286// Adding a class alias for backwards compatibility with the previous class name.
287class_alias(Parallelstore::class, 'Google_Service_Parallelstore');
Note: See TracBrowser for help on using the repository browser.