source: vendor/google/apiclient-services/src/AIPlatformNotebooks.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: 13.3 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 AIPlatformNotebooks (v2).
24 *
25 * <p>
26 * Notebooks API is used to manage notebook resources in Google Cloud.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/notebooks/docs/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class AIPlatformNotebooks 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 AIPlatformNotebooks 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://notebooks.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://notebooks.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v2';
61 $this->serviceName = 'notebooks';
62
63 $this->projects_locations = new AIPlatformNotebooks\Resource\ProjectsLocations(
64 $this,
65 $this->serviceName,
66 'locations',
67 [
68 'methods' => [
69 'get' => [
70 'path' => 'v2/{+name}',
71 'httpMethod' => 'GET',
72 'parameters' => [
73 'name' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 ],
79 ],'list' => [
80 'path' => 'v2/{+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 AIPlatformNotebooks\Resource\ProjectsLocationsInstances(
106 $this,
107 $this->serviceName,
108 'instances',
109 [
110 'methods' => [
111 'checkUpgradability' => [
112 'path' => 'v2/{+notebookInstance}:checkUpgradability',
113 'httpMethod' => 'GET',
114 'parameters' => [
115 'notebookInstance' => [
116 'location' => 'path',
117 'type' => 'string',
118 'required' => true,
119 ],
120 ],
121 ],'create' => [
122 'path' => 'v2/{+parent}/instances',
123 'httpMethod' => 'POST',
124 'parameters' => [
125 'parent' => [
126 'location' => 'path',
127 'type' => 'string',
128 'required' => true,
129 ],
130 'instanceId' => [
131 'location' => 'query',
132 'type' => 'string',
133 ],
134 'requestId' => [
135 'location' => 'query',
136 'type' => 'string',
137 ],
138 ],
139 ],'delete' => [
140 'path' => 'v2/{+name}',
141 'httpMethod' => 'DELETE',
142 'parameters' => [
143 'name' => [
144 'location' => 'path',
145 'type' => 'string',
146 'required' => true,
147 ],
148 'requestId' => [
149 'location' => 'query',
150 'type' => 'string',
151 ],
152 ],
153 ],'diagnose' => [
154 'path' => 'v2/{+name}:diagnose',
155 'httpMethod' => 'POST',
156 'parameters' => [
157 'name' => [
158 'location' => 'path',
159 'type' => 'string',
160 'required' => true,
161 ],
162 ],
163 ],'get' => [
164 'path' => 'v2/{+name}',
165 'httpMethod' => 'GET',
166 'parameters' => [
167 'name' => [
168 'location' => 'path',
169 'type' => 'string',
170 'required' => true,
171 ],
172 ],
173 ],'getConfig' => [
174 'path' => 'v2/{+name}/instances:getConfig',
175 'httpMethod' => 'GET',
176 'parameters' => [
177 'name' => [
178 'location' => 'path',
179 'type' => 'string',
180 'required' => true,
181 ],
182 ],
183 ],'getIamPolicy' => [
184 'path' => 'v2/{+resource}:getIamPolicy',
185 'httpMethod' => 'GET',
186 'parameters' => [
187 'resource' => [
188 'location' => 'path',
189 'type' => 'string',
190 'required' => true,
191 ],
192 'options.requestedPolicyVersion' => [
193 'location' => 'query',
194 'type' => 'integer',
195 ],
196 ],
197 ],'list' => [
198 'path' => 'v2/{+parent}/instances',
199 'httpMethod' => 'GET',
200 'parameters' => [
201 'parent' => [
202 'location' => 'path',
203 'type' => 'string',
204 'required' => true,
205 ],
206 'filter' => [
207 'location' => 'query',
208 'type' => 'string',
209 ],
210 'orderBy' => [
211 'location' => 'query',
212 'type' => 'string',
213 ],
214 'pageSize' => [
215 'location' => 'query',
216 'type' => 'integer',
217 ],
218 'pageToken' => [
219 'location' => 'query',
220 'type' => 'string',
221 ],
222 ],
223 ],'patch' => [
224 'path' => 'v2/{+name}',
225 'httpMethod' => 'PATCH',
226 'parameters' => [
227 'name' => [
228 'location' => 'path',
229 'type' => 'string',
230 'required' => true,
231 ],
232 'requestId' => [
233 'location' => 'query',
234 'type' => 'string',
235 ],
236 'updateMask' => [
237 'location' => 'query',
238 'type' => 'string',
239 ],
240 ],
241 ],'reportInfoSystem' => [
242 'path' => 'v2/{+name}:reportInfoSystem',
243 'httpMethod' => 'POST',
244 'parameters' => [
245 'name' => [
246 'location' => 'path',
247 'type' => 'string',
248 'required' => true,
249 ],
250 ],
251 ],'reset' => [
252 'path' => 'v2/{+name}:reset',
253 'httpMethod' => 'POST',
254 'parameters' => [
255 'name' => [
256 'location' => 'path',
257 'type' => 'string',
258 'required' => true,
259 ],
260 ],
261 ],'resizeDisk' => [
262 'path' => 'v2/{+notebookInstance}:resizeDisk',
263 'httpMethod' => 'POST',
264 'parameters' => [
265 'notebookInstance' => [
266 'location' => 'path',
267 'type' => 'string',
268 'required' => true,
269 ],
270 ],
271 ],'restore' => [
272 'path' => 'v2/{+name}:restore',
273 'httpMethod' => 'POST',
274 'parameters' => [
275 'name' => [
276 'location' => 'path',
277 'type' => 'string',
278 'required' => true,
279 ],
280 ],
281 ],'rollback' => [
282 'path' => 'v2/{+name}:rollback',
283 'httpMethod' => 'POST',
284 'parameters' => [
285 'name' => [
286 'location' => 'path',
287 'type' => 'string',
288 'required' => true,
289 ],
290 ],
291 ],'setIamPolicy' => [
292 'path' => 'v2/{+resource}:setIamPolicy',
293 'httpMethod' => 'POST',
294 'parameters' => [
295 'resource' => [
296 'location' => 'path',
297 'type' => 'string',
298 'required' => true,
299 ],
300 ],
301 ],'start' => [
302 'path' => 'v2/{+name}:start',
303 'httpMethod' => 'POST',
304 'parameters' => [
305 'name' => [
306 'location' => 'path',
307 'type' => 'string',
308 'required' => true,
309 ],
310 ],
311 ],'stop' => [
312 'path' => 'v2/{+name}:stop',
313 'httpMethod' => 'POST',
314 'parameters' => [
315 'name' => [
316 'location' => 'path',
317 'type' => 'string',
318 'required' => true,
319 ],
320 ],
321 ],'testIamPermissions' => [
322 'path' => 'v2/{+resource}:testIamPermissions',
323 'httpMethod' => 'POST',
324 'parameters' => [
325 'resource' => [
326 'location' => 'path',
327 'type' => 'string',
328 'required' => true,
329 ],
330 ],
331 ],'upgrade' => [
332 'path' => 'v2/{+name}:upgrade',
333 'httpMethod' => 'POST',
334 'parameters' => [
335 'name' => [
336 'location' => 'path',
337 'type' => 'string',
338 'required' => true,
339 ],
340 ],
341 ],'upgradeSystem' => [
342 'path' => 'v2/{+name}:upgradeSystem',
343 'httpMethod' => 'POST',
344 'parameters' => [
345 'name' => [
346 'location' => 'path',
347 'type' => 'string',
348 'required' => true,
349 ],
350 ],
351 ],
352 ]
353 ]
354 );
355 $this->projects_locations_operations = new AIPlatformNotebooks\Resource\ProjectsLocationsOperations(
356 $this,
357 $this->serviceName,
358 'operations',
359 [
360 'methods' => [
361 'cancel' => [
362 'path' => 'v2/{+name}:cancel',
363 'httpMethod' => 'POST',
364 'parameters' => [
365 'name' => [
366 'location' => 'path',
367 'type' => 'string',
368 'required' => true,
369 ],
370 ],
371 ],'delete' => [
372 'path' => 'v2/{+name}',
373 'httpMethod' => 'DELETE',
374 'parameters' => [
375 'name' => [
376 'location' => 'path',
377 'type' => 'string',
378 'required' => true,
379 ],
380 ],
381 ],'get' => [
382 'path' => 'v2/{+name}',
383 'httpMethod' => 'GET',
384 'parameters' => [
385 'name' => [
386 'location' => 'path',
387 'type' => 'string',
388 'required' => true,
389 ],
390 ],
391 ],'list' => [
392 'path' => 'v2/{+name}/operations',
393 'httpMethod' => 'GET',
394 'parameters' => [
395 'name' => [
396 'location' => 'path',
397 'type' => 'string',
398 'required' => true,
399 ],
400 'filter' => [
401 'location' => 'query',
402 'type' => 'string',
403 ],
404 'pageSize' => [
405 'location' => 'query',
406 'type' => 'integer',
407 ],
408 'pageToken' => [
409 'location' => 'query',
410 'type' => 'string',
411 ],
412 ],
413 ],
414 ]
415 ]
416 );
417 }
418}
419
420// Adding a class alias for backwards compatibility with the previous class name.
421class_alias(AIPlatformNotebooks::class, 'Google_Service_AIPlatformNotebooks');
Note: See TracBrowser for help on using the repository browser.