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 |
|
---|
18 | namespace Google\Service;
|
---|
19 |
|
---|
20 | use Google\Client;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * Service definition for CloudIAP (v1).
|
---|
24 | *
|
---|
25 | * <p>
|
---|
26 | * Controls access to cloud applications running on Google Cloud Platform.</p>
|
---|
27 | *
|
---|
28 | * <p>
|
---|
29 | * For more information about this service, see the API
|
---|
30 | * <a href="https://cloud.google.com/iap" target="_blank">Documentation</a>
|
---|
31 | * </p>
|
---|
32 | *
|
---|
33 | * @author Google, Inc.
|
---|
34 | */
|
---|
35 | class CloudIAP 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_brands;
|
---|
42 | public $projects_brands_identityAwareProxyClients;
|
---|
43 | public $projects_iap_tunnel_locations_destGroups;
|
---|
44 | public $v1;
|
---|
45 | public $rootUrlTemplate;
|
---|
46 |
|
---|
47 | /**
|
---|
48 | * Constructs the internal representation of the CloudIAP 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://iap.googleapis.com/';
|
---|
58 | $this->rootUrlTemplate = $rootUrl ?: 'https://iap.UNIVERSE_DOMAIN/';
|
---|
59 | $this->servicePath = '';
|
---|
60 | $this->batchPath = 'batch';
|
---|
61 | $this->version = 'v1';
|
---|
62 | $this->serviceName = 'iap';
|
---|
63 |
|
---|
64 | $this->projects_brands = new CloudIAP\Resource\ProjectsBrands(
|
---|
65 | $this,
|
---|
66 | $this->serviceName,
|
---|
67 | 'brands',
|
---|
68 | [
|
---|
69 | 'methods' => [
|
---|
70 | 'create' => [
|
---|
71 | 'path' => 'v1/{+parent}/brands',
|
---|
72 | 'httpMethod' => 'POST',
|
---|
73 | 'parameters' => [
|
---|
74 | 'parent' => [
|
---|
75 | 'location' => 'path',
|
---|
76 | 'type' => 'string',
|
---|
77 | 'required' => true,
|
---|
78 | ],
|
---|
79 | ],
|
---|
80 | ],'get' => [
|
---|
81 | 'path' => 'v1/{+name}',
|
---|
82 | 'httpMethod' => 'GET',
|
---|
83 | 'parameters' => [
|
---|
84 | 'name' => [
|
---|
85 | 'location' => 'path',
|
---|
86 | 'type' => 'string',
|
---|
87 | 'required' => true,
|
---|
88 | ],
|
---|
89 | ],
|
---|
90 | ],'list' => [
|
---|
91 | 'path' => 'v1/{+parent}/brands',
|
---|
92 | 'httpMethod' => 'GET',
|
---|
93 | 'parameters' => [
|
---|
94 | 'parent' => [
|
---|
95 | 'location' => 'path',
|
---|
96 | 'type' => 'string',
|
---|
97 | 'required' => true,
|
---|
98 | ],
|
---|
99 | ],
|
---|
100 | ],
|
---|
101 | ]
|
---|
102 | ]
|
---|
103 | );
|
---|
104 | $this->projects_brands_identityAwareProxyClients = new CloudIAP\Resource\ProjectsBrandsIdentityAwareProxyClients(
|
---|
105 | $this,
|
---|
106 | $this->serviceName,
|
---|
107 | 'identityAwareProxyClients',
|
---|
108 | [
|
---|
109 | 'methods' => [
|
---|
110 | 'create' => [
|
---|
111 | 'path' => 'v1/{+parent}/identityAwareProxyClients',
|
---|
112 | 'httpMethod' => 'POST',
|
---|
113 | 'parameters' => [
|
---|
114 | 'parent' => [
|
---|
115 | 'location' => 'path',
|
---|
116 | 'type' => 'string',
|
---|
117 | 'required' => true,
|
---|
118 | ],
|
---|
119 | ],
|
---|
120 | ],'delete' => [
|
---|
121 | 'path' => 'v1/{+name}',
|
---|
122 | 'httpMethod' => 'DELETE',
|
---|
123 | 'parameters' => [
|
---|
124 | 'name' => [
|
---|
125 | 'location' => 'path',
|
---|
126 | 'type' => 'string',
|
---|
127 | 'required' => true,
|
---|
128 | ],
|
---|
129 | ],
|
---|
130 | ],'get' => [
|
---|
131 | 'path' => 'v1/{+name}',
|
---|
132 | 'httpMethod' => 'GET',
|
---|
133 | 'parameters' => [
|
---|
134 | 'name' => [
|
---|
135 | 'location' => 'path',
|
---|
136 | 'type' => 'string',
|
---|
137 | 'required' => true,
|
---|
138 | ],
|
---|
139 | ],
|
---|
140 | ],'list' => [
|
---|
141 | 'path' => 'v1/{+parent}/identityAwareProxyClients',
|
---|
142 | 'httpMethod' => 'GET',
|
---|
143 | 'parameters' => [
|
---|
144 | 'parent' => [
|
---|
145 | 'location' => 'path',
|
---|
146 | 'type' => 'string',
|
---|
147 | 'required' => true,
|
---|
148 | ],
|
---|
149 | 'pageSize' => [
|
---|
150 | 'location' => 'query',
|
---|
151 | 'type' => 'integer',
|
---|
152 | ],
|
---|
153 | 'pageToken' => [
|
---|
154 | 'location' => 'query',
|
---|
155 | 'type' => 'string',
|
---|
156 | ],
|
---|
157 | ],
|
---|
158 | ],'resetSecret' => [
|
---|
159 | 'path' => 'v1/{+name}:resetSecret',
|
---|
160 | 'httpMethod' => 'POST',
|
---|
161 | 'parameters' => [
|
---|
162 | 'name' => [
|
---|
163 | 'location' => 'path',
|
---|
164 | 'type' => 'string',
|
---|
165 | 'required' => true,
|
---|
166 | ],
|
---|
167 | ],
|
---|
168 | ],
|
---|
169 | ]
|
---|
170 | ]
|
---|
171 | );
|
---|
172 | $this->projects_iap_tunnel_locations_destGroups = new CloudIAP\Resource\ProjectsIapTunnelLocationsDestGroups(
|
---|
173 | $this,
|
---|
174 | $this->serviceName,
|
---|
175 | 'destGroups',
|
---|
176 | [
|
---|
177 | 'methods' => [
|
---|
178 | 'create' => [
|
---|
179 | 'path' => 'v1/{+parent}/destGroups',
|
---|
180 | 'httpMethod' => 'POST',
|
---|
181 | 'parameters' => [
|
---|
182 | 'parent' => [
|
---|
183 | 'location' => 'path',
|
---|
184 | 'type' => 'string',
|
---|
185 | 'required' => true,
|
---|
186 | ],
|
---|
187 | 'tunnelDestGroupId' => [
|
---|
188 | 'location' => 'query',
|
---|
189 | 'type' => 'string',
|
---|
190 | ],
|
---|
191 | ],
|
---|
192 | ],'delete' => [
|
---|
193 | 'path' => 'v1/{+name}',
|
---|
194 | 'httpMethod' => 'DELETE',
|
---|
195 | 'parameters' => [
|
---|
196 | 'name' => [
|
---|
197 | 'location' => 'path',
|
---|
198 | 'type' => 'string',
|
---|
199 | 'required' => true,
|
---|
200 | ],
|
---|
201 | ],
|
---|
202 | ],'get' => [
|
---|
203 | 'path' => 'v1/{+name}',
|
---|
204 | 'httpMethod' => 'GET',
|
---|
205 | 'parameters' => [
|
---|
206 | 'name' => [
|
---|
207 | 'location' => 'path',
|
---|
208 | 'type' => 'string',
|
---|
209 | 'required' => true,
|
---|
210 | ],
|
---|
211 | ],
|
---|
212 | ],'list' => [
|
---|
213 | 'path' => 'v1/{+parent}/destGroups',
|
---|
214 | 'httpMethod' => 'GET',
|
---|
215 | 'parameters' => [
|
---|
216 | 'parent' => [
|
---|
217 | 'location' => 'path',
|
---|
218 | 'type' => 'string',
|
---|
219 | 'required' => true,
|
---|
220 | ],
|
---|
221 | 'pageSize' => [
|
---|
222 | 'location' => 'query',
|
---|
223 | 'type' => 'integer',
|
---|
224 | ],
|
---|
225 | 'pageToken' => [
|
---|
226 | 'location' => 'query',
|
---|
227 | 'type' => 'string',
|
---|
228 | ],
|
---|
229 | ],
|
---|
230 | ],'patch' => [
|
---|
231 | 'path' => 'v1/{+name}',
|
---|
232 | 'httpMethod' => 'PATCH',
|
---|
233 | 'parameters' => [
|
---|
234 | 'name' => [
|
---|
235 | 'location' => 'path',
|
---|
236 | 'type' => 'string',
|
---|
237 | 'required' => true,
|
---|
238 | ],
|
---|
239 | 'updateMask' => [
|
---|
240 | 'location' => 'query',
|
---|
241 | 'type' => 'string',
|
---|
242 | ],
|
---|
243 | ],
|
---|
244 | ],
|
---|
245 | ]
|
---|
246 | ]
|
---|
247 | );
|
---|
248 | $this->v1 = new CloudIAP\Resource\V1(
|
---|
249 | $this,
|
---|
250 | $this->serviceName,
|
---|
251 | 'v1',
|
---|
252 | [
|
---|
253 | 'methods' => [
|
---|
254 | 'getIamPolicy' => [
|
---|
255 | 'path' => 'v1/{+resource}:getIamPolicy',
|
---|
256 | 'httpMethod' => 'POST',
|
---|
257 | 'parameters' => [
|
---|
258 | 'resource' => [
|
---|
259 | 'location' => 'path',
|
---|
260 | 'type' => 'string',
|
---|
261 | 'required' => true,
|
---|
262 | ],
|
---|
263 | ],
|
---|
264 | ],'getIapSettings' => [
|
---|
265 | 'path' => 'v1/{+name}:iapSettings',
|
---|
266 | 'httpMethod' => 'GET',
|
---|
267 | 'parameters' => [
|
---|
268 | 'name' => [
|
---|
269 | 'location' => 'path',
|
---|
270 | 'type' => 'string',
|
---|
271 | 'required' => true,
|
---|
272 | ],
|
---|
273 | ],
|
---|
274 | ],'setIamPolicy' => [
|
---|
275 | 'path' => 'v1/{+resource}:setIamPolicy',
|
---|
276 | 'httpMethod' => 'POST',
|
---|
277 | 'parameters' => [
|
---|
278 | 'resource' => [
|
---|
279 | 'location' => 'path',
|
---|
280 | 'type' => 'string',
|
---|
281 | 'required' => true,
|
---|
282 | ],
|
---|
283 | ],
|
---|
284 | ],'testIamPermissions' => [
|
---|
285 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
286 | 'httpMethod' => 'POST',
|
---|
287 | 'parameters' => [
|
---|
288 | 'resource' => [
|
---|
289 | 'location' => 'path',
|
---|
290 | 'type' => 'string',
|
---|
291 | 'required' => true,
|
---|
292 | ],
|
---|
293 | ],
|
---|
294 | ],'updateIapSettings' => [
|
---|
295 | 'path' => 'v1/{+name}:iapSettings',
|
---|
296 | 'httpMethod' => 'PATCH',
|
---|
297 | 'parameters' => [
|
---|
298 | 'name' => [
|
---|
299 | 'location' => 'path',
|
---|
300 | 'type' => 'string',
|
---|
301 | 'required' => true,
|
---|
302 | ],
|
---|
303 | 'updateMask' => [
|
---|
304 | 'location' => 'query',
|
---|
305 | 'type' => 'string',
|
---|
306 | ],
|
---|
307 | ],
|
---|
308 | ],'validateAttributeExpression' => [
|
---|
309 | 'path' => 'v1/{+name}:validateAttributeExpression',
|
---|
310 | 'httpMethod' => 'POST',
|
---|
311 | 'parameters' => [
|
---|
312 | 'name' => [
|
---|
313 | 'location' => 'path',
|
---|
314 | 'type' => 'string',
|
---|
315 | 'required' => true,
|
---|
316 | ],
|
---|
317 | 'expression' => [
|
---|
318 | 'location' => 'query',
|
---|
319 | 'type' => 'string',
|
---|
320 | ],
|
---|
321 | ],
|
---|
322 | ],
|
---|
323 | ]
|
---|
324 | ]
|
---|
325 | );
|
---|
326 | }
|
---|
327 | }
|
---|
328 |
|
---|
329 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
330 | class_alias(CloudIAP::class, 'Google_Service_CloudIAP');
|
---|