PageRenderTime 24ms CodeModel.GetById 33ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://gitlab.com/Japang-Jawara/jawara-penilaian
PHP | 312 lines | 264 code | 7 blank | 41 comment | 0 complexity | 38491c7bc223d96691c1b8220b649ea1 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 ChromeManagement (v1).
  21. *
  22. * <p>
  23. * The Chrome Management API is a suite of services that allows Chrome
  24. * administrators to view, manage and gain insights on their Chrome OS and
  25. * Chrome Browser devices.</p>
  26. *
  27. * <p>
  28. * For more information about this service, see the API
  29. * <a href="http://developers.google.com/chrome/management/" target="_blank">Documentation</a>
  30. * </p>
  31. *
  32. * @author Google, Inc.
  33. */
  34. class ChromeManagement extends \Google\Service
  35. {
  36. /** See detailed information about apps installed on Chrome browsers and devices managed by your organization. */
  37. const CHROME_MANAGEMENT_APPDETAILS_READONLY =
  38. "https://www.googleapis.com/auth/chrome.management.appdetails.readonly";
  39. /** See reports about devices and Chrome browsers managed within your organization. */
  40. const CHROME_MANAGEMENT_REPORTS_READONLY =
  41. "https://www.googleapis.com/auth/chrome.management.reports.readonly";
  42. /** See basic device and telemetry information collected from Chrome OS devices or users managed within your organization. */
  43. const CHROME_MANAGEMENT_TELEMETRY_READONLY =
  44. "https://www.googleapis.com/auth/chrome.management.telemetry.readonly";
  45. public $customers_apps;
  46. public $customers_apps_android;
  47. public $customers_apps_chrome;
  48. public $customers_apps_web;
  49. public $customers_reports;
  50. public $customers_telemetry_devices;
  51. /**
  52. * Constructs the internal representation of the ChromeManagement service.
  53. *
  54. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  55. * config array to pass to a new Client instance.
  56. * @param string $rootUrl The root URL used for requests to the service.
  57. */
  58. public function __construct($clientOrConfig = [], $rootUrl = null)
  59. {
  60. parent::__construct($clientOrConfig);
  61. $this->rootUrl = $rootUrl ?: 'https://chromemanagement.googleapis.com/';
  62. $this->servicePath = '';
  63. $this->batchPath = 'batch';
  64. $this->version = 'v1';
  65. $this->serviceName = 'chromemanagement';
  66. $this->customers_apps = new ChromeManagement\Resource\CustomersApps(
  67. $this,
  68. $this->serviceName,
  69. 'apps',
  70. [
  71. 'methods' => [
  72. 'countChromeAppRequests' => [
  73. 'path' => 'v1/{+customer}/apps:countChromeAppRequests',
  74. 'httpMethod' => 'GET',
  75. 'parameters' => [
  76. 'customer' => [
  77. 'location' => 'path',
  78. 'type' => 'string',
  79. 'required' => true,
  80. ],
  81. 'orderBy' => [
  82. 'location' => 'query',
  83. 'type' => 'string',
  84. ],
  85. 'orgUnitId' => [
  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->customers_apps_android = new ChromeManagement\Resource\CustomersAppsAndroid(
  103. $this,
  104. $this->serviceName,
  105. 'android',
  106. [
  107. 'methods' => [
  108. 'get' => [
  109. 'path' => 'v1/{+name}',
  110. 'httpMethod' => 'GET',
  111. 'parameters' => [
  112. 'name' => [
  113. 'location' => 'path',
  114. 'type' => 'string',
  115. 'required' => true,
  116. ],
  117. ],
  118. ],
  119. ]
  120. ]
  121. );
  122. $this->customers_apps_chrome = new ChromeManagement\Resource\CustomersAppsChrome(
  123. $this,
  124. $this->serviceName,
  125. 'chrome',
  126. [
  127. 'methods' => [
  128. 'get' => [
  129. 'path' => 'v1/{+name}',
  130. 'httpMethod' => 'GET',
  131. 'parameters' => [
  132. 'name' => [
  133. 'location' => 'path',
  134. 'type' => 'string',
  135. 'required' => true,
  136. ],
  137. ],
  138. ],
  139. ]
  140. ]
  141. );
  142. $this->customers_apps_web = new ChromeManagement\Resource\CustomersAppsWeb(
  143. $this,
  144. $this->serviceName,
  145. 'web',
  146. [
  147. 'methods' => [
  148. 'get' => [
  149. 'path' => 'v1/{+name}',
  150. 'httpMethod' => 'GET',
  151. 'parameters' => [
  152. 'name' => [
  153. 'location' => 'path',
  154. 'type' => 'string',
  155. 'required' => true,
  156. ],
  157. ],
  158. ],
  159. ]
  160. ]
  161. );
  162. $this->customers_reports = new ChromeManagement\Resource\CustomersReports(
  163. $this,
  164. $this->serviceName,
  165. 'reports',
  166. [
  167. 'methods' => [
  168. 'countChromeVersions' => [
  169. 'path' => 'v1/{+customer}/reports:countChromeVersions',
  170. 'httpMethod' => 'GET',
  171. 'parameters' => [
  172. 'customer' => [
  173. 'location' => 'path',
  174. 'type' => 'string',
  175. 'required' => true,
  176. ],
  177. 'filter' => [
  178. 'location' => 'query',
  179. 'type' => 'string',
  180. ],
  181. 'orgUnitId' => [
  182. 'location' => 'query',
  183. 'type' => 'string',
  184. ],
  185. 'pageSize' => [
  186. 'location' => 'query',
  187. 'type' => 'integer',
  188. ],
  189. 'pageToken' => [
  190. 'location' => 'query',
  191. 'type' => 'string',
  192. ],
  193. ],
  194. ],'countInstalledApps' => [
  195. 'path' => 'v1/{+customer}/reports:countInstalledApps',
  196. 'httpMethod' => 'GET',
  197. 'parameters' => [
  198. 'customer' => [
  199. 'location' => 'path',
  200. 'type' => 'string',
  201. 'required' => true,
  202. ],
  203. 'filter' => [
  204. 'location' => 'query',
  205. 'type' => 'string',
  206. ],
  207. 'orderBy' => [
  208. 'location' => 'query',
  209. 'type' => 'string',
  210. ],
  211. 'orgUnitId' => [
  212. 'location' => 'query',
  213. 'type' => 'string',
  214. ],
  215. 'pageSize' => [
  216. 'location' => 'query',
  217. 'type' => 'integer',
  218. ],
  219. 'pageToken' => [
  220. 'location' => 'query',
  221. 'type' => 'string',
  222. ],
  223. ],
  224. ],'findInstalledAppDevices' => [
  225. 'path' => 'v1/{+customer}/reports:findInstalledAppDevices',
  226. 'httpMethod' => 'GET',
  227. 'parameters' => [
  228. 'customer' => [
  229. 'location' => 'path',
  230. 'type' => 'string',
  231. 'required' => true,
  232. ],
  233. 'appId' => [
  234. 'location' => 'query',
  235. 'type' => 'string',
  236. ],
  237. 'appType' => [
  238. 'location' => 'query',
  239. 'type' => 'string',
  240. ],
  241. 'filter' => [
  242. 'location' => 'query',
  243. 'type' => 'string',
  244. ],
  245. 'orderBy' => [
  246. 'location' => 'query',
  247. 'type' => 'string',
  248. ],
  249. 'orgUnitId' => [
  250. 'location' => 'query',
  251. 'type' => 'string',
  252. ],
  253. 'pageSize' => [
  254. 'location' => 'query',
  255. 'type' => 'integer',
  256. ],
  257. 'pageToken' => [
  258. 'location' => 'query',
  259. 'type' => 'string',
  260. ],
  261. ],
  262. ],
  263. ]
  264. ]
  265. );
  266. $this->customers_telemetry_devices = new ChromeManagement\Resource\CustomersTelemetryDevices(
  267. $this,
  268. $this->serviceName,
  269. 'devices',
  270. [
  271. 'methods' => [
  272. 'list' => [
  273. 'path' => 'v1/{+parent}/telemetry/devices',
  274. 'httpMethod' => 'GET',
  275. 'parameters' => [
  276. 'parent' => [
  277. 'location' => 'path',
  278. 'type' => 'string',
  279. 'required' => true,
  280. ],
  281. 'filter' => [
  282. 'location' => 'query',
  283. 'type' => 'string',
  284. ],
  285. 'pageSize' => [
  286. 'location' => 'query',
  287. 'type' => 'integer',
  288. ],
  289. 'pageToken' => [
  290. 'location' => 'query',
  291. 'type' => 'string',
  292. ],
  293. 'readMask' => [
  294. 'location' => 'query',
  295. 'type' => 'string',
  296. ],
  297. ],
  298. ],
  299. ]
  300. ]
  301. );
  302. }
  303. }
  304. // Adding a class alias for backwards compatibility with the previous class name.
  305. class_alias(ChromeManagement::class, 'Google_Service_ChromeManagement');