CertificateManager.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  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 CertificateManager (v1).
  21. *
  22. * <p>
  23. </p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://cloud.google.com/certificate-manager" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class CertificateManager 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_locations;
  38. public $projects_locations_certificateMaps;
  39. public $projects_locations_certificateMaps_certificateMapEntries;
  40. public $projects_locations_certificates;
  41. public $projects_locations_dnsAuthorizations;
  42. public $projects_locations_operations;
  43. /**
  44. * Constructs the internal representation of the CertificateManager service.
  45. *
  46. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  47. * config array to pass to a new Client instance.
  48. * @param string $rootUrl The root URL used for requests to the service.
  49. */
  50. public function __construct($clientOrConfig = [], $rootUrl = null)
  51. {
  52. parent::__construct($clientOrConfig);
  53. $this->rootUrl = $rootUrl ?: 'https://certificatemanager.googleapis.com/';
  54. $this->servicePath = '';
  55. $this->batchPath = 'batch';
  56. $this->version = 'v1';
  57. $this->serviceName = 'certificatemanager';
  58. $this->projects_locations = new CertificateManager\Resource\ProjectsLocations(
  59. $this,
  60. $this->serviceName,
  61. 'locations',
  62. [
  63. 'methods' => [
  64. 'get' => [
  65. 'path' => 'v1/{+name}',
  66. 'httpMethod' => 'GET',
  67. 'parameters' => [
  68. 'name' => [
  69. 'location' => 'path',
  70. 'type' => 'string',
  71. 'required' => true,
  72. ],
  73. ],
  74. ],'list' => [
  75. 'path' => 'v1/{+name}/locations',
  76. 'httpMethod' => 'GET',
  77. 'parameters' => [
  78. 'name' => [
  79. 'location' => 'path',
  80. 'type' => 'string',
  81. 'required' => true,
  82. ],
  83. 'filter' => [
  84. 'location' => 'query',
  85. 'type' => 'string',
  86. ],
  87. 'pageSize' => [
  88. 'location' => 'query',
  89. 'type' => 'integer',
  90. ],
  91. 'pageToken' => [
  92. 'location' => 'query',
  93. 'type' => 'string',
  94. ],
  95. ],
  96. ],
  97. ]
  98. ]
  99. );
  100. $this->projects_locations_certificateMaps = new CertificateManager\Resource\ProjectsLocationsCertificateMaps(
  101. $this,
  102. $this->serviceName,
  103. 'certificateMaps',
  104. [
  105. 'methods' => [
  106. 'create' => [
  107. 'path' => 'v1/{+parent}/certificateMaps',
  108. 'httpMethod' => 'POST',
  109. 'parameters' => [
  110. 'parent' => [
  111. 'location' => 'path',
  112. 'type' => 'string',
  113. 'required' => true,
  114. ],
  115. 'certificateMapId' => [
  116. 'location' => 'query',
  117. 'type' => 'string',
  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}/certificateMaps',
  142. 'httpMethod' => 'GET',
  143. 'parameters' => [
  144. 'parent' => [
  145. 'location' => 'path',
  146. 'type' => 'string',
  147. 'required' => true,
  148. ],
  149. 'filter' => [
  150. 'location' => 'query',
  151. 'type' => 'string',
  152. ],
  153. 'orderBy' => [
  154. 'location' => 'query',
  155. 'type' => 'string',
  156. ],
  157. 'pageSize' => [
  158. 'location' => 'query',
  159. 'type' => 'integer',
  160. ],
  161. 'pageToken' => [
  162. 'location' => 'query',
  163. 'type' => 'string',
  164. ],
  165. ],
  166. ],'patch' => [
  167. 'path' => 'v1/{+name}',
  168. 'httpMethod' => 'PATCH',
  169. 'parameters' => [
  170. 'name' => [
  171. 'location' => 'path',
  172. 'type' => 'string',
  173. 'required' => true,
  174. ],
  175. 'updateMask' => [
  176. 'location' => 'query',
  177. 'type' => 'string',
  178. ],
  179. ],
  180. ],
  181. ]
  182. ]
  183. );
  184. $this->projects_locations_certificateMaps_certificateMapEntries = new CertificateManager\Resource\ProjectsLocationsCertificateMapsCertificateMapEntries(
  185. $this,
  186. $this->serviceName,
  187. 'certificateMapEntries',
  188. [
  189. 'methods' => [
  190. 'create' => [
  191. 'path' => 'v1/{+parent}/certificateMapEntries',
  192. 'httpMethod' => 'POST',
  193. 'parameters' => [
  194. 'parent' => [
  195. 'location' => 'path',
  196. 'type' => 'string',
  197. 'required' => true,
  198. ],
  199. 'certificateMapEntryId' => [
  200. 'location' => 'query',
  201. 'type' => 'string',
  202. ],
  203. ],
  204. ],'delete' => [
  205. 'path' => 'v1/{+name}',
  206. 'httpMethod' => 'DELETE',
  207. 'parameters' => [
  208. 'name' => [
  209. 'location' => 'path',
  210. 'type' => 'string',
  211. 'required' => true,
  212. ],
  213. ],
  214. ],'get' => [
  215. 'path' => 'v1/{+name}',
  216. 'httpMethod' => 'GET',
  217. 'parameters' => [
  218. 'name' => [
  219. 'location' => 'path',
  220. 'type' => 'string',
  221. 'required' => true,
  222. ],
  223. ],
  224. ],'list' => [
  225. 'path' => 'v1/{+parent}/certificateMapEntries',
  226. 'httpMethod' => 'GET',
  227. 'parameters' => [
  228. 'parent' => [
  229. 'location' => 'path',
  230. 'type' => 'string',
  231. 'required' => true,
  232. ],
  233. 'filter' => [
  234. 'location' => 'query',
  235. 'type' => 'string',
  236. ],
  237. 'orderBy' => [
  238. 'location' => 'query',
  239. 'type' => 'string',
  240. ],
  241. 'pageSize' => [
  242. 'location' => 'query',
  243. 'type' => 'integer',
  244. ],
  245. 'pageToken' => [
  246. 'location' => 'query',
  247. 'type' => 'string',
  248. ],
  249. ],
  250. ],'patch' => [
  251. 'path' => 'v1/{+name}',
  252. 'httpMethod' => 'PATCH',
  253. 'parameters' => [
  254. 'name' => [
  255. 'location' => 'path',
  256. 'type' => 'string',
  257. 'required' => true,
  258. ],
  259. 'updateMask' => [
  260. 'location' => 'query',
  261. 'type' => 'string',
  262. ],
  263. ],
  264. ],
  265. ]
  266. ]
  267. );
  268. $this->projects_locations_certificates = new CertificateManager\Resource\ProjectsLocationsCertificates(
  269. $this,
  270. $this->serviceName,
  271. 'certificates',
  272. [
  273. 'methods' => [
  274. 'create' => [
  275. 'path' => 'v1/{+parent}/certificates',
  276. 'httpMethod' => 'POST',
  277. 'parameters' => [
  278. 'parent' => [
  279. 'location' => 'path',
  280. 'type' => 'string',
  281. 'required' => true,
  282. ],
  283. 'certificateId' => [
  284. 'location' => 'query',
  285. 'type' => 'string',
  286. ],
  287. ],
  288. ],'delete' => [
  289. 'path' => 'v1/{+name}',
  290. 'httpMethod' => 'DELETE',
  291. 'parameters' => [
  292. 'name' => [
  293. 'location' => 'path',
  294. 'type' => 'string',
  295. 'required' => true,
  296. ],
  297. ],
  298. ],'get' => [
  299. 'path' => 'v1/{+name}',
  300. 'httpMethod' => 'GET',
  301. 'parameters' => [
  302. 'name' => [
  303. 'location' => 'path',
  304. 'type' => 'string',
  305. 'required' => true,
  306. ],
  307. ],
  308. ],'list' => [
  309. 'path' => 'v1/{+parent}/certificates',
  310. 'httpMethod' => 'GET',
  311. 'parameters' => [
  312. 'parent' => [
  313. 'location' => 'path',
  314. 'type' => 'string',
  315. 'required' => true,
  316. ],
  317. 'filter' => [
  318. 'location' => 'query',
  319. 'type' => 'string',
  320. ],
  321. 'orderBy' => [
  322. 'location' => 'query',
  323. 'type' => 'string',
  324. ],
  325. 'pageSize' => [
  326. 'location' => 'query',
  327. 'type' => 'integer',
  328. ],
  329. 'pageToken' => [
  330. 'location' => 'query',
  331. 'type' => 'string',
  332. ],
  333. ],
  334. ],'patch' => [
  335. 'path' => 'v1/{+name}',
  336. 'httpMethod' => 'PATCH',
  337. 'parameters' => [
  338. 'name' => [
  339. 'location' => 'path',
  340. 'type' => 'string',
  341. 'required' => true,
  342. ],
  343. 'updateMask' => [
  344. 'location' => 'query',
  345. 'type' => 'string',
  346. ],
  347. ],
  348. ],
  349. ]
  350. ]
  351. );
  352. $this->projects_locations_dnsAuthorizations = new CertificateManager\Resource\ProjectsLocationsDnsAuthorizations(
  353. $this,
  354. $this->serviceName,
  355. 'dnsAuthorizations',
  356. [
  357. 'methods' => [
  358. 'create' => [
  359. 'path' => 'v1/{+parent}/dnsAuthorizations',
  360. 'httpMethod' => 'POST',
  361. 'parameters' => [
  362. 'parent' => [
  363. 'location' => 'path',
  364. 'type' => 'string',
  365. 'required' => true,
  366. ],
  367. 'dnsAuthorizationId' => [
  368. 'location' => 'query',
  369. 'type' => 'string',
  370. ],
  371. ],
  372. ],'delete' => [
  373. 'path' => 'v1/{+name}',
  374. 'httpMethod' => 'DELETE',
  375. 'parameters' => [
  376. 'name' => [
  377. 'location' => 'path',
  378. 'type' => 'string',
  379. 'required' => true,
  380. ],
  381. ],
  382. ],'get' => [
  383. 'path' => 'v1/{+name}',
  384. 'httpMethod' => 'GET',
  385. 'parameters' => [
  386. 'name' => [
  387. 'location' => 'path',
  388. 'type' => 'string',
  389. 'required' => true,
  390. ],
  391. ],
  392. ],'list' => [
  393. 'path' => 'v1/{+parent}/dnsAuthorizations',
  394. 'httpMethod' => 'GET',
  395. 'parameters' => [
  396. 'parent' => [
  397. 'location' => 'path',
  398. 'type' => 'string',
  399. 'required' => true,
  400. ],
  401. 'filter' => [
  402. 'location' => 'query',
  403. 'type' => 'string',
  404. ],
  405. 'orderBy' => [
  406. 'location' => 'query',
  407. 'type' => 'string',
  408. ],
  409. 'pageSize' => [
  410. 'location' => 'query',
  411. 'type' => 'integer',
  412. ],
  413. 'pageToken' => [
  414. 'location' => 'query',
  415. 'type' => 'string',
  416. ],
  417. ],
  418. ],'patch' => [
  419. 'path' => 'v1/{+name}',
  420. 'httpMethod' => 'PATCH',
  421. 'parameters' => [
  422. 'name' => [
  423. 'location' => 'path',
  424. 'type' => 'string',
  425. 'required' => true,
  426. ],
  427. 'updateMask' => [
  428. 'location' => 'query',
  429. 'type' => 'string',
  430. ],
  431. ],
  432. ],
  433. ]
  434. ]
  435. );
  436. $this->projects_locations_operations = new CertificateManager\Resource\ProjectsLocationsOperations(
  437. $this,
  438. $this->serviceName,
  439. 'operations',
  440. [
  441. 'methods' => [
  442. 'cancel' => [
  443. 'path' => 'v1/{+name}:cancel',
  444. 'httpMethod' => 'POST',
  445. 'parameters' => [
  446. 'name' => [
  447. 'location' => 'path',
  448. 'type' => 'string',
  449. 'required' => true,
  450. ],
  451. ],
  452. ],'delete' => [
  453. 'path' => 'v1/{+name}',
  454. 'httpMethod' => 'DELETE',
  455. 'parameters' => [
  456. 'name' => [
  457. 'location' => 'path',
  458. 'type' => 'string',
  459. 'required' => true,
  460. ],
  461. ],
  462. ],'get' => [
  463. 'path' => 'v1/{+name}',
  464. 'httpMethod' => 'GET',
  465. 'parameters' => [
  466. 'name' => [
  467. 'location' => 'path',
  468. 'type' => 'string',
  469. 'required' => true,
  470. ],
  471. ],
  472. ],'list' => [
  473. 'path' => 'v1/{+name}/operations',
  474. 'httpMethod' => 'GET',
  475. 'parameters' => [
  476. 'name' => [
  477. 'location' => 'path',
  478. 'type' => 'string',
  479. 'required' => true,
  480. ],
  481. 'filter' => [
  482. 'location' => 'query',
  483. 'type' => 'string',
  484. ],
  485. 'pageSize' => [
  486. 'location' => 'query',
  487. 'type' => 'integer',
  488. ],
  489. 'pageToken' => [
  490. 'location' => 'query',
  491. 'type' => 'string',
  492. ],
  493. ],
  494. ],
  495. ]
  496. ]
  497. );
  498. }
  499. }
  500. // Adding a class alias for backwards compatibility with the previous class name.
  501. class_alias(CertificateManager::class, 'Google_Service_CertificateManager');