google-api-client 0.8.6 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (537) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +23 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +58 -2
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +38 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +189 -147
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +1088 -0
  15. data/api_names_out.yaml +26978 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3025 -0
  22. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1240 -0
  23. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  25. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  26. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  27. data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
  28. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  29. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  30. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  31. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  32. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  33. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  34. data/generated/google/apis/admin_directory_v1/representations.rb +1147 -0
  35. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  36. data/generated/google/apis/admin_directory_v1.rb +113 -0
  37. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  38. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  39. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  40. data/generated/google/apis/admin_reports_v1.rb +38 -0
  41. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  42. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  43. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  44. data/generated/google/apis/adsense_v1_4.rb +38 -0
  45. data/generated/google/apis/adsensehost_v4_1/classes.rb +837 -0
  46. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  47. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  48. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  49. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  50. data/generated/google/apis/analytics_v3/representations.rb +1850 -0
  51. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  52. data/generated/google/apis/analytics_v3.rb +49 -0
  53. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  54. data/generated/google/apis/androidenterprise_v1/representations.rb +614 -0
  55. data/generated/google/apis/androidenterprise_v1/service.rb +2607 -0
  56. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  57. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  58. data/generated/google/apis/androidpublisher_v2/representations.rb +738 -0
  59. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  60. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  61. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  62. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  63. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  64. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  65. data/generated/google/apis/appengine_v1beta5/classes.rb +1544 -0
  66. data/generated/google/apis/appengine_v1beta5/representations.rb +594 -0
  67. data/generated/google/apis/appengine_v1beta5/service.rb +521 -0
  68. data/generated/google/apis/appengine_v1beta5.rb +35 -0
  69. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  70. data/generated/google/apis/appsactivity_v1/representations.rb +206 -0
  71. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  72. data/generated/google/apis/appsactivity_v1.rb +46 -0
  73. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  74. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  75. data/generated/google/apis/appstate_v1/service.rb +260 -0
  76. data/generated/google/apis/appstate_v1.rb +34 -0
  77. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  78. data/generated/google/apis/autoscaler_v1beta2/representations.rb +313 -0
  79. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  80. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  81. data/generated/google/apis/bigquery_v2/classes.rb +2503 -0
  82. data/generated/google/apis/bigquery_v2/representations.rb +914 -0
  83. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  84. data/generated/google/apis/bigquery_v2.rb +52 -0
  85. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  86. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  87. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  88. data/generated/google/apis/blogger_v3.rb +37 -0
  89. data/generated/google/apis/books_v1/classes.rb +4006 -0
  90. data/generated/google/apis/books_v1/representations.rb +1742 -0
  91. data/generated/google/apis/books_v1/service.rb +2293 -0
  92. data/generated/google/apis/books_v1.rb +34 -0
  93. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  94. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  95. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  96. data/generated/google/apis/calendar_v3.rb +37 -0
  97. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  98. data/generated/google/apis/civicinfo_v2/representations.rb +423 -0
  99. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  100. data/generated/google/apis/civicinfo_v2.rb +31 -0
  101. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  102. data/generated/google/apis/classroom_v1/representations.rb +245 -0
  103. data/generated/google/apis/classroom_v1/service.rb +970 -0
  104. data/generated/google/apis/classroom_v1.rb +49 -0
  105. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  106. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  107. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  108. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  109. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  110. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  111. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  112. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  113. data/generated/google/apis/cloudbuild_v1/classes.rb +521 -0
  114. data/generated/google/apis/cloudbuild_v1/representations.rb +214 -0
  115. data/generated/google/apis/cloudbuild_v1/service.rb +278 -0
  116. data/generated/google/apis/cloudbuild_v1.rb +35 -0
  117. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  118. data/generated/google/apis/clouddebugger_v2/representations.rb +464 -0
  119. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  120. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  121. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  122. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  123. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  124. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  125. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  126. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  127. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  128. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  129. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +450 -0
  130. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +226 -0
  131. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -0
  132. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  133. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  134. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  135. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  136. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  137. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  138. data/generated/google/apis/clouduseraccounts_beta/representations.rb +351 -0
  139. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  140. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  141. data/generated/google/apis/compute_beta/classes.rb +9741 -0
  142. data/generated/google/apis/compute_beta/representations.rb +3649 -0
  143. data/generated/google/apis/compute_beta/service.rb +10636 -0
  144. data/generated/google/apis/compute_beta.rb +49 -0
  145. data/generated/google/apis/compute_v1/classes.rb +9095 -0
  146. data/generated/google/apis/compute_v1/representations.rb +3389 -0
  147. data/generated/google/apis/compute_v1/service.rb +9627 -0
  148. data/generated/google/apis/compute_v1.rb +49 -0
  149. data/generated/google/apis/container_v1/classes.rb +463 -0
  150. data/generated/google/apis/container_v1/representations.rb +195 -0
  151. data/generated/google/apis/container_v1/service.rb +367 -0
  152. data/generated/google/apis/container_v1.rb +35 -0
  153. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  154. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  155. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  156. data/generated/google/apis/container_v1beta1.rb +35 -0
  157. data/generated/google/apis/content_v2/classes.rb +6114 -0
  158. data/generated/google/apis/content_v2/representations.rb +2624 -0
  159. data/generated/google/apis/content_v2/service.rb +2338 -0
  160. data/generated/google/apis/content_v2.rb +35 -0
  161. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  162. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  163. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  164. data/generated/google/apis/coordinate_v1.rb +37 -0
  165. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  166. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  167. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  168. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  169. data/generated/google/apis/dataproc_v1/classes.rb +1590 -0
  170. data/generated/google/apis/dataproc_v1/representations.rb +653 -0
  171. data/generated/google/apis/dataproc_v1/service.rb +719 -0
  172. data/generated/google/apis/dataproc_v1.rb +43 -0
  173. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  174. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  175. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  176. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  177. data/generated/google/apis/deploymentmanager_v2/classes.rb +1162 -0
  178. data/generated/google/apis/deploymentmanager_v2/representations.rb +508 -0
  179. data/generated/google/apis/deploymentmanager_v2/service.rb +862 -0
  180. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  181. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  182. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  183. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  184. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  185. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  186. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  187. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  188. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  189. data/generated/google/apis/dfareporting_v2_3/classes.rb +10830 -0
  190. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  191. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  192. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  193. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  194. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  195. data/generated/google/apis/discovery_v1/service.rb +142 -0
  196. data/generated/google/apis/discovery_v1.rb +32 -0
  197. data/generated/google/apis/dns_v1/classes.rb +406 -0
  198. data/generated/google/apis/dns_v1/representations.rb +167 -0
  199. data/generated/google/apis/dns_v1/service.rb +454 -0
  200. data/generated/google/apis/dns_v1.rb +44 -0
  201. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +802 -0
  202. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +371 -0
  203. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +374 -0
  204. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  205. data/generated/google/apis/doubleclicksearch_v2/classes.rb +958 -0
  206. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  207. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  208. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  209. data/generated/google/apis/drive_v2/classes.rb +2569 -0
  210. data/generated/google/apis/drive_v2/representations.rb +878 -0
  211. data/generated/google/apis/drive_v2/service.rb +2740 -0
  212. data/generated/google/apis/drive_v2.rb +58 -0
  213. data/generated/google/apis/drive_v3/classes.rb +1541 -0
  214. data/generated/google/apis/drive_v3/representations.rb +548 -0
  215. data/generated/google/apis/drive_v3/service.rb +1542 -0
  216. data/generated/google/apis/drive_v3.rb +55 -0
  217. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  218. data/generated/google/apis/fitness_v1/representations.rb +360 -0
  219. data/generated/google/apis/fitness_v1/service.rb +675 -0
  220. data/generated/google/apis/fitness_v1.rb +49 -0
  221. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  222. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  223. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  224. data/generated/google/apis/fusiontables_v2.rb +37 -0
  225. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  226. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  227. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  228. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  229. data/generated/google/apis/games_management_v1management/classes.rb +533 -0
  230. data/generated/google/apis/games_management_v1management/representations.rb +262 -0
  231. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  232. data/generated/google/apis/games_management_v1management.rb +37 -0
  233. data/generated/google/apis/games_v1/classes.rb +4626 -0
  234. data/generated/google/apis/games_v1/representations.rb +1783 -0
  235. data/generated/google/apis/games_v1/service.rb +2290 -0
  236. data/generated/google/apis/games_v1.rb +40 -0
  237. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  238. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  239. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  240. data/generated/google/apis/gan_v1beta1.rb +31 -0
  241. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  242. data/generated/google/apis/genomics_v1/representations.rb +1029 -0
  243. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  244. data/generated/google/apis/genomics_v1.rb +49 -0
  245. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  246. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  247. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  248. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  249. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  250. data/generated/google/apis/gmail_v1/representations.rb +383 -0
  251. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  252. data/generated/google/apis/gmail_v1.rb +52 -0
  253. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  254. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  255. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  256. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  257. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  258. data/generated/google/apis/groupssettings_v1/representations.rb +66 -0
  259. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  260. data/generated/google/apis/groupssettings_v1.rb +34 -0
  261. data/generated/google/apis/identitytoolkit_v3/classes.rb +1637 -0
  262. data/generated/google/apis/identitytoolkit_v3/representations.rb +618 -0
  263. data/generated/google/apis/identitytoolkit_v3/service.rb +616 -0
  264. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  265. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  266. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  267. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  268. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  269. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  270. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  271. data/generated/google/apis/licensing_v1/service.rb +369 -0
  272. data/generated/google/apis/licensing_v1.rb +34 -0
  273. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  274. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  275. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  276. data/generated/google/apis/logging_v1beta3.rb +47 -0
  277. data/generated/google/apis/logging_v2beta1/classes.rb +990 -0
  278. data/generated/google/apis/logging_v2beta1/representations.rb +377 -0
  279. data/generated/google/apis/logging_v2beta1/service.rb +547 -0
  280. data/generated/google/apis/logging_v2beta1.rb +47 -0
  281. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  282. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  283. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  284. data/generated/google/apis/manager_v1beta2.rb +53 -0
  285. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  286. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  287. data/generated/google/apis/mirror_v1/service.rb +977 -0
  288. data/generated/google/apis/mirror_v1.rb +37 -0
  289. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  290. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  291. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  292. data/generated/google/apis/oauth2_v2.rb +43 -0
  293. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  294. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  295. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  296. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  297. data/generated/google/apis/partners_v2/classes.rb +942 -0
  298. data/generated/google/apis/partners_v2/representations.rb +454 -0
  299. data/generated/google/apis/partners_v2/service.rb +400 -0
  300. data/generated/google/apis/partners_v2.rb +32 -0
  301. data/generated/google/apis/people_v1/classes.rb +1521 -0
  302. data/generated/google/apis/people_v1/representations.rb +663 -0
  303. data/generated/google/apis/people_v1/service.rb +189 -0
  304. data/generated/google/apis/people_v1.rb +59 -0
  305. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  306. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  307. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  308. data/generated/google/apis/plus_domains_v1.rb +61 -0
  309. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  310. data/generated/google/apis/plus_v1/representations.rb +907 -0
  311. data/generated/google/apis/plus_v1/service.rb +470 -0
  312. data/generated/google/apis/plus_v1.rb +43 -0
  313. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  314. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  315. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  316. data/generated/google/apis/prediction_v1_6.rb +44 -0
  317. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  318. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +312 -0
  319. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  320. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  321. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  322. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  323. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  324. data/generated/google/apis/pubsub_v1.rb +37 -0
  325. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  326. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  327. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  328. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  329. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  330. data/generated/google/apis/qpx_express_v1/representations.rb +472 -0
  331. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  332. data/generated/google/apis/qpx_express_v1.rb +31 -0
  333. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  334. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  335. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  336. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  337. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  338. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  339. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  340. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  341. data/generated/google/apis/reseller_v1/classes.rb +526 -0
  342. data/generated/google/apis/reseller_v1/representations.rb +223 -0
  343. data/generated/google/apis/reseller_v1/service.rb +623 -0
  344. data/generated/google/apis/reseller_v1.rb +37 -0
  345. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  346. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  347. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  348. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  349. data/generated/google/apis/script_v1/classes.rb +259 -0
  350. data/generated/google/apis/script_v1/representations.rb +118 -0
  351. data/generated/google/apis/script_v1/service.rb +98 -0
  352. data/generated/google/apis/script_v1.rb +61 -0
  353. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  354. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  355. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  356. data/generated/google/apis/site_verification_v1.rb +37 -0
  357. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2030 -0
  358. data/generated/google/apis/sqladmin_v1beta4/representations.rb +856 -0
  359. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  360. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  361. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  362. data/generated/google/apis/storage_v1/representations.rb +497 -0
  363. data/generated/google/apis/storage_v1/service.rb +1903 -0
  364. data/generated/google/apis/storage_v1.rb +46 -0
  365. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  366. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  367. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  368. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  369. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  370. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  371. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  372. data/generated/google/apis/tagmanager_v1.rb +52 -0
  373. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  374. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  375. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  376. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  377. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  378. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  379. data/generated/google/apis/tasks_v1/service.rb +643 -0
  380. data/generated/google/apis/tasks_v1.rb +37 -0
  381. data/generated/google/apis/translate_v2/classes.rb +168 -0
  382. data/generated/google/apis/translate_v2/representations.rb +121 -0
  383. data/generated/google/apis/translate_v2/service.rb +182 -0
  384. data/generated/google/apis/translate_v2.rb +31 -0
  385. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  386. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  387. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  388. data/generated/google/apis/urlshortener_v1.rb +34 -0
  389. data/generated/google/apis/vision_v1/classes.rb +1259 -0
  390. data/generated/google/apis/vision_v1/representations.rb +418 -0
  391. data/generated/google/apis/vision_v1/service.rb +91 -0
  392. data/generated/google/apis/vision_v1.rb +37 -0
  393. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  394. data/generated/google/apis/webmasters_v3/representations.rb +282 -0
  395. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  396. data/generated/google/apis/webmasters_v3.rb +37 -0
  397. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  398. data/generated/google/apis/youtube_analytics_v1/representations.rb +273 -0
  399. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  400. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  401. data/generated/google/apis/youtube_v3/classes.rb +8071 -0
  402. data/generated/google/apis/youtube_v3/representations.rb +3134 -0
  403. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  404. data/generated/google/apis/youtube_v3.rb +49 -0
  405. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  406. data/generated/google/apis/youtubereporting_v1/representations.rb +144 -0
  407. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  408. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  409. data/google-api-client.gemspec +25 -39
  410. data/lib/google/api_client/auth/installed_app.rb +7 -5
  411. data/lib/google/api_client/auth/key_utils.rb +1 -0
  412. data/lib/google/api_client/auth/storage.rb +4 -2
  413. data/lib/google/api_client/auth/storages/file_store.rb +2 -3
  414. data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
  415. data/lib/google/api_client/client_secrets.rb +7 -9
  416. data/lib/google/apis/core/api_command.rb +136 -0
  417. data/lib/google/apis/core/base_service.rb +317 -0
  418. data/lib/google/apis/core/batch.rb +239 -0
  419. data/lib/google/apis/core/download.rb +94 -0
  420. data/lib/google/apis/core/hashable.rb +44 -0
  421. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  422. data/lib/google/apis/core/http_command.rb +328 -0
  423. data/lib/google/apis/core/json_representation.rb +145 -0
  424. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  425. data/lib/google/apis/core/multipart.rb +187 -0
  426. data/lib/google/apis/core/upload.rb +289 -0
  427. data/lib/google/{api_client → apis}/errors.rb +39 -28
  428. data/lib/google/apis/generator/annotator.rb +295 -0
  429. data/lib/google/apis/generator/helpers.rb +74 -0
  430. data/lib/google/apis/generator/model.rb +143 -0
  431. data/lib/google/apis/generator/template.rb +124 -0
  432. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  433. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  434. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  435. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  436. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  437. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  438. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  439. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  440. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  441. data/lib/google/apis/generator.rb +70 -0
  442. data/lib/google/apis/options.rb +85 -0
  443. data/lib/google/apis/version.rb +39 -0
  444. data/lib/google/apis.rb +48 -0
  445. data/rakelib/metrics.rake +22 -0
  446. data/rakelib/rubocop.rake +10 -0
  447. data/rakelib/spec.rake +11 -0
  448. data/rakelib/yard.rake +11 -0
  449. data/samples/cli/Gemfile +7 -0
  450. data/samples/cli/README.md +51 -0
  451. data/samples/cli/google-api-samples +32 -0
  452. data/samples/cli/lib/base_cli.rb +95 -0
  453. data/samples/cli/lib/samples/analytics.rb +62 -0
  454. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  455. data/samples/cli/lib/samples/calendar.rb +83 -0
  456. data/samples/cli/lib/samples/drive.rb +82 -0
  457. data/samples/cli/lib/samples/gmail.rb +50 -0
  458. data/samples/cli/lib/samples/pubsub.rb +114 -0
  459. data/samples/cli/lib/samples/translate.rb +44 -0
  460. data/samples/cli/lib/samples/you_tube.rb +44 -0
  461. data/samples/web/Gemfile +7 -0
  462. data/samples/web/README.md +44 -0
  463. data/samples/web/app.rb +120 -0
  464. data/samples/web/views/calendar.erb +34 -0
  465. data/{lib/google/api_client/service_account.rb → samples/web/views/drive.erb} +20 -8
  466. data/samples/web/views/home.erb +35 -0
  467. data/samples/web/views/layout.erb +40 -0
  468. data/script/generate +100 -0
  469. data/script/package +8 -0
  470. data/script/release +15 -0
  471. data/spec/fixtures/files/api_names.yaml +3 -0
  472. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  473. data/spec/fixtures/files/child/.gitignore +0 -0
  474. data/spec/fixtures/files/client_secrets.json +1 -0
  475. data/spec/fixtures/files/invalid.json +1 -0
  476. data/spec/fixtures/files/test.blah +1 -0
  477. data/spec/fixtures/files/test.txt +1 -0
  478. data/spec/fixtures/files/test_api.json +440 -0
  479. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  480. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  481. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  482. data/spec/google/api_client/client_secrets_spec.rb +338 -2
  483. data/spec/google/apis/core/api_command_spec.rb +209 -0
  484. data/spec/google/apis/core/batch_spec.rb +142 -0
  485. data/spec/google/apis/core/download_spec.rb +103 -0
  486. data/spec/google/apis/core/hashable_spec.rb +60 -0
  487. data/spec/google/apis/core/http_command_spec.rb +303 -0
  488. data/spec/google/apis/core/json_representation_spec.rb +199 -0
  489. data/spec/google/apis/core/service_spec.rb +247 -0
  490. data/spec/google/apis/core/upload_spec.rb +300 -0
  491. data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
  492. data/spec/google/apis/generator/generator_spec.rb +324 -0
  493. data/spec/google/apis/logging_spec.rb +45 -0
  494. data/spec/google/apis/options_spec.rb +40 -0
  495. data/spec/integration_tests/adsense_spec.rb +29 -0
  496. data/spec/integration_tests/drive_spec.rb +35 -0
  497. data/spec/integration_tests/pubsub_spec.rb +48 -0
  498. data/spec/integration_tests/url_shortener_spec.rb +45 -0
  499. data/spec/spec_helper/load_path_spec.rb +33 -0
  500. data/spec/spec_helper.rb +131 -44
  501. data/third_party/hurley_patches.rb +103 -0
  502. metadata +563 -188
  503. data/lib/compat/multi_json.rb +0 -19
  504. data/lib/google/api_client/auth/file_storage.rb +0 -59
  505. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  506. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  507. data/lib/google/api_client/batch.rb +0 -326
  508. data/lib/google/api_client/charset.rb +0 -33
  509. data/lib/google/api_client/discovery/api.rb +0 -310
  510. data/lib/google/api_client/discovery/media.rb +0 -77
  511. data/lib/google/api_client/discovery/method.rb +0 -363
  512. data/lib/google/api_client/discovery/resource.rb +0 -156
  513. data/lib/google/api_client/discovery/schema.rb +0 -117
  514. data/lib/google/api_client/environment.rb +0 -42
  515. data/lib/google/api_client/gzip.rb +0 -28
  516. data/lib/google/api_client/logging.rb +0 -32
  517. data/lib/google/api_client/media.rb +0 -259
  518. data/lib/google/api_client/railtie.rb +0 -18
  519. data/lib/google/api_client/request.rb +0 -350
  520. data/lib/google/api_client/result.rb +0 -255
  521. data/lib/google/api_client/service/batch.rb +0 -110
  522. data/lib/google/api_client/service/request.rb +0 -144
  523. data/lib/google/api_client/service/resource.rb +0 -40
  524. data/lib/google/api_client/service/result.rb +0 -162
  525. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  526. data/lib/google/api_client/service/stub_generator.rb +0 -61
  527. data/lib/google/api_client/service.rb +0 -233
  528. data/lib/google/api_client.rb +0 -750
  529. data/spec/google/api_client/batch_spec.rb +0 -248
  530. data/spec/google/api_client/discovery_spec.rb +0 -708
  531. data/spec/google/api_client/gzip_spec.rb +0 -98
  532. data/spec/google/api_client/media_spec.rb +0 -178
  533. data/spec/google/api_client/result_spec.rb +0 -207
  534. data/spec/google/api_client/service_account_spec.rb +0 -169
  535. data/spec/google/api_client/service_spec.rb +0 -618
  536. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  537. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,2607 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module AndroidenterpriseV1
