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