PageRenderTime 45ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/vendor/google/apiclient-services/src/RecommendationsAI.php

https://gitlab.com/Japang-Jawara/jawara-penilaian
PHP | 449 lines | 399 code | 7 blank | 43 comment | 0 complexity | 988f1ec7ad128e19e86db1a188742eeb MD5 | raw file
  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 RecommendationsAI (v1beta1).
  21. *
  22. * <p>
  23. * Note that we now highly recommend new customers to use Retail API, which
  24. * incorporates the GA version of the Recommendations AI funtionalities. To
  25. * enable Retail API, please visit
  26. * https://console.cloud.google.com/apis/library/retail.googleapis.com. The
  27. * Recommendations AI service enables customers to build end-to-end personalized
  28. * recommendation systems without requiring a high level of expertise in machine
  29. * learning, recommendation system, or Google Cloud.</p>
  30. *
  31. * <p>
  32. * For more information about this service, see the API
  33. * <a href="https://cloud.google.com/recommendations-ai/docs" target="_blank">Documentation</a>
  34. * </p>
  35. *
  36. * @author Google, Inc.
  37. */
  38. class RecommendationsAI extends \Google\Service
  39. {
  40. /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
  41. const CLOUD_PLATFORM =
  42. "https://www.googleapis.com/auth/cloud-platform";
  43. public $projects_locations_catalogs;
  44. public $projects_locations_catalogs_catalogItems;
  45. public $projects_locations_catalogs_eventStores_operations;
  46. public $projects_locations_catalogs_eventStores_placements;
  47. public $projects_locations_catalogs_eventStores_predictionApiKeyRegistrations;
  48. public $projects_locations_catalogs_eventStores_userEvents;
  49. public $projects_locations_catalogs_operations;
  50. /**
  51. * Constructs the internal representation of the RecommendationsAI service.
  52. *
  53. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  54. * config array to pass to a new Client instance.
  55. * @param string $rootUrl The root URL used for requests to the service.
  56. */
  57. public function __construct($clientOrConfig = [], $rootUrl = null)
  58. {
  59. parent::__construct($clientOrConfig);
  60. $this->rootUrl = $rootUrl ?: 'https://recommendationengine.googleapis.com/';
  61. $this->servicePath = '';
  62. $this->batchPath = 'batch';
  63. $this->version = 'v1beta1';
  64. $this->serviceName = 'recommendationengine';
  65. $this->projects_locations_catalogs = new RecommendationsAI\Resource\ProjectsLocationsCatalogs(
  66. $this,
  67. $this->serviceName,
  68. 'catalogs',
  69. [
  70. 'methods' => [
  71. 'list' => [
  72. 'path' => 'v1beta1/{+parent}/catalogs',
  73. 'httpMethod' => 'GET',
  74. 'parameters' => [
  75. 'parent' => [
  76. 'location' => 'path',
  77. 'type' => 'string',
  78. 'required' => true,
  79. ],
  80. 'pageSize' => [
  81. 'location' => 'query',
  82. 'type' => 'integer',
  83. ],
  84. 'pageToken' => [
  85. 'location' => 'query',
  86. 'type' => 'string',
  87. ],
  88. ],
  89. ],'patch' => [
  90. 'path' => 'v1beta1/{+name}',
  91. 'httpMethod' => 'PATCH',
  92. 'parameters' => [
  93. 'name' => [
  94. 'location' => 'path',
  95. 'type' => 'string',
  96. 'required' => true,
  97. ],
  98. 'updateMask' => [
  99. 'location' => 'query',
  100. 'type' => 'string',
  101. ],
  102. ],
  103. ],
  104. ]
  105. ]
  106. );
  107. $this->projects_locations_catalogs_catalogItems = new RecommendationsAI\Resource\ProjectsLocationsCatalogsCatalogItems(
  108. $this,
  109. $this->serviceName,
  110. 'catalogItems',
  111. [
  112. 'methods' => [
  113. 'create' => [
  114. 'path' => 'v1beta1/{+parent}/catalogItems',
  115. 'httpMethod' => 'POST',
  116. 'parameters' => [
  117. 'parent' => [
  118. 'location' => 'path',
  119. 'type' => 'string',
  120. 'required' => true,
  121. ],
  122. ],
  123. ],'delete' => [
  124. 'path' => 'v1beta1/{+name}',
  125. 'httpMethod' => 'DELETE',
  126. 'parameters' => [
  127. 'name' => [
  128. 'location' => 'path',
  129. 'type' => 'string',
  130. 'required' => true,
  131. ],
  132. ],
  133. ],'get' => [
  134. 'path' => 'v1beta1/{+name}',
  135. 'httpMethod' => 'GET',
  136. 'parameters' => [
  137. 'name' => [
  138. 'location' => 'path',
  139. 'type' => 'string',
  140. 'required' => true,
  141. ],
  142. ],
  143. ],'import' => [
  144. 'path' => 'v1beta1/{+parent}/catalogItems:import',
  145. 'httpMethod' => 'POST',
  146. 'parameters' => [
  147. 'parent' => [
  148. 'location' => 'path',
  149. 'type' => 'string',
  150. 'required' => true,
  151. ],
  152. ],
  153. ],'list' => [
  154. 'path' => 'v1beta1/{+parent}/catalogItems',
  155. 'httpMethod' => 'GET',
  156. 'parameters' => [
  157. 'parent' => [
  158. 'location' => 'path',
  159. 'type' => 'string',
  160. 'required' => true,
  161. ],
  162. 'filter' => [
  163. 'location' => 'query',
  164. 'type' => 'string',
  165. ],
  166. 'pageSize' => [
  167. 'location' => 'query',
  168. 'type' => 'integer',
  169. ],
  170. 'pageToken' => [
  171. 'location' => 'query',
  172. 'type' => 'string',
  173. ],
  174. ],
  175. ],'patch' => [
  176. 'path' => 'v1beta1/{+name}',
  177. 'httpMethod' => 'PATCH',
  178. 'parameters' => [
  179. 'name' => [
  180. 'location' => 'path',
  181. 'type' => 'string',
  182. 'required' => true,
  183. ],
  184. 'updateMask' => [
  185. 'location' => 'query',
  186. 'type' => 'string',
  187. ],
  188. ],
  189. ],
  190. ]
  191. ]
  192. );
  193. $this->projects_locations_catalogs_eventStores_operations = new RecommendationsAI\Resource\ProjectsLocationsCatalogsEventStoresOperations(
  194. $this,
  195. $this->serviceName,
  196. 'operations',
  197. [
  198. 'methods' => [
  199. 'get' => [
  200. 'path' => 'v1beta1/{+name}',
  201. 'httpMethod' => 'GET',
  202. 'parameters' => [
  203. 'name' => [
  204. 'location' => 'path',
  205. 'type' => 'string',
  206. 'required' => true,
  207. ],
  208. ],
  209. ],'list' => [
  210. 'path' => 'v1beta1/{+name}/operations',
  211. 'httpMethod' => 'GET',
  212. 'parameters' => [
  213. 'name' => [
  214. 'location' => 'path',
  215. 'type' => 'string',
  216. 'required' => true,
  217. ],
  218. 'filter' => [
  219. 'location' => 'query',
  220. 'type' => 'string',
  221. ],
  222. 'pageSize' => [
  223. 'location' => 'query',
  224. 'type' => 'integer',
  225. ],
  226. 'pageToken' => [
  227. 'location' => 'query',
  228. 'type' => 'string',
  229. ],
  230. ],
  231. ],
  232. ]
  233. ]
  234. );
  235. $this->projects_locations_catalogs_eventStores_placements = new RecommendationsAI\Resource\ProjectsLocationsCatalogsEventStoresPlacements(
  236. $this,
  237. $this->serviceName,
  238. 'placements',
  239. [
  240. 'methods' => [
  241. 'predict' => [
  242. 'path' => 'v1beta1/{+name}:predict',
  243. 'httpMethod' => 'POST',
  244. 'parameters' => [
  245. 'name' => [
  246. 'location' => 'path',
  247. 'type' => 'string',
  248. 'required' => true,
  249. ],
  250. ],
  251. ],
  252. ]
  253. ]
  254. );
  255. $this->projects_locations_catalogs_eventStores_predictionApiKeyRegistrations = new RecommendationsAI\Resource\ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrations(
  256. $this,
  257. $this->serviceName,
  258. 'predictionApiKeyRegistrations',
  259. [
  260. 'methods' => [
  261. 'create' => [
  262. 'path' => 'v1beta1/{+parent}/predictionApiKeyRegistrations',
  263. 'httpMethod' => 'POST',
  264. 'parameters' => [
  265. 'parent' => [
  266. 'location' => 'path',
  267. 'type' => 'string',
  268. 'required' => true,
  269. ],
  270. ],
  271. ],'delete' => [
  272. 'path' => 'v1beta1/{+name}',
  273. 'httpMethod' => 'DELETE',
  274. 'parameters' => [
  275. 'name' => [
  276. 'location' => 'path',
  277. 'type' => 'string',
  278. 'required' => true,
  279. ],
  280. ],
  281. ],'list' => [
  282. 'path' => 'v1beta1/{+parent}/predictionApiKeyRegistrations',
  283. 'httpMethod' => 'GET',
  284. 'parameters' => [
  285. 'parent' => [
  286. 'location' => 'path',
  287. 'type' => 'string',
  288. 'required' => true,
  289. ],
  290. 'pageSize' => [
  291. 'location' => 'query',
  292. 'type' => 'integer',
  293. ],
  294. 'pageToken' => [
  295. 'location' => 'query',
  296. 'type' => 'string',
  297. ],
  298. ],
  299. ],
  300. ]
  301. ]
  302. );
  303. $this->projects_locations_catalogs_eventStores_userEvents = new RecommendationsAI\Resource\ProjectsLocationsCatalogsEventStoresUserEvents(
  304. $this,
  305. $this->serviceName,
  306. 'userEvents',
  307. [
  308. 'methods' => [
  309. 'collect' => [
  310. 'path' => 'v1beta1/{+parent}/userEvents:collect',
  311. 'httpMethod' => 'GET',
  312. 'parameters' => [
  313. 'parent' => [
  314. 'location' => 'path',
  315. 'type' => 'string',
  316. 'required' => true,
  317. ],
  318. 'ets' => [
  319. 'location' => 'query',
  320. 'type' => 'string',
  321. ],
  322. 'uri' => [
  323. 'location' => 'query',
  324. 'type' => 'string',
  325. ],
  326. 'userEvent' => [
  327. 'location' => 'query',
  328. 'type' => 'string',
  329. ],
  330. ],
  331. ],'import' => [
  332. 'path' => 'v1beta1/{+parent}/userEvents:import',
  333. 'httpMethod' => 'POST',
  334. 'parameters' => [
  335. 'parent' => [
  336. 'location' => 'path',
  337. 'type' => 'string',
  338. 'required' => true,
  339. ],
  340. ],
  341. ],'list' => [
  342. 'path' => 'v1beta1/{+parent}/userEvents',
  343. 'httpMethod' => 'GET',
  344. 'parameters' => [
  345. 'parent' => [
  346. 'location' => 'path',
  347. 'type' => 'string',
  348. 'required' => true,
  349. ],
  350. 'filter' => [
  351. 'location' => 'query',
  352. 'type' => 'string',
  353. ],
  354. 'pageSize' => [
  355. 'location' => 'query',
  356. 'type' => 'integer',
  357. ],
  358. 'pageToken' => [
  359. 'location' => 'query',
  360. 'type' => 'string',
  361. ],
  362. ],
  363. ],'purge' => [
  364. 'path' => 'v1beta1/{+parent}/userEvents:purge',
  365. 'httpMethod' => 'POST',
  366. 'parameters' => [
  367. 'parent' => [
  368. 'location' => 'path',
  369. 'type' => 'string',
  370. 'required' => true,
  371. ],
  372. ],
  373. ],'rejoin' => [
  374. 'path' => 'v1beta1/{+parent}/userEvents:rejoin',
  375. 'httpMethod' => 'POST',
  376. 'parameters' => [
  377. 'parent' => [
  378. 'location' => 'path',
  379. 'type' => 'string',
  380. 'required' => true,
  381. ],
  382. ],
  383. ],'write' => [
  384. 'path' => 'v1beta1/{+parent}/userEvents:write',
  385. 'httpMethod' => 'POST',
  386. 'parameters' => [
  387. 'parent' => [
  388. 'location' => 'path',
  389. 'type' => 'string',
  390. 'required' => true,
  391. ],
  392. ],
  393. ],
  394. ]
  395. ]
  396. );
  397. $this->projects_locations_catalogs_operations = new RecommendationsAI\Resource\ProjectsLocationsCatalogsOperations(
  398. $this,
  399. $this->serviceName,
  400. 'operations',
  401. [
  402. 'methods' => [
  403. 'get' => [
  404. 'path' => 'v1beta1/{+name}',
  405. 'httpMethod' => 'GET',
  406. 'parameters' => [
  407. 'name' => [
  408. 'location' => 'path',
  409. 'type' => 'string',
  410. 'required' => true,
  411. ],
  412. ],
  413. ],'list' => [
  414. 'path' => 'v1beta1/{+name}/operations',
  415. 'httpMethod' => 'GET',
  416. 'parameters' => [
  417. 'name' => [
  418. 'location' => 'path',
  419. 'type' => 'string',
  420. 'required' => true,
  421. ],
  422. 'filter' => [
  423. 'location' => 'query',
  424. 'type' => 'string',
  425. ],
  426. 'pageSize' => [
  427. 'location' => 'query',
  428. 'type' => 'integer',
  429. ],
  430. 'pageToken' => [
  431. 'location' => 'query',
  432. 'type' => 'string',
  433. ],
  434. ],
  435. ],
  436. ]
  437. ]
  438. );
  439. }
  440. }
  441. // Adding a class alias for backwards compatibility with the previous class name.
  442. class_alias(RecommendationsAI::class, 'Google_Service_RecommendationsAI');