source: vendor/google/apiclient-services/src/ServiceDirectory.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: 13.6 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 ServiceDirectory (v1).
24 *
25 * <p>
26 * Service Directory is a platform for discovering, publishing, and connecting
27 * services.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/service-directory" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class ServiceDirectory 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_namespaces;
44 public $projects_locations_namespaces_services;
45 public $projects_locations_namespaces_services_endpoints;
46 public $rootUrlTemplate;
47
48 /**
49 * Constructs the internal representation of the ServiceDirectory 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://servicedirectory.googleapis.com/';
59 $this->rootUrlTemplate = $rootUrl ?: 'https://servicedirectory.UNIVERSE_DOMAIN/';
60 $this->servicePath = '';
61 $this->batchPath = 'batch';
62 $this->version = 'v1';
63 $this->serviceName = 'servicedirectory';
64
65 $this->projects_locations = new ServiceDirectory\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_namespaces = new ServiceDirectory\Resource\ProjectsLocationsNamespaces(
108 $this,
109 $this->serviceName,
110 'namespaces',
111 [
112 'methods' => [
113 'create' => [
114 'path' => 'v1/{+parent}/namespaces',
115 'httpMethod' => 'POST',
116 'parameters' => [
117 'parent' => [
118 'location' => 'path',
119 'type' => 'string',
120 'required' => true,
121 ],
122 'namespaceId' => [
123 'location' => 'query',
124 'type' => 'string',
125 ],
126 ],
127 ],'delete' => [
128 'path' => 'v1/{+name}',
129 'httpMethod' => 'DELETE',
130 'parameters' => [
131 'name' => [
132 'location' => 'path',
133 'type' => 'string',
134 'required' => true,
135 ],
136 ],
137 ],'get' => [
138 'path' => 'v1/{+name}',
139 'httpMethod' => 'GET',
140 'parameters' => [
141 'name' => [
142 'location' => 'path',
143 'type' => 'string',
144 'required' => true,
145 ],
146 ],
147 ],'getIamPolicy' => [
148 'path' => 'v1/{+resource}:getIamPolicy',
149 'httpMethod' => 'POST',
150 'parameters' => [
151 'resource' => [
152 'location' => 'path',
153 'type' => 'string',
154 'required' => true,
155 ],
156 ],
157 ],'list' => [
158 'path' => 'v1/{+parent}/namespaces',
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 ],'setIamPolicy' => [
198 'path' => 'v1/{+resource}:setIamPolicy',
199 'httpMethod' => 'POST',
200 'parameters' => [
201 'resource' => [
202 'location' => 'path',
203 'type' => 'string',
204 'required' => true,
205 ],
206 ],
207 ],'testIamPermissions' => [
208 'path' => 'v1/{+resource}:testIamPermissions',
209 'httpMethod' => 'POST',
210 'parameters' => [
211 'resource' => [
212 'location' => 'path',
213 'type' => 'string',
214 'required' => true,
215 ],
216 ],
217 ],
218 ]
219 ]
220 );
221 $this->projects_locations_namespaces_services = new ServiceDirectory\Resource\ProjectsLocationsNamespacesServices(
222 $this,
223 $this->serviceName,
224 'services',
225 [
226 'methods' => [
227 'create' => [
228 'path' => 'v1/{+parent}/services',
229 'httpMethod' => 'POST',
230 'parameters' => [
231 'parent' => [
232 'location' => 'path',
233 'type' => 'string',
234 'required' => true,
235 ],
236 'serviceId' => [
237 'location' => 'query',
238 'type' => 'string',
239 ],
240 ],
241 ],'delete' => [
242 'path' => 'v1/{+name}',
243 'httpMethod' => 'DELETE',
244 'parameters' => [
245 'name' => [
246 'location' => 'path',
247 'type' => 'string',
248 'required' => true,
249 ],
250 ],
251 ],'get' => [
252 'path' => 'v1/{+name}',
253 'httpMethod' => 'GET',
254 'parameters' => [
255 'name' => [
256 'location' => 'path',
257 'type' => 'string',
258 'required' => true,
259 ],
260 ],
261 ],'getIamPolicy' => [
262 'path' => 'v1/{+resource}:getIamPolicy',
263 'httpMethod' => 'POST',
264 'parameters' => [
265 'resource' => [
266 'location' => 'path',
267 'type' => 'string',
268 'required' => true,
269 ],
270 ],
271 ],'list' => [
272 'path' => 'v1/{+parent}/services',
273 'httpMethod' => 'GET',
274 'parameters' => [
275 'parent' => [
276 'location' => 'path',
277 'type' => 'string',
278 'required' => true,
279 ],
280 'filter' => [
281 'location' => 'query',
282 'type' => 'string',
283 ],
284 'orderBy' => [
285 'location' => 'query',
286 'type' => 'string',
287 ],
288 'pageSize' => [
289 'location' => 'query',
290 'type' => 'integer',
291 ],
292 'pageToken' => [
293 'location' => 'query',
294 'type' => 'string',
295 ],
296 ],
297 ],'patch' => [
298 'path' => 'v1/{+name}',
299 'httpMethod' => 'PATCH',
300 'parameters' => [
301 'name' => [
302 'location' => 'path',
303 'type' => 'string',
304 'required' => true,
305 ],
306 'updateMask' => [
307 'location' => 'query',
308 'type' => 'string',
309 ],
310 ],
311 ],'resolve' => [
312 'path' => 'v1/{+name}:resolve',
313 'httpMethod' => 'POST',
314 'parameters' => [
315 'name' => [
316 'location' => 'path',
317 'type' => 'string',
318 'required' => true,
319 ],
320 ],
321 ],'setIamPolicy' => [
322 'path' => 'v1/{+resource}:setIamPolicy',
323 'httpMethod' => 'POST',
324 'parameters' => [
325 'resource' => [
326 'location' => 'path',
327 'type' => 'string',
328 'required' => true,
329 ],
330 ],
331 ],'testIamPermissions' => [
332 'path' => 'v1/{+resource}:testIamPermissions',
333 'httpMethod' => 'POST',
334 'parameters' => [
335 'resource' => [
336 'location' => 'path',
337 'type' => 'string',
338 'required' => true,
339 ],
340 ],
341 ],
342 ]
343 ]
344 );
345 $this->projects_locations_namespaces_services_endpoints = new ServiceDirectory\Resource\ProjectsLocationsNamespacesServicesEndpoints(
346 $this,
347 $this->serviceName,
348 'endpoints',
349 [
350 'methods' => [
351 'create' => [
352 'path' => 'v1/{+parent}/endpoints',
353 'httpMethod' => 'POST',
354 'parameters' => [
355 'parent' => [
356 'location' => 'path',
357 'type' => 'string',
358 'required' => true,
359 ],
360 'endpointId' => [
361 'location' => 'query',
362 'type' => 'string',
363 ],
364 ],
365 ],'delete' => [
366 'path' => 'v1/{+name}',
367 'httpMethod' => 'DELETE',
368 'parameters' => [
369 'name' => [
370 'location' => 'path',
371 'type' => 'string',
372 'required' => true,
373 ],
374 ],
375 ],'get' => [
376 'path' => 'v1/{+name}',
377 'httpMethod' => 'GET',
378 'parameters' => [
379 'name' => [
380 'location' => 'path',
381 'type' => 'string',
382 'required' => true,
383 ],
384 ],
385 ],'list' => [
386 'path' => 'v1/{+parent}/endpoints',
387 'httpMethod' => 'GET',
388 'parameters' => [
389 'parent' => [
390 'location' => 'path',
391 'type' => 'string',
392 'required' => true,
393 ],
394 'filter' => [
395 'location' => 'query',
396 'type' => 'string',
397 ],
398 'orderBy' => [
399 'location' => 'query',
400 'type' => 'string',
401 ],
402 'pageSize' => [
403 'location' => 'query',
404 'type' => 'integer',
405 ],
406 'pageToken' => [
407 'location' => 'query',
408 'type' => 'string',
409 ],
410 ],
411 ],'patch' => [
412 'path' => 'v1/{+name}',
413 'httpMethod' => 'PATCH',
414 'parameters' => [
415 'name' => [
416 'location' => 'path',
417 'type' => 'string',
418 'required' => true,
419 ],
420 'updateMask' => [
421 'location' => 'query',
422 'type' => 'string',
423 ],
424 ],
425 ],
426 ]
427 ]
428 );
429 }
430}
431
432// Adding a class alias for backwards compatibility with the previous class name.
433class_alias(ServiceDirectory::class, 'Google_Service_ServiceDirectory');
Note: See TracBrowser for help on using the repository browser.