source: vendor/google/apiclient-services/src/ServiceNetworking.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: 15.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 ServiceNetworking (v1).
24 *
25 * <p>
26 * Provides automatic management of network configurations necessary for certain
27 * services.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class ServiceNetworking 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 /** Manage your Google API service configuration. */
42 const SERVICE_MANAGEMENT =
43 "https://www.googleapis.com/auth/service.management";
44
45 public $operations;
46 public $services;
47 public $services_connections;
48 public $services_dnsRecordSets;
49 public $services_dnsZones;
50 public $services_projects_global_networks;
51 public $services_projects_global_networks_dnsZones;
52 public $services_projects_global_networks_peeredDnsDomains;
53 public $services_roles;
54 public $rootUrlTemplate;
55
56 /**
57 * Constructs the internal representation of the ServiceNetworking service.
58 *
59 * @param Client|array $clientOrConfig The client used to deliver requests, or a
60 * config array to pass to a new Client instance.
61 * @param string $rootUrl The root URL used for requests to the service.
62 */
63 public function __construct($clientOrConfig = [], $rootUrl = null)
64 {
65 parent::__construct($clientOrConfig);
66 $this->rootUrl = $rootUrl ?: 'https://servicenetworking.googleapis.com/';
67 $this->rootUrlTemplate = $rootUrl ?: 'https://servicenetworking.UNIVERSE_DOMAIN/';
68 $this->servicePath = '';
69 $this->batchPath = 'batch';
70 $this->version = 'v1';
71 $this->serviceName = 'servicenetworking';
72
73 $this->operations = new ServiceNetworking\Resource\Operations(
74 $this,
75 $this->serviceName,
76 'operations',
77 [
78 'methods' => [
79 'cancel' => [
80 'path' => 'v1/{+name}:cancel',
81 'httpMethod' => 'POST',
82 'parameters' => [
83 'name' => [
84 'location' => 'path',
85 'type' => 'string',
86 'required' => true,
87 ],
88 ],
89 ],'delete' => [
90 'path' => 'v1/{+name}',
91 'httpMethod' => 'DELETE',
92 'parameters' => [
93 'name' => [
94 'location' => 'path',
95 'type' => 'string',
96 'required' => true,
97 ],
98 ],
99 ],'get' => [
100 'path' => 'v1/{+name}',
101 'httpMethod' => 'GET',
102 'parameters' => [
103 'name' => [
104 'location' => 'path',
105 'type' => 'string',
106 'required' => true,
107 ],
108 ],
109 ],'list' => [
110 'path' => 'v1/{+name}',
111 'httpMethod' => 'GET',
112 'parameters' => [
113 'name' => [
114 'location' => 'path',
115 'type' => 'string',
116 'required' => true,
117 ],
118 'filter' => [
119 'location' => 'query',
120 'type' => 'string',
121 ],
122 'pageSize' => [
123 'location' => 'query',
124 'type' => 'integer',
125 ],
126 'pageToken' => [
127 'location' => 'query',
128 'type' => 'string',
129 ],
130 ],
131 ],
132 ]
133 ]
134 );
135 $this->services = new ServiceNetworking\Resource\Services(
136 $this,
137 $this->serviceName,
138 'services',
139 [
140 'methods' => [
141 'addSubnetwork' => [
142 'path' => 'v1/{+parent}:addSubnetwork',
143 'httpMethod' => 'POST',
144 'parameters' => [
145 'parent' => [
146 'location' => 'path',
147 'type' => 'string',
148 'required' => true,
149 ],
150 ],
151 ],'disableVpcServiceControls' => [
152 'path' => 'v1/{+parent}:disableVpcServiceControls',
153 'httpMethod' => 'PATCH',
154 'parameters' => [
155 'parent' => [
156 'location' => 'path',
157 'type' => 'string',
158 'required' => true,
159 ],
160 ],
161 ],'enableVpcServiceControls' => [
162 'path' => 'v1/{+parent}:enableVpcServiceControls',
163 'httpMethod' => 'PATCH',
164 'parameters' => [
165 'parent' => [
166 'location' => 'path',
167 'type' => 'string',
168 'required' => true,
169 ],
170 ],
171 ],'searchRange' => [
172 'path' => 'v1/{+parent}:searchRange',
173 'httpMethod' => 'POST',
174 'parameters' => [
175 'parent' => [
176 'location' => 'path',
177 'type' => 'string',
178 'required' => true,
179 ],
180 ],
181 ],'validate' => [
182 'path' => 'v1/{+parent}:validate',
183 'httpMethod' => 'POST',
184 'parameters' => [
185 'parent' => [
186 'location' => 'path',
187 'type' => 'string',
188 'required' => true,
189 ],
190 ],
191 ],
192 ]
193 ]
194 );
195 $this->services_connections = new ServiceNetworking\Resource\ServicesConnections(
196 $this,
197 $this->serviceName,
198 'connections',
199 [
200 'methods' => [
201 'create' => [
202 'path' => 'v1/{+parent}/connections',
203 'httpMethod' => 'POST',
204 'parameters' => [
205 'parent' => [
206 'location' => 'path',
207 'type' => 'string',
208 'required' => true,
209 ],
210 ],
211 ],'deleteConnection' => [
212 'path' => 'v1/{+name}',
213 'httpMethod' => 'POST',
214 'parameters' => [
215 'name' => [
216 'location' => 'path',
217 'type' => 'string',
218 'required' => true,
219 ],
220 ],
221 ],'list' => [
222 'path' => 'v1/{+parent}/connections',
223 'httpMethod' => 'GET',
224 'parameters' => [
225 'parent' => [
226 'location' => 'path',
227 'type' => 'string',
228 'required' => true,
229 ],
230 'network' => [
231 'location' => 'query',
232 'type' => 'string',
233 ],
234 ],
235 ],'patch' => [
236 'path' => 'v1/{+name}',
237 'httpMethod' => 'PATCH',
238 'parameters' => [
239 'name' => [
240 'location' => 'path',
241 'type' => 'string',
242 'required' => true,
243 ],
244 'force' => [
245 'location' => 'query',
246 'type' => 'boolean',
247 ],
248 'updateMask' => [
249 'location' => 'query',
250 'type' => 'string',
251 ],
252 ],
253 ],
254 ]
255 ]
256 );
257 $this->services_dnsRecordSets = new ServiceNetworking\Resource\ServicesDnsRecordSets(
258 $this,
259 $this->serviceName,
260 'dnsRecordSets',
261 [
262 'methods' => [
263 'add' => [
264 'path' => 'v1/{+parent}/dnsRecordSets:add',
265 'httpMethod' => 'POST',
266 'parameters' => [
267 'parent' => [
268 'location' => 'path',
269 'type' => 'string',
270 'required' => true,
271 ],
272 ],
273 ],'get' => [
274 'path' => 'v1/{+parent}/dnsRecordSets:get',
275 'httpMethod' => 'GET',
276 'parameters' => [
277 'parent' => [
278 'location' => 'path',
279 'type' => 'string',
280 'required' => true,
281 ],
282 'consumerNetwork' => [
283 'location' => 'query',
284 'type' => 'string',
285 ],
286 'domain' => [
287 'location' => 'query',
288 'type' => 'string',
289 ],
290 'type' => [
291 'location' => 'query',
292 'type' => 'string',
293 ],
294 'zone' => [
295 'location' => 'query',
296 'type' => 'string',
297 ],
298 ],
299 ],'list' => [
300 'path' => 'v1/{+parent}/dnsRecordSets:list',
301 'httpMethod' => 'GET',
302 'parameters' => [
303 'parent' => [
304 'location' => 'path',
305 'type' => 'string',
306 'required' => true,
307 ],
308 'consumerNetwork' => [
309 'location' => 'query',
310 'type' => 'string',
311 ],
312 'zone' => [
313 'location' => 'query',
314 'type' => 'string',
315 ],
316 ],
317 ],'remove' => [
318 'path' => 'v1/{+parent}/dnsRecordSets:remove',
319 'httpMethod' => 'POST',
320 'parameters' => [
321 'parent' => [
322 'location' => 'path',
323 'type' => 'string',
324 'required' => true,
325 ],
326 ],
327 ],'update' => [
328 'path' => 'v1/{+parent}/dnsRecordSets:update',
329 'httpMethod' => 'POST',
330 'parameters' => [
331 'parent' => [
332 'location' => 'path',
333 'type' => 'string',
334 'required' => true,
335 ],
336 ],
337 ],
338 ]
339 ]
340 );
341 $this->services_dnsZones = new ServiceNetworking\Resource\ServicesDnsZones(
342 $this,
343 $this->serviceName,
344 'dnsZones',
345 [
346 'methods' => [
347 'add' => [
348 'path' => 'v1/{+parent}/dnsZones:add',
349 'httpMethod' => 'POST',
350 'parameters' => [
351 'parent' => [
352 'location' => 'path',
353 'type' => 'string',
354 'required' => true,
355 ],
356 ],
357 ],'remove' => [
358 'path' => 'v1/{+parent}/dnsZones:remove',
359 'httpMethod' => 'POST',
360 'parameters' => [
361 'parent' => [
362 'location' => 'path',
363 'type' => 'string',
364 'required' => true,
365 ],
366 ],
367 ],
368 ]
369 ]
370 );
371 $this->services_projects_global_networks = new ServiceNetworking\Resource\ServicesProjectsServicenetworkingGlobalNetworks(
372 $this,
373 $this->serviceName,
374 'networks',
375 [
376 'methods' => [
377 'get' => [
378 'path' => 'v1/{+name}',
379 'httpMethod' => 'GET',
380 'parameters' => [
381 'name' => [
382 'location' => 'path',
383 'type' => 'string',
384 'required' => true,
385 ],
386 'includeUsedIpRanges' => [
387 'location' => 'query',
388 'type' => 'boolean',
389 ],
390 ],
391 ],'getVpcServiceControls' => [
392 'path' => 'v1/{+name}/vpcServiceControls',
393 'httpMethod' => 'GET',
394 'parameters' => [
395 'name' => [
396 'location' => 'path',
397 'type' => 'string',
398 'required' => true,
399 ],
400 ],
401 ],'updateConsumerConfig' => [
402 'path' => 'v1/{+parent}:updateConsumerConfig',
403 'httpMethod' => 'PATCH',
404 'parameters' => [
405 'parent' => [
406 'location' => 'path',
407 'type' => 'string',
408 'required' => true,
409 ],
410 ],
411 ],
412 ]
413 ]
414 );
415 $this->services_projects_global_networks_dnsZones = new ServiceNetworking\Resource\ServicesProjectsServicenetworkingGlobalNetworksDnsZones(
416 $this,
417 $this->serviceName,
418 'dnsZones',
419 [
420 'methods' => [
421 'get' => [
422 'path' => 'v1/{+name}',
423 'httpMethod' => 'GET',
424 'parameters' => [
425 'name' => [
426 'location' => 'path',
427 'type' => 'string',
428 'required' => true,
429 ],
430 ],
431 ],'list' => [
432 'path' => 'v1/{+parent}/dnsZones:list',
433 'httpMethod' => 'GET',
434 'parameters' => [
435 'parent' => [
436 'location' => 'path',
437 'type' => 'string',
438 'required' => true,
439 ],
440 ],
441 ],
442 ]
443 ]
444 );
445 $this->services_projects_global_networks_peeredDnsDomains = new ServiceNetworking\Resource\ServicesProjectsServicenetworkingGlobalNetworksPeeredDnsDomains(
446 $this,
447 $this->serviceName,
448 'peeredDnsDomains',
449 [
450 'methods' => [
451 'create' => [
452 'path' => 'v1/{+parent}/peeredDnsDomains',
453 'httpMethod' => 'POST',
454 'parameters' => [
455 'parent' => [
456 'location' => 'path',
457 'type' => 'string',
458 'required' => true,
459 ],
460 ],
461 ],'delete' => [
462 'path' => 'v1/{+name}',
463 'httpMethod' => 'DELETE',
464 'parameters' => [
465 'name' => [
466 'location' => 'path',
467 'type' => 'string',
468 'required' => true,
469 ],
470 ],
471 ],'list' => [
472 'path' => 'v1/{+parent}/peeredDnsDomains',
473 'httpMethod' => 'GET',
474 'parameters' => [
475 'parent' => [
476 'location' => 'path',
477 'type' => 'string',
478 'required' => true,
479 ],
480 ],
481 ],
482 ]
483 ]
484 );
485 $this->services_roles = new ServiceNetworking\Resource\ServicesRoles(
486 $this,
487 $this->serviceName,
488 'roles',
489 [
490 'methods' => [
491 'add' => [
492 'path' => 'v1/{+parent}/roles:add',
493 'httpMethod' => 'POST',
494 'parameters' => [
495 'parent' => [
496 'location' => 'path',
497 'type' => 'string',
498 'required' => true,
499 ],
500 ],
501 ],
502 ]
503 ]
504 );
505 }
506}
507
508// Adding a class alias for backwards compatibility with the previous class name.
509class_alias(ServiceNetworking::class, 'Google_Service_ServiceNetworking');
Note: See TracBrowser for help on using the repository browser.