source: vendor/google/apiclient-services/src/APIManagement.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.6 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 APIManagement (v1alpha).
24 *
25 * <p>
26 * Enables users to discover shadow APIs in existing Google Cloud
27 * infrastructure.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/apigee/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class APIManagement 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_observationJobs;
44 public $projects_locations_observationJobs_apiObservations;
45 public $projects_locations_observationJobs_apiObservations_apiOperations;
46 public $projects_locations_observationSources;
47 public $projects_locations_operations;
48 public $rootUrlTemplate;
49
50 /**
51 * Constructs the internal representation of the APIManagement 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://apim.googleapis.com/';
61 $this->rootUrlTemplate = $rootUrl ?: 'https://apim.UNIVERSE_DOMAIN/';
62 $this->servicePath = '';
63 $this->batchPath = 'batch';
64 $this->version = 'v1alpha';
65 $this->serviceName = 'apim';
66
67 $this->projects_locations = new APIManagement\Resource\ProjectsLocations(
68 $this,
69 $this->serviceName,
70 'locations',
71 [
72 'methods' => [
73 'get' => [
74 'path' => 'v1alpha/{+name}',
75 'httpMethod' => 'GET',
76 'parameters' => [
77 'name' => [
78 'location' => 'path',
79 'type' => 'string',
80 'required' => true,
81 ],
82 ],
83 ],'list' => [
84 'path' => 'v1alpha/{+name}/locations',
85 'httpMethod' => 'GET',
86 'parameters' => [
87 'name' => [
88 'location' => 'path',
89 'type' => 'string',
90 'required' => true,
91 ],
92 'filter' => [
93 'location' => 'query',
94 'type' => 'string',
95 ],
96 'pageSize' => [
97 'location' => 'query',
98 'type' => 'integer',
99 ],
100 'pageToken' => [
101 'location' => 'query',
102 'type' => 'string',
103 ],
104 ],
105 ],'listApiObservationTags' => [
106 'path' => 'v1alpha/{+parent}:listApiObservationTags',
107 'httpMethod' => 'GET',
108 'parameters' => [
109 'parent' => [
110 'location' => 'path',
111 'type' => 'string',
112 'required' => true,
113 ],
114 'pageSize' => [
115 'location' => 'query',
116 'type' => 'integer',
117 ],
118 'pageToken' => [
119 'location' => 'query',
120 'type' => 'string',
121 ],
122 ],
123 ],
124 ]
125 ]
126 );
127 $this->projects_locations_observationJobs = new APIManagement\Resource\ProjectsLocationsObservationJobs(
128 $this,
129 $this->serviceName,
130 'observationJobs',
131 [
132 'methods' => [
133 'create' => [
134 'path' => 'v1alpha/{+parent}/observationJobs',
135 'httpMethod' => 'POST',
136 'parameters' => [
137 'parent' => [
138 'location' => 'path',
139 'type' => 'string',
140 'required' => true,
141 ],
142 'observationJobId' => [
143 'location' => 'query',
144 'type' => 'string',
145 ],
146 'requestId' => [
147 'location' => 'query',
148 'type' => 'string',
149 ],
150 ],
151 ],'delete' => [
152 'path' => 'v1alpha/{+name}',
153 'httpMethod' => 'DELETE',
154 'parameters' => [
155 'name' => [
156 'location' => 'path',
157 'type' => 'string',
158 'required' => true,
159 ],
160 ],
161 ],'disable' => [
162 'path' => 'v1alpha/{+name}:disable',
163 'httpMethod' => 'POST',
164 'parameters' => [
165 'name' => [
166 'location' => 'path',
167 'type' => 'string',
168 'required' => true,
169 ],
170 ],
171 ],'enable' => [
172 'path' => 'v1alpha/{+name}:enable',
173 'httpMethod' => 'POST',
174 'parameters' => [
175 'name' => [
176 'location' => 'path',
177 'type' => 'string',
178 'required' => true,
179 ],
180 ],
181 ],'get' => [
182 'path' => 'v1alpha/{+name}',
183 'httpMethod' => 'GET',
184 'parameters' => [
185 'name' => [
186 'location' => 'path',
187 'type' => 'string',
188 'required' => true,
189 ],
190 ],
191 ],'list' => [
192 'path' => 'v1alpha/{+parent}/observationJobs',
193 'httpMethod' => 'GET',
194 'parameters' => [
195 'parent' => [
196 'location' => 'path',
197 'type' => 'string',
198 'required' => true,
199 ],
200 'pageSize' => [
201 'location' => 'query',
202 'type' => 'integer',
203 ],
204 'pageToken' => [
205 'location' => 'query',
206 'type' => 'string',
207 ],
208 ],
209 ],
210 ]
211 ]
212 );
213 $this->projects_locations_observationJobs_apiObservations = new APIManagement\Resource\ProjectsLocationsObservationJobsApiObservations(
214 $this,
215 $this->serviceName,
216 'apiObservations',
217 [
218 'methods' => [
219 'batchEditTags' => [
220 'path' => 'v1alpha/{+parent}/apiObservations:batchEditTags',
221 'httpMethod' => 'POST',
222 'parameters' => [
223 'parent' => [
224 'location' => 'path',
225 'type' => 'string',
226 'required' => true,
227 ],
228 ],
229 ],'get' => [
230 'path' => 'v1alpha/{+name}',
231 'httpMethod' => 'GET',
232 'parameters' => [
233 'name' => [
234 'location' => 'path',
235 'type' => 'string',
236 'required' => true,
237 ],
238 ],
239 ],'list' => [
240 'path' => 'v1alpha/{+parent}/apiObservations',
241 'httpMethod' => 'GET',
242 'parameters' => [
243 'parent' => [
244 'location' => 'path',
245 'type' => 'string',
246 'required' => true,
247 ],
248 'pageSize' => [
249 'location' => 'query',
250 'type' => 'integer',
251 ],
252 'pageToken' => [
253 'location' => 'query',
254 'type' => 'string',
255 ],
256 ],
257 ],
258 ]
259 ]
260 );
261 $this->projects_locations_observationJobs_apiObservations_apiOperations = new APIManagement\Resource\ProjectsLocationsObservationJobsApiObservationsApiOperations(
262 $this,
263 $this->serviceName,
264 'apiOperations',
265 [
266 'methods' => [
267 'get' => [
268 'path' => 'v1alpha/{+name}',
269 'httpMethod' => 'GET',
270 'parameters' => [
271 'name' => [
272 'location' => 'path',
273 'type' => 'string',
274 'required' => true,
275 ],
276 ],
277 ],'list' => [
278 'path' => 'v1alpha/{+parent}/apiOperations',
279 'httpMethod' => 'GET',
280 'parameters' => [
281 'parent' => [
282 'location' => 'path',
283 'type' => 'string',
284 'required' => true,
285 ],
286 'pageSize' => [
287 'location' => 'query',
288 'type' => 'integer',
289 ],
290 'pageToken' => [
291 'location' => 'query',
292 'type' => 'string',
293 ],
294 ],
295 ],
296 ]
297 ]
298 );
299 $this->projects_locations_observationSources = new APIManagement\Resource\ProjectsLocationsObservationSources(
300 $this,
301 $this->serviceName,
302 'observationSources',
303 [
304 'methods' => [
305 'create' => [
306 'path' => 'v1alpha/{+parent}/observationSources',
307 'httpMethod' => 'POST',
308 'parameters' => [
309 'parent' => [
310 'location' => 'path',
311 'type' => 'string',
312 'required' => true,
313 ],
314 'observationSourceId' => [
315 'location' => 'query',
316 'type' => 'string',
317 ],
318 'requestId' => [
319 'location' => 'query',
320 'type' => 'string',
321 ],
322 ],
323 ],'delete' => [
324 'path' => 'v1alpha/{+name}',
325 'httpMethod' => 'DELETE',
326 'parameters' => [
327 'name' => [
328 'location' => 'path',
329 'type' => 'string',
330 'required' => true,
331 ],
332 ],
333 ],'get' => [
334 'path' => 'v1alpha/{+name}',
335 'httpMethod' => 'GET',
336 'parameters' => [
337 'name' => [
338 'location' => 'path',
339 'type' => 'string',
340 'required' => true,
341 ],
342 ],
343 ],'list' => [
344 'path' => 'v1alpha/{+parent}/observationSources',
345 'httpMethod' => 'GET',
346 'parameters' => [
347 'parent' => [
348 'location' => 'path',
349 'type' => 'string',
350 'required' => true,
351 ],
352 'pageSize' => [
353 'location' => 'query',
354 'type' => 'integer',
355 ],
356 'pageToken' => [
357 'location' => 'query',
358 'type' => 'string',
359 ],
360 ],
361 ],
362 ]
363 ]
364 );
365 $this->projects_locations_operations = new APIManagement\Resource\ProjectsLocationsOperations(
366 $this,
367 $this->serviceName,
368 'operations',
369 [
370 'methods' => [
371 'cancel' => [
372 'path' => 'v1alpha/{+name}:cancel',
373 'httpMethod' => 'POST',
374 'parameters' => [
375 'name' => [
376 'location' => 'path',
377 'type' => 'string',
378 'required' => true,
379 ],
380 ],
381 ],'delete' => [
382 'path' => 'v1alpha/{+name}',
383 'httpMethod' => 'DELETE',
384 'parameters' => [
385 'name' => [
386 'location' => 'path',
387 'type' => 'string',
388 'required' => true,
389 ],
390 ],
391 ],'get' => [
392 'path' => 'v1alpha/{+name}',
393 'httpMethod' => 'GET',
394 'parameters' => [
395 'name' => [
396 'location' => 'path',
397 'type' => 'string',
398 'required' => true,
399 ],
400 ],
401 ],'list' => [
402 'path' => 'v1alpha/{+name}/operations',
403 'httpMethod' => 'GET',
404 'parameters' => [
405 'name' => [
406 'location' => 'path',
407 'type' => 'string',
408 'required' => true,
409 ],
410 'filter' => [
411 'location' => 'query',
412 'type' => 'string',
413 ],
414 'pageSize' => [
415 'location' => 'query',
416 'type' => 'integer',
417 ],
418 'pageToken' => [
419 'location' => 'query',
420 'type' => 'string',
421 ],
422 ],
423 ],
424 ]
425 ]
426 );
427 }
428}
429
430// Adding a class alias for backwards compatibility with the previous class name.
431class_alias(APIManagement::class, 'Google_Service_APIManagement');
Note: See TracBrowser for help on using the repository browser.