source: vendor/google/apiclient-services/src/Datastore.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: 10.0 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 Datastore (v1).
24 *
25 * <p>
26 * Accesses the schemaless NoSQL database to provide fully managed, robust,
27 * scalable storage for your application.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/datastore/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class Datastore 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 /** View and manage your Google Cloud Datastore data. */
42 const DATASTORE =
43 "https://www.googleapis.com/auth/datastore";
44
45 public $projects;
46 public $projects_indexes;
47 public $projects_operations;
48 public $rootUrlTemplate;
49
50 /**
51 * Constructs the internal representation of the Datastore service.
52 *
53 * @param Client|array $clientOrConfig The client used to deliver requests, or a
54 * config array to pass to a new Client instance.
55 * @param string $rootUrl The root URL used for requests to the service.
56 */
57 public function __construct($clientOrConfig = [], $rootUrl = null)
58 {
59 parent::__construct($clientOrConfig);
60 $this->rootUrl = $rootUrl ?: 'https://datastore.googleapis.com/';
61 $this->rootUrlTemplate = $rootUrl ?: 'https://datastore.UNIVERSE_DOMAIN/';
62 $this->servicePath = '';
63 $this->batchPath = 'batch';
64 $this->version = 'v1';
65 $this->serviceName = 'datastore';
66
67 $this->projects = new Datastore\Resource\Projects(
68 $this,
69 $this->serviceName,
70 'projects',
71 [
72 'methods' => [
73 'allocateIds' => [
74 'path' => 'v1/projects/{projectId}:allocateIds',
75 'httpMethod' => 'POST',
76 'parameters' => [
77 'projectId' => [
78 'location' => 'path',
79 'type' => 'string',
80 'required' => true,
81 ],
82 ],
83 ],'beginTransaction' => [
84 'path' => 'v1/projects/{projectId}:beginTransaction',
85 'httpMethod' => 'POST',
86 'parameters' => [
87 'projectId' => [
88 'location' => 'path',
89 'type' => 'string',
90 'required' => true,
91 ],
92 ],
93 ],'commit' => [
94 'path' => 'v1/projects/{projectId}:commit',
95 'httpMethod' => 'POST',
96 'parameters' => [
97 'projectId' => [
98 'location' => 'path',
99 'type' => 'string',
100 'required' => true,
101 ],
102 ],
103 ],'export' => [
104 'path' => 'v1/projects/{projectId}:export',
105 'httpMethod' => 'POST',
106 'parameters' => [
107 'projectId' => [
108 'location' => 'path',
109 'type' => 'string',
110 'required' => true,
111 ],
112 ],
113 ],'import' => [
114 'path' => 'v1/projects/{projectId}:import',
115 'httpMethod' => 'POST',
116 'parameters' => [
117 'projectId' => [
118 'location' => 'path',
119 'type' => 'string',
120 'required' => true,
121 ],
122 ],
123 ],'lookup' => [
124 'path' => 'v1/projects/{projectId}:lookup',
125 'httpMethod' => 'POST',
126 'parameters' => [
127 'projectId' => [
128 'location' => 'path',
129 'type' => 'string',
130 'required' => true,
131 ],
132 ],
133 ],'reserveIds' => [
134 'path' => 'v1/projects/{projectId}:reserveIds',
135 'httpMethod' => 'POST',
136 'parameters' => [
137 'projectId' => [
138 'location' => 'path',
139 'type' => 'string',
140 'required' => true,
141 ],
142 ],
143 ],'rollback' => [
144 'path' => 'v1/projects/{projectId}:rollback',
145 'httpMethod' => 'POST',
146 'parameters' => [
147 'projectId' => [
148 'location' => 'path',
149 'type' => 'string',
150 'required' => true,
151 ],
152 ],
153 ],'runAggregationQuery' => [
154 'path' => 'v1/projects/{projectId}:runAggregationQuery',
155 'httpMethod' => 'POST',
156 'parameters' => [
157 'projectId' => [
158 'location' => 'path',
159 'type' => 'string',
160 'required' => true,
161 ],
162 ],
163 ],'runQuery' => [
164 'path' => 'v1/projects/{projectId}:runQuery',
165 'httpMethod' => 'POST',
166 'parameters' => [
167 'projectId' => [
168 'location' => 'path',
169 'type' => 'string',
170 'required' => true,
171 ],
172 ],
173 ],
174 ]
175 ]
176 );
177 $this->projects_indexes = new Datastore\Resource\ProjectsIndexes(
178 $this,
179 $this->serviceName,
180 'indexes',
181 [
182 'methods' => [
183 'create' => [
184 'path' => 'v1/projects/{projectId}/indexes',
185 'httpMethod' => 'POST',
186 'parameters' => [
187 'projectId' => [
188 'location' => 'path',
189 'type' => 'string',
190 'required' => true,
191 ],
192 ],
193 ],'delete' => [
194 'path' => 'v1/projects/{projectId}/indexes/{indexId}',
195 'httpMethod' => 'DELETE',
196 'parameters' => [
197 'projectId' => [
198 'location' => 'path',
199 'type' => 'string',
200 'required' => true,
201 ],
202 'indexId' => [
203 'location' => 'path',
204 'type' => 'string',
205 'required' => true,
206 ],
207 ],
208 ],'get' => [
209 'path' => 'v1/projects/{projectId}/indexes/{indexId}',
210 'httpMethod' => 'GET',
211 'parameters' => [
212 'projectId' => [
213 'location' => 'path',
214 'type' => 'string',
215 'required' => true,
216 ],
217 'indexId' => [
218 'location' => 'path',
219 'type' => 'string',
220 'required' => true,
221 ],
222 ],
223 ],'list' => [
224 'path' => 'v1/projects/{projectId}/indexes',
225 'httpMethod' => 'GET',
226 'parameters' => [
227 'projectId' => [
228 'location' => 'path',
229 'type' => 'string',
230 'required' => true,
231 ],
232 'filter' => [
233 'location' => 'query',
234 'type' => 'string',
235 ],
236 'pageSize' => [
237 'location' => 'query',
238 'type' => 'integer',
239 ],
240 'pageToken' => [
241 'location' => 'query',
242 'type' => 'string',
243 ],
244 ],
245 ],
246 ]
247 ]
248 );
249 $this->projects_operations = new Datastore\Resource\ProjectsOperations(
250 $this,
251 $this->serviceName,
252 'operations',
253 [
254 'methods' => [
255 'cancel' => [
256 'path' => 'v1/{+name}:cancel',
257 'httpMethod' => 'POST',
258 'parameters' => [
259 'name' => [
260 'location' => 'path',
261 'type' => 'string',
262 'required' => true,
263 ],
264 ],
265 ],'delete' => [
266 'path' => 'v1/{+name}',
267 'httpMethod' => 'DELETE',
268 'parameters' => [
269 'name' => [
270 'location' => 'path',
271 'type' => 'string',
272 'required' => true,
273 ],
274 ],
275 ],'get' => [
276 'path' => 'v1/{+name}',
277 'httpMethod' => 'GET',
278 'parameters' => [
279 'name' => [
280 'location' => 'path',
281 'type' => 'string',
282 'required' => true,
283 ],
284 ],
285 ],'list' => [
286 'path' => 'v1/{+name}/operations',
287 'httpMethod' => 'GET',
288 'parameters' => [
289 'name' => [
290 'location' => 'path',
291 'type' => 'string',
292 'required' => true,
293 ],
294 'filter' => [
295 'location' => 'query',
296 'type' => 'string',
297 ],
298 'pageSize' => [
299 'location' => 'query',
300 'type' => 'integer',
301 ],
302 'pageToken' => [
303 'location' => 'query',
304 'type' => 'string',
305 ],
306 ],
307 ],
308 ]
309 ]
310 );
311 }
312}
313
314// Adding a class alias for backwards compatibility with the previous class name.
315class_alias(Datastore::class, 'Google_Service_Datastore');
Note: See TracBrowser for help on using the repository browser.