ManagedServiceforMicrosoftActiveDirectoryConsumerAPI.p 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658
  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 ManagedServiceforMicrosoftActiveDirectoryConsumerAPI (v1).
  21. *
  22. * <p>
  23. * The Managed Service for Microsoft Active Directory API is used for managing a
  24. * highly available, hardened service running Microsoft Active Directory (AD).</p>
  25. *
  26. * <p>
  27. * For more information about this service, see the API
  28. * <a href="https://cloud.google.com/managed-microsoft-ad/" target="_blank">Documentation</a>
  29. * </p>
  30. *
  31. * @author Google, Inc.
  32. */
  33. class ManagedServiceforMicrosoftActiveDirectoryConsumerAPI extends \Google\Service
  34. {
  35. /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
  36. const CLOUD_PLATFORM =
  37. "https://www.googleapis.com/auth/cloud-platform";
  38. public $projects_locations;
  39. public $projects_locations_global_domains;
  40. public $projects_locations_global_domains_backups;
  41. public $projects_locations_global_domains_sqlIntegrations;
  42. public $projects_locations_global_operations;
  43. public $projects_locations_global_peerings;
  44. /**
  45. * Constructs the internal representation of the
  46. * ManagedServiceforMicrosoftActiveDirectoryConsumerAPI service.
  47. *
  48. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  49. * config array to pass to a new Client instance.
  50. * @param string $rootUrl The root URL used for requests to the service.
  51. */
  52. public function __construct($clientOrConfig = [], $rootUrl = null)
  53. {
  54. parent::__construct($clientOrConfig);
  55. $this->rootUrl = $rootUrl ?: 'https://managedidentities.googleapis.com/';
  56. $this->servicePath = '';
  57. $this->batchPath = 'batch';
  58. $this->version = 'v1';
  59. $this->serviceName = 'managedidentities';
  60. $this->projects_locations = new ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\Resource\ProjectsLocations(
  61. $this,
  62. $this->serviceName,
  63. 'locations',
  64. [
  65. 'methods' => [
  66. 'get' => [
  67. 'path' => 'v1/{+name}',
  68. 'httpMethod' => 'GET',
  69. 'parameters' => [
  70. 'name' => [
  71. 'location' => 'path',
  72. 'type' => 'string',
  73. 'required' => true,
  74. ],
  75. ],
  76. ],'list' => [
  77. 'path' => 'v1/{+name}/locations',
  78. 'httpMethod' => 'GET',
  79. 'parameters' => [
  80. 'name' => [
  81. 'location' => 'path',
  82. 'type' => 'string',
  83. 'required' => true,
  84. ],
  85. 'filter' => [
  86. 'location' => 'query',
  87. 'type' => 'string',
  88. ],
  89. 'pageSize' => [
  90. 'location' => 'query',
  91. 'type' => 'integer',
  92. ],
  93. 'pageToken' => [
  94. 'location' => 'query',
  95. 'type' => 'string',
  96. ],
  97. ],
  98. ],
  99. ]
  100. ]
  101. );
  102. $this->projects_locations_global_domains = new ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\Resource\ProjectsLocationsManagedidentitiesGlobalDomains(
  103. $this,
  104. $this->serviceName,
  105. 'domains',
  106. [
  107. 'methods' => [
  108. 'attachTrust' => [
  109. 'path' => 'v1/{+name}:attachTrust',
  110. 'httpMethod' => 'POST',
  111. 'parameters' => [
  112. 'name' => [
  113. 'location' => 'path',
  114. 'type' => 'string',
  115. 'required' => true,
  116. ],
  117. ],
  118. ],'create' => [
  119. 'path' => 'v1/{+parent}/domains',
  120. 'httpMethod' => 'POST',
  121. 'parameters' => [
  122. 'parent' => [
  123. 'location' => 'path',
  124. 'type' => 'string',
  125. 'required' => true,
  126. ],
  127. 'domainName' => [
  128. 'location' => 'query',
  129. 'type' => 'string',
  130. ],
  131. ],
  132. ],'delete' => [
  133. 'path' => 'v1/{+name}',
  134. 'httpMethod' => 'DELETE',
  135. 'parameters' => [
  136. 'name' => [
  137. 'location' => 'path',
  138. 'type' => 'string',
  139. 'required' => true,
  140. ],
  141. ],
  142. ],'detachTrust' => [
  143. 'path' => 'v1/{+name}:detachTrust',
  144. 'httpMethod' => 'POST',
  145. 'parameters' => [
  146. 'name' => [
  147. 'location' => 'path',
  148. 'type' => 'string',
  149. 'required' => true,
  150. ],
  151. ],
  152. ],'get' => [
  153. 'path' => 'v1/{+name}',
  154. 'httpMethod' => 'GET',
  155. 'parameters' => [
  156. 'name' => [
  157. 'location' => 'path',
  158. 'type' => 'string',
  159. 'required' => true,
  160. ],
  161. ],
  162. ],'getIamPolicy' => [
  163. 'path' => 'v1/{+resource}:getIamPolicy',
  164. 'httpMethod' => 'GET',
  165. 'parameters' => [
  166. 'resource' => [
  167. 'location' => 'path',
  168. 'type' => 'string',
  169. 'required' => true,
  170. ],
  171. 'options.requestedPolicyVersion' => [
  172. 'location' => 'query',
  173. 'type' => 'integer',
  174. ],
  175. ],
  176. ],'getLdapssettings' => [
  177. 'path' => 'v1/{+name}/ldapssettings',
  178. 'httpMethod' => 'GET',
  179. 'parameters' => [
  180. 'name' => [
  181. 'location' => 'path',
  182. 'type' => 'string',
  183. 'required' => true,
  184. ],
  185. ],
  186. ],'list' => [
  187. 'path' => 'v1/{+parent}/domains',
  188. 'httpMethod' => 'GET',
  189. 'parameters' => [
  190. 'parent' => [
  191. 'location' => 'path',
  192. 'type' => 'string',
  193. 'required' => true,
  194. ],
  195. 'filter' => [
  196. 'location' => 'query',
  197. 'type' => 'string',
  198. ],
  199. 'orderBy' => [
  200. 'location' => 'query',
  201. 'type' => 'string',
  202. ],
  203. 'pageSize' => [
  204. 'location' => 'query',
  205. 'type' => 'integer',
  206. ],
  207. 'pageToken' => [
  208. 'location' => 'query',
  209. 'type' => 'string',
  210. ],
  211. ],
  212. ],'patch' => [
  213. 'path' => 'v1/{+name}',
  214. 'httpMethod' => 'PATCH',
  215. 'parameters' => [
  216. 'name' => [
  217. 'location' => 'path',
  218. 'type' => 'string',
  219. 'required' => true,
  220. ],
  221. 'updateMask' => [
  222. 'location' => 'query',
  223. 'type' => 'string',
  224. ],
  225. ],
  226. ],'reconfigureTrust' => [
  227. 'path' => 'v1/{+name}:reconfigureTrust',
  228. 'httpMethod' => 'POST',
  229. 'parameters' => [
  230. 'name' => [
  231. 'location' => 'path',
  232. 'type' => 'string',
  233. 'required' => true,
  234. ],
  235. ],
  236. ],'resetAdminPassword' => [
  237. 'path' => 'v1/{+name}:resetAdminPassword',
  238. 'httpMethod' => 'POST',
  239. 'parameters' => [
  240. 'name' => [
  241. 'location' => 'path',
  242. 'type' => 'string',
  243. 'required' => true,
  244. ],
  245. ],
  246. ],'restore' => [
  247. 'path' => 'v1/{+name}:restore',
  248. 'httpMethod' => 'POST',
  249. 'parameters' => [
  250. 'name' => [
  251. 'location' => 'path',
  252. 'type' => 'string',
  253. 'required' => true,
  254. ],
  255. ],
  256. ],'setIamPolicy' => [
  257. 'path' => 'v1/{+resource}:setIamPolicy',
  258. 'httpMethod' => 'POST',
  259. 'parameters' => [
  260. 'resource' => [
  261. 'location' => 'path',
  262. 'type' => 'string',
  263. 'required' => true,
  264. ],
  265. ],
  266. ],'testIamPermissions' => [
  267. 'path' => 'v1/{+resource}:testIamPermissions',
  268. 'httpMethod' => 'POST',
  269. 'parameters' => [
  270. 'resource' => [
  271. 'location' => 'path',
  272. 'type' => 'string',
  273. 'required' => true,
  274. ],
  275. ],
  276. ],'updateLdapssettings' => [
  277. 'path' => 'v1/{+name}/ldapssettings',
  278. 'httpMethod' => 'PATCH',
  279. 'parameters' => [
  280. 'name' => [
  281. 'location' => 'path',
  282. 'type' => 'string',
  283. 'required' => true,
  284. ],
  285. 'updateMask' => [
  286. 'location' => 'query',
  287. 'type' => 'string',
  288. ],
  289. ],
  290. ],'validateTrust' => [
  291. 'path' => 'v1/{+name}:validateTrust',
  292. 'httpMethod' => 'POST',
  293. 'parameters' => [
  294. 'name' => [
  295. 'location' => 'path',
  296. 'type' => 'string',
  297. 'required' => true,
  298. ],
  299. ],
  300. ],
  301. ]
  302. ]
  303. );
  304. $this->projects_locations_global_domains_backups = new ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\Resource\ProjectsLocationsManagedidentitiesGlobalDomainsBackups(
  305. $this,
  306. $this->serviceName,
  307. 'backups',
  308. [
  309. 'methods' => [
  310. 'create' => [
  311. 'path' => 'v1/{+parent}/backups',
  312. 'httpMethod' => 'POST',
  313. 'parameters' => [
  314. 'parent' => [
  315. 'location' => 'path',
  316. 'type' => 'string',
  317. 'required' => true,
  318. ],
  319. 'backupId' => [
  320. 'location' => 'query',
  321. 'type' => 'string',
  322. ],
  323. ],
  324. ],'delete' => [
  325. 'path' => 'v1/{+name}',
  326. 'httpMethod' => 'DELETE',
  327. 'parameters' => [
  328. 'name' => [
  329. 'location' => 'path',
  330. 'type' => 'string',
  331. 'required' => true,
  332. ],
  333. ],
  334. ],'get' => [
  335. 'path' => 'v1/{+name}',
  336. 'httpMethod' => 'GET',
  337. 'parameters' => [
  338. 'name' => [
  339. 'location' => 'path',
  340. 'type' => 'string',
  341. 'required' => true,
  342. ],
  343. ],
  344. ],'getIamPolicy' => [
  345. 'path' => 'v1/{+resource}:getIamPolicy',
  346. 'httpMethod' => 'GET',
  347. 'parameters' => [
  348. 'resource' => [
  349. 'location' => 'path',
  350. 'type' => 'string',
  351. 'required' => true,
  352. ],
  353. 'options.requestedPolicyVersion' => [
  354. 'location' => 'query',
  355. 'type' => 'integer',
  356. ],
  357. ],
  358. ],'list' => [
  359. 'path' => 'v1/{+parent}/backups',
  360. 'httpMethod' => 'GET',
  361. 'parameters' => [
  362. 'parent' => [
  363. 'location' => 'path',
  364. 'type' => 'string',
  365. 'required' => true,
  366. ],
  367. 'filter' => [
  368. 'location' => 'query',
  369. 'type' => 'string',
  370. ],
  371. 'orderBy' => [
  372. 'location' => 'query',
  373. 'type' => 'string',
  374. ],
  375. 'pageSize' => [
  376. 'location' => 'query',
  377. 'type' => 'integer',
  378. ],
  379. 'pageToken' => [
  380. 'location' => 'query',
  381. 'type' => 'string',
  382. ],
  383. ],
  384. ],'patch' => [
  385. 'path' => 'v1/{+name}',
  386. 'httpMethod' => 'PATCH',
  387. 'parameters' => [
  388. 'name' => [
  389. 'location' => 'path',
  390. 'type' => 'string',
  391. 'required' => true,
  392. ],
  393. 'updateMask' => [
  394. 'location' => 'query',
  395. 'type' => 'string',
  396. ],
  397. ],
  398. ],'setIamPolicy' => [
  399. 'path' => 'v1/{+resource}:setIamPolicy',
  400. 'httpMethod' => 'POST',
  401. 'parameters' => [
  402. 'resource' => [
  403. 'location' => 'path',
  404. 'type' => 'string',
  405. 'required' => true,
  406. ],
  407. ],
  408. ],'testIamPermissions' => [
  409. 'path' => 'v1/{+resource}:testIamPermissions',
  410. 'httpMethod' => 'POST',
  411. 'parameters' => [
  412. 'resource' => [
  413. 'location' => 'path',
  414. 'type' => 'string',
  415. 'required' => true,
  416. ],
  417. ],
  418. ],
  419. ]
  420. ]
  421. );
  422. $this->projects_locations_global_domains_sqlIntegrations = new ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\Resource\ProjectsLocationsManagedidentitiesGlobalDomainsSqlIntegrations(
  423. $this,
  424. $this->serviceName,
  425. 'sqlIntegrations',
  426. [
  427. 'methods' => [
  428. 'get' => [
  429. 'path' => 'v1/{+name}',
  430. 'httpMethod' => 'GET',
  431. 'parameters' => [
  432. 'name' => [
  433. 'location' => 'path',
  434. 'type' => 'string',
  435. 'required' => true,
  436. ],
  437. ],
  438. ],'list' => [
  439. 'path' => 'v1/{+parent}/sqlIntegrations',
  440. 'httpMethod' => 'GET',
  441. 'parameters' => [
  442. 'parent' => [
  443. 'location' => 'path',
  444. 'type' => 'string',
  445. 'required' => true,
  446. ],
  447. 'filter' => [
  448. 'location' => 'query',
  449. 'type' => 'string',
  450. ],
  451. 'orderBy' => [
  452. 'location' => 'query',
  453. 'type' => 'string',
  454. ],
  455. 'pageSize' => [
  456. 'location' => 'query',
  457. 'type' => 'integer',
  458. ],
  459. 'pageToken' => [
  460. 'location' => 'query',
  461. 'type' => 'string',
  462. ],
  463. ],
  464. ],
  465. ]
  466. ]
  467. );
  468. $this->projects_locations_global_operations = new ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\Resource\ProjectsLocationsManagedidentitiesGlobalOperations(
  469. $this,
  470. $this->serviceName,
  471. 'operations',
  472. [
  473. 'methods' => [
  474. 'cancel' => [
  475. 'path' => 'v1/{+name}:cancel',
  476. 'httpMethod' => 'POST',
  477. 'parameters' => [
  478. 'name' => [
  479. 'location' => 'path',
  480. 'type' => 'string',
  481. 'required' => true,
  482. ],
  483. ],
  484. ],'delete' => [
  485. 'path' => 'v1/{+name}',
  486. 'httpMethod' => 'DELETE',
  487. 'parameters' => [
  488. 'name' => [
  489. 'location' => 'path',
  490. 'type' => 'string',
  491. 'required' => true,
  492. ],
  493. ],
  494. ],'get' => [
  495. 'path' => 'v1/{+name}',
  496. 'httpMethod' => 'GET',
  497. 'parameters' => [
  498. 'name' => [
  499. 'location' => 'path',
  500. 'type' => 'string',
  501. 'required' => true,
  502. ],
  503. ],
  504. ],'list' => [
  505. 'path' => 'v1/{+name}',
  506. 'httpMethod' => 'GET',
  507. 'parameters' => [
  508. 'name' => [
  509. 'location' => 'path',
  510. 'type' => 'string',
  511. 'required' => true,
  512. ],
  513. 'filter' => [
  514. 'location' => 'query',
  515. 'type' => 'string',
  516. ],
  517. 'pageSize' => [
  518. 'location' => 'query',
  519. 'type' => 'integer',
  520. ],
  521. 'pageToken' => [
  522. 'location' => 'query',
  523. 'type' => 'string',
  524. ],
  525. ],
  526. ],
  527. ]
  528. ]
  529. );
  530. $this->projects_locations_global_peerings = new ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\Resource\ProjectsLocationsManagedidentitiesGlobalPeerings(
  531. $this,
  532. $this->serviceName,
  533. 'peerings',
  534. [
  535. 'methods' => [
  536. 'create' => [
  537. 'path' => 'v1/{+parent}/peerings',
  538. 'httpMethod' => 'POST',
  539. 'parameters' => [
  540. 'parent' => [
  541. 'location' => 'path',
  542. 'type' => 'string',
  543. 'required' => true,
  544. ],
  545. 'peeringId' => [
  546. 'location' => 'query',
  547. 'type' => 'string',
  548. ],
  549. ],
  550. ],'delete' => [
  551. 'path' => 'v1/{+name}',
  552. 'httpMethod' => 'DELETE',
  553. 'parameters' => [
  554. 'name' => [
  555. 'location' => 'path',
  556. 'type' => 'string',
  557. 'required' => true,
  558. ],
  559. ],
  560. ],'get' => [
  561. 'path' => 'v1/{+name}',
  562. 'httpMethod' => 'GET',
  563. 'parameters' => [
  564. 'name' => [
  565. 'location' => 'path',
  566. 'type' => 'string',
  567. 'required' => true,
  568. ],
  569. ],
  570. ],'getIamPolicy' => [
  571. 'path' => 'v1/{+resource}:getIamPolicy',
  572. 'httpMethod' => 'GET',
  573. 'parameters' => [
  574. 'resource' => [
  575. 'location' => 'path',
  576. 'type' => 'string',
  577. 'required' => true,
  578. ],
  579. 'options.requestedPolicyVersion' => [
  580. 'location' => 'query',
  581. 'type' => 'integer',
  582. ],
  583. ],
  584. ],'list' => [
  585. 'path' => 'v1/{+parent}/peerings',
  586. 'httpMethod' => 'GET',
  587. 'parameters' => [
  588. 'parent' => [
  589. 'location' => 'path',
  590. 'type' => 'string',
  591. 'required' => true,
  592. ],
  593. 'filter' => [
  594. 'location' => 'query',
  595. 'type' => 'string',
  596. ],
  597. 'orderBy' => [
  598. 'location' => 'query',
  599. 'type' => 'string',
  600. ],
  601. 'pageSize' => [
  602. 'location' => 'query',
  603. 'type' => 'integer',
  604. ],
  605. 'pageToken' => [
  606. 'location' => 'query',
  607. 'type' => 'string',
  608. ],
  609. ],
  610. ],'patch' => [
  611. 'path' => 'v1/{+name}',
  612. 'httpMethod' => 'PATCH',
  613. 'parameters' => [
  614. 'name' => [
  615. 'location' => 'path',
  616. 'type' => 'string',
  617. 'required' => true,
  618. ],
  619. 'updateMask' => [
  620. 'location' => 'query',
  621. 'type' => 'string',
  622. ],
  623. ],
  624. ],'setIamPolicy' => [
  625. 'path' => 'v1/{+resource}:setIamPolicy',
  626. 'httpMethod' => 'POST',
  627. 'parameters' => [
  628. 'resource' => [
  629. 'location' => 'path',
  630. 'type' => 'string',
  631. 'required' => true,
  632. ],
  633. ],
  634. ],'testIamPermissions' => [
  635. 'path' => 'v1/{+resource}:testIamPermissions',
  636. 'httpMethod' => 'POST',
  637. 'parameters' => [
  638. 'resource' => [
  639. 'location' => 'path',
  640. 'type' => 'string',
  641. 'required' => true,
  642. ],
  643. ],
  644. ],
  645. ]
  646. ]
  647. );
  648. }
  649. }
  650. // Adding a class alias for backwards compatibility with the previous class name.
  651. class_alias(ManagedServiceforMicrosoftActiveDirectoryConsumerAPI::class, 'Google_Service_ManagedServiceforMicrosoftActiveDirectoryConsumerAPI');