CloudIAP.php 10 KB

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