Aucune description

ServiceManagement.php 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  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. * Service definition for ServiceManagement (v1).
  19. *
  20. * <p>
  21. * Google Service Management allows service producers to publish their services
  22. * on Google Cloud Platform so that they can be discovered and used by service
  23. * consumers.</p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://cloud.google.com/service-management/" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class Google_Service_ServiceManagement extends Google_Service
  33. {
  34. /** View and manage your data across Google Cloud Platform services. */
  35. const CLOUD_PLATFORM =
  36. "https://www.googleapis.com/auth/cloud-platform";
  37. /** View your data across Google Cloud Platform services. */
  38. const CLOUD_PLATFORM_READ_ONLY =
  39. "https://www.googleapis.com/auth/cloud-platform.read-only";
  40. /** Manage your Google API service configuration. */
  41. const SERVICE_MANAGEMENT =
  42. "https://www.googleapis.com/auth/service.management";
  43. /** View your Google API service configuration. */
  44. const SERVICE_MANAGEMENT_READONLY =
  45. "https://www.googleapis.com/auth/service.management.readonly";
  46. public $operations;
  47. public $services;
  48. public $services_configs;
  49. public $services_consumers;
  50. public $services_rollouts;
  51. /**
  52. * Constructs the internal representation of the ServiceManagement service.
  53. *
  54. * @param Google_Client $client
  55. */
  56. public function __construct(Google_Client $client)
  57. {
  58. parent::__construct($client);
  59. $this->rootUrl = 'https://servicemanagement.googleapis.com/';
  60. $this->servicePath = '';
  61. $this->version = 'v1';
  62. $this->serviceName = 'servicemanagement';
  63. $this->operations = new Google_Service_ServiceManagement_Resource_Operations(
  64. $this,
  65. $this->serviceName,
  66. 'operations',
  67. array(
  68. 'methods' => array(
  69. 'get' => array(
  70. 'path' => 'v1/{+name}',
  71. 'httpMethod' => 'GET',
  72. 'parameters' => array(
  73. 'name' => array(
  74. 'location' => 'path',
  75. 'type' => 'string',
  76. 'required' => true,
  77. ),
  78. ),
  79. ),'list' => array(
  80. 'path' => 'v1/operations',
  81. 'httpMethod' => 'GET',
  82. 'parameters' => array(
  83. 'name' => array(
  84. 'location' => 'query',
  85. 'type' => 'string',
  86. ),
  87. 'pageToken' => array(
  88. 'location' => 'query',
  89. 'type' => 'string',
  90. ),
  91. 'pageSize' => array(
  92. 'location' => 'query',
  93. 'type' => 'integer',
  94. ),
  95. 'filter' => array(
  96. 'location' => 'query',
  97. 'type' => 'string',
  98. ),
  99. ),
  100. ),
  101. )
  102. )
  103. );
  104. $this->services = new Google_Service_ServiceManagement_Resource_Services(
  105. $this,
  106. $this->serviceName,
  107. 'services',
  108. array(
  109. 'methods' => array(
  110. 'create' => array(
  111. 'path' => 'v1/services',
  112. 'httpMethod' => 'POST',
  113. 'parameters' => array(),
  114. ),'delete' => array(
  115. 'path' => 'v1/services/{serviceName}',
  116. 'httpMethod' => 'DELETE',
  117. 'parameters' => array(
  118. 'serviceName' => array(
  119. 'location' => 'path',
  120. 'type' => 'string',
  121. 'required' => true,
  122. ),
  123. ),
  124. ),'disable' => array(
  125. 'path' => 'v1/services/{serviceName}:disable',
  126. 'httpMethod' => 'POST',
  127. 'parameters' => array(
  128. 'serviceName' => array(
  129. 'location' => 'path',
  130. 'type' => 'string',
  131. 'required' => true,
  132. ),
  133. ),
  134. ),'enable' => array(
  135. 'path' => 'v1/services/{serviceName}:enable',
  136. 'httpMethod' => 'POST',
  137. 'parameters' => array(
  138. 'serviceName' => array(
  139. 'location' => 'path',
  140. 'type' => 'string',
  141. 'required' => true,
  142. ),
  143. ),
  144. ),'generateConfigReport' => array(
  145. 'path' => 'v1/services:generateConfigReport',
  146. 'httpMethod' => 'POST',
  147. 'parameters' => array(),
  148. ),'get' => array(
  149. 'path' => 'v1/services/{serviceName}',
  150. 'httpMethod' => 'GET',
  151. 'parameters' => array(
  152. 'serviceName' => array(
  153. 'location' => 'path',
  154. 'type' => 'string',
  155. 'required' => true,
  156. ),
  157. ),
  158. ),'getConfig' => array(
  159. 'path' => 'v1/services/{serviceName}/config',
  160. 'httpMethod' => 'GET',
  161. 'parameters' => array(
  162. 'serviceName' => array(
  163. 'location' => 'path',
  164. 'type' => 'string',
  165. 'required' => true,
  166. ),
  167. 'configId' => array(
  168. 'location' => 'query',
  169. 'type' => 'string',
  170. ),
  171. 'view' => array(
  172. 'location' => 'query',
  173. 'type' => 'string',
  174. ),
  175. ),
  176. ),'getIamPolicy' => array(
  177. 'path' => 'v1/{+resource}:getIamPolicy',
  178. 'httpMethod' => 'POST',
  179. 'parameters' => array(
  180. 'resource' => array(
  181. 'location' => 'path',
  182. 'type' => 'string',
  183. 'required' => true,
  184. ),
  185. ),
  186. ),'list' => array(
  187. 'path' => 'v1/services',
  188. 'httpMethod' => 'GET',
  189. 'parameters' => array(
  190. 'consumerId' => array(
  191. 'location' => 'query',
  192. 'type' => 'string',
  193. ),
  194. 'pageToken' => array(
  195. 'location' => 'query',
  196. 'type' => 'string',
  197. ),
  198. 'pageSize' => array(
  199. 'location' => 'query',
  200. 'type' => 'integer',
  201. ),
  202. 'producerProjectId' => array(
  203. 'location' => 'query',
  204. 'type' => 'string',
  205. ),
  206. ),
  207. ),'setIamPolicy' => array(
  208. 'path' => 'v1/{+resource}:setIamPolicy',
  209. 'httpMethod' => 'POST',
  210. 'parameters' => array(
  211. 'resource' => array(
  212. 'location' => 'path',
  213. 'type' => 'string',
  214. 'required' => true,
  215. ),
  216. ),
  217. ),'testIamPermissions' => array(
  218. 'path' => 'v1/{+resource}:testIamPermissions',
  219. 'httpMethod' => 'POST',
  220. 'parameters' => array(
  221. 'resource' => array(
  222. 'location' => 'path',
  223. 'type' => 'string',
  224. 'required' => true,
  225. ),
  226. ),
  227. ),'undelete' => array(
  228. 'path' => 'v1/services/{serviceName}:undelete',
  229. 'httpMethod' => 'POST',
  230. 'parameters' => array(
  231. 'serviceName' => array(
  232. 'location' => 'path',
  233. 'type' => 'string',
  234. 'required' => true,
  235. ),
  236. ),
  237. ),
  238. )
  239. )
  240. );
  241. $this->services_configs = new Google_Service_ServiceManagement_Resource_ServicesConfigs(
  242. $this,
  243. $this->serviceName,
  244. 'configs',
  245. array(
  246. 'methods' => array(
  247. 'create' => array(
  248. 'path' => 'v1/services/{serviceName}/configs',
  249. 'httpMethod' => 'POST',
  250. 'parameters' => array(
  251. 'serviceName' => array(
  252. 'location' => 'path',
  253. 'type' => 'string',
  254. 'required' => true,
  255. ),
  256. ),
  257. ),'get' => array(
  258. 'path' => 'v1/services/{serviceName}/configs/{configId}',
  259. 'httpMethod' => 'GET',
  260. 'parameters' => array(
  261. 'serviceName' => array(
  262. 'location' => 'path',
  263. 'type' => 'string',
  264. 'required' => true,
  265. ),
  266. 'configId' => array(
  267. 'location' => 'path',
  268. 'type' => 'string',
  269. 'required' => true,
  270. ),
  271. 'view' => array(
  272. 'location' => 'query',
  273. 'type' => 'string',
  274. ),
  275. ),
  276. ),'list' => array(
  277. 'path' => 'v1/services/{serviceName}/configs',
  278. 'httpMethod' => 'GET',
  279. 'parameters' => array(
  280. 'serviceName' => array(
  281. 'location' => 'path',
  282. 'type' => 'string',
  283. 'required' => true,
  284. ),
  285. 'pageToken' => array(
  286. 'location' => 'query',
  287. 'type' => 'string',
  288. ),
  289. 'pageSize' => array(
  290. 'location' => 'query',
  291. 'type' => 'integer',
  292. ),
  293. ),
  294. ),'submit' => array(
  295. 'path' => 'v1/services/{serviceName}/configs:submit',
  296. 'httpMethod' => 'POST',
  297. 'parameters' => array(
  298. 'serviceName' => array(
  299. 'location' => 'path',
  300. 'type' => 'string',
  301. 'required' => true,
  302. ),
  303. ),
  304. ),
  305. )
  306. )
  307. );
  308. $this->services_consumers = new Google_Service_ServiceManagement_Resource_ServicesConsumers(
  309. $this,
  310. $this->serviceName,
  311. 'consumers',
  312. array(
  313. 'methods' => array(
  314. 'getIamPolicy' => array(
  315. 'path' => 'v1/{+resource}:getIamPolicy',
  316. 'httpMethod' => 'POST',
  317. 'parameters' => array(
  318. 'resource' => array(
  319. 'location' => 'path',
  320. 'type' => 'string',
  321. 'required' => true,
  322. ),
  323. ),
  324. ),'setIamPolicy' => array(
  325. 'path' => 'v1/{+resource}:setIamPolicy',
  326. 'httpMethod' => 'POST',
  327. 'parameters' => array(
  328. 'resource' => array(
  329. 'location' => 'path',
  330. 'type' => 'string',
  331. 'required' => true,
  332. ),
  333. ),
  334. ),'testIamPermissions' => array(
  335. 'path' => 'v1/{+resource}:testIamPermissions',
  336. 'httpMethod' => 'POST',
  337. 'parameters' => array(
  338. 'resource' => array(
  339. 'location' => 'path',
  340. 'type' => 'string',
  341. 'required' => true,
  342. ),
  343. ),
  344. ),
  345. )
  346. )
  347. );
  348. $this->services_rollouts = new Google_Service_ServiceManagement_Resource_ServicesRollouts(
  349. $this,
  350. $this->serviceName,
  351. 'rollouts',
  352. array(
  353. 'methods' => array(
  354. 'create' => array(
  355. 'path' => 'v1/services/{serviceName}/rollouts',
  356. 'httpMethod' => 'POST',
  357. 'parameters' => array(
  358. 'serviceName' => array(
  359. 'location' => 'path',
  360. 'type' => 'string',
  361. 'required' => true,
  362. ),
  363. ),
  364. ),'get' => array(
  365. 'path' => 'v1/services/{serviceName}/rollouts/{rolloutId}',
  366. 'httpMethod' => 'GET',
  367. 'parameters' => array(
  368. 'serviceName' => array(
  369. 'location' => 'path',
  370. 'type' => 'string',
  371. 'required' => true,
  372. ),
  373. 'rolloutId' => array(
  374. 'location' => 'path',
  375. 'type' => 'string',
  376. 'required' => true,
  377. ),
  378. ),
  379. ),'list' => array(
  380. 'path' => 'v1/services/{serviceName}/rollouts',
  381. 'httpMethod' => 'GET',
  382. 'parameters' => array(
  383. 'serviceName' => array(
  384. 'location' => 'path',
  385. 'type' => 'string',
  386. 'required' => true,
  387. ),
  388. 'filter' => array(
  389. 'location' => 'query',
  390. 'type' => 'string',
  391. ),
  392. 'pageToken' => array(
  393. 'location' => 'query',
  394. 'type' => 'string',
  395. ),
  396. 'pageSize' => array(
  397. 'location' => 'query',
  398. 'type' => 'integer',
  399. ),
  400. ),
  401. ),
  402. )
  403. )
  404. );
  405. }
  406. }