23
+ # Google Play EMM API
24
+ #
25
+ # Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android
26
+ # for Work users.
27
+ #
28
+ # @example
29
+ # require 'google/apis/androidenterprise_v1'
30
+ #
31
+ # Androidenterprise = Google::Apis::AndroidenterpriseV1 # Alias the module
32
+ # service = Androidenterprise::AndroidEnterpriseService.new
33
+ #
34
+ # @see https://developers.google.com/android/work/play/emm-api
35
+ class AndroidEnterpriseService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ # Overrides userIp if both are provided.
45
+ attr_accessor :quota_user
46
+
47
+ # @return [String]
48
+ # IP address of the site where the request originates. Use this if you want to
49
+ # enforce per-user limits.
50
+ attr_accessor :user_ip
51
+
52
+ def initialize
53
+ super('https://www.googleapis.com/', 'androidenterprise/v1/')
54
+ end
55
+
56
+ # Deletes a collection.
57
+ # @param [String] enterprise_id
58
+ # The ID of the enterprise.
59
+ # @param [String] collection_id
60
+ # The ID of the collection.
61
+ # @param [String] fields
62
+ # Selector specifying which fields to include in a partial response.
63
+ # @param [String] quota_user
64
+ # Available to use for quota purposes for server-side applications. Can be any
65
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
66
+ # Overrides userIp if both are provided.
67
+ # @param [String] user_ip
68
+ # IP address of the site where the request originates. Use this if you want to
69
+ # enforce per-user limits.
70
+ # @param [Google::Apis::RequestOptions] options
71
+ # Request-specific options
72
+ #
73
+ # @yield [result, err] Result & error if block supplied
74
+ # @yieldparam result [NilClass] No result returned for this method
75
+ # @yieldparam err [StandardError] error object if request failed
76
+ #
77
+ # @return [void]
78
+ #
79
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
82
+ def delete_collection(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
83
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
84
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
85
+ command.params['collectionId'] = collection_id unless collection_id.nil?
86
+ command.query['fields'] = fields unless fields.nil?
87
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ command.query['userIp'] = user_ip unless user_ip.nil?
89
+ execute_or_queue_command(command, &block)
90
+ end
91
+
92
+ # Retrieves the details of a collection.
93
+ # @param [String] enterprise_id
94
+ # The ID of the enterprise.
95
+ # @param [String] collection_id
96
+ # The ID of the collection.
97
+ # @param [String] fields
98
+ # Selector specifying which fields to include in a partial response.
99
+ # @param [String] quota_user
100
+ # Available to use for quota purposes for server-side applications. Can be any
101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
102
+ # Overrides userIp if both are provided.
103
+ # @param [String] user_ip
104
+ # IP address of the site where the request originates. Use this if you want to
105
+ # enforce per-user limits.
106
+ # @param [Google::Apis::RequestOptions] options
107
+ # Request-specific options
108
+ #
109
+ # @yield [result, err] Result & error if block supplied
110
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Collection] parsed result object
111
+ # @yieldparam err [StandardError] error object if request failed
112
+ #
113
+ # @return [Google::Apis::AndroidenterpriseV1::Collection]
114
+ #
115
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
116
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
117
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
118
+ def get_collection(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
119
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
120
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
121
+ command.response_class = Google::Apis::AndroidenterpriseV1::Collection
122
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
123
+ command.params['collectionId'] = collection_id unless collection_id.nil?
124
+ command.query['fields'] = fields unless fields.nil?
125
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
126
+ command.query['userIp'] = user_ip unless user_ip.nil?
127
+ execute_or_queue_command(command, &block)
128
+ end
129
+
130
+ # Creates a new collection.
131
+ # @param [String] enterprise_id
132
+ # The ID of the enterprise.
133
+ # @param [Google::Apis::AndroidenterpriseV1::Collection] collection_object
134
+ # @param [String] fields
135
+ # Selector specifying which fields to include in a partial response.
136
+ # @param [String] quota_user
137
+ # Available to use for quota purposes for server-side applications. Can be any
138
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
139
+ # Overrides userIp if both are provided.
140
+ # @param [String] user_ip
141
+ # IP address of the site where the request originates. Use this if you want to
142
+ # enforce per-user limits.
143
+ # @param [Google::Apis::RequestOptions] options
144
+ # Request-specific options
145
+ #
146
+ # @yield [result, err] Result & error if block supplied
147
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Collection] parsed result object
148
+ # @yieldparam err [StandardError] error object if request failed
149
+ #
150
+ # @return [Google::Apis::AndroidenterpriseV1::Collection]
151
+ #
152
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
153
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
154
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
155
+ def insert_collection(enterprise_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
156
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/collections', options)
157
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
158
+ command.request_object = collection_object
159
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
160
+ command.response_class = Google::Apis::AndroidenterpriseV1::Collection
161
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
162
+ command.query['fields'] = fields unless fields.nil?
163
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
164
+ command.query['userIp'] = user_ip unless user_ip.nil?
165
+ execute_or_queue_command(command, &block)
166
+ end
167
+
168
+ # Retrieves the IDs of all the collections for an enterprise.
169
+ # @param [String] enterprise_id
170
+ # The ID of the enterprise.
171
+ # @param [String] fields
172
+ # Selector specifying which fields to include in a partial response.
173
+ # @param [String] quota_user
174
+ # Available to use for quota purposes for server-side applications. Can be any
175
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
176
+ # Overrides userIp if both are provided.
177
+ # @param [String] user_ip
178
+ # IP address of the site where the request originates. Use this if you want to
179
+ # enforce per-user limits.
180
+ # @param [Google::Apis::RequestOptions] options
181
+ # Request-specific options
182
+ #
183
+ # @yield [result, err] Result & error if block supplied
184
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListCollectionsResponse] parsed result object
185
+ # @yieldparam err [StandardError] error object if request failed
186
+ #
187
+ # @return [Google::Apis::AndroidenterpriseV1::ListCollectionsResponse]
188
+ #
189
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
190
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
191
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
192
+ def list_collections(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
193
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections', options)
194
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListCollectionsResponse::Representation
195
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListCollectionsResponse
196
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
197
+ command.query['fields'] = fields unless fields.nil?
198
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
199
+ command.query['userIp'] = user_ip unless user_ip.nil?
200
+ execute_or_queue_command(command, &block)
201
+ end
202
+
203
+ # Updates a collection. This method supports patch semantics.
204
+ # @param [String] enterprise_id
205
+ # The ID of the enterprise.
206
+ # @param [String] collection_id
207
+ # The ID of the collection.
208
+ # @param [Google::Apis::AndroidenterpriseV1::Collection] collection_object
209
+ # @param [String] fields
210
+ # Selector specifying which fields to include in a partial response.
211
+ # @param [String] quota_user
212
+ # Available to use for quota purposes for server-side applications. Can be any
213
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
214
+ # Overrides userIp if both are provided.
215
+ # @param [String] user_ip
216
+ # IP address of the site where the request originates. Use this if you want to
217
+ # enforce per-user limits.
218
+ # @param [Google::Apis::RequestOptions] options
219
+ # Request-specific options
220
+ #
221
+ # @yield [result, err] Result & error if block supplied
222
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Collection] parsed result object
223
+ # @yieldparam err [StandardError] error object if request failed
224
+ #
225
+ # @return [Google::Apis::AndroidenterpriseV1::Collection]
226
+ #
227
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
228
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
229
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
230
+ def patch_collection(enterprise_id, collection_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
231
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
232
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
233
+ command.request_object = collection_object
234
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
235
+ command.response_class = Google::Apis::AndroidenterpriseV1::Collection
236
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
237
+ command.params['collectionId'] = collection_id unless collection_id.nil?
238
+ command.query['fields'] = fields unless fields.nil?
239
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
240
+ command.query['userIp'] = user_ip unless user_ip.nil?
241
+ execute_or_queue_command(command, &block)
242
+ end
243
+
244
+ # Updates a collection.
245
+ # @param [String] enterprise_id
246
+ # The ID of the enterprise.
247
+ # @param [String] collection_id
248
+ # The ID of the collection.
249
+ # @param [Google::Apis::AndroidenterpriseV1::Collection] collection_object
250
+ # @param [String] fields
251
+ # Selector specifying which fields to include in a partial response.
252
+ # @param [String] quota_user
253
+ # Available to use for quota purposes for server-side applications. Can be any
254
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
255
+ # Overrides userIp if both are provided.
256
+ # @param [String] user_ip
257
+ # IP address of the site where the request originates. Use this if you want to
258
+ # enforce per-user limits.
259
+ # @param [Google::Apis::RequestOptions] options
260
+ # Request-specific options
261
+ #
262
+ # @yield [result, err] Result & error if block supplied
263
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Collection] parsed result object
264
+ # @yieldparam err [StandardError] error object if request failed
265
+ #
266
+ # @return [Google::Apis::AndroidenterpriseV1::Collection]
267
+ #
268
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
269
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
270
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
271
+ def update_collection(enterprise_id, collection_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
272
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
273
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
274
+ command.request_object = collection_object
275
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
276
+ command.response_class = Google::Apis::AndroidenterpriseV1::Collection
277
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
278
+ command.params['collectionId'] = collection_id unless collection_id.nil?
279
+ command.query['fields'] = fields unless fields.nil?
280
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
281
+ command.query['userIp'] = user_ip unless user_ip.nil?
282
+ execute_or_queue_command(command, &block)
283
+ end
284
+
285
+ # Removes the user from the list of those specifically allowed to see the
286
+ # collection. If the collection's visibility is set to viewersOnly then only
287
+ # such users will see the collection.
288
+ # @param [String] enterprise_id
289
+ # The ID of the enterprise.
290
+ # @param [String] collection_id
291
+ # The ID of the collection.
292
+ # @param [String] user_id
293
+ # The ID of the user.
294
+ # @param [String] fields
295
+ # Selector specifying which fields to include in a partial response.
296
+ # @param [String] quota_user
297
+ # Available to use for quota purposes for server-side applications. Can be any
298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
299
+ # Overrides userIp if both are provided.
300
+ # @param [String] user_ip
301
+ # IP address of the site where the request originates. Use this if you want to
302
+ # enforce per-user limits.
303
+ # @param [Google::Apis::RequestOptions] options
304
+ # Request-specific options
305
+ #
306
+ # @yield [result, err] Result & error if block supplied
307
+ # @yieldparam result [NilClass] No result returned for this method
308
+ # @yieldparam err [StandardError] error object if request failed
309
+ #
310
+ # @return [void]
311
+ #
312
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
313
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
314
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
315
+ def delete_collection_viewer(enterprise_id, collection_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
316
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
317
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
318
+ command.params['collectionId'] = collection_id unless collection_id.nil?
319
+ command.params['userId'] = user_id unless user_id.nil?
320
+ command.query['fields'] = fields unless fields.nil?
321
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
322
+ command.query['userIp'] = user_ip unless user_ip.nil?
323
+ execute_or_queue_command(command, &block)
324
+ end
325
+
326
+ # Retrieves the ID of the user if they have been specifically allowed to see the
327
+ # collection. If the collection's visibility is set to viewersOnly then only
328
+ # these users will see the collection.
329
+ # @param [String] enterprise_id
330
+ # The ID of the enterprise.
331
+ # @param [String] collection_id
332
+ # The ID of the collection.
333
+ # @param [String] user_id
334
+ # The ID of the user.
335
+ # @param [String] fields
336
+ # Selector specifying which fields to include in a partial response.
337
+ # @param [String] quota_user
338
+ # Available to use for quota purposes for server-side applications. Can be any
339
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
340
+ # Overrides userIp if both are provided.
341
+ # @param [String] user_ip
342
+ # IP address of the site where the request originates. Use this if you want to
343
+ # enforce per-user limits.
344
+ # @param [Google::Apis::RequestOptions] options
345
+ # Request-specific options
346
+ #
347
+ # @yield [result, err] Result & error if block supplied
348
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
349
+ # @yieldparam err [StandardError] error object if request failed
350
+ #
351
+ # @return [Google::Apis::AndroidenterpriseV1::User]
352
+ #
353
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
354
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
355
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
356
+ def get_collection_viewer(enterprise_id, collection_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
357
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
358
+ command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
359
+ command.response_class = Google::Apis::AndroidenterpriseV1::User
360
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
361
+ command.params['collectionId'] = collection_id unless collection_id.nil?
362
+ command.params['userId'] = user_id unless user_id.nil?
363
+ command.query['fields'] = fields unless fields.nil?
364
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
365
+ command.query['userIp'] = user_ip unless user_ip.nil?
366
+ execute_or_queue_command(command, &block)
367
+ end
368
+
369
+ # Retrieves the IDs of the users who have been specifically allowed to see the
370
+ # collection. If the collection's visibility is set to viewersOnly then only
371
+ # these users will see the collection.
372
+ # @param [String] enterprise_id
373
+ # The ID of the enterprise.
374
+ # @param [String] collection_id
375
+ # The ID of the collection.
376
+ # @param [String] fields
377
+ # Selector specifying which fields to include in a partial response.
378
+ # @param [String] quota_user
379
+ # Available to use for quota purposes for server-side applications. Can be any
380
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
381
+ # Overrides userIp if both are provided.
382
+ # @param [String] user_ip
383
+ # IP address of the site where the request originates. Use this if you want to
384
+ # enforce per-user limits.
385
+ # @param [Google::Apis::RequestOptions] options
386
+ # Request-specific options
387
+ #
388
+ # @yield [result, err] Result & error if block supplied
389
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse] parsed result object
390
+ # @yieldparam err [StandardError] error object if request failed
391
+ #
392
+ # @return [Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse]
393
+ #
394
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
397
+ def list_collection_viewers(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
398
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}/users', options)
399
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse::Representation
400
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse
401
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
402
+ command.params['collectionId'] = collection_id unless collection_id.nil?
403
+ command.query['fields'] = fields unless fields.nil?
404
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
405
+ command.query['userIp'] = user_ip unless user_ip.nil?
406
+ execute_or_queue_command(command, &block)
407
+ end
408
+
409
+ # Adds the user to the list of those specifically allowed to see the collection.
410
+ # If the collection's visibility is set to viewersOnly then only such users will
411
+ # see the collection. This method supports patch semantics.
412
+ # @param [String] enterprise_id
413
+ # The ID of the enterprise.
414
+ # @param [String] collection_id
415
+ # The ID of the collection.
416
+ # @param [String] user_id
417
+ # The ID of the user.
418
+ # @param [Google::Apis::AndroidenterpriseV1::User] user_object
419
+ # @param [String] fields
420
+ # Selector specifying which fields to include in a partial response.
421
+ # @param [String] quota_user
422
+ # Available to use for quota purposes for server-side applications. Can be any
423
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
424
+ # Overrides userIp if both are provided.
425
+ # @param [String] user_ip
426
+ # IP address of the site where the request originates. Use this if you want to
427
+ # enforce per-user limits.
428
+ # @param [Google::Apis::RequestOptions] options
429
+ # Request-specific options
430
+ #
431
+ # @yield [result, err] Result & error if block supplied
432
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
433
+ # @yieldparam err [StandardError] error object if request failed
434
+ #
435
+ # @return [Google::Apis::AndroidenterpriseV1::User]
436
+ #
437
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
438
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
439
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
440
+ def patch_collection_viewer(enterprise_id, collection_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
441
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
442
+ command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
443
+ command.request_object = user_object
444
+ command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
445
+ command.response_class = Google::Apis::AndroidenterpriseV1::User
446
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
447
+ command.params['collectionId'] = collection_id unless collection_id.nil?
448
+ command.params['userId'] = user_id unless user_id.nil?
449
+ command.query['fields'] = fields unless fields.nil?
450
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
451
+ command.query['userIp'] = user_ip unless user_ip.nil?
452
+ execute_or_queue_command(command, &block)
453
+ end
454
+
455
+ # Adds the user to the list of those specifically allowed to see the collection.
456
+ # If the collection's visibility is set to viewersOnly then only such users will
457
+ # see the collection.
458
+ # @param [String] enterprise_id
459
+ # The ID of the enterprise.
460
+ # @param [String] collection_id
461
+ # The ID of the collection.
462
+ # @param [String] user_id
463
+ # The ID of the user.
464
+ # @param [Google::Apis::AndroidenterpriseV1::User] user_object
465
+ # @param [String] fields
466
+ # Selector specifying which fields to include in a partial response.
467
+ # @param [String] quota_user
468
+ # Available to use for quota purposes for server-side applications. Can be any
469
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
470
+ # Overrides userIp if both are provided.
471
+ # @param [String] user_ip
472
+ # IP address of the site where the request originates. Use this if you want to
473
+ # enforce per-user limits.
474
+ # @param [Google::Apis::RequestOptions] options
475
+ # Request-specific options
476
+ #
477
+ # @yield [result, err] Result & error if block supplied
478
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
479
+ # @yieldparam err [StandardError] error object if request failed
480
+ #
481
+ # @return [Google::Apis::AndroidenterpriseV1::User]
482
+ #
483
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
484
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
485
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
486
+ def update_collection_viewer(enterprise_id, collection_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
487
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
488
+ command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
489
+ command.request_object = user_object
490
+ command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
491
+ command.response_class = Google::Apis::AndroidenterpriseV1::User
492
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
493
+ command.params['collectionId'] = collection_id unless collection_id.nil?
494
+ command.params['userId'] = user_id unless user_id.nil?
495
+ command.query['fields'] = fields unless fields.nil?
496
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
497
+ command.query['userIp'] = user_ip unless user_ip.nil?
498
+ execute_or_queue_command(command, &block)
499
+ end
500
+
501
+ # Retrieves the details of a device.
502
+ # @param [String] enterprise_id
503
+ # The ID of the enterprise.
504
+ # @param [String] user_id
505
+ # The ID of the user.
506
+ # @param [String] device_id
507
+ # The ID of the device.
508
+ # @param [String] fields
509
+ # Selector specifying which fields to include in a partial response.
510
+ # @param [String] quota_user
511
+ # Available to use for quota purposes for server-side applications. Can be any
512
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
513
+ # Overrides userIp if both are provided.
514
+ # @param [String] user_ip
515
+ # IP address of the site where the request originates. Use this if you want to
516
+ # enforce per-user limits.
517
+ # @param [Google::Apis::RequestOptions] options
518
+ # Request-specific options
519
+ #
520
+ # @yield [result, err] Result & error if block supplied
521
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Device] parsed result object
522
+ # @yieldparam err [StandardError] error object if request failed
523
+ #
524
+ # @return [Google::Apis::AndroidenterpriseV1::Device]
525
+ #
526
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
527
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
528
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
529
+ def get_device(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
530
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', options)
531
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
532
+ command.response_class = Google::Apis::AndroidenterpriseV1::Device
533
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
534
+ command.params['userId'] = user_id unless user_id.nil?
535
+ command.params['deviceId'] = device_id unless device_id.nil?
536
+ command.query['fields'] = fields unless fields.nil?
537
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
538
+ command.query['userIp'] = user_ip unless user_ip.nil?
539
+ execute_or_queue_command(command, &block)
540
+ end
541
+
542
+ # Retrieves whether a device is enabled or disabled for access by the user to
543
+ # Google services. The device state takes effect only if enforcing EMM policies
544
+ # on Android devices is enabled in the Google Admin Console. Otherwise, the
545
+ # device state is ignored and all devices are allowed access to Google services.
546
+ # @param [String] enterprise_id
547
+ # The ID of the enterprise.
548
+ # @param [String] user_id
549
+ # The ID of the user.
550
+ # @param [String] device_id
551
+ # The ID of the device.
552
+ # @param [String] fields
553
+ # Selector specifying which fields to include in a partial response.
554
+ # @param [String] quota_user
555
+ # Available to use for quota purposes for server-side applications. Can be any
556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
557
+ # Overrides userIp if both are provided.
558
+ # @param [String] user_ip
559
+ # IP address of the site where the request originates. Use this if you want to
560
+ # enforce per-user limits.
561
+ # @param [Google::Apis::RequestOptions] options
562
+ # Request-specific options
563
+ #
564
+ # @yield [result, err] Result & error if block supplied
565
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::DeviceState] parsed result object
566
+ # @yieldparam err [StandardError] error object if request failed
567
+ #
568
+ # @return [Google::Apis::AndroidenterpriseV1::DeviceState]
569
+ #
570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
573
+ def get_device_state(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
574
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', options)
575
+ command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
576
+ command.response_class = Google::Apis::AndroidenterpriseV1::DeviceState
577
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
578
+ command.params['userId'] = user_id unless user_id.nil?
579
+ command.params['deviceId'] = device_id unless device_id.nil?
580
+ command.query['fields'] = fields unless fields.nil?
581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
582
+ command.query['userIp'] = user_ip unless user_ip.nil?
583
+ execute_or_queue_command(command, &block)
584
+ end
585
+
586
+ # Retrieves the IDs of all of a user's devices.
587
+ # @param [String] enterprise_id
588
+ # The ID of the enterprise.
589
+ # @param [String] user_id
590
+ # The ID of the user.
591
+ # @param [String] fields
592
+ # Selector specifying which fields to include in a partial response.
593
+ # @param [String] quota_user
594
+ # Available to use for quota purposes for server-side applications. Can be any
595
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
596
+ # Overrides userIp if both are provided.
597
+ # @param [String] user_ip
598
+ # IP address of the site where the request originates. Use this if you want to
599
+ # enforce per-user limits.
600
+ # @param [Google::Apis::RequestOptions] options
601
+ # Request-specific options
602
+ #
603
+ # @yield [result, err] Result & error if block supplied
604
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListDevicesResponse] parsed result object
605
+ # @yieldparam err [StandardError] error object if request failed
606
+ #
607
+ # @return [Google::Apis::AndroidenterpriseV1::ListDevicesResponse]
608
+ #
609
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
610
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
611
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
612
+ def list_devices(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
613
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices', options)
614
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListDevicesResponse::Representation
615
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListDevicesResponse
616
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
617
+ command.params['userId'] = user_id unless user_id.nil?
618
+ command.query['fields'] = fields unless fields.nil?
619
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
620
+ command.query['userIp'] = user_ip unless user_ip.nil?
621
+ execute_or_queue_command(command, &block)
622
+ end
623
+
624
+ # Sets whether a device is enabled or disabled for access by the user to Google
625
+ # services. The device state takes effect only if enforcing EMM policies on
626
+ # Android devices is enabled in the Google Admin Console. Otherwise, the device
627
+ # state is ignored and all devices are allowed access to Google services.
628
+ # @param [String] enterprise_id
629
+ # The ID of the enterprise.
630
+ # @param [String] user_id
631
+ # The ID of the user.
632
+ # @param [String] device_id
633
+ # The ID of the device.
634
+ # @param [Google::Apis::AndroidenterpriseV1::DeviceState] device_state_object
635
+ # @param [String] fields
636
+ # Selector specifying which fields to include in a partial response.
637
+ # @param [String] quota_user
638
+ # Available to use for quota purposes for server-side applications. Can be any
639
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
640
+ # Overrides userIp if both are provided.
641
+ # @param [String] user_ip
642
+ # IP address of the site where the request originates. Use this if you want to
643
+ # enforce per-user limits.
644
+ # @param [Google::Apis::RequestOptions] options
645
+ # Request-specific options
646
+ #
647
+ # @yield [result, err] Result & error if block supplied
648
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::DeviceState] parsed result object
649
+ # @yieldparam err [StandardError] error object if request failed
650
+ #
651
+ # @return [Google::Apis::AndroidenterpriseV1::DeviceState]
652
+ #
653
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
654
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
655
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
656
+ def set_device_state(enterprise_id, user_id, device_id, device_state_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
657
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', options)
658
+ command.request_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
659
+ command.request_object = device_state_object
660
+ command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
661
+ command.response_class = Google::Apis::AndroidenterpriseV1::DeviceState
662
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
663
+ command.params['userId'] = user_id unless user_id.nil?
664
+ command.params['deviceId'] = device_id unless device_id.nil?
665
+ command.query['fields'] = fields unless fields.nil?
666
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
667
+ command.query['userIp'] = user_ip unless user_ip.nil?
668
+ execute_or_queue_command(command, &block)
669
+ end
670
+
671
+ # Deletes the binding between the EMM and enterprise. This is now deprecated;
672
+ # use this to unenroll customers that were previously enrolled with the 'insert'
673
+ # call, then enroll them again with the 'enroll' call.
674
+ # @param [String] enterprise_id
675
+ # The ID of the enterprise.
676
+ # @param [String] fields
677
+ # Selector specifying which fields to include in a partial response.
678
+ # @param [String] quota_user
679
+ # Available to use for quota purposes for server-side applications. Can be any
680
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
681
+ # Overrides userIp if both are provided.
682
+ # @param [String] user_ip
683
+ # IP address of the site where the request originates. Use this if you want to
684
+ # enforce per-user limits.
685
+ # @param [Google::Apis::RequestOptions] options
686
+ # Request-specific options
687
+ #
688
+ # @yield [result, err] Result & error if block supplied
689
+ # @yieldparam result [NilClass] No result returned for this method
690
+ # @yieldparam err [StandardError] error object if request failed
691
+ #
692
+ # @return [void]
693
+ #
694
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
695
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
696
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
697
+ def delete_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
698
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}', options)
699
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
700
+ command.query['fields'] = fields unless fields.nil?
701
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
702
+ command.query['userIp'] = user_ip unless user_ip.nil?
703
+ execute_or_queue_command(command, &block)
704
+ end
705
+
706
+ # Enrolls an enterprise with the calling EMM.
707
+ # @param [String] token
708
+ # The token provided by the enterprise to register the EMM.
709
+ # @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object
710
+ # @param [String] fields
711
+ # Selector specifying which fields to include in a partial response.
712
+ # @param [String] quota_user
713
+ # Available to use for quota purposes for server-side applications. Can be any
714
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
715
+ # Overrides userIp if both are provided.
716
+ # @param [String] user_ip
717
+ # IP address of the site where the request originates. Use this if you want to
718
+ # enforce per-user limits.
719
+ # @param [Google::Apis::RequestOptions] options
720
+ # Request-specific options
721
+ #
722
+ # @yield [result, err] Result & error if block supplied
723
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object
724
+ # @yieldparam err [StandardError] error object if request failed
725
+ #
726
+ # @return [Google::Apis::AndroidenterpriseV1::Enterprise]
727
+ #
728
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
729
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
730
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
731
+ def enroll_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
732
+ command = make_simple_command(:post, 'enterprises/enroll', options)
733
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
734
+ command.request_object = enterprise_object
735
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
736
+ command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
737
+ command.query['token'] = token unless token.nil?
738
+ command.query['fields'] = fields unless fields.nil?
739
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
740
+ command.query['userIp'] = user_ip unless user_ip.nil?
741
+ execute_or_queue_command(command, &block)
742
+ end
743
+
744
+ # Retrieves the name and domain of an enterprise.
745
+ # @param [String] enterprise_id
746
+ # The ID of the enterprise.
747
+ # @param [String] fields
748
+ # Selector specifying which fields to include in a partial response.
749
+ # @param [String] quota_user
750
+ # Available to use for quota purposes for server-side applications. Can be any
751
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
752
+ # Overrides userIp if both are provided.
753
+ # @param [String] user_ip
754
+ # IP address of the site where the request originates. Use this if you want to
755
+ # enforce per-user limits.
756
+ # @param [Google::Apis::RequestOptions] options
757
+ # Request-specific options
758
+ #
759
+ # @yield [result, err] Result & error if block supplied
760
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object
761
+ # @yieldparam err [StandardError] error object if request failed
762
+ #
763
+ # @return [Google::Apis::AndroidenterpriseV1::Enterprise]
764
+ #
765
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
766
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
767
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
768
+ def get_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
769
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}', options)
770
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
771
+ command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
772
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
773
+ command.query['fields'] = fields unless fields.nil?
774
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
775
+ command.query['userIp'] = user_ip unless user_ip.nil?
776
+ execute_or_queue_command(command, &block)
777
+ end
778
+
779
+ # Returns the store layout resource.
780
+ # @param [String] enterprise_id
781
+ # The ID of the enterprise.
782
+ # @param [String] fields
783
+ # Selector specifying which fields to include in a partial response.
784
+ # @param [String] quota_user
785
+ # Available to use for quota purposes for server-side applications. Can be any
786
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
787
+ # Overrides userIp if both are provided.
788
+ # @param [String] user_ip
789
+ # IP address of the site where the request originates. Use this if you want to
790
+ # enforce per-user limits.
791
+ # @param [Google::Apis::RequestOptions] options
792
+ # Request-specific options
793
+ #
794
+ # @yield [result, err] Result & error if block supplied
795
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreLayout] parsed result object
796
+ # @yieldparam err [StandardError] error object if request failed
797
+ #
798
+ # @return [Google::Apis::AndroidenterpriseV1::StoreLayout]
799
+ #
800
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
801
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
802
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
803
+ def get_enterprise_store_layout(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
804
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout', options)
805
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreLayout::Representation
806
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreLayout
807
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
808
+ command.query['fields'] = fields unless fields.nil?
809
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
810
+ command.query['userIp'] = user_ip unless user_ip.nil?
811
+ execute_or_queue_command(command, &block)
812
+ end
813
+
814
+ # Establishes the binding between the EMM and an enterprise. This is now
815
+ # deprecated; use enroll instead.
816
+ # @param [String] token
817
+ # The token provided by the enterprise to register the EMM.
818
+ # @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object
819
+ # @param [String] fields
820
+ # Selector specifying which fields to include in a partial response.
821
+ # @param [String] quota_user
822
+ # Available to use for quota purposes for server-side applications. Can be any
823
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
824
+ # Overrides userIp if both are provided.
825
+ # @param [String] user_ip
826
+ # IP address of the site where the request originates. Use this if you want to
827
+ # enforce per-user limits.
828
+ # @param [Google::Apis::RequestOptions] options
829
+ # Request-specific options
830
+ #
831
+ # @yield [result, err] Result & error if block supplied
832
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object
833
+ # @yieldparam err [StandardError] error object if request failed
834
+ #
835
+ # @return [Google::Apis::AndroidenterpriseV1::Enterprise]
836
+ #
837
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
838
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
839
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
840
+ def insert_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
841
+ command = make_simple_command(:post, 'enterprises', options)
842
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
843
+ command.request_object = enterprise_object
844
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
845
+ command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
846
+ command.query['token'] = token unless token.nil?
847
+ command.query['fields'] = fields unless fields.nil?
848
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
849
+ command.query['userIp'] = user_ip unless user_ip.nil?
850
+ execute_or_queue_command(command, &block)
851
+ end
852
+
853
+ # Looks up an enterprise by domain name.
854
+ # @param [String] domain
855
+ # The exact primary domain name of the enterprise to look up.
856
+ # @param [String] fields
857
+ # Selector specifying which fields to include in a partial response.
858
+ # @param [String] quota_user
859
+ # Available to use for quota purposes for server-side applications. Can be any
860
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
861
+ # Overrides userIp if both are provided.
862
+ # @param [String] user_ip
863
+ # IP address of the site where the request originates. Use this if you want to
864
+ # enforce per-user limits.
865
+ # @param [Google::Apis::RequestOptions] options
866
+ # Request-specific options
867
+ #
868
+ # @yield [result, err] Result & error if block supplied
869
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse] parsed result object
870
+ # @yieldparam err [StandardError] error object if request failed
871
+ #
872
+ # @return [Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse]
873
+ #
874
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
875
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
876
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
877
+ def list_enterprises(domain, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
878
+ command = make_simple_command(:get, 'enterprises', options)
879
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse::Representation
880
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse
881
+ command.query['domain'] = domain unless domain.nil?
882
+ command.query['fields'] = fields unless fields.nil?
883
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
884
+ command.query['userIp'] = user_ip unless user_ip.nil?
885
+ execute_or_queue_command(command, &block)
886
+ end
887
+
888
+ # Sends a test push notification to validate the EMM integration with the Google
889
+ # Cloud Pub/Sub service for this enterprise.
890
+ # @param [String] enterprise_id
891
+ # The ID of the enterprise.
892
+ # @param [String] fields
893
+ # Selector specifying which fields to include in a partial response.
894
+ # @param [String] quota_user
895
+ # Available to use for quota purposes for server-side applications. Can be any
896
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
897
+ # Overrides userIp if both are provided.
898
+ # @param [String] user_ip
899
+ # IP address of the site where the request originates. Use this if you want to
900
+ # enforce per-user limits.
901
+ # @param [Google::Apis::RequestOptions] options
902
+ # Request-specific options
903
+ #
904
+ # @yield [result, err] Result & error if block supplied
905
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse] parsed result object
906
+ # @yieldparam err [StandardError] error object if request failed
907
+ #
908
+ # @return [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse]
909
+ #
910
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
911
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
912
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
913
+ def send_enterprise_test_push_notification(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
914
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/sendTestPushNotification', options)
915
+ command.response_representation = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse::Representation
916
+ command.response_class = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse
917
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
918
+ command.query['fields'] = fields unless fields.nil?
919
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
920
+ command.query['userIp'] = user_ip unless user_ip.nil?
921
+ execute_or_queue_command(command, &block)
922
+ end
923
+
924
+ # Set the account that will be used to authenticate to the API as the enterprise.
925
+ # @param [String] enterprise_id
926
+ # The ID of the enterprise.
927
+ # @param [Google::Apis::AndroidenterpriseV1::EnterpriseAccount] enterprise_account_object
928
+ # @param [String] fields
929
+ # Selector specifying which fields to include in a partial response.
930
+ # @param [String] quota_user
931
+ # Available to use for quota purposes for server-side applications. Can be any
932
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
933
+ # Overrides userIp if both are provided.
934
+ # @param [String] user_ip
935
+ # IP address of the site where the request originates. Use this if you want to
936
+ # enforce per-user limits.
937
+ # @param [Google::Apis::RequestOptions] options
938
+ # Request-specific options
939
+ #
940
+ # @yield [result, err] Result & error if block supplied
941
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::EnterpriseAccount] parsed result object
942
+ # @yieldparam err [StandardError] error object if request failed
943
+ #
944
+ # @return [Google::Apis::AndroidenterpriseV1::EnterpriseAccount]
945
+ #
946
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
947
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
948
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
949
+ def set_enterprise_account(enterprise_id, enterprise_account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
950
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/account', options)
951
+ command.request_representation = Google::Apis::AndroidenterpriseV1::EnterpriseAccount::Representation
952
+ command.request_object = enterprise_account_object
953
+ command.response_representation = Google::Apis::AndroidenterpriseV1::EnterpriseAccount::Representation
954
+ command.response_class = Google::Apis::AndroidenterpriseV1::EnterpriseAccount
955
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
956
+ command.query['fields'] = fields unless fields.nil?
957
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
958
+ command.query['userIp'] = user_ip unless user_ip.nil?
959
+ execute_or_queue_command(command, &block)
960
+ end
961
+
962
+ # Sets the store layout resource.
963
+ # @param [String] enterprise_id
964
+ # The ID of the enterprise.
965
+ # @param [Google::Apis::AndroidenterpriseV1::StoreLayout] store_layout_object
966
+ # @param [String] fields
967
+ # Selector specifying which fields to include in a partial response.
968
+ # @param [String] quota_user
969
+ # Available to use for quota purposes for server-side applications. Can be any
970
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
971
+ # Overrides userIp if both are provided.
972
+ # @param [String] user_ip
973
+ # IP address of the site where the request originates. Use this if you want to
974
+ # enforce per-user limits.
975
+ # @param [Google::Apis::RequestOptions] options
976
+ # Request-specific options
977
+ #
978
+ # @yield [result, err] Result & error if block supplied
979
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreLayout] parsed result object
980
+ # @yieldparam err [StandardError] error object if request failed
981
+ #
982
+ # @return [Google::Apis::AndroidenterpriseV1::StoreLayout]
983
+ #
984
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
985
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
986
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
987
+ def set_enterprise_store_layout(enterprise_id, store_layout_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
988
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/storeLayout', options)
989
+ command.request_representation = Google::Apis::AndroidenterpriseV1::StoreLayout::Representation
990
+ command.request_object = store_layout_object
991
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreLayout::Representation
992
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreLayout
993
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
994
+ command.query['fields'] = fields unless fields.nil?
995
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
996
+ command.query['userIp'] = user_ip unless user_ip.nil?
997
+ execute_or_queue_command(command, &block)
998
+ end
999
+
1000
+ # Unenrolls an enterprise from the calling EMM.
1001
+ # @param [String] enterprise_id
1002
+ # The ID of the enterprise.
1003
+ # @param [String] fields
1004
+ # Selector specifying which fields to include in a partial response.
1005
+ # @param [String] quota_user
1006
+ # Available to use for quota purposes for server-side applications. Can be any
1007
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1008
+ # Overrides userIp if both are provided.
1009
+ # @param [String] user_ip
1010
+ # IP address of the site where the request originates. Use this if you want to
1011
+ # enforce per-user limits.
1012
+ # @param [Google::Apis::RequestOptions] options
1013
+ # Request-specific options
1014
+ #
1015
+ # @yield [result, err] Result & error if block supplied
1016
+ # @yieldparam result [NilClass] No result returned for this method
1017
+ # @yieldparam err [StandardError] error object if request failed
1018
+ #
1019
+ # @return [void]
1020
+ #
1021
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1022
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1023
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1024
+ def unenroll_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1025
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/unenroll', options)
1026
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1027
+ command.query['fields'] = fields unless fields.nil?
1028
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1029
+ command.query['userIp'] = user_ip unless user_ip.nil?
1030
+ execute_or_queue_command(command, &block)
1031
+ end
1032
+
1033
+ # Removes an entitlement to an app for a user and uninstalls it.
1034
+ # @param [String] enterprise_id
1035
+ # The ID of the enterprise.
1036
+ # @param [String] user_id
1037
+ # The ID of the user.
1038
+ # @param [String] entitlement_id
1039
+ # The ID of the entitlement, e.g. "app:com.google.android.gm".
1040
+ # @param [String] fields
1041
+ # Selector specifying which fields to include in a partial response.
1042
+ # @param [String] quota_user
1043
+ # Available to use for quota purposes for server-side applications. Can be any
1044
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1045
+ # Overrides userIp if both are provided.
1046
+ # @param [String] user_ip
1047
+ # IP address of the site where the request originates. Use this if you want to
1048
+ # enforce per-user limits.
1049
+ # @param [Google::Apis::RequestOptions] options
1050
+ # Request-specific options
1051
+ #
1052
+ # @yield [result, err] Result & error if block supplied
1053
+ # @yieldparam result [NilClass] No result returned for this method
1054
+ # @yieldparam err [StandardError] error object if request failed
1055
+ #
1056
+ # @return [void]
1057
+ #
1058
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1059
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1060
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1061
+ def delete_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1062
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
1063
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1064
+ command.params['userId'] = user_id unless user_id.nil?
1065
+ command.params['entitlementId'] = entitlement_id unless entitlement_id.nil?
1066
+ command.query['fields'] = fields unless fields.nil?
1067
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1068
+ command.query['userIp'] = user_ip unless user_ip.nil?
1069
+ execute_or_queue_command(command, &block)
1070
+ end
1071
+
1072
+ # Retrieves details of an entitlement.
1073
+ # @param [String] enterprise_id
1074
+ # The ID of the enterprise.
1075
+ # @param [String] user_id
1076
+ # The ID of the user.
1077
+ # @param [String] entitlement_id
1078
+ # The ID of the entitlement, e.g. "app:com.google.android.gm".
1079
+ # @param [String] fields
1080
+ # Selector specifying which fields to include in a partial response.
1081
+ # @param [String] quota_user
1082
+ # Available to use for quota purposes for server-side applications. Can be any
1083
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1084
+ # Overrides userIp if both are provided.
1085
+ # @param [String] user_ip
1086
+ # IP address of the site where the request originates. Use this if you want to
1087
+ # enforce per-user limits.
1088
+ # @param [Google::Apis::RequestOptions] options
1089
+ # Request-specific options
1090
+ #
1091
+ # @yield [result, err] Result & error if block supplied
1092
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Entitlement] parsed result object
1093
+ # @yieldparam err [StandardError] error object if request failed
1094
+ #
1095
+ # @return [Google::Apis::AndroidenterpriseV1::Entitlement]
1096
+ #
1097
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1098
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1099
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1100
+ def get_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1101
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
1102
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
1103
+ command.response_class = Google::Apis::AndroidenterpriseV1::Entitlement
1104
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1105
+ command.params['userId'] = user_id unless user_id.nil?
1106
+ command.params['entitlementId'] = entitlement_id unless entitlement_id.nil?
1107
+ command.query['fields'] = fields unless fields.nil?
1108
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1109
+ command.query['userIp'] = user_ip unless user_ip.nil?
1110
+ execute_or_queue_command(command, &block)
1111
+ end
1112
+
1113
+ # List of all entitlements for the specified user. Only the ID is set.
1114
+ # @param [String] enterprise_id
1115
+ # The ID of the enterprise.
1116
+ # @param [String] user_id
1117
+ # The ID of the user.
1118
+ # @param [String] fields
1119
+ # Selector specifying which fields to include in a partial response.
1120
+ # @param [String] quota_user
1121
+ # Available to use for quota purposes for server-side applications. Can be any
1122
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1123
+ # Overrides userIp if both are provided.
1124
+ # @param [String] user_ip
1125
+ # IP address of the site where the request originates. Use this if you want to
1126
+ # enforce per-user limits.
1127
+ # @param [Google::Apis::RequestOptions] options
1128
+ # Request-specific options
1129
+ #
1130
+ # @yield [result, err] Result & error if block supplied
1131
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse] parsed result object
1132
+ # @yieldparam err [StandardError] error object if request failed
1133
+ #
1134
+ # @return [Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse]
1135
+ #
1136
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1137
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1138
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1139
+ def list_entitlements(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1140
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/entitlements', options)
1141
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse::Representation
1142
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse
1143
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1144
+ command.params['userId'] = user_id unless user_id.nil?
1145
+ command.query['fields'] = fields unless fields.nil?
1146
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1147
+ command.query['userIp'] = user_ip unless user_ip.nil?
1148
+ execute_or_queue_command(command, &block)
1149
+ end
1150
+
1151
+ # Adds or updates an entitlement to an app for a user. This method supports
1152
+ # patch semantics.
1153
+ # @param [String] enterprise_id
1154
+ # The ID of the enterprise.
1155
+ # @param [String] user_id
1156
+ # The ID of the user.
1157
+ # @param [String] entitlement_id
1158
+ # The ID of the entitlement, e.g. "app:com.google.android.gm".
1159
+ # @param [Google::Apis::AndroidenterpriseV1::Entitlement] entitlement_object
1160
+ # @param [Boolean] install
1161
+ # Set to true to also install the product on all the user's devices where
1162
+ # possible. Failure to install on one or more devices will not prevent this
1163
+ # operation from returning successfully, as long as the entitlement was
1164
+ # successfully assigned to the user.
1165
+ # @param [String] fields
1166
+ # Selector specifying which fields to include in a partial response.
1167
+ # @param [String] quota_user
1168
+ # Available to use for quota purposes for server-side applications. Can be any
1169
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1170
+ # Overrides userIp if both are provided.
1171
+ # @param [String] user_ip
1172
+ # IP address of the site where the request originates. Use this if you want to
1173
+ # enforce per-user limits.
1174
+ # @param [Google::Apis::RequestOptions] options
1175
+ # Request-specific options
1176
+ #
1177
+ # @yield [result, err] Result & error if block supplied
1178
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Entitlement] parsed result object
1179
+ # @yieldparam err [StandardError] error object if request failed
1180
+ #
1181
+ # @return [Google::Apis::AndroidenterpriseV1::Entitlement]
1182
+ #
1183
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1184
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1185
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1186
+ def patch_entitlement(enterprise_id, user_id, entitlement_id, entitlement_object = nil, install: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1187
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
1188
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
1189
+ command.request_object = entitlement_object
1190
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
1191
+ command.response_class = Google::Apis::AndroidenterpriseV1::Entitlement
1192
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1193
+ command.params['userId'] = user_id unless user_id.nil?
1194
+ command.params['entitlementId'] = entitlement_id unless entitlement_id.nil?
1195
+ command.query['install'] = install unless install.nil?
1196
+ command.query['fields'] = fields unless fields.nil?
1197
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1198
+ command.query['userIp'] = user_ip unless user_ip.nil?
1199
+ execute_or_queue_command(command, &block)
1200
+ end
1201
+
1202
+ # Adds or updates an entitlement to an app for a user.
1203
+ # @param [String] enterprise_id
1204
+ # The ID of the enterprise.
1205
+ # @param [String] user_id
1206
+ # The ID of the user.
1207
+ # @param [String] entitlement_id
1208
+ # The ID of the entitlement, e.g. "app:com.google.android.gm".
1209
+ # @param [Google::Apis::AndroidenterpriseV1::Entitlement] entitlement_object
1210
+ # @param [Boolean] install
1211
+ # Set to true to also install the product on all the user's devices where
1212
+ # possible. Failure to install on one or more devices will not prevent this
1213
+ # operation from returning successfully, as long as the entitlement was
1214
+ # successfully assigned to the user.
1215
+ # @param [String] fields
1216
+ # Selector specifying which fields to include in a partial response.
1217
+ # @param [String] quota_user
1218
+ # Available to use for quota purposes for server-side applications. Can be any
1219
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1220
+ # Overrides userIp if both are provided.
1221
+ # @param [String] user_ip
1222
+ # IP address of the site where the request originates. Use this if you want to
1223
+ # enforce per-user limits.
1224
+ # @param [Google::Apis::RequestOptions] options
1225
+ # Request-specific options
1226
+ #
1227
+ # @yield [result, err] Result & error if block supplied
1228
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Entitlement] parsed result object
1229
+ # @yieldparam err [StandardError] error object if request failed
1230
+ #
1231
+ # @return [Google::Apis::AndroidenterpriseV1::Entitlement]
1232
+ #
1233
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1234
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1235
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1236
+ def update_entitlement(enterprise_id, user_id, entitlement_id, entitlement_object = nil, install: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1237
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
1238
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
1239
+ command.request_object = entitlement_object
1240
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
1241
+ command.response_class = Google::Apis::AndroidenterpriseV1::Entitlement
1242
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1243
+ command.params['userId'] = user_id unless user_id.nil?
1244
+ command.params['entitlementId'] = entitlement_id unless entitlement_id.nil?
1245
+ command.query['install'] = install unless install.nil?
1246
+ command.query['fields'] = fields unless fields.nil?
1247
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1248
+ command.query['userIp'] = user_ip unless user_ip.nil?
1249
+ execute_or_queue_command(command, &block)
1250
+ end
1251
+
1252
+ # Retrieves details of an enterprise's group license for a product.
1253
+ # @param [String] enterprise_id
1254
+ # The ID of the enterprise.
1255
+ # @param [String] group_license_id
1256
+ # The ID of the product the group license is for, e.g. "app:com.google.android.
1257
+ # gm".
1258
+ # @param [String] fields
1259
+ # Selector specifying which fields to include in a partial response.
1260
+ # @param [String] quota_user
1261
+ # Available to use for quota purposes for server-side applications. Can be any
1262
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1263
+ # Overrides userIp if both are provided.
1264
+ # @param [String] user_ip
1265
+ # IP address of the site where the request originates. Use this if you want to
1266
+ # enforce per-user limits.
1267
+ # @param [Google::Apis::RequestOptions] options
1268
+ # Request-specific options
1269
+ #
1270
+ # @yield [result, err] Result & error if block supplied
1271
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::GroupLicense] parsed result object
1272
+ # @yieldparam err [StandardError] error object if request failed
1273
+ #
1274
+ # @return [Google::Apis::AndroidenterpriseV1::GroupLicense]
1275
+ #
1276
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1277
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1278
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1279
+ def get_group_license(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1280
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}', options)
1281
+ command.response_representation = Google::Apis::AndroidenterpriseV1::GroupLicense::Representation
1282
+ command.response_class = Google::Apis::AndroidenterpriseV1::GroupLicense
1283
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1284
+ command.params['groupLicenseId'] = group_license_id unless group_license_id.nil?
1285
+ command.query['fields'] = fields unless fields.nil?
1286
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1287
+ command.query['userIp'] = user_ip unless user_ip.nil?
1288
+ execute_or_queue_command(command, &block)
1289
+ end
1290
+
1291
+ # Retrieves IDs of all products for which the enterprise has a group license.
1292
+ # @param [String] enterprise_id
1293
+ # The ID of the enterprise.
1294
+ # @param [String] fields
1295
+ # Selector specifying which fields to include in a partial response.
1296
+ # @param [String] quota_user
1297
+ # Available to use for quota purposes for server-side applications. Can be any
1298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1299
+ # Overrides userIp if both are provided.
1300
+ # @param [String] user_ip
1301
+ # IP address of the site where the request originates. Use this if you want to
1302
+ # enforce per-user limits.
1303
+ # @param [Google::Apis::RequestOptions] options
1304
+ # Request-specific options
1305
+ #
1306
+ # @yield [result, err] Result & error if block supplied
1307
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse] parsed result object
1308
+ # @yieldparam err [StandardError] error object if request failed
1309
+ #
1310
+ # @return [Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse]
1311
+ #
1312
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1313
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1314
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1315
+ def list_group_licenses(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1316
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses', options)
1317
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse::Representation
1318
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse
1319
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1320
+ command.query['fields'] = fields unless fields.nil?
1321
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1322
+ command.query['userIp'] = user_ip unless user_ip.nil?
1323
+ execute_or_queue_command(command, &block)
1324
+ end
1325
+
1326
+ # Retrieves the IDs of the users who have been granted entitlements under the
1327
+ # license.
1328
+ # @param [String] enterprise_id
1329
+ # The ID of the enterprise.
1330
+ # @param [String] group_license_id
1331
+ # The ID of the product the group license is for, e.g. "app:com.google.android.
1332
+ # gm".
1333
+ # @param [String] fields
1334
+ # Selector specifying which fields to include in a partial response.
1335
+ # @param [String] quota_user
1336
+ # Available to use for quota purposes for server-side applications. Can be any
1337
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1338
+ # Overrides userIp if both are provided.
1339
+ # @param [String] user_ip
1340
+ # IP address of the site where the request originates. Use this if you want to
1341
+ # enforce per-user limits.
1342
+ # @param [Google::Apis::RequestOptions] options
1343
+ # Request-specific options
1344
+ #
1345
+ # @yield [result, err] Result & error if block supplied
1346
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse] parsed result object
1347
+ # @yieldparam err [StandardError] error object if request failed
1348
+ #
1349
+ # @return [Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse]
1350
+ #
1351
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1352
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1353
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1354
+ def list_group_license_users(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1355
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users', options)
1356
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse::Representation
1357
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse
1358
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1359
+ command.params['groupLicenseId'] = group_license_id unless group_license_id.nil?
1360
+ command.query['fields'] = fields unless fields.nil?
1361
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1362
+ command.query['userIp'] = user_ip unless user_ip.nil?
1363
+ execute_or_queue_command(command, &block)
1364
+ end
1365
+
1366
+ # Requests to remove an app from a device. A call to get or list will still show
1367
+ # the app as installed on the device until it is actually removed.
1368
+ # @param [String] enterprise_id
1369
+ # The ID of the enterprise.
1370
+ # @param [String] user_id
1371
+ # The ID of the user.
1372
+ # @param [String] device_id
1373
+ # The Android ID of the device.
1374
+ # @param [String] install_id
1375
+ # The ID of the product represented by the install, e.g. "app:com.google.android.
1376
+ # gm".
1377
+ # @param [String] fields
1378
+ # Selector specifying which fields to include in a partial response.
1379
+ # @param [String] quota_user
1380
+ # Available to use for quota purposes for server-side applications. Can be any
1381
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1382
+ # Overrides userIp if both are provided.
1383
+ # @param [String] user_ip
1384
+ # IP address of the site where the request originates. Use this if you want to
1385
+ # enforce per-user limits.
1386
+ # @param [Google::Apis::RequestOptions] options
1387
+ # Request-specific options
1388
+ #
1389
+ # @yield [result, err] Result & error if block supplied
1390
+ # @yieldparam result [NilClass] No result returned for this method
1391
+ # @yieldparam err [StandardError] error object if request failed
1392
+ #
1393
+ # @return [void]
1394
+ #
1395
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1396
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1397
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1398
+ def delete_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1399
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
1400
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1401
+ command.params['userId'] = user_id unless user_id.nil?
1402
+ command.params['deviceId'] = device_id unless device_id.nil?
1403
+ command.params['installId'] = install_id unless install_id.nil?
1404
+ command.query['fields'] = fields unless fields.nil?
1405
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1406
+ command.query['userIp'] = user_ip unless user_ip.nil?
1407
+ execute_or_queue_command(command, &block)
1408
+ end
1409
+
1410
+ # Retrieves details of an installation of an app on a device.
1411
+ # @param [String] enterprise_id
1412
+ # The ID of the enterprise.
1413
+ # @param [String] user_id
1414
+ # The ID of the user.
1415
+ # @param [String] device_id
1416
+ # The Android ID of the device.
1417
+ # @param [String] install_id
1418
+ # The ID of the product represented by the install, e.g. "app:com.google.android.
1419
+ # gm".
1420
+ # @param [String] fields
1421
+ # Selector specifying which fields to include in a partial response.
1422
+ # @param [String] quota_user
1423
+ # Available to use for quota purposes for server-side applications. Can be any
1424
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1425
+ # Overrides userIp if both are provided.
1426
+ # @param [String] user_ip
1427
+ # IP address of the site where the request originates. Use this if you want to
1428
+ # enforce per-user limits.
1429
+ # @param [Google::Apis::RequestOptions] options
1430
+ # Request-specific options
1431
+ #
1432
+ # @yield [result, err] Result & error if block supplied
1433
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Install] parsed result object
1434
+ # @yieldparam err [StandardError] error object if request failed
1435
+ #
1436
+ # @return [Google::Apis::AndroidenterpriseV1::Install]
1437
+ #
1438
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1439
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1440
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1441
+ def get_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1442
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
1443
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
1444
+ command.response_class = Google::Apis::AndroidenterpriseV1::Install
1445
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1446
+ command.params['userId'] = user_id unless user_id.nil?
1447
+ command.params['deviceId'] = device_id unless device_id.nil?
1448
+ command.params['installId'] = install_id unless install_id.nil?
1449
+ command.query['fields'] = fields unless fields.nil?
1450
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1451
+ command.query['userIp'] = user_ip unless user_ip.nil?
1452
+ execute_or_queue_command(command, &block)
1453
+ end
1454
+
1455
+ # Retrieves the details of all apps installed on the specified device.
1456
+ # @param [String] enterprise_id
1457
+ # The ID of the enterprise.
1458
+ # @param [String] user_id
1459
+ # The ID of the user.
1460
+ # @param [String] device_id
1461
+ # The Android ID of the device.
1462
+ # @param [String] fields
1463
+ # Selector specifying which fields to include in a partial response.
1464
+ # @param [String] quota_user
1465
+ # Available to use for quota purposes for server-side applications. Can be any
1466
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1467
+ # Overrides userIp if both are provided.
1468
+ # @param [String] user_ip
1469
+ # IP address of the site where the request originates. Use this if you want to
1470
+ # enforce per-user limits.
1471
+ # @param [Google::Apis::RequestOptions] options
1472
+ # Request-specific options
1473
+ #
1474
+ # @yield [result, err] Result & error if block supplied
1475
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListInstallsResponse] parsed result object
1476
+ # @yieldparam err [StandardError] error object if request failed
1477
+ #
1478
+ # @return [Google::Apis::AndroidenterpriseV1::ListInstallsResponse]
1479
+ #
1480
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1481
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1482
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1483
+ def list_installs(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1484
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs', options)
1485
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListInstallsResponse::Representation
1486
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListInstallsResponse
1487
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1488
+ command.params['userId'] = user_id unless user_id.nil?
1489
+ command.params['deviceId'] = device_id unless device_id.nil?
1490
+ command.query['fields'] = fields unless fields.nil?
1491
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1492
+ command.query['userIp'] = user_ip unless user_ip.nil?
1493
+ execute_or_queue_command(command, &block)
1494
+ end
1495
+
1496
+ # Requests to install the latest version of an app to a device. If the app is
1497
+ # already installed then it is updated to the latest version if necessary. This
1498
+ # method supports patch semantics.
1499
+ # @param [String] enterprise_id
1500
+ # The ID of the enterprise.
1501
+ # @param [String] user_id
1502
+ # The ID of the user.
1503
+ # @param [String] device_id
1504
+ # The Android ID of the device.
1505
+ # @param [String] install_id
1506
+ # The ID of the product represented by the install, e.g. "app:com.google.android.
1507
+ # gm".
1508
+ # @param [Google::Apis::AndroidenterpriseV1::Install] install_object
1509
+ # @param [String] fields
1510
+ # Selector specifying which fields to include in a partial response.
1511
+ # @param [String] quota_user
1512
+ # Available to use for quota purposes for server-side applications. Can be any
1513
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1514
+ # Overrides userIp if both are provided.
1515
+ # @param [String] user_ip
1516
+ # IP address of the site where the request originates. Use this if you want to
1517
+ # enforce per-user limits.
1518
+ # @param [Google::Apis::RequestOptions] options
1519
+ # Request-specific options
1520
+ #
1521
+ # @yield [result, err] Result & error if block supplied
1522
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Install] parsed result object
1523
+ # @yieldparam err [StandardError] error object if request failed
1524
+ #
1525
+ # @return [Google::Apis::AndroidenterpriseV1::Install]
1526
+ #
1527
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1528
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1529
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1530
+ def patch_install(enterprise_id, user_id, device_id, install_id, install_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1531
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
1532
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
1533
+ command.request_object = install_object
1534
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
1535
+ command.response_class = Google::Apis::AndroidenterpriseV1::Install
1536
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1537
+ command.params['userId'] = user_id unless user_id.nil?
1538
+ command.params['deviceId'] = device_id unless device_id.nil?
1539
+ command.params['installId'] = install_id unless install_id.nil?
1540
+ command.query['fields'] = fields unless fields.nil?
1541
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1542
+ command.query['userIp'] = user_ip unless user_ip.nil?
1543
+ execute_or_queue_command(command, &block)
1544
+ end
1545
+
1546
+ # Requests to install the latest version of an app to a device. If the app is
1547
+ # already installed then it is updated to the latest version if necessary.
1548
+ # @param [String] enterprise_id
1549
+ # The ID of the enterprise.
1550
+ # @param [String] user_id
1551
+ # The ID of the user.
1552
+ # @param [String] device_id
1553
+ # The Android ID of the device.
1554
+ # @param [String] install_id
1555
+ # The ID of the product represented by the install, e.g. "app:com.google.android.
1556
+ # gm".
1557
+ # @param [Google::Apis::AndroidenterpriseV1::Install] install_object
1558
+ # @param [String] fields
1559
+ # Selector specifying which fields to include in a partial response.
1560
+ # @param [String] quota_user
1561
+ # Available to use for quota purposes for server-side applications. Can be any
1562
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1563
+ # Overrides userIp if both are provided.
1564
+ # @param [String] user_ip
1565
+ # IP address of the site where the request originates. Use this if you want to
1566
+ # enforce per-user limits.
1567
+ # @param [Google::Apis::RequestOptions] options
1568
+ # Request-specific options
1569
+ #
1570
+ # @yield [result, err] Result & error if block supplied
1571
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Install] parsed result object
1572
+ # @yieldparam err [StandardError] error object if request failed
1573
+ #
1574
+ # @return [Google::Apis::AndroidenterpriseV1::Install]
1575
+ #
1576
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1577
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1578
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1579
+ def update_install(enterprise_id, user_id, device_id, install_id, install_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1580
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
1581
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
1582
+ command.request_object = install_object
1583
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
1584
+ command.response_class = Google::Apis::AndroidenterpriseV1::Install
1585
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1586
+ command.params['userId'] = user_id unless user_id.nil?
1587
+ command.params['deviceId'] = device_id unless device_id.nil?
1588
+ command.params['installId'] = install_id unless install_id.nil?
1589
+ command.query['fields'] = fields unless fields.nil?
1590
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1591
+ command.query['userIp'] = user_ip unless user_ip.nil?
1592
+ execute_or_queue_command(command, &block)
1593
+ end
1594
+
1595
+ # Retrieves details of an Android app permission for display to an enterprise
1596
+ # admin.
1597
+ # @param [String] permission_id
1598
+ # The ID of the permission.
1599
+ # @param [String] language
1600
+ # The BCP47 tag for the user's preferred language (e.g. "en-US", "de")
1601
+ # @param [String] fields
1602
+ # Selector specifying which fields to include in a partial response.
1603
+ # @param [String] quota_user
1604
+ # Available to use for quota purposes for server-side applications. Can be any
1605
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1606
+ # Overrides userIp if both are provided.
1607
+ # @param [String] user_ip
1608
+ # IP address of the site where the request originates. Use this if you want to
1609
+ # enforce per-user limits.
1610
+ # @param [Google::Apis::RequestOptions] options
1611
+ # Request-specific options
1612
+ #
1613
+ # @yield [result, err] Result & error if block supplied
1614
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Permission] parsed result object
1615
+ # @yieldparam err [StandardError] error object if request failed
1616
+ #
1617
+ # @return [Google::Apis::AndroidenterpriseV1::Permission]
1618
+ #
1619
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1620
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1621
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1622
+ def get_permission(permission_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1623
+ command = make_simple_command(:get, 'permissions/{permissionId}', options)
1624
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Permission::Representation
1625
+ command.response_class = Google::Apis::AndroidenterpriseV1::Permission
1626
+ command.params['permissionId'] = permission_id unless permission_id.nil?
1627
+ command.query['language'] = language unless language.nil?
1628
+ command.query['fields'] = fields unless fields.nil?
1629
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1630
+ command.query['userIp'] = user_ip unless user_ip.nil?
1631
+ execute_or_queue_command(command, &block)
1632
+ end
1633
+
1634
+ # Approves the specified product (and the relevant app permissions, if any).
1635
+ # @param [String] enterprise_id
1636
+ # The ID of the enterprise.
1637
+ # @param [String] product_id
1638
+ # The ID of the product.
1639
+ # @param [Google::Apis::AndroidenterpriseV1::ApproveProductRequest] approve_product_request_object
1640
+ # @param [String] fields
1641
+ # Selector specifying which fields to include in a partial response.
1642
+ # @param [String] quota_user
1643
+ # Available to use for quota purposes for server-side applications. Can be any
1644
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1645
+ # Overrides userIp if both are provided.
1646
+ # @param [String] user_ip
1647
+ # IP address of the site where the request originates. Use this if you want to
1648
+ # enforce per-user limits.
1649
+ # @param [Google::Apis::RequestOptions] options
1650
+ # Request-specific options
1651
+ #
1652
+ # @yield [result, err] Result & error if block supplied
1653
+ # @yieldparam result [NilClass] No result returned for this method
1654
+ # @yieldparam err [StandardError] error object if request failed
1655
+ #
1656
+ # @return [void]
1657
+ #
1658
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1659
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1660
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1661
+ def approve_product(enterprise_id, product_id, approve_product_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1662
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/approve', options)
1663
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ApproveProductRequest::Representation
1664
+ command.request_object = approve_product_request_object
1665
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1666
+ command.params['productId'] = product_id unless product_id.nil?
1667
+ command.query['fields'] = fields unless fields.nil?
1668
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1669
+ command.query['userIp'] = user_ip unless user_ip.nil?
1670
+ execute_or_queue_command(command, &block)
1671
+ end
1672
+
1673
+ # Generates a URL that can be rendered in an iframe to display the permissions (
1674
+ # if any) of a product. An enterprise admin must view these permissions and
1675
+ # accept them on behalf of their organization in order to approve that product.
1676
+ # Admins should accept the displayed permissions by interacting with a separate
1677
+ # UI element in the EMM console, which in turn should trigger the use of this
1678
+ # URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to
1679
+ # approve the product. This URL can only be used to display permissions for up
1680
+ # to 1 day.
1681
+ # @param [String] enterprise_id
1682
+ # The ID of the enterprise.
1683
+ # @param [String] product_id
1684
+ # The ID of the product.
1685
+ # @param [String] language_code
1686
+ # The BCP 47 language code used for permission names and descriptions in the
1687
+ # returned iframe, for instance "en-US".
1688
+ # @param [String] fields
1689
+ # Selector specifying which fields to include in a partial response.
1690
+ # @param [String] quota_user
1691
+ # Available to use for quota purposes for server-side applications. Can be any
1692
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1693
+ # Overrides userIp if both are provided.
1694
+ # @param [String] user_ip
1695
+ # IP address of the site where the request originates. Use this if you want to
1696
+ # enforce per-user limits.
1697
+ # @param [Google::Apis::RequestOptions] options
1698
+ # Request-specific options
1699
+ #
1700
+ # @yield [result, err] Result & error if block supplied
1701
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse] parsed result object
1702
+ # @yieldparam err [StandardError] error object if request failed
1703
+ #
1704
+ # @return [Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse]
1705
+ #
1706
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1707
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1708
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1709
+ def generate_product_approval_url(enterprise_id, product_id, language_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1710
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', options)
1711
+ command.response_representation = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse::Representation
1712
+ command.response_class = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse
1713
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1714
+ command.params['productId'] = product_id unless product_id.nil?
1715
+ command.query['languageCode'] = language_code unless language_code.nil?
1716
+ command.query['fields'] = fields unless fields.nil?
1717
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1718
+ command.query['userIp'] = user_ip unless user_ip.nil?
1719
+ execute_or_queue_command(command, &block)
1720
+ end
1721
+
1722
+ # Retrieves details of a product for display to an enterprise admin.
1723
+ # @param [String] enterprise_id
1724
+ # The ID of the enterprise.
1725
+ # @param [String] product_id
1726
+ # The ID of the product, e.g. "app:com.google.android.gm".
1727
+ # @param [String] language
1728
+ # The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
1729
+ # @param [String] fields
1730
+ # Selector specifying which fields to include in a partial response.
1731
+ # @param [String] quota_user
1732
+ # Available to use for quota purposes for server-side applications. Can be any
1733
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1734
+ # Overrides userIp if both are provided.
1735
+ # @param [String] user_ip
1736
+ # IP address of the site where the request originates. Use this if you want to
1737
+ # enforce per-user limits.
1738
+ # @param [Google::Apis::RequestOptions] options
1739
+ # Request-specific options
1740
+ #
1741
+ # @yield [result, err] Result & error if block supplied
1742
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Product] parsed result object
1743
+ # @yieldparam err [StandardError] error object if request failed
1744
+ #
1745
+ # @return [Google::Apis::AndroidenterpriseV1::Product]
1746
+ #
1747
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1748
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1749
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1750
+ def get_product(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1751
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}', options)
1752
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Product::Representation
1753
+ command.response_class = Google::Apis::AndroidenterpriseV1::Product
1754
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1755
+ command.params['productId'] = product_id unless product_id.nil?
1756
+ command.query['language'] = language unless language.nil?
1757
+ command.query['fields'] = fields unless fields.nil?
1758
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1759
+ command.query['userIp'] = user_ip unless user_ip.nil?
1760
+ execute_or_queue_command(command, &block)
1761
+ end
1762
+
1763
+ # Retrieves the schema defining app restrictions configurable for this product.
1764
+ # All products have a schema, but this may be empty if no app restrictions are
1765
+ # defined.
1766
+ # @param [String] enterprise_id
1767
+ # The ID of the enterprise.
1768
+ # @param [String] product_id
1769
+ # The ID of the product.
1770
+ # @param [String] language
1771
+ # The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
1772
+ # @param [String] fields
1773
+ # Selector specifying which fields to include in a partial response.
1774
+ # @param [String] quota_user
1775
+ # Available to use for quota purposes for server-side applications. Can be any
1776
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1777
+ # Overrides userIp if both are provided.
1778
+ # @param [String] user_ip
1779
+ # IP address of the site where the request originates. Use this if you want to
1780
+ # enforce per-user limits.
1781
+ # @param [Google::Apis::RequestOptions] options
1782
+ # Request-specific options
1783
+ #
1784
+ # @yield [result, err] Result & error if block supplied
1785
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema] parsed result object
1786
+ # @yieldparam err [StandardError] error object if request failed
1787
+ #
1788
+ # @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema]
1789
+ #
1790
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1791
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1792
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1793
+ def get_product_app_restrictions_schema(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1794
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema', options)
1795
+ command.response_representation = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema::Representation
1796
+ command.response_class = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema
1797
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1798
+ command.params['productId'] = product_id unless product_id.nil?
1799
+ command.query['language'] = language unless language.nil?
1800
+ command.query['fields'] = fields unless fields.nil?
1801
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1802
+ command.query['userIp'] = user_ip unless user_ip.nil?
1803
+ execute_or_queue_command(command, &block)
1804
+ end
1805
+
1806
+ # Retrieves the Android app permissions required by this app.
1807
+ # @param [String] enterprise_id
1808
+ # The ID of the enterprise.
1809
+ # @param [String] product_id
1810
+ # The ID of the product.
1811
+ # @param [String] fields
1812
+ # Selector specifying which fields to include in a partial response.
1813
+ # @param [String] quota_user
1814
+ # Available to use for quota purposes for server-side applications. Can be any
1815
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1816
+ # Overrides userIp if both are provided.
1817
+ # @param [String] user_ip
1818
+ # IP address of the site where the request originates. Use this if you want to
1819
+ # enforce per-user limits.
1820
+ # @param [Google::Apis::RequestOptions] options
1821
+ # Request-specific options
1822
+ #
1823
+ # @yield [result, err] Result & error if block supplied
1824
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductPermissions] parsed result object
1825
+ # @yieldparam err [StandardError] error object if request failed
1826
+ #
1827
+ # @return [Google::Apis::AndroidenterpriseV1::ProductPermissions]
1828
+ #
1829
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1830
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1831
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1832
+ def get_product_permissions(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1833
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/permissions', options)
1834
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
1835
+ command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions
1836
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1837
+ command.params['productId'] = product_id unless product_id.nil?
1838
+ command.query['fields'] = fields unless fields.nil?
1839
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1840
+ command.query['userIp'] = user_ip unless user_ip.nil?
1841
+ execute_or_queue_command(command, &block)
1842
+ end
1843
+
1844
+ # This method has been deprecated. To programmatically approve applications, you
1845
+ # must use the iframe mechanism via the generateApprovalUrl and approve
1846
+ # methods of the Products resource. For more information, see the Play EMM API
1847
+ # usage requirements.
1848
+ # The updatePermissions method (deprecated) updates the set of Android app
1849
+ # permissions for this app that have been accepted by the enterprise.
1850
+ # @param [String] enterprise_id
1851
+ # The ID of the enterprise.
1852
+ # @param [String] product_id
1853
+ # The ID of the product.
1854
+ # @param [Google::Apis::AndroidenterpriseV1::ProductPermissions] product_permissions_object
1855
+ # @param [String] fields
1856
+ # Selector specifying which fields to include in a partial response.
1857
+ # @param [String] quota_user
1858
+ # Available to use for quota purposes for server-side applications. Can be any
1859
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1860
+ # Overrides userIp if both are provided.
1861
+ # @param [String] user_ip
1862
+ # IP address of the site where the request originates. Use this if you want to
1863
+ # enforce per-user limits.
1864
+ # @param [Google::Apis::RequestOptions] options
1865
+ # Request-specific options
1866
+ #
1867
+ # @yield [result, err] Result & error if block supplied
1868
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductPermissions] parsed result object
1869
+ # @yieldparam err [StandardError] error object if request failed
1870
+ #
1871
+ # @return [Google::Apis::AndroidenterpriseV1::ProductPermissions]
1872
+ #
1873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1876
+ def update_product_permissions(enterprise_id, product_id, product_permissions_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1877
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/products/{productId}/permissions', options)
1878
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
1879
+ command.request_object = product_permissions_object
1880
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
1881
+ command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions
1882
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1883
+ command.params['productId'] = product_id unless product_id.nil?
1884
+ command.query['fields'] = fields unless fields.nil?
1885
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1886
+ command.query['userIp'] = user_ip unless user_ip.nil?
1887
+ execute_or_queue_command(command, &block)
1888
+ end
1889
+
1890
+ # Deletes a cluster.
1891
+ # @param [String] enterprise_id
1892
+ # The ID of the enterprise.
1893
+ # @param [String] page_id
1894
+ # The ID of the page.
1895
+ # @param [String] cluster_id
1896
+ # The ID of the cluster.
1897
+ # @param [String] fields
1898
+ # Selector specifying which fields to include in a partial response.
1899
+ # @param [String] quota_user
1900
+ # Available to use for quota purposes for server-side applications. Can be any
1901
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1902
+ # Overrides userIp if both are provided.
1903
+ # @param [String] user_ip
1904
+ # IP address of the site where the request originates. Use this if you want to
1905
+ # enforce per-user limits.
1906
+ # @param [Google::Apis::RequestOptions] options
1907
+ # Request-specific options
1908
+ #
1909
+ # @yield [result, err] Result & error if block supplied
1910
+ # @yieldparam result [NilClass] No result returned for this method
1911
+ # @yieldparam err [StandardError] error object if request failed
1912
+ #
1913
+ # @return [void]
1914
+ #
1915
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1916
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1917
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1918
+ def delete_storelayoutcluster(enterprise_id, page_id, cluster_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1919
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
1920
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1921
+ command.params['pageId'] = page_id unless page_id.nil?
1922
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1923
+ command.query['fields'] = fields unless fields.nil?
1924
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1925
+ command.query['userIp'] = user_ip unless user_ip.nil?
1926
+ execute_or_queue_command(command, &block)
1927
+ end
1928
+
1929
+ # Retrieves details of a cluster.
1930
+ # @param [String] enterprise_id
1931
+ # The ID of the enterprise.
1932
+ # @param [String] page_id
1933
+ # The ID of the page.
1934
+ # @param [String] cluster_id
1935
+ # The ID of the cluster.
1936
+ # @param [String] fields
1937
+ # Selector specifying which fields to include in a partial response.
1938
+ # @param [String] quota_user
1939
+ # Available to use for quota purposes for server-side applications. Can be any
1940
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1941
+ # Overrides userIp if both are provided.
1942
+ # @param [String] user_ip
1943
+ # IP address of the site where the request originates. Use this if you want to
1944
+ # enforce per-user limits.
1945
+ # @param [Google::Apis::RequestOptions] options
1946
+ # Request-specific options
1947
+ #
1948
+ # @yield [result, err] Result & error if block supplied
1949
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreCluster] parsed result object
1950
+ # @yieldparam err [StandardError] error object if request failed
1951
+ #
1952
+ # @return [Google::Apis::AndroidenterpriseV1::StoreCluster]
1953
+ #
1954
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1955
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1956
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1957
+ def get_storelayoutcluster(enterprise_id, page_id, cluster_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1958
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
1959
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
1960
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreCluster
1961
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1962
+ command.params['pageId'] = page_id unless page_id.nil?
1963
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1964
+ command.query['fields'] = fields unless fields.nil?
1965
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1966
+ command.query['userIp'] = user_ip unless user_ip.nil?
1967
+ execute_or_queue_command(command, &block)
1968
+ end
1969
+
1970
+ # Inserts a new cluster in a page.
1971
+ # @param [String] enterprise_id
1972
+ # The ID of the enterprise.
1973
+ # @param [String] page_id
1974
+ # The ID of the page.
1975
+ # @param [Google::Apis::AndroidenterpriseV1::StoreCluster] store_cluster_object
1976
+ # @param [String] fields
1977
+ # Selector specifying which fields to include in a partial response.
1978
+ # @param [String] quota_user
1979
+ # Available to use for quota purposes for server-side applications. Can be any
1980
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1981
+ # Overrides userIp if both are provided.
1982
+ # @param [String] user_ip
1983
+ # IP address of the site where the request originates. Use this if you want to
1984
+ # enforce per-user limits.
1985
+ # @param [Google::Apis::RequestOptions] options
1986
+ # Request-specific options
1987
+ #
1988
+ # @yield [result, err] Result & error if block supplied
1989
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreCluster] parsed result object
1990
+ # @yieldparam err [StandardError] error object if request failed
1991
+ #
1992
+ # @return [Google::Apis::AndroidenterpriseV1::StoreCluster]
1993
+ #
1994
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1995
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1996
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1997
+ def insert_storelayoutcluster(enterprise_id, page_id, store_cluster_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1998
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters', options)
1999
+ command.request_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
2000
+ command.request_object = store_cluster_object
2001
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
2002
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreCluster
2003
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2004
+ command.params['pageId'] = page_id unless page_id.nil?
2005
+ command.query['fields'] = fields unless fields.nil?
2006
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2007
+ command.query['userIp'] = user_ip unless user_ip.nil?
2008
+ execute_or_queue_command(command, &block)
2009
+ end
2010
+
2011
+ # Retrieves the details of all clusters on the specified page.
2012
+ # @param [String] enterprise_id
2013
+ # The ID of the enterprise.
2014
+ # @param [String] page_id
2015
+ # The ID of the page.
2016
+ # @param [String] fields
2017
+ # Selector specifying which fields to include in a partial response.
2018
+ # @param [String] quota_user
2019
+ # Available to use for quota purposes for server-side applications. Can be any
2020
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2021
+ # Overrides userIp if both are provided.
2022
+ # @param [String] user_ip
2023
+ # IP address of the site where the request originates. Use this if you want to
2024
+ # enforce per-user limits.
2025
+ # @param [Google::Apis::RequestOptions] options
2026
+ # Request-specific options
2027
+ #
2028
+ # @yield [result, err] Result & error if block supplied
2029
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreLayoutClustersListResponse] parsed result object
2030
+ # @yieldparam err [StandardError] error object if request failed
2031
+ #
2032
+ # @return [Google::Apis::AndroidenterpriseV1::StoreLayoutClustersListResponse]
2033
+ #
2034
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2035
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2036
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2037
+ def list_storelayoutclusters(enterprise_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2038
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters', options)
2039
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreLayoutClustersListResponse::Representation
2040
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreLayoutClustersListResponse
2041
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2042
+ command.params['pageId'] = page_id unless page_id.nil?
2043
+ command.query['fields'] = fields unless fields.nil?
2044
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2045
+ command.query['userIp'] = user_ip unless user_ip.nil?
2046
+ execute_or_queue_command(command, &block)
2047
+ end
2048
+
2049
+ # Updates a cluster. This method supports patch semantics.
2050
+ # @param [String] enterprise_id
2051
+ # The ID of the enterprise.
2052
+ # @param [String] page_id
2053
+ # The ID of the page.
2054
+ # @param [String] cluster_id
2055
+ # The ID of the cluster.
2056
+ # @param [Google::Apis::AndroidenterpriseV1::StoreCluster] store_cluster_object
2057
+ # @param [String] fields
2058
+ # Selector specifying which fields to include in a partial response.
2059
+ # @param [String] quota_user
2060
+ # Available to use for quota purposes for server-side applications. Can be any
2061
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2062
+ # Overrides userIp if both are provided.
2063
+ # @param [String] user_ip
2064
+ # IP address of the site where the request originates. Use this if you want to
2065
+ # enforce per-user limits.
2066
+ # @param [Google::Apis::RequestOptions] options
2067
+ # Request-specific options
2068
+ #
2069
+ # @yield [result, err] Result & error if block supplied
2070
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreCluster] parsed result object
2071
+ # @yieldparam err [StandardError] error object if request failed
2072
+ #
2073
+ # @return [Google::Apis::AndroidenterpriseV1::StoreCluster]
2074
+ #
2075
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2076
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2077
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2078
+ def patch_storelayoutcluster(enterprise_id, page_id, cluster_id, store_cluster_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2079
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
2080
+ command.request_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
2081
+ command.request_object = store_cluster_object
2082
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
2083
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreCluster
2084
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2085
+ command.params['pageId'] = page_id unless page_id.nil?
2086
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2087
+ command.query['fields'] = fields unless fields.nil?
2088
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2089
+ command.query['userIp'] = user_ip unless user_ip.nil?
2090
+ execute_or_queue_command(command, &block)
2091
+ end
2092
+
2093
+ # Updates a cluster.
2094
+ # @param [String] enterprise_id
2095
+ # The ID of the enterprise.
2096
+ # @param [String] page_id
2097
+ # The ID of the page.
2098
+ # @param [String] cluster_id
2099
+ # The ID of the cluster.
2100
+ # @param [Google::Apis::AndroidenterpriseV1::StoreCluster] store_cluster_object
2101
+ # @param [String] fields
2102
+ # Selector specifying which fields to include in a partial response.
2103
+ # @param [String] quota_user
2104
+ # Available to use for quota purposes for server-side applications. Can be any
2105
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2106
+ # Overrides userIp if both are provided.
2107
+ # @param [String] user_ip
2108
+ # IP address of the site where the request originates. Use this if you want to
2109
+ # enforce per-user limits.
2110
+ # @param [Google::Apis::RequestOptions] options
2111
+ # Request-specific options
2112
+ #
2113
+ # @yield [result, err] Result & error if block supplied
2114
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreCluster] parsed result object
2115
+ # @yieldparam err [StandardError] error object if request failed
2116
+ #
2117
+ # @return [Google::Apis::AndroidenterpriseV1::StoreCluster]
2118
+ #
2119
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2120
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2121
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2122
+ def update_storelayoutcluster(enterprise_id, page_id, cluster_id, store_cluster_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2123
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
2124
+ command.request_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
2125
+ command.request_object = store_cluster_object
2126
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
2127
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreCluster
2128
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2129
+ command.params['pageId'] = page_id unless page_id.nil?
2130
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2131
+ command.query['fields'] = fields unless fields.nil?
2132
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2133
+ command.query['userIp'] = user_ip unless user_ip.nil?
2134
+ execute_or_queue_command(command, &block)
2135
+ end
2136
+
2137
+ # Deletes a store page.
2138
+ # @param [String] enterprise_id
2139
+ # The ID of the enterprise.
2140
+ # @param [String] page_id
2141
+ # The ID of the page.
2142
+ # @param [String] fields
2143
+ # Selector specifying which fields to include in a partial response.
2144
+ # @param [String] quota_user
2145
+ # Available to use for quota purposes for server-side applications. Can be any
2146
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2147
+ # Overrides userIp if both are provided.
2148
+ # @param [String] user_ip
2149
+ # IP address of the site where the request originates. Use this if you want to
2150
+ # enforce per-user limits.
2151
+ # @param [Google::Apis::RequestOptions] options
2152
+ # Request-specific options
2153
+ #
2154
+ # @yield [result, err] Result & error if block supplied
2155
+ # @yieldparam result [NilClass] No result returned for this method
2156
+ # @yieldparam err [StandardError] error object if request failed
2157
+ #
2158
+ # @return [void]
2159
+ #
2160
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2161
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2162
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2163
+ def delete_storelayoutpage(enterprise_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2164
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
2165
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2166
+ command.params['pageId'] = page_id unless page_id.nil?
2167
+ command.query['fields'] = fields unless fields.nil?
2168
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2169
+ command.query['userIp'] = user_ip unless user_ip.nil?
2170
+ execute_or_queue_command(command, &block)
2171
+ end
2172
+
2173
+ # Retrieves details of a store page.
2174
+ # @param [String] enterprise_id
2175
+ # The ID of the enterprise.
2176
+ # @param [String] page_id
2177
+ # The ID of the page.
2178
+ # @param [String] fields
2179
+ # Selector specifying which fields to include in a partial response.
2180
+ # @param [String] quota_user
2181
+ # Available to use for quota purposes for server-side applications. Can be any
2182
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2183
+ # Overrides userIp if both are provided.
2184
+ # @param [String] user_ip
2185
+ # IP address of the site where the request originates. Use this if you want to
2186
+ # enforce per-user limits.
2187
+ # @param [Google::Apis::RequestOptions] options
2188
+ # Request-specific options
2189
+ #
2190
+ # @yield [result, err] Result & error if block supplied
2191
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StorePage] parsed result object
2192
+ # @yieldparam err [StandardError] error object if request failed
2193
+ #
2194
+ # @return [Google::Apis::AndroidenterpriseV1::StorePage]
2195
+ #
2196
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2197
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2198
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2199
+ def get_storelayoutpage(enterprise_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2200
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
2201
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
2202
+ command.response_class = Google::Apis::AndroidenterpriseV1::StorePage
2203
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2204
+ command.params['pageId'] = page_id unless page_id.nil?
2205
+ command.query['fields'] = fields unless fields.nil?
2206
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2207
+ command.query['userIp'] = user_ip unless user_ip.nil?
2208
+ execute_or_queue_command(command, &block)
2209
+ end
2210
+
2211
+ # Inserts a new store page.
2212
+ # @param [String] enterprise_id
2213
+ # The ID of the enterprise.
2214
+ # @param [Google::Apis::AndroidenterpriseV1::StorePage] store_page_object
2215
+ # @param [String] fields
2216
+ # Selector specifying which fields to include in a partial response.
2217
+ # @param [String] quota_user
2218
+ # Available to use for quota purposes for server-side applications. Can be any
2219
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2220
+ # Overrides userIp if both are provided.
2221
+ # @param [String] user_ip
2222
+ # IP address of the site where the request originates. Use this if you want to
2223
+ # enforce per-user limits.
2224
+ # @param [Google::Apis::RequestOptions] options
2225
+ # Request-specific options
2226
+ #
2227
+ # @yield [result, err] Result & error if block supplied
2228
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StorePage] parsed result object
2229
+ # @yieldparam err [StandardError] error object if request failed
2230
+ #
2231
+ # @return [Google::Apis::AndroidenterpriseV1::StorePage]
2232
+ #
2233
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2234
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2235
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2236
+ def insert_storelayoutpage(enterprise_id, store_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2237
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/storeLayout/pages', options)
2238
+ command.request_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
2239
+ command.request_object = store_page_object
2240
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
2241
+ command.response_class = Google::Apis::AndroidenterpriseV1::StorePage
2242
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2243
+ command.query['fields'] = fields unless fields.nil?
2244
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2245
+ command.query['userIp'] = user_ip unless user_ip.nil?
2246
+ execute_or_queue_command(command, &block)
2247
+ end
2248
+
2249
+ # Retrieves the details of all pages in the store.
2250
+ # @param [String] enterprise_id
2251
+ # The ID of the enterprise.
2252
+ # @param [String] fields
2253
+ # Selector specifying which fields to include in a partial response.
2254
+ # @param [String] quota_user
2255
+ # Available to use for quota purposes for server-side applications. Can be any
2256
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2257
+ # Overrides userIp if both are provided.
2258
+ # @param [String] user_ip
2259
+ # IP address of the site where the request originates. Use this if you want to
2260
+ # enforce per-user limits.
2261
+ # @param [Google::Apis::RequestOptions] options
2262
+ # Request-specific options
2263
+ #
2264
+ # @yield [result, err] Result & error if block supplied
2265
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreLayoutPagesListResponse] parsed result object
2266
+ # @yieldparam err [StandardError] error object if request failed
2267
+ #
2268
+ # @return [Google::Apis::AndroidenterpriseV1::StoreLayoutPagesListResponse]
2269
+ #
2270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2273
+ def list_storelayoutpages(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2274
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout/pages', options)
2275
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreLayoutPagesListResponse::Representation
2276
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreLayoutPagesListResponse
2277
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2278
+ command.query['fields'] = fields unless fields.nil?
2279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2280
+ command.query['userIp'] = user_ip unless user_ip.nil?
2281
+ execute_or_queue_command(command, &block)
2282
+ end
2283
+
2284
+ # Updates the content of a store page. This method supports patch semantics.
2285
+ # @param [String] enterprise_id
2286
+ # The ID of the enterprise.
2287
+ # @param [String] page_id
2288
+ # The ID of the page.
2289
+ # @param [Google::Apis::AndroidenterpriseV1::StorePage] store_page_object
2290
+ # @param [String] fields
2291
+ # Selector specifying which fields to include in a partial response.
2292
+ # @param [String] quota_user
2293
+ # Available to use for quota purposes for server-side applications. Can be any
2294
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2295
+ # Overrides userIp if both are provided.
2296
+ # @param [String] user_ip
2297
+ # IP address of the site where the request originates. Use this if you want to
2298
+ # enforce per-user limits.
2299
+ # @param [Google::Apis::RequestOptions] options
2300
+ # Request-specific options
2301
+ #
2302
+ # @yield [result, err] Result & error if block supplied
2303
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StorePage] parsed result object
2304
+ # @yieldparam err [StandardError] error object if request failed
2305
+ #
2306
+ # @return [Google::Apis::AndroidenterpriseV1::StorePage]
2307
+ #
2308
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2309
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2310
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2311
+ def patch_storelayoutpage(enterprise_id, page_id, store_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2312
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
2313
+ command.request_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
2314
+ command.request_object = store_page_object
2315
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
2316
+ command.response_class = Google::Apis::AndroidenterpriseV1::StorePage
2317
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2318
+ command.params['pageId'] = page_id unless page_id.nil?
2319
+ command.query['fields'] = fields unless fields.nil?
2320
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2321
+ command.query['userIp'] = user_ip unless user_ip.nil?
2322
+ execute_or_queue_command(command, &block)
2323
+ end
2324
+
2325
+ # Updates the content of a store page.
2326
+ # @param [String] enterprise_id
2327
+ # The ID of the enterprise.
2328
+ # @param [String] page_id
2329
+ # The ID of the page.
2330
+ # @param [Google::Apis::AndroidenterpriseV1::StorePage] store_page_object
2331
+ # @param [String] fields
2332
+ # Selector specifying which fields to include in a partial response.
2333
+ # @param [String] quota_user
2334
+ # Available to use for quota purposes for server-side applications. Can be any
2335
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2336
+ # Overrides userIp if both are provided.
2337
+ # @param [String] user_ip
2338
+ # IP address of the site where the request originates. Use this if you want to
2339
+ # enforce per-user limits.
2340
+ # @param [Google::Apis::RequestOptions] options
2341
+ # Request-specific options
2342
+ #
2343
+ # @yield [result, err] Result & error if block supplied
2344
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StorePage] parsed result object
2345
+ # @yieldparam err [StandardError] error object if request failed
2346
+ #
2347
+ # @return [Google::Apis::AndroidenterpriseV1::StorePage]
2348
+ #
2349
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2350
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2351
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2352
+ def update_storelayoutpage(enterprise_id, page_id, store_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2353
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
2354
+ command.request_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
2355
+ command.request_object = store_page_object
2356
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
2357
+ command.response_class = Google::Apis::AndroidenterpriseV1::StorePage
2358
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2359
+ command.params['pageId'] = page_id unless page_id.nil?
2360
+ command.query['fields'] = fields unless fields.nil?
2361
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2362
+ command.query['userIp'] = user_ip unless user_ip.nil?
2363
+ execute_or_queue_command(command, &block)
2364
+ end
2365
+
2366
+ # Generates a token (activation code) to allow this user to configure their work
2367
+ # account in the Android Setup Wizard. Revokes any previously generated token.
2368
+ # This call only works with Google managed accounts.
2369
+ # @param [String] enterprise_id
2370
+ # The ID of the enterprise.
2371
+ # @param [String] user_id
2372
+ # The ID of the user.
2373
+ # @param [String] fields
2374
+ # Selector specifying which fields to include in a partial response.
2375
+ # @param [String] quota_user
2376
+ # Available to use for quota purposes for server-side applications. Can be any
2377
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2378
+ # Overrides userIp if both are provided.
2379
+ # @param [String] user_ip
2380
+ # IP address of the site where the request originates. Use this if you want to
2381
+ # enforce per-user limits.
2382
+ # @param [Google::Apis::RequestOptions] options
2383
+ # Request-specific options
2384
+ #
2385
+ # @yield [result, err] Result & error if block supplied
2386
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::UserToken] parsed result object
2387
+ # @yieldparam err [StandardError] error object if request failed
2388
+ #
2389
+ # @return [Google::Apis::AndroidenterpriseV1::UserToken]
2390
+ #
2391
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2392
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2393
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2394
+ def generate_user_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2395
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/users/{userId}/token', options)
2396
+ command.response_representation = Google::Apis::AndroidenterpriseV1::UserToken::Representation
2397
+ command.response_class = Google::Apis::AndroidenterpriseV1::UserToken
2398
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2399
+ command.params['userId'] = user_id unless user_id.nil?
2400
+ command.query['fields'] = fields unless fields.nil?
2401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2402
+ command.query['userIp'] = user_ip unless user_ip.nil?
2403
+ execute_or_queue_command(command, &block)
2404
+ end
2405
+
2406
+ # Retrieves a user's details.
2407
+ # @param [String] enterprise_id
2408
+ # The ID of the enterprise.
2409
+ # @param [String] user_id
2410
+ # The ID of the user.
2411
+ # @param [String] fields
2412
+ # Selector specifying which fields to include in a partial response.
2413
+ # @param [String] quota_user
2414
+ # Available to use for quota purposes for server-side applications. Can be any
2415
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2416
+ # Overrides userIp if both are provided.
2417
+ # @param [String] user_ip
2418
+ # IP address of the site where the request originates. Use this if you want to
2419
+ # enforce per-user limits.
2420
+ # @param [Google::Apis::RequestOptions] options
2421
+ # Request-specific options
2422
+ #
2423
+ # @yield [result, err] Result & error if block supplied
2424
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
2425
+ # @yieldparam err [StandardError] error object if request failed
2426
+ #
2427
+ # @return [Google::Apis::AndroidenterpriseV1::User]
2428
+ #
2429
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2430
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2431
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2432
+ def get_user(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2433
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}', options)
2434
+ command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
2435
+ command.response_class = Google::Apis::AndroidenterpriseV1::User
2436
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2437
+ command.params['userId'] = user_id unless user_id.nil?
2438
+ command.query['fields'] = fields unless fields.nil?
2439
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2440
+ command.query['userIp'] = user_ip unless user_ip.nil?
2441
+ execute_or_queue_command(command, &block)
2442
+ end
2443
+
2444
+ # Retrieves the set of products a user is entitled to access.
2445
+ # @param [String] enterprise_id
2446
+ # The ID of the enterprise.
2447
+ # @param [String] user_id
2448
+ # The ID of the user.
2449
+ # @param [String] fields
2450
+ # Selector specifying which fields to include in a partial response.
2451
+ # @param [String] quota_user
2452
+ # Available to use for quota purposes for server-side applications. Can be any
2453
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2454
+ # Overrides userIp if both are provided.
2455
+ # @param [String] user_ip
2456
+ # IP address of the site where the request originates. Use this if you want to
2457
+ # enforce per-user limits.
2458
+ # @param [Google::Apis::RequestOptions] options
2459
+ # Request-specific options
2460
+ #
2461
+ # @yield [result, err] Result & error if block supplied
2462
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductSet] parsed result object
2463
+ # @yieldparam err [StandardError] error object if request failed
2464
+ #
2465
+ # @return [Google::Apis::AndroidenterpriseV1::ProductSet]
2466
+ #
2467
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2468
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2469
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2470
+ def get_user_available_product_set(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2471
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/availableProductSet', options)
2472
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation
2473
+ command.response_class = Google::Apis::AndroidenterpriseV1::ProductSet
2474
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2475
+ command.params['userId'] = user_id unless user_id.nil?
2476
+ command.query['fields'] = fields unless fields.nil?
2477
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2478
+ command.query['userIp'] = user_ip unless user_ip.nil?
2479
+ execute_or_queue_command(command, &block)
2480
+ end
2481
+
2482
+ # Looks up a user by their primary email address.
2483
+ # @param [String] enterprise_id
2484
+ # The ID of the enterprise.
2485
+ # @param [String] email
2486
+ # The exact primary email address of the user to look up.
2487
+ # @param [String] fields
2488
+ # Selector specifying which fields to include in a partial response.
2489
+ # @param [String] quota_user
2490
+ # Available to use for quota purposes for server-side applications. Can be any
2491
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2492
+ # Overrides userIp if both are provided.
2493
+ # @param [String] user_ip
2494
+ # IP address of the site where the request originates. Use this if you want to
2495
+ # enforce per-user limits.
2496
+ # @param [Google::Apis::RequestOptions] options
2497
+ # Request-specific options
2498
+ #
2499
+ # @yield [result, err] Result & error if block supplied
2500
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListUsersResponse] parsed result object
2501
+ # @yieldparam err [StandardError] error object if request failed
2502
+ #
2503
+ # @return [Google::Apis::AndroidenterpriseV1::ListUsersResponse]
2504
+ #
2505
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2506
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2507
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2508
+ def list_users(enterprise_id, email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2509
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users', options)
2510
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListUsersResponse::Representation
2511
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListUsersResponse
2512
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2513
+ command.query['email'] = email unless email.nil?
2514
+ command.query['fields'] = fields unless fields.nil?
2515
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2516
+ command.query['userIp'] = user_ip unless user_ip.nil?
2517
+ execute_or_queue_command(command, &block)
2518
+ end
2519
+
2520
+ # Revokes a previously generated token (activation code) for the user.
2521
+ # @param [String] enterprise_id
2522
+ # The ID of the enterprise.
2523
+ # @param [String] user_id
2524
+ # The ID of the user.
2525
+ # @param [String] fields
2526
+ # Selector specifying which fields to include in a partial response.
2527
+ # @param [String] quota_user
2528
+ # Available to use for quota purposes for server-side applications. Can be any
2529
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2530
+ # Overrides userIp if both are provided.
2531
+ # @param [String] user_ip
2532
+ # IP address of the site where the request originates. Use this if you want to
2533
+ # enforce per-user limits.
2534
+ # @param [Google::Apis::RequestOptions] options
2535
+ # Request-specific options
2536
+ #
2537
+ # @yield [result, err] Result & error if block supplied
2538
+ # @yieldparam result [NilClass] No result returned for this method
2539
+ # @yieldparam err [StandardError] error object if request failed
2540
+ #
2541
+ # @return [void]
2542
+ #
2543
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2544
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2545
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2546
+ def revoke_user_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2547
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/token', options)
2548
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2549
+ command.params['userId'] = user_id unless user_id.nil?
2550
+ command.query['fields'] = fields unless fields.nil?
2551
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2552
+ command.query['userIp'] = user_ip unless user_ip.nil?
2553
+ execute_or_queue_command(command, &block)
2554
+ end
2555
+
2556
+ # Modifies the set of products a user is entitled to access.
2557
+ # @param [String] enterprise_id
2558
+ # The ID of the enterprise.
2559
+ # @param [String] user_id
2560
+ # The ID of the user.
2561
+ # @param [Google::Apis::AndroidenterpriseV1::ProductSet] product_set_object
2562
+ # @param [String] fields
2563
+ # Selector specifying which fields to include in a partial response.
2564
+ # @param [String] quota_user
2565
+ # Available to use for quota purposes for server-side applications. Can be any
2566
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2567
+ # Overrides userIp if both are provided.
2568
+ # @param [String] user_ip
2569
+ # IP address of the site where the request originates. Use this if you want to
2570
+ # enforce per-user limits.
2571
+ # @param [Google::Apis::RequestOptions] options
2572
+ # Request-specific options
2573
+ #
2574
+ # @yield [result, err] Result & error if block supplied
2575
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductSet] parsed result object
2576
+ # @yieldparam err [StandardError] error object if request failed
2577
+ #
2578
+ # @return [Google::Apis::AndroidenterpriseV1::ProductSet]
2579
+ #
2580
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2581
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2582
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2583
+ def set_user_available_product_set(enterprise_id, user_id, product_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2584
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/availableProductSet', options)
2585
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation
2586
+ command.request_object = product_set_object
2587
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation
2588
+ command.response_class = Google::Apis::AndroidenterpriseV1::ProductSet
2589
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2590
+ command.params['userId'] = user_id unless user_id.nil?
2591
+ command.query['fields'] = fields unless fields.nil?
2592
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2593
+ command.query['userIp'] = user_ip unless user_ip.nil?
2594
+ execute_or_queue_command(command, &block)
2595
+ end
2596
+
2597
+ protected
2598
+
2599
+ def apply_command_defaults(command)
2600
+ command.query['key'] = key unless key.nil?
2601
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2602
+ command.query['userIp'] = user_ip unless user_ip.nil?
2603
+ end
2604
+ end
2605
+ end
2606
+ end
2607
+ end