Recommender.php 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842
  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 Recommender (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/recommender/docs/" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class Recommender 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 $billingAccounts_locations_insightTypes;
  38. public $billingAccounts_locations_insightTypes_insights;
  39. public $billingAccounts_locations_recommenders;
  40. public $billingAccounts_locations_recommenders_recommendations;
  41. public $folders_locations_insightTypes_insights;
  42. public $folders_locations_recommenders_recommendations;
  43. public $organizations_locations_insightTypes;
  44. public $organizations_locations_insightTypes_insights;
  45. public $organizations_locations_recommenders;
  46. public $organizations_locations_recommenders_recommendations;
  47. public $projects_locations_insightTypes;
  48. public $projects_locations_insightTypes_insights;
  49. public $projects_locations_recommenders;
  50. public $projects_locations_recommenders_recommendations;
  51. public $rootUrlTemplate;
  52. /**
  53. * Constructs the internal representation of the Recommender service.
  54. *
  55. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  56. * config array to pass to a new Client instance.
  57. * @param string $rootUrl The root URL used for requests to the service.
  58. */
  59. public function __construct($clientOrConfig = [], $rootUrl = null)
  60. {
  61. parent::__construct($clientOrConfig);
  62. $this->rootUrl = $rootUrl ?: 'https://recommender.googleapis.com/';
  63. $this->rootUrlTemplate = $rootUrl ?: 'https://recommender.UNIVERSE_DOMAIN/';
  64. $this->servicePath = '';
  65. $this->batchPath = 'batch';
  66. $this->version = 'v1';
  67. $this->serviceName = 'recommender';
  68. $this->billingAccounts_locations_insightTypes = new Recommender\Resource\BillingAccountsLocationsInsightTypes(
  69. $this,
  70. $this->serviceName,
  71. 'insightTypes',
  72. [
  73. 'methods' => [
  74. 'getConfig' => [
  75. 'path' => 'v1/{+name}',
  76. 'httpMethod' => 'GET',
  77. 'parameters' => [
  78. 'name' => [
  79. 'location' => 'path',
  80. 'type' => 'string',
  81. 'required' => true,
  82. ],
  83. ],
  84. ],'updateConfig' => [
  85. 'path' => 'v1/{+name}',
  86. 'httpMethod' => 'PATCH',
  87. 'parameters' => [
  88. 'name' => [
  89. 'location' => 'path',
  90. 'type' => 'string',
  91. 'required' => true,
  92. ],
  93. 'updateMask' => [
  94. 'location' => 'query',
  95. 'type' => 'string',
  96. ],
  97. 'validateOnly' => [
  98. 'location' => 'query',
  99. 'type' => 'boolean',
  100. ],
  101. ],
  102. ],
  103. ]
  104. ]
  105. );
  106. $this->billingAccounts_locations_insightTypes_insights = new Recommender\Resource\BillingAccountsLocationsInsightTypesInsights(
  107. $this,
  108. $this->serviceName,
  109. 'insights',
  110. [
  111. 'methods' => [
  112. 'get' => [
  113. 'path' => 'v1/{+name}',
  114. 'httpMethod' => 'GET',
  115. 'parameters' => [
  116. 'name' => [
  117. 'location' => 'path',
  118. 'type' => 'string',
  119. 'required' => true,
  120. ],
  121. ],
  122. ],'list' => [
  123. 'path' => 'v1/{+parent}/insights',
  124. 'httpMethod' => 'GET',
  125. 'parameters' => [
  126. 'parent' => [
  127. 'location' => 'path',
  128. 'type' => 'string',
  129. 'required' => true,
  130. ],
  131. 'filter' => [
  132. 'location' => 'query',
  133. 'type' => 'string',
  134. ],
  135. 'pageSize' => [
  136. 'location' => 'query',
  137. 'type' => 'integer',
  138. ],
  139. 'pageToken' => [
  140. 'location' => 'query',
  141. 'type' => 'string',
  142. ],
  143. ],
  144. ],'markAccepted' => [
  145. 'path' => 'v1/{+name}:markAccepted',
  146. 'httpMethod' => 'POST',
  147. 'parameters' => [
  148. 'name' => [
  149. 'location' => 'path',
  150. 'type' => 'string',
  151. 'required' => true,
  152. ],
  153. ],
  154. ],
  155. ]
  156. ]
  157. );
  158. $this->billingAccounts_locations_recommenders = new Recommender\Resource\BillingAccountsLocationsRecommenders(
  159. $this,
  160. $this->serviceName,
  161. 'recommenders',
  162. [
  163. 'methods' => [
  164. 'getConfig' => [
  165. 'path' => 'v1/{+name}',
  166. 'httpMethod' => 'GET',
  167. 'parameters' => [
  168. 'name' => [
  169. 'location' => 'path',
  170. 'type' => 'string',
  171. 'required' => true,
  172. ],
  173. ],
  174. ],'updateConfig' => [
  175. 'path' => 'v1/{+name}',
  176. 'httpMethod' => 'PATCH',
  177. 'parameters' => [
  178. 'name' => [
  179. 'location' => 'path',
  180. 'type' => 'string',
  181. 'required' => true,
  182. ],
  183. 'updateMask' => [
  184. 'location' => 'query',
  185. 'type' => 'string',
  186. ],
  187. 'validateOnly' => [
  188. 'location' => 'query',
  189. 'type' => 'boolean',
  190. ],
  191. ],
  192. ],
  193. ]
  194. ]
  195. );
  196. $this->billingAccounts_locations_recommenders_recommendations = new Recommender\Resource\BillingAccountsLocationsRecommendersRecommendations(
  197. $this,
  198. $this->serviceName,
  199. 'recommendations',
  200. [
  201. 'methods' => [
  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}/recommendations',
  214. 'httpMethod' => 'GET',
  215. 'parameters' => [
  216. 'parent' => [
  217. 'location' => 'path',
  218. 'type' => 'string',
  219. 'required' => true,
  220. ],
  221. 'filter' => [
  222. 'location' => 'query',
  223. 'type' => 'string',
  224. ],
  225. 'pageSize' => [
  226. 'location' => 'query',
  227. 'type' => 'integer',
  228. ],
  229. 'pageToken' => [
  230. 'location' => 'query',
  231. 'type' => 'string',
  232. ],
  233. ],
  234. ],'markClaimed' => [
  235. 'path' => 'v1/{+name}:markClaimed',
  236. 'httpMethod' => 'POST',
  237. 'parameters' => [
  238. 'name' => [
  239. 'location' => 'path',
  240. 'type' => 'string',
  241. 'required' => true,
  242. ],
  243. ],
  244. ],'markDismissed' => [
  245. 'path' => 'v1/{+name}:markDismissed',
  246. 'httpMethod' => 'POST',
  247. 'parameters' => [
  248. 'name' => [
  249. 'location' => 'path',
  250. 'type' => 'string',
  251. 'required' => true,
  252. ],
  253. ],
  254. ],'markFailed' => [
  255. 'path' => 'v1/{+name}:markFailed',
  256. 'httpMethod' => 'POST',
  257. 'parameters' => [
  258. 'name' => [
  259. 'location' => 'path',
  260. 'type' => 'string',
  261. 'required' => true,
  262. ],
  263. ],
  264. ],'markSucceeded' => [
  265. 'path' => 'v1/{+name}:markSucceeded',
  266. 'httpMethod' => 'POST',
  267. 'parameters' => [
  268. 'name' => [
  269. 'location' => 'path',
  270. 'type' => 'string',
  271. 'required' => true,
  272. ],
  273. ],
  274. ],
  275. ]
  276. ]
  277. );
  278. $this->folders_locations_insightTypes_insights = new Recommender\Resource\FoldersLocationsInsightTypesInsights(
  279. $this,
  280. $this->serviceName,
  281. 'insights',
  282. [
  283. 'methods' => [
  284. 'get' => [
  285. 'path' => 'v1/{+name}',
  286. 'httpMethod' => 'GET',
  287. 'parameters' => [
  288. 'name' => [
  289. 'location' => 'path',
  290. 'type' => 'string',
  291. 'required' => true,
  292. ],
  293. ],
  294. ],'list' => [
  295. 'path' => 'v1/{+parent}/insights',
  296. 'httpMethod' => 'GET',
  297. 'parameters' => [
  298. 'parent' => [
  299. 'location' => 'path',
  300. 'type' => 'string',
  301. 'required' => true,
  302. ],
  303. 'filter' => [
  304. 'location' => 'query',
  305. 'type' => 'string',
  306. ],
  307. 'pageSize' => [
  308. 'location' => 'query',
  309. 'type' => 'integer',
  310. ],
  311. 'pageToken' => [
  312. 'location' => 'query',
  313. 'type' => 'string',
  314. ],
  315. ],
  316. ],'markAccepted' => [
  317. 'path' => 'v1/{+name}:markAccepted',
  318. 'httpMethod' => 'POST',
  319. 'parameters' => [
  320. 'name' => [
  321. 'location' => 'path',
  322. 'type' => 'string',
  323. 'required' => true,
  324. ],
  325. ],
  326. ],
  327. ]
  328. ]
  329. );
  330. $this->folders_locations_recommenders_recommendations = new Recommender\Resource\FoldersLocationsRecommendersRecommendations(
  331. $this,
  332. $this->serviceName,
  333. 'recommendations',
  334. [
  335. 'methods' => [
  336. 'get' => [
  337. 'path' => 'v1/{+name}',
  338. 'httpMethod' => 'GET',
  339. 'parameters' => [
  340. 'name' => [
  341. 'location' => 'path',
  342. 'type' => 'string',
  343. 'required' => true,
  344. ],
  345. ],
  346. ],'list' => [
  347. 'path' => 'v1/{+parent}/recommendations',
  348. 'httpMethod' => 'GET',
  349. 'parameters' => [
  350. 'parent' => [
  351. 'location' => 'path',
  352. 'type' => 'string',
  353. 'required' => true,
  354. ],
  355. 'filter' => [
  356. 'location' => 'query',
  357. 'type' => 'string',
  358. ],
  359. 'pageSize' => [
  360. 'location' => 'query',
  361. 'type' => 'integer',
  362. ],
  363. 'pageToken' => [
  364. 'location' => 'query',
  365. 'type' => 'string',
  366. ],
  367. ],
  368. ],'markClaimed' => [
  369. 'path' => 'v1/{+name}:markClaimed',
  370. 'httpMethod' => 'POST',
  371. 'parameters' => [
  372. 'name' => [
  373. 'location' => 'path',
  374. 'type' => 'string',
  375. 'required' => true,
  376. ],
  377. ],
  378. ],'markDismissed' => [
  379. 'path' => 'v1/{+name}:markDismissed',
  380. 'httpMethod' => 'POST',
  381. 'parameters' => [
  382. 'name' => [
  383. 'location' => 'path',
  384. 'type' => 'string',
  385. 'required' => true,
  386. ],
  387. ],
  388. ],'markFailed' => [
  389. 'path' => 'v1/{+name}:markFailed',
  390. 'httpMethod' => 'POST',
  391. 'parameters' => [
  392. 'name' => [
  393. 'location' => 'path',
  394. 'type' => 'string',
  395. 'required' => true,
  396. ],
  397. ],
  398. ],'markSucceeded' => [
  399. 'path' => 'v1/{+name}:markSucceeded',
  400. 'httpMethod' => 'POST',
  401. 'parameters' => [
  402. 'name' => [
  403. 'location' => 'path',
  404. 'type' => 'string',
  405. 'required' => true,
  406. ],
  407. ],
  408. ],
  409. ]
  410. ]
  411. );
  412. $this->organizations_locations_insightTypes = new Recommender\Resource\OrganizationsLocationsInsightTypes(
  413. $this,
  414. $this->serviceName,
  415. 'insightTypes',
  416. [
  417. 'methods' => [
  418. 'getConfig' => [
  419. 'path' => 'v1/{+name}',
  420. 'httpMethod' => 'GET',
  421. 'parameters' => [
  422. 'name' => [
  423. 'location' => 'path',
  424. 'type' => 'string',
  425. 'required' => true,
  426. ],
  427. ],
  428. ],'updateConfig' => [
  429. 'path' => 'v1/{+name}',
  430. 'httpMethod' => 'PATCH',
  431. 'parameters' => [
  432. 'name' => [
  433. 'location' => 'path',
  434. 'type' => 'string',
  435. 'required' => true,
  436. ],
  437. 'updateMask' => [
  438. 'location' => 'query',
  439. 'type' => 'string',
  440. ],
  441. 'validateOnly' => [
  442. 'location' => 'query',
  443. 'type' => 'boolean',
  444. ],
  445. ],
  446. ],
  447. ]
  448. ]
  449. );
  450. $this->organizations_locations_insightTypes_insights = new Recommender\Resource\OrganizationsLocationsInsightTypesInsights(
  451. $this,
  452. $this->serviceName,
  453. 'insights',
  454. [
  455. 'methods' => [
  456. 'get' => [
  457. 'path' => 'v1/{+name}',
  458. 'httpMethod' => 'GET',
  459. 'parameters' => [
  460. 'name' => [
  461. 'location' => 'path',
  462. 'type' => 'string',
  463. 'required' => true,
  464. ],
  465. ],
  466. ],'list' => [
  467. 'path' => 'v1/{+parent}/insights',
  468. 'httpMethod' => 'GET',
  469. 'parameters' => [
  470. 'parent' => [
  471. 'location' => 'path',
  472. 'type' => 'string',
  473. 'required' => true,
  474. ],
  475. 'filter' => [
  476. 'location' => 'query',
  477. 'type' => 'string',
  478. ],
  479. 'pageSize' => [
  480. 'location' => 'query',
  481. 'type' => 'integer',
  482. ],
  483. 'pageToken' => [
  484. 'location' => 'query',
  485. 'type' => 'string',
  486. ],
  487. ],
  488. ],'markAccepted' => [
  489. 'path' => 'v1/{+name}:markAccepted',
  490. 'httpMethod' => 'POST',
  491. 'parameters' => [
  492. 'name' => [
  493. 'location' => 'path',
  494. 'type' => 'string',
  495. 'required' => true,
  496. ],
  497. ],
  498. ],
  499. ]
  500. ]
  501. );
  502. $this->organizations_locations_recommenders = new Recommender\Resource\OrganizationsLocationsRecommenders(
  503. $this,
  504. $this->serviceName,
  505. 'recommenders',
  506. [
  507. 'methods' => [
  508. 'getConfig' => [
  509. 'path' => 'v1/{+name}',
  510. 'httpMethod' => 'GET',
  511. 'parameters' => [
  512. 'name' => [
  513. 'location' => 'path',
  514. 'type' => 'string',
  515. 'required' => true,
  516. ],
  517. ],
  518. ],'updateConfig' => [
  519. 'path' => 'v1/{+name}',
  520. 'httpMethod' => 'PATCH',
  521. 'parameters' => [
  522. 'name' => [
  523. 'location' => 'path',
  524. 'type' => 'string',
  525. 'required' => true,
  526. ],
  527. 'updateMask' => [
  528. 'location' => 'query',
  529. 'type' => 'string',
  530. ],
  531. 'validateOnly' => [
  532. 'location' => 'query',
  533. 'type' => 'boolean',
  534. ],
  535. ],
  536. ],
  537. ]
  538. ]
  539. );
  540. $this->organizations_locations_recommenders_recommendations = new Recommender\Resource\OrganizationsLocationsRecommendersRecommendations(
  541. $this,
  542. $this->serviceName,
  543. 'recommendations',
  544. [
  545. 'methods' => [
  546. 'get' => [
  547. 'path' => 'v1/{+name}',
  548. 'httpMethod' => 'GET',
  549. 'parameters' => [
  550. 'name' => [
  551. 'location' => 'path',
  552. 'type' => 'string',
  553. 'required' => true,
  554. ],
  555. ],
  556. ],'list' => [
  557. 'path' => 'v1/{+parent}/recommendations',
  558. 'httpMethod' => 'GET',
  559. 'parameters' => [
  560. 'parent' => [
  561. 'location' => 'path',
  562. 'type' => 'string',
  563. 'required' => true,
  564. ],
  565. 'filter' => [
  566. 'location' => 'query',
  567. 'type' => 'string',
  568. ],
  569. 'pageSize' => [
  570. 'location' => 'query',
  571. 'type' => 'integer',
  572. ],
  573. 'pageToken' => [
  574. 'location' => 'query',
  575. 'type' => 'string',
  576. ],
  577. ],
  578. ],'markClaimed' => [
  579. 'path' => 'v1/{+name}:markClaimed',
  580. 'httpMethod' => 'POST',
  581. 'parameters' => [
  582. 'name' => [
  583. 'location' => 'path',
  584. 'type' => 'string',
  585. 'required' => true,
  586. ],
  587. ],
  588. ],'markDismissed' => [
  589. 'path' => 'v1/{+name}:markDismissed',
  590. 'httpMethod' => 'POST',
  591. 'parameters' => [
  592. 'name' => [
  593. 'location' => 'path',
  594. 'type' => 'string',
  595. 'required' => true,
  596. ],
  597. ],
  598. ],'markFailed' => [
  599. 'path' => 'v1/{+name}:markFailed',
  600. 'httpMethod' => 'POST',
  601. 'parameters' => [
  602. 'name' => [
  603. 'location' => 'path',
  604. 'type' => 'string',
  605. 'required' => true,
  606. ],
  607. ],
  608. ],'markSucceeded' => [
  609. 'path' => 'v1/{+name}:markSucceeded',
  610. 'httpMethod' => 'POST',
  611. 'parameters' => [
  612. 'name' => [
  613. 'location' => 'path',
  614. 'type' => 'string',
  615. 'required' => true,
  616. ],
  617. ],
  618. ],
  619. ]
  620. ]
  621. );
  622. $this->projects_locations_insightTypes = new Recommender\Resource\ProjectsLocationsInsightTypes(
  623. $this,
  624. $this->serviceName,
  625. 'insightTypes',
  626. [
  627. 'methods' => [
  628. 'getConfig' => [
  629. 'path' => 'v1/{+name}',
  630. 'httpMethod' => 'GET',
  631. 'parameters' => [
  632. 'name' => [
  633. 'location' => 'path',
  634. 'type' => 'string',
  635. 'required' => true,
  636. ],
  637. ],
  638. ],'updateConfig' => [
  639. 'path' => 'v1/{+name}',
  640. 'httpMethod' => 'PATCH',
  641. 'parameters' => [
  642. 'name' => [
  643. 'location' => 'path',
  644. 'type' => 'string',
  645. 'required' => true,
  646. ],
  647. 'updateMask' => [
  648. 'location' => 'query',
  649. 'type' => 'string',
  650. ],
  651. 'validateOnly' => [
  652. 'location' => 'query',
  653. 'type' => 'boolean',
  654. ],
  655. ],
  656. ],
  657. ]
  658. ]
  659. );
  660. $this->projects_locations_insightTypes_insights = new Recommender\Resource\ProjectsLocationsInsightTypesInsights(
  661. $this,
  662. $this->serviceName,
  663. 'insights',
  664. [
  665. 'methods' => [
  666. 'get' => [
  667. 'path' => 'v1/{+name}',
  668. 'httpMethod' => 'GET',
  669. 'parameters' => [
  670. 'name' => [
  671. 'location' => 'path',
  672. 'type' => 'string',
  673. 'required' => true,
  674. ],
  675. ],
  676. ],'list' => [
  677. 'path' => 'v1/{+parent}/insights',
  678. 'httpMethod' => 'GET',
  679. 'parameters' => [
  680. 'parent' => [
  681. 'location' => 'path',
  682. 'type' => 'string',
  683. 'required' => true,
  684. ],
  685. 'filter' => [
  686. 'location' => 'query',
  687. 'type' => 'string',
  688. ],
  689. 'pageSize' => [
  690. 'location' => 'query',
  691. 'type' => 'integer',
  692. ],
  693. 'pageToken' => [
  694. 'location' => 'query',
  695. 'type' => 'string',
  696. ],
  697. ],
  698. ],'markAccepted' => [
  699. 'path' => 'v1/{+name}:markAccepted',
  700. 'httpMethod' => 'POST',
  701. 'parameters' => [
  702. 'name' => [
  703. 'location' => 'path',
  704. 'type' => 'string',
  705. 'required' => true,
  706. ],
  707. ],
  708. ],
  709. ]
  710. ]
  711. );
  712. $this->projects_locations_recommenders = new Recommender\Resource\ProjectsLocationsRecommenders(
  713. $this,
  714. $this->serviceName,
  715. 'recommenders',
  716. [
  717. 'methods' => [
  718. 'getConfig' => [
  719. 'path' => 'v1/{+name}',
  720. 'httpMethod' => 'GET',
  721. 'parameters' => [
  722. 'name' => [
  723. 'location' => 'path',
  724. 'type' => 'string',
  725. 'required' => true,
  726. ],
  727. ],
  728. ],'updateConfig' => [
  729. 'path' => 'v1/{+name}',
  730. 'httpMethod' => 'PATCH',
  731. 'parameters' => [
  732. 'name' => [
  733. 'location' => 'path',
  734. 'type' => 'string',
  735. 'required' => true,
  736. ],
  737. 'updateMask' => [
  738. 'location' => 'query',
  739. 'type' => 'string',
  740. ],
  741. 'validateOnly' => [
  742. 'location' => 'query',
  743. 'type' => 'boolean',
  744. ],
  745. ],
  746. ],
  747. ]
  748. ]
  749. );
  750. $this->projects_locations_recommenders_recommendations = new Recommender\Resource\ProjectsLocationsRecommendersRecommendations(
  751. $this,
  752. $this->serviceName,
  753. 'recommendations',
  754. [
  755. 'methods' => [
  756. 'get' => [
  757. 'path' => 'v1/{+name}',
  758. 'httpMethod' => 'GET',
  759. 'parameters' => [
  760. 'name' => [
  761. 'location' => 'path',
  762. 'type' => 'string',
  763. 'required' => true,
  764. ],
  765. ],
  766. ],'list' => [
  767. 'path' => 'v1/{+parent}/recommendations',
  768. 'httpMethod' => 'GET',
  769. 'parameters' => [
  770. 'parent' => [
  771. 'location' => 'path',
  772. 'type' => 'string',
  773. 'required' => true,
  774. ],
  775. 'filter' => [
  776. 'location' => 'query',
  777. 'type' => 'string',
  778. ],
  779. 'pageSize' => [
  780. 'location' => 'query',
  781. 'type' => 'integer',
  782. ],
  783. 'pageToken' => [
  784. 'location' => 'query',
  785. 'type' => 'string',
  786. ],
  787. ],
  788. ],'markClaimed' => [
  789. 'path' => 'v1/{+name}:markClaimed',
  790. 'httpMethod' => 'POST',
  791. 'parameters' => [
  792. 'name' => [
  793. 'location' => 'path',
  794. 'type' => 'string',
  795. 'required' => true,
  796. ],
  797. ],
  798. ],'markDismissed' => [
  799. 'path' => 'v1/{+name}:markDismissed',
  800. 'httpMethod' => 'POST',
  801. 'parameters' => [
  802. 'name' => [
  803. 'location' => 'path',
  804. 'type' => 'string',
  805. 'required' => true,
  806. ],
  807. ],
  808. ],'markFailed' => [
  809. 'path' => 'v1/{+name}:markFailed',
  810. 'httpMethod' => 'POST',
  811. 'parameters' => [
  812. 'name' => [
  813. 'location' => 'path',
  814. 'type' => 'string',
  815. 'required' => true,
  816. ],
  817. ],
  818. ],'markSucceeded' => [
  819. 'path' => 'v1/{+name}:markSucceeded',
  820. 'httpMethod' => 'POST',
  821. 'parameters' => [
  822. 'name' => [
  823. 'location' => 'path',
  824. 'type' => 'string',
  825. 'required' => true,
  826. ],
  827. ],
  828. ],
  829. ]
  830. ]
  831. );
  832. }
  833. }
  834. // Adding a class alias for backwards compatibility with the previous class name.
  835. class_alias(Recommender::class, 'Google_Service_Recommender